@getlatedev/node 0.2.1655 → 0.2.1657
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 +35 -14
- package/dist/index.d.ts +35 -14
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +10 -7
- package/src/generated/types.gen.ts +30 -9
package/dist/index.d.mts
CHANGED
|
@@ -484,7 +484,7 @@ declare class Zernio {
|
|
|
484
484
|
startMicrosoftAdminConsent: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<StartMicrosoftAdminConsentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StartMicrosoftAdminConsentResponse, StartMicrosoftAdminConsentError, ThrowOnError>;
|
|
485
485
|
createGoogleOrgConnection: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateGoogleOrgConnectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateGoogleOrgConnectionResponse, ErrorResponse, ThrowOnError>;
|
|
486
486
|
createMicrosoftOrgConnection: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateMicrosoftOrgConnectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateMicrosoftOrgConnectionResponse, ErrorResponse, ThrowOnError>;
|
|
487
|
-
listOrgConnections: <ThrowOnError extends boolean = false>(options
|
|
487
|
+
listOrgConnections: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListOrgConnectionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListOrgConnectionsResponse, ErrorResponse, ThrowOnError>;
|
|
488
488
|
getOrgConnection: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetOrgConnectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetOrgConnectionResponse, GetOrgConnectionError, ThrowOnError>;
|
|
489
489
|
updateOrgConnection: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateOrgConnectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateOrgConnectionResponse, UpdateOrgConnectionError, ThrowOnError>;
|
|
490
490
|
deleteOrgConnection: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteOrgConnectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteOrgConnectionResponse, DeleteOrgConnectionError, ThrowOnError>;
|
|
@@ -1534,9 +1534,9 @@ declare class Zernio {
|
|
|
1534
1534
|
createCustomConversionGoal: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomConversionGoalData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCustomConversionGoalResponse, unknown, ThrowOnError>;
|
|
1535
1535
|
updateCustomConversionGoal: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomConversionGoalData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCustomConversionGoalResponse, unknown, ThrowOnError>;
|
|
1536
1536
|
removeCustomConversionGoal: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RemoveCustomConversionGoalData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RemoveCustomConversionGoalResponse, unknown, ThrowOnError>;
|
|
1537
|
-
listEvents: <ThrowOnError extends boolean = false>(options
|
|
1537
|
+
listEvents: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListEventsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListEventsResponse, ListEventsError, ThrowOnError>;
|
|
1538
1538
|
sendEvents: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendEventsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendEventsResponse, unknown, ThrowOnError>;
|
|
1539
|
-
getEventsOverview: <ThrowOnError extends boolean = false>(options
|
|
1539
|
+
getEventsOverview: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetEventsOverviewData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetEventsOverviewResponse, GetEventsOverviewError, ThrowOnError>;
|
|
1540
1540
|
getEvent: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetEventResponse, GetEventError, ThrowOnError>;
|
|
1541
1541
|
restateEvent: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RestateEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RestateEventResponse, RestateEventError, ThrowOnError>;
|
|
1542
1542
|
retractEvent: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RetractEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RetractEventResponse, RetractEventError, ThrowOnError>;
|
|
@@ -2211,11 +2211,11 @@ declare class Zernio {
|
|
|
2211
2211
|
/** @deprecated Use `zernio.conversions.removeCustomConversionGoal` instead. */
|
|
2212
2212
|
removeCustomConversionGoal: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RemoveCustomConversionGoalData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RemoveCustomConversionGoalResponse, unknown, ThrowOnError>;
|
|
2213
2213
|
/** @deprecated Use `zernio.conversions.listEvents` instead. */
|
|
2214
|
-
listEvents: <ThrowOnError extends boolean = false>(options
|
|
2214
|
+
listEvents: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListEventsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListEventsResponse, ListEventsError, ThrowOnError>;
|
|
2215
2215
|
/** @deprecated Use `zernio.conversions.sendEvents` instead. */
|
|
2216
2216
|
sendEvents: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendEventsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendEventsResponse, unknown, ThrowOnError>;
|
|
2217
2217
|
/** @deprecated Use `zernio.conversions.getEventsOverview` instead. */
|
|
2218
|
-
getEventsOverview: <ThrowOnError extends boolean = false>(options
|
|
2218
|
+
getEventsOverview: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetEventsOverviewData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetEventsOverviewResponse, GetEventsOverviewError, ThrowOnError>;
|
|
2219
2219
|
/** @deprecated Use `zernio.conversions.getEvent` instead. */
|
|
2220
2220
|
getEvent: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetEventResponse, GetEventError, ThrowOnError>;
|
|
2221
2221
|
/** @deprecated Use `zernio.conversions.restateEvent` instead. */
|
|
@@ -20215,6 +20215,10 @@ type platform16 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' |
|
|
|
20215
20215
|
type tiktokAccountType = 'business' | 'personal' | 'unknown';
|
|
20216
20216
|
type StoredEvent = {
|
|
20217
20217
|
eventId?: string;
|
|
20218
|
+
/**
|
|
20219
|
+
* The profile the event was stored under.
|
|
20220
|
+
*/
|
|
20221
|
+
profileId?: string;
|
|
20218
20222
|
/**
|
|
20219
20223
|
* Where the event came from: `api`, `relay`, `web`, `shopify`, `woocommerce`, `hubspot`, `meta_leads`, `google_leads`, `linkedin_leads` or `tiktok_leads`.
|
|
20220
20224
|
*/
|
|
@@ -44841,8 +44845,11 @@ type CreateMicrosoftOrgConnectionResponse = ({
|
|
|
44841
44845
|
});
|
|
44842
44846
|
type CreateMicrosoftOrgConnectionError = (ErrorResponse);
|
|
44843
44847
|
type ListOrgConnectionsData = {
|
|
44844
|
-
query
|
|
44845
|
-
|
|
44848
|
+
query?: {
|
|
44849
|
+
/**
|
|
44850
|
+
* Limit the list to one profile. Omit to list across every accessible profile.
|
|
44851
|
+
*/
|
|
44852
|
+
profileId?: string;
|
|
44846
44853
|
};
|
|
44847
44854
|
};
|
|
44848
44855
|
type ListOrgConnectionsResponse = ({
|
|
@@ -71305,7 +71312,7 @@ type RemoveCustomConversionGoalResponse = ({
|
|
|
71305
71312
|
});
|
|
71306
71313
|
type RemoveCustomConversionGoalError = (ErrorResponse | unknown);
|
|
71307
71314
|
type ListEventsData = {
|
|
71308
|
-
query
|
|
71315
|
+
query?: {
|
|
71309
71316
|
/**
|
|
71310
71317
|
* `nextCursor` from the previous page.
|
|
71311
71318
|
*/
|
|
@@ -71327,7 +71334,10 @@ type ListEventsData = {
|
|
|
71327
71334
|
* Only events sent to this ad platform, such as `metaads` or `googleads`.
|
|
71328
71335
|
*/
|
|
71329
71336
|
platform?: string;
|
|
71330
|
-
|
|
71337
|
+
/**
|
|
71338
|
+
* The profile to list. Omit to cover every profile you can access.
|
|
71339
|
+
*/
|
|
71340
|
+
profileId?: string;
|
|
71331
71341
|
/**
|
|
71332
71342
|
* Only events from this source, such as `stripe` for the payments of a connected Stripe account.
|
|
71333
71343
|
*/
|
|
@@ -71482,8 +71492,11 @@ type SendEventsError = (ErrorResponse | {
|
|
|
71482
71492
|
error?: string;
|
|
71483
71493
|
} | unknown);
|
|
71484
71494
|
type GetEventsOverviewData = {
|
|
71485
|
-
query
|
|
71486
|
-
|
|
71495
|
+
query?: {
|
|
71496
|
+
/**
|
|
71497
|
+
* The profile to read. Omit to cover every profile you can access, summed across them.
|
|
71498
|
+
*/
|
|
71499
|
+
profileId?: string;
|
|
71487
71500
|
};
|
|
71488
71501
|
};
|
|
71489
71502
|
type GetEventsOverviewResponse = ({
|
|
@@ -71514,9 +71527,13 @@ type GetEventsOverviewResponse = ({
|
|
|
71514
71527
|
matched?: number;
|
|
71515
71528
|
};
|
|
71516
71529
|
/**
|
|
71517
|
-
* One entry per forwarding rule of the
|
|
71530
|
+
* One entry per forwarding rule of the profiles covered.
|
|
71518
71531
|
*/
|
|
71519
71532
|
platforms?: Array<{
|
|
71533
|
+
/**
|
|
71534
|
+
* The profile the forwarding rule belongs to.
|
|
71535
|
+
*/
|
|
71536
|
+
profileId?: string;
|
|
71520
71537
|
accountId?: string;
|
|
71521
71538
|
/**
|
|
71522
71539
|
* Ad platform, such as `metaads` or `googleads`.
|
|
@@ -71576,7 +71593,7 @@ type GetEventsOverviewResponse = ({
|
|
|
71576
71593
|
lastSeenAt?: (string) | null;
|
|
71577
71594
|
}>;
|
|
71578
71595
|
/**
|
|
71579
|
-
* `null` when
|
|
71596
|
+
* `null` when no profile covered has a tracking site. Hit counts are approximate distinct counts.
|
|
71580
71597
|
*/
|
|
71581
71598
|
website?: {
|
|
71582
71599
|
/**
|
|
@@ -71616,10 +71633,14 @@ type GetEventsOverviewResponse = ({
|
|
|
71616
71633
|
serverPlatforms?: Array<(string)>;
|
|
71617
71634
|
} | null;
|
|
71618
71635
|
/**
|
|
71619
|
-
* Each tracking site of the
|
|
71636
|
+
* Each tracking site of the profiles covered, with its activity. Hit counts are approximate distinct counts without bots.
|
|
71620
71637
|
*/
|
|
71621
71638
|
sites?: Array<{
|
|
71622
71639
|
siteId?: string;
|
|
71640
|
+
/**
|
|
71641
|
+
* The profile the site belongs to.
|
|
71642
|
+
*/
|
|
71643
|
+
profileId?: string;
|
|
71623
71644
|
/**
|
|
71624
71645
|
* Hits today.
|
|
71625
71646
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -484,7 +484,7 @@ declare class Zernio {
|
|
|
484
484
|
startMicrosoftAdminConsent: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<StartMicrosoftAdminConsentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StartMicrosoftAdminConsentResponse, StartMicrosoftAdminConsentError, ThrowOnError>;
|
|
485
485
|
createGoogleOrgConnection: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateGoogleOrgConnectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateGoogleOrgConnectionResponse, ErrorResponse, ThrowOnError>;
|
|
486
486
|
createMicrosoftOrgConnection: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateMicrosoftOrgConnectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateMicrosoftOrgConnectionResponse, ErrorResponse, ThrowOnError>;
|
|
487
|
-
listOrgConnections: <ThrowOnError extends boolean = false>(options
|
|
487
|
+
listOrgConnections: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListOrgConnectionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListOrgConnectionsResponse, ErrorResponse, ThrowOnError>;
|
|
488
488
|
getOrgConnection: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetOrgConnectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetOrgConnectionResponse, GetOrgConnectionError, ThrowOnError>;
|
|
489
489
|
updateOrgConnection: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateOrgConnectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateOrgConnectionResponse, UpdateOrgConnectionError, ThrowOnError>;
|
|
490
490
|
deleteOrgConnection: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteOrgConnectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteOrgConnectionResponse, DeleteOrgConnectionError, ThrowOnError>;
|
|
@@ -1534,9 +1534,9 @@ declare class Zernio {
|
|
|
1534
1534
|
createCustomConversionGoal: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomConversionGoalData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCustomConversionGoalResponse, unknown, ThrowOnError>;
|
|
1535
1535
|
updateCustomConversionGoal: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomConversionGoalData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCustomConversionGoalResponse, unknown, ThrowOnError>;
|
|
1536
1536
|
removeCustomConversionGoal: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RemoveCustomConversionGoalData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RemoveCustomConversionGoalResponse, unknown, ThrowOnError>;
|
|
1537
|
-
listEvents: <ThrowOnError extends boolean = false>(options
|
|
1537
|
+
listEvents: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListEventsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListEventsResponse, ListEventsError, ThrowOnError>;
|
|
1538
1538
|
sendEvents: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendEventsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendEventsResponse, unknown, ThrowOnError>;
|
|
1539
|
-
getEventsOverview: <ThrowOnError extends boolean = false>(options
|
|
1539
|
+
getEventsOverview: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetEventsOverviewData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetEventsOverviewResponse, GetEventsOverviewError, ThrowOnError>;
|
|
1540
1540
|
getEvent: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetEventResponse, GetEventError, ThrowOnError>;
|
|
1541
1541
|
restateEvent: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RestateEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RestateEventResponse, RestateEventError, ThrowOnError>;
|
|
1542
1542
|
retractEvent: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RetractEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RetractEventResponse, RetractEventError, ThrowOnError>;
|
|
@@ -2211,11 +2211,11 @@ declare class Zernio {
|
|
|
2211
2211
|
/** @deprecated Use `zernio.conversions.removeCustomConversionGoal` instead. */
|
|
2212
2212
|
removeCustomConversionGoal: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RemoveCustomConversionGoalData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RemoveCustomConversionGoalResponse, unknown, ThrowOnError>;
|
|
2213
2213
|
/** @deprecated Use `zernio.conversions.listEvents` instead. */
|
|
2214
|
-
listEvents: <ThrowOnError extends boolean = false>(options
|
|
2214
|
+
listEvents: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListEventsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListEventsResponse, ListEventsError, ThrowOnError>;
|
|
2215
2215
|
/** @deprecated Use `zernio.conversions.sendEvents` instead. */
|
|
2216
2216
|
sendEvents: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendEventsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendEventsResponse, unknown, ThrowOnError>;
|
|
2217
2217
|
/** @deprecated Use `zernio.conversions.getEventsOverview` instead. */
|
|
2218
|
-
getEventsOverview: <ThrowOnError extends boolean = false>(options
|
|
2218
|
+
getEventsOverview: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetEventsOverviewData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetEventsOverviewResponse, GetEventsOverviewError, ThrowOnError>;
|
|
2219
2219
|
/** @deprecated Use `zernio.conversions.getEvent` instead. */
|
|
2220
2220
|
getEvent: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetEventResponse, GetEventError, ThrowOnError>;
|
|
2221
2221
|
/** @deprecated Use `zernio.conversions.restateEvent` instead. */
|
|
@@ -20215,6 +20215,10 @@ type platform16 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' |
|
|
|
20215
20215
|
type tiktokAccountType = 'business' | 'personal' | 'unknown';
|
|
20216
20216
|
type StoredEvent = {
|
|
20217
20217
|
eventId?: string;
|
|
20218
|
+
/**
|
|
20219
|
+
* The profile the event was stored under.
|
|
20220
|
+
*/
|
|
20221
|
+
profileId?: string;
|
|
20218
20222
|
/**
|
|
20219
20223
|
* Where the event came from: `api`, `relay`, `web`, `shopify`, `woocommerce`, `hubspot`, `meta_leads`, `google_leads`, `linkedin_leads` or `tiktok_leads`.
|
|
20220
20224
|
*/
|
|
@@ -44841,8 +44845,11 @@ type CreateMicrosoftOrgConnectionResponse = ({
|
|
|
44841
44845
|
});
|
|
44842
44846
|
type CreateMicrosoftOrgConnectionError = (ErrorResponse);
|
|
44843
44847
|
type ListOrgConnectionsData = {
|
|
44844
|
-
query
|
|
44845
|
-
|
|
44848
|
+
query?: {
|
|
44849
|
+
/**
|
|
44850
|
+
* Limit the list to one profile. Omit to list across every accessible profile.
|
|
44851
|
+
*/
|
|
44852
|
+
profileId?: string;
|
|
44846
44853
|
};
|
|
44847
44854
|
};
|
|
44848
44855
|
type ListOrgConnectionsResponse = ({
|
|
@@ -71305,7 +71312,7 @@ type RemoveCustomConversionGoalResponse = ({
|
|
|
71305
71312
|
});
|
|
71306
71313
|
type RemoveCustomConversionGoalError = (ErrorResponse | unknown);
|
|
71307
71314
|
type ListEventsData = {
|
|
71308
|
-
query
|
|
71315
|
+
query?: {
|
|
71309
71316
|
/**
|
|
71310
71317
|
* `nextCursor` from the previous page.
|
|
71311
71318
|
*/
|
|
@@ -71327,7 +71334,10 @@ type ListEventsData = {
|
|
|
71327
71334
|
* Only events sent to this ad platform, such as `metaads` or `googleads`.
|
|
71328
71335
|
*/
|
|
71329
71336
|
platform?: string;
|
|
71330
|
-
|
|
71337
|
+
/**
|
|
71338
|
+
* The profile to list. Omit to cover every profile you can access.
|
|
71339
|
+
*/
|
|
71340
|
+
profileId?: string;
|
|
71331
71341
|
/**
|
|
71332
71342
|
* Only events from this source, such as `stripe` for the payments of a connected Stripe account.
|
|
71333
71343
|
*/
|
|
@@ -71482,8 +71492,11 @@ type SendEventsError = (ErrorResponse | {
|
|
|
71482
71492
|
error?: string;
|
|
71483
71493
|
} | unknown);
|
|
71484
71494
|
type GetEventsOverviewData = {
|
|
71485
|
-
query
|
|
71486
|
-
|
|
71495
|
+
query?: {
|
|
71496
|
+
/**
|
|
71497
|
+
* The profile to read. Omit to cover every profile you can access, summed across them.
|
|
71498
|
+
*/
|
|
71499
|
+
profileId?: string;
|
|
71487
71500
|
};
|
|
71488
71501
|
};
|
|
71489
71502
|
type GetEventsOverviewResponse = ({
|
|
@@ -71514,9 +71527,13 @@ type GetEventsOverviewResponse = ({
|
|
|
71514
71527
|
matched?: number;
|
|
71515
71528
|
};
|
|
71516
71529
|
/**
|
|
71517
|
-
* One entry per forwarding rule of the
|
|
71530
|
+
* One entry per forwarding rule of the profiles covered.
|
|
71518
71531
|
*/
|
|
71519
71532
|
platforms?: Array<{
|
|
71533
|
+
/**
|
|
71534
|
+
* The profile the forwarding rule belongs to.
|
|
71535
|
+
*/
|
|
71536
|
+
profileId?: string;
|
|
71520
71537
|
accountId?: string;
|
|
71521
71538
|
/**
|
|
71522
71539
|
* Ad platform, such as `metaads` or `googleads`.
|
|
@@ -71576,7 +71593,7 @@ type GetEventsOverviewResponse = ({
|
|
|
71576
71593
|
lastSeenAt?: (string) | null;
|
|
71577
71594
|
}>;
|
|
71578
71595
|
/**
|
|
71579
|
-
* `null` when
|
|
71596
|
+
* `null` when no profile covered has a tracking site. Hit counts are approximate distinct counts.
|
|
71580
71597
|
*/
|
|
71581
71598
|
website?: {
|
|
71582
71599
|
/**
|
|
@@ -71616,10 +71633,14 @@ type GetEventsOverviewResponse = ({
|
|
|
71616
71633
|
serverPlatforms?: Array<(string)>;
|
|
71617
71634
|
} | null;
|
|
71618
71635
|
/**
|
|
71619
|
-
* Each tracking site of the
|
|
71636
|
+
* Each tracking site of the profiles covered, with its activity. Hit counts are approximate distinct counts without bots.
|
|
71620
71637
|
*/
|
|
71621
71638
|
sites?: Array<{
|
|
71622
71639
|
siteId?: string;
|
|
71640
|
+
/**
|
|
71641
|
+
* The profile the site belongs to.
|
|
71642
|
+
*/
|
|
71643
|
+
profileId?: string;
|
|
71623
71644
|
/**
|
|
71624
71645
|
* Hits today.
|
|
71625
71646
|
*/
|
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.1657",
|
|
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.1657",
|
|
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
|
@@ -6924,9 +6924,9 @@ export const createMicrosoftOrgConnection = <ThrowOnError extends boolean = fals
|
|
|
6924
6924
|
|
|
6925
6925
|
/**
|
|
6926
6926
|
* List organization connections
|
|
6927
|
-
* The Google Workspace and Microsoft 365 organization connections
|
|
6927
|
+
* The Google Workspace and Microsoft 365 organization connections, newest first. Pass `profileId` to list one profile; omit it to list every profile the API key can access (a profile-restricted key or team member only sees its own profiles).
|
|
6928
6928
|
*/
|
|
6929
|
-
export const listOrgConnections = <ThrowOnError extends boolean = false>(options
|
|
6929
|
+
export const listOrgConnections = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListOrgConnectionsData, ThrowOnError>) => {
|
|
6930
6930
|
return (options?.client ?? client).get<ListOrgConnectionsResponse, ListOrgConnectionsError, ThrowOnError>({
|
|
6931
6931
|
...options,
|
|
6932
6932
|
url: '/v1/org-connections'
|
|
@@ -19722,14 +19722,16 @@ export const removeCustomConversionGoal = <ThrowOnError extends boolean = false>
|
|
|
19722
19722
|
|
|
19723
19723
|
/**
|
|
19724
19724
|
* List stored events
|
|
19725
|
-
* Lists the conversion events stored
|
|
19726
|
-
*
|
|
19725
|
+
* Lists the conversion events stored by `POST /v1/events`, newest first: for one profile, or for every profile you can
|
|
19726
|
+
* access when `profileId` is omitted.
|
|
19727
|
+
*
|
|
19728
|
+
* Personal data is never returned: `hasEmail`, `hasPhone` and `hasExternalId` only say whether the event carried that identifier.
|
|
19727
19729
|
* Events sent with `testCode` are not stored, so they never appear here.
|
|
19728
19730
|
*
|
|
19729
19731
|
* Paginate with `cursor`: pass the `nextCursor` of the previous page until it comes back `null`.
|
|
19730
19732
|
*
|
|
19731
19733
|
*/
|
|
19732
|
-
export const listEvents = <ThrowOnError extends boolean = false>(options
|
|
19734
|
+
export const listEvents = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListEventsData, ThrowOnError>) => {
|
|
19733
19735
|
return (options?.client ?? client).get<ListEventsResponse, ListEventsError, ThrowOnError>({
|
|
19734
19736
|
...options,
|
|
19735
19737
|
url: '/v1/events'
|
|
@@ -19768,10 +19770,11 @@ export const sendEvents = <ThrowOnError extends boolean = false>(options: Option
|
|
|
19768
19770
|
* Get today's tracking overview
|
|
19769
19771
|
* How a profile's conversion tracking is doing today (UTC day): events stored, how many reached the ad platforms,
|
|
19770
19772
|
* each forwarding rule's destination, each event source and, when the profile has a tracking site, the site's funnel.
|
|
19771
|
-
*
|
|
19773
|
+
*
|
|
19774
|
+
* Without `profileId` it covers every profile you can access, summed across them. Requires the Ads add-on.
|
|
19772
19775
|
*
|
|
19773
19776
|
*/
|
|
19774
|
-
export const getEventsOverview = <ThrowOnError extends boolean = false>(options
|
|
19777
|
+
export const getEventsOverview = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetEventsOverviewData, ThrowOnError>) => {
|
|
19775
19778
|
return (options?.client ?? client).get<GetEventsOverviewResponse, GetEventsOverviewError, ThrowOnError>({
|
|
19776
19779
|
...options,
|
|
19777
19780
|
url: '/v1/events/overview'
|
|
@@ -18560,6 +18560,10 @@ export type tiktokAccountType = 'business' | 'personal' | 'unknown';
|
|
|
18560
18560
|
|
|
18561
18561
|
export type StoredEvent = {
|
|
18562
18562
|
eventId?: string;
|
|
18563
|
+
/**
|
|
18564
|
+
* The profile the event was stored under.
|
|
18565
|
+
*/
|
|
18566
|
+
profileId?: string;
|
|
18563
18567
|
/**
|
|
18564
18568
|
* Where the event came from: `api`, `relay`, `web`, `shopify`, `woocommerce`, `hubspot`, `meta_leads`, `google_leads`, `linkedin_leads` or `tiktok_leads`.
|
|
18565
18569
|
*/
|
|
@@ -44689,8 +44693,11 @@ export type CreateMicrosoftOrgConnectionResponse = ({
|
|
|
44689
44693
|
export type CreateMicrosoftOrgConnectionError = (ErrorResponse);
|
|
44690
44694
|
|
|
44691
44695
|
export type ListOrgConnectionsData = {
|
|
44692
|
-
query
|
|
44693
|
-
|
|
44696
|
+
query?: {
|
|
44697
|
+
/**
|
|
44698
|
+
* Limit the list to one profile. Omit to list across every accessible profile.
|
|
44699
|
+
*/
|
|
44700
|
+
profileId?: string;
|
|
44694
44701
|
};
|
|
44695
44702
|
};
|
|
44696
44703
|
|
|
@@ -73025,7 +73032,7 @@ export type RemoveCustomConversionGoalResponse = ({
|
|
|
73025
73032
|
export type RemoveCustomConversionGoalError = (ErrorResponse | unknown);
|
|
73026
73033
|
|
|
73027
73034
|
export type ListEventsData = {
|
|
73028
|
-
query
|
|
73035
|
+
query?: {
|
|
73029
73036
|
/**
|
|
73030
73037
|
* `nextCursor` from the previous page.
|
|
73031
73038
|
*/
|
|
@@ -73047,7 +73054,10 @@ export type ListEventsData = {
|
|
|
73047
73054
|
* Only events sent to this ad platform, such as `metaads` or `googleads`.
|
|
73048
73055
|
*/
|
|
73049
73056
|
platform?: string;
|
|
73050
|
-
|
|
73057
|
+
/**
|
|
73058
|
+
* The profile to list. Omit to cover every profile you can access.
|
|
73059
|
+
*/
|
|
73060
|
+
profileId?: string;
|
|
73051
73061
|
/**
|
|
73052
73062
|
* Only events from this source, such as `stripe` for the payments of a connected Stripe account.
|
|
73053
73063
|
*/
|
|
@@ -73208,8 +73218,11 @@ export type SendEventsError = (ErrorResponse | {
|
|
|
73208
73218
|
} | unknown);
|
|
73209
73219
|
|
|
73210
73220
|
export type GetEventsOverviewData = {
|
|
73211
|
-
query
|
|
73212
|
-
|
|
73221
|
+
query?: {
|
|
73222
|
+
/**
|
|
73223
|
+
* The profile to read. Omit to cover every profile you can access, summed across them.
|
|
73224
|
+
*/
|
|
73225
|
+
profileId?: string;
|
|
73213
73226
|
};
|
|
73214
73227
|
};
|
|
73215
73228
|
|
|
@@ -73241,9 +73254,13 @@ export type GetEventsOverviewResponse = ({
|
|
|
73241
73254
|
matched?: number;
|
|
73242
73255
|
};
|
|
73243
73256
|
/**
|
|
73244
|
-
* One entry per forwarding rule of the
|
|
73257
|
+
* One entry per forwarding rule of the profiles covered.
|
|
73245
73258
|
*/
|
|
73246
73259
|
platforms?: Array<{
|
|
73260
|
+
/**
|
|
73261
|
+
* The profile the forwarding rule belongs to.
|
|
73262
|
+
*/
|
|
73263
|
+
profileId?: string;
|
|
73247
73264
|
accountId?: string;
|
|
73248
73265
|
/**
|
|
73249
73266
|
* Ad platform, such as `metaads` or `googleads`.
|
|
@@ -73303,7 +73320,7 @@ export type GetEventsOverviewResponse = ({
|
|
|
73303
73320
|
lastSeenAt?: (string) | null;
|
|
73304
73321
|
}>;
|
|
73305
73322
|
/**
|
|
73306
|
-
* `null` when
|
|
73323
|
+
* `null` when no profile covered has a tracking site. Hit counts are approximate distinct counts.
|
|
73307
73324
|
*/
|
|
73308
73325
|
website?: {
|
|
73309
73326
|
/**
|
|
@@ -73343,10 +73360,14 @@ export type GetEventsOverviewResponse = ({
|
|
|
73343
73360
|
serverPlatforms?: Array<(string)>;
|
|
73344
73361
|
} | null;
|
|
73345
73362
|
/**
|
|
73346
|
-
* Each tracking site of the
|
|
73363
|
+
* Each tracking site of the profiles covered, with its activity. Hit counts are approximate distinct counts without bots.
|
|
73347
73364
|
*/
|
|
73348
73365
|
sites?: Array<{
|
|
73349
73366
|
siteId?: string;
|
|
73367
|
+
/**
|
|
73368
|
+
* The profile the site belongs to.
|
|
73369
|
+
*/
|
|
73370
|
+
profileId?: string;
|
|
73350
73371
|
/**
|
|
73351
73372
|
* Hits today.
|
|
73352
73373
|
*/
|