@getlatedev/node 0.2.1716 → 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/README.md +2 -0
- package/dist/index.d.mts +86 -4
- package/dist/index.d.ts +86 -4
- package/dist/index.js +15 -1
- package/dist/index.mjs +15 -1
- package/package.json +1 -1
- package/src/client.ts +4 -0
- package/src/generated/sdk.gen.ts +31 -3
- package/src/generated/types.gen.ts +88 -3
|
@@ -62356,6 +62356,24 @@ export type GetCampaignResultsTotalsResponse = ({
|
|
|
62356
62356
|
|
|
62357
62357
|
export type GetCampaignResultsTotalsError = (ErrorResponse);
|
|
62358
62358
|
|
|
62359
|
+
export type GetCampaignResultEventsResponse = ({
|
|
62360
|
+
eventNames: Array<(string)>;
|
|
62361
|
+
});
|
|
62362
|
+
|
|
62363
|
+
export type GetCampaignResultEventsError = (ErrorResponse);
|
|
62364
|
+
|
|
62365
|
+
export type SetCampaignResultEventsData = {
|
|
62366
|
+
body: {
|
|
62367
|
+
eventNames: Array<(string)> | null;
|
|
62368
|
+
};
|
|
62369
|
+
};
|
|
62370
|
+
|
|
62371
|
+
export type SetCampaignResultEventsResponse = ({
|
|
62372
|
+
eventNames: Array<(string)>;
|
|
62373
|
+
});
|
|
62374
|
+
|
|
62375
|
+
export type SetCampaignResultEventsError = (ErrorResponse);
|
|
62376
|
+
|
|
62359
62377
|
export type ListCampaignResultMetricsResponse = ({
|
|
62360
62378
|
metrics: Array<CampaignResultMetric>;
|
|
62361
62379
|
});
|
|
@@ -75161,6 +75179,10 @@ export type GetEventsOverviewResponse = ({
|
|
|
75161
75179
|
* Today's events matched to an ad campaign.
|
|
75162
75180
|
*/
|
|
75163
75181
|
matched?: number;
|
|
75182
|
+
/**
|
|
75183
|
+
* Today's events that count as campaign results (see `GET /v1/ads/campaign-results/events`), the ones looked up for a campaign.
|
|
75184
|
+
*/
|
|
75185
|
+
counted?: number;
|
|
75164
75186
|
};
|
|
75165
75187
|
/**
|
|
75166
75188
|
* One entry per forwarding rule of the profiles covered.
|
|
@@ -75303,18 +75325,30 @@ export type GetEventsOverviewError = (ErrorResponse | {
|
|
|
75303
75325
|
export type GetEventsOverviewDailyData = {
|
|
75304
75326
|
query?: {
|
|
75305
75327
|
/**
|
|
75306
|
-
*
|
|
75328
|
+
* Only events of this name, such as `Purchase`.
|
|
75329
|
+
*/
|
|
75330
|
+
eventName?: string;
|
|
75331
|
+
/**
|
|
75332
|
+
* The days to cover, each ending today (UTC): `today`, the last 7, 30 or 90 days.
|
|
75307
75333
|
*/
|
|
75308
|
-
period?: 'today' | '7d' | '30d';
|
|
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;
|
|
75309
75339
|
/**
|
|
75310
75340
|
* The profile to read. Omit to cover every profile you can access, summed across them.
|
|
75311
75341
|
*/
|
|
75312
75342
|
profileId?: string;
|
|
75343
|
+
/**
|
|
75344
|
+
* Comma-separated sources (`web`, `shopify`, `stripe`, `api`...). Only events from them.
|
|
75345
|
+
*/
|
|
75346
|
+
sources?: string;
|
|
75313
75347
|
};
|
|
75314
75348
|
};
|
|
75315
75349
|
|
|
75316
75350
|
export type GetEventsOverviewDailyResponse = ({
|
|
75317
|
-
period?: 'today' | '7d' | '30d';
|
|
75351
|
+
period?: 'today' | '7d' | '30d' | '90d';
|
|
75318
75352
|
/**
|
|
75319
75353
|
* The period's figures, shaped like the overview's `today`.
|
|
75320
75354
|
*/
|
|
@@ -75327,6 +75361,10 @@ export type GetEventsOverviewDailyResponse = ({
|
|
|
75327
75361
|
* Value of those events in `currency`. Events in other currencies are left out.
|
|
75328
75362
|
*/
|
|
75329
75363
|
value?: number;
|
|
75364
|
+
/**
|
|
75365
|
+
* Value in `currency` of those events at least one platform accepted.
|
|
75366
|
+
*/
|
|
75367
|
+
valueSent?: number;
|
|
75330
75368
|
/**
|
|
75331
75369
|
* The currency most of the period's events use; `null` when none carried a value.
|
|
75332
75370
|
*/
|
|
@@ -75343,6 +75381,10 @@ export type GetEventsOverviewDailyResponse = ({
|
|
|
75343
75381
|
* The period's events matched to an ad campaign.
|
|
75344
75382
|
*/
|
|
75345
75383
|
matched?: number;
|
|
75384
|
+
/**
|
|
75385
|
+
* The period's events that count as campaign results, the ones looked up for a campaign.
|
|
75386
|
+
*/
|
|
75387
|
+
counted?: number;
|
|
75346
75388
|
};
|
|
75347
75389
|
/**
|
|
75348
75390
|
* Every day of the period, oldest first, zero where nothing happened.
|
|
@@ -75361,7 +75403,50 @@ export type GetEventsOverviewDailyResponse = ({
|
|
|
75361
75403
|
* Those the platform accepted.
|
|
75362
75404
|
*/
|
|
75363
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
|
+
}>;
|
|
75364
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;
|
|
75365
75450
|
});
|
|
75366
75451
|
|
|
75367
75452
|
export type GetEventsOverviewDailyError = (ErrorResponse | {
|