@getlatedev/node 0.2.1800 → 0.2.1802
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 +1 -0
- package/dist/index.d.mts +76 -1
- package/dist/index.d.ts +76 -1
- package/dist/index.js +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
- package/src/client.ts +2 -0
- package/src/generated/sdk.gen.ts +15 -1
- package/src/generated/types.gen.ts +78 -0
|
@@ -22311,6 +22311,49 @@ export type type32 = 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campai
|
|
|
22311
22311
|
*/
|
|
22312
22312
|
export type status60 = 'staged' | 'confirming' | 'confirmed' | 'failed';
|
|
22313
22313
|
|
|
22314
|
+
/**
|
|
22315
|
+
* A staged ad change as the list returns it: what it targets and who staged it, without the diff.
|
|
22316
|
+
*/
|
|
22317
|
+
export type StagedAdChangeSummary = {
|
|
22318
|
+
/**
|
|
22319
|
+
* The change id, used in /v1/ads/changes/{changeId}.
|
|
22320
|
+
*/
|
|
22321
|
+
id: string;
|
|
22322
|
+
/**
|
|
22323
|
+
* Which write was staged.
|
|
22324
|
+
*/
|
|
22325
|
+
type: 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update' | 'ad_create' | 'campaign_create' | 'ad_set_create';
|
|
22326
|
+
/**
|
|
22327
|
+
* The ad platform of the object, as the write route names it.
|
|
22328
|
+
*/
|
|
22329
|
+
platform: string;
|
|
22330
|
+
/**
|
|
22331
|
+
* The connected account the write goes through.
|
|
22332
|
+
*/
|
|
22333
|
+
accountId: string;
|
|
22334
|
+
/**
|
|
22335
|
+
* The ad account id on the platform.
|
|
22336
|
+
*/
|
|
22337
|
+
adAccountId: string;
|
|
22338
|
+
/**
|
|
22339
|
+
* The object the change applies to. Null for a create, whose object does not exist yet.
|
|
22340
|
+
*/
|
|
22341
|
+
targetId: (string) | null;
|
|
22342
|
+
/**
|
|
22343
|
+
* The name of the object when the change was staged, or the name a create will give it. Null when it is not known.
|
|
22344
|
+
*/
|
|
22345
|
+
targetName: (string) | null;
|
|
22346
|
+
/**
|
|
22347
|
+
* True when the change creates a new object.
|
|
22348
|
+
*/
|
|
22349
|
+
creates: boolean;
|
|
22350
|
+
/**
|
|
22351
|
+
* The user who staged the change.
|
|
22352
|
+
*/
|
|
22353
|
+
createdBy: string;
|
|
22354
|
+
createdAt: string;
|
|
22355
|
+
};
|
|
22356
|
+
|
|
22314
22357
|
export type StoredEvent = {
|
|
22315
22358
|
eventId?: string;
|
|
22316
22359
|
/**
|
|
@@ -23571,6 +23614,14 @@ export type TrackingSitePeriodTotals = {
|
|
|
23571
23614
|
* Purchases with ad consent for which no browser pixel fired, so only the server reported them.
|
|
23572
23615
|
*/
|
|
23573
23616
|
recovered?: number;
|
|
23617
|
+
/**
|
|
23618
|
+
* Leads recorded on the site without bots.
|
|
23619
|
+
*/
|
|
23620
|
+
leads?: number;
|
|
23621
|
+
/**
|
|
23622
|
+
* Checkouts started on the site without bots.
|
|
23623
|
+
*/
|
|
23624
|
+
checkouts?: number;
|
|
23574
23625
|
};
|
|
23575
23626
|
|
|
23576
23627
|
export type TrackingSitePixel = {
|
|
@@ -68634,6 +68685,29 @@ export type UndoAdRuleActivityResponse = ({
|
|
|
68634
68685
|
|
|
68635
68686
|
export type UndoAdRuleActivityError = (ErrorResponse);
|
|
68636
68687
|
|
|
68688
|
+
export type ListAdChangesData = {
|
|
68689
|
+
query?: {
|
|
68690
|
+
/**
|
|
68691
|
+
* The `nextCursor` of the previous page, unchanged.
|
|
68692
|
+
*/
|
|
68693
|
+
cursor?: string;
|
|
68694
|
+
/**
|
|
68695
|
+
* How many changes to return.
|
|
68696
|
+
*/
|
|
68697
|
+
limit?: number;
|
|
68698
|
+
};
|
|
68699
|
+
};
|
|
68700
|
+
|
|
68701
|
+
export type ListAdChangesResponse = ({
|
|
68702
|
+
changes: Array<StagedAdChangeSummary>;
|
|
68703
|
+
/**
|
|
68704
|
+
* Pass it as `cursor` to read the next page. Null on the last page.
|
|
68705
|
+
*/
|
|
68706
|
+
nextCursor: (string) | null;
|
|
68707
|
+
});
|
|
68708
|
+
|
|
68709
|
+
export type ListAdChangesError = (ErrorResponse);
|
|
68710
|
+
|
|
68637
68711
|
export type GetAdChangeData = {
|
|
68638
68712
|
path: {
|
|
68639
68713
|
/**
|
|
@@ -82944,6 +83018,10 @@ export type GetEventsOverviewResponse = ({
|
|
|
82944
83018
|
'7d'?: TrackingSitePeriodTotals;
|
|
82945
83019
|
'30d'?: TrackingSitePeriodTotals;
|
|
82946
83020
|
};
|
|
83021
|
+
/**
|
|
83022
|
+
* Whether no forwarding rule of the profile to an ad platform uses the site (its own events, or server events its visits complete) and its tag fires no ad pixel in the browser.
|
|
83023
|
+
*/
|
|
83024
|
+
sendsNowhere?: boolean;
|
|
82947
83025
|
}>;
|
|
82948
83026
|
/**
|
|
82949
83027
|
* Each event name stored in the 30 days before today and where it comes from. When a name comes from both the website tag and a server source, only the server copies count (in this overview, the daily overview and campaign results).
|