@getlatedev/node 0.2.1303 → 0.2.1305
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 +68 -1
- package/dist/index.d.ts +68 -1
- package/dist/index.js +9 -2
- package/dist/index.mjs +9 -2
- package/package.json +1 -1
- package/src/client.ts +2 -0
- package/src/generated/sdk.gen.ts +30 -5
- package/src/generated/types.gen.ts +70 -0
|
@@ -6797,6 +6797,37 @@ export type FacebookSettings = {
|
|
|
6797
6797
|
textFormatPresetId?: string;
|
|
6798
6798
|
};
|
|
6799
6799
|
|
|
6800
|
+
export type FacebookTaggedPost = {
|
|
6801
|
+
/**
|
|
6802
|
+
* Facebook post ID of the post that tags the Page.
|
|
6803
|
+
*/
|
|
6804
|
+
id: string;
|
|
6805
|
+
message: (string) | null;
|
|
6806
|
+
/**
|
|
6807
|
+
* Publication time as Meta returns it (ISO 8601).
|
|
6808
|
+
*/
|
|
6809
|
+
createdTime: (string) | null;
|
|
6810
|
+
/**
|
|
6811
|
+
* When the Page was tagged in the post (ISO 8601).
|
|
6812
|
+
*/
|
|
6813
|
+
taggedTime: (string) | null;
|
|
6814
|
+
/**
|
|
6815
|
+
* Public Facebook URL of the post.
|
|
6816
|
+
*/
|
|
6817
|
+
permalinkUrl: (string) | null;
|
|
6818
|
+
/**
|
|
6819
|
+
* Full-size picture attached to the post.
|
|
6820
|
+
*/
|
|
6821
|
+
pictureUrl: (string) | null;
|
|
6822
|
+
/**
|
|
6823
|
+
* Null when Meta does not return the author, which is common for posts by people.
|
|
6824
|
+
*/
|
|
6825
|
+
from: {
|
|
6826
|
+
id: string;
|
|
6827
|
+
name: (string) | null;
|
|
6828
|
+
} | null;
|
|
6829
|
+
};
|
|
6830
|
+
|
|
6800
6831
|
export type FeedbackReceipt = {
|
|
6801
6832
|
/**
|
|
6802
6833
|
* Feedback id. Quote it if you follow up with support.
|
|
@@ -27942,6 +27973,35 @@ export type GetFacebookPostReactionsResponse = ({
|
|
|
27942
27973
|
|
|
27943
27974
|
export type GetFacebookPostReactionsError = (unknown | ErrorResponse);
|
|
27944
27975
|
|
|
27976
|
+
export type ListFacebookTaggedPostsData = {
|
|
27977
|
+
path: {
|
|
27978
|
+
/**
|
|
27979
|
+
* The ID of a connected Facebook account.
|
|
27980
|
+
*/
|
|
27981
|
+
accountId: string;
|
|
27982
|
+
};
|
|
27983
|
+
query?: {
|
|
27984
|
+
/**
|
|
27985
|
+
* The `nextCursor` of the previous page.
|
|
27986
|
+
*/
|
|
27987
|
+
cursor?: string;
|
|
27988
|
+
/**
|
|
27989
|
+
* Page size.
|
|
27990
|
+
*/
|
|
27991
|
+
limit?: number;
|
|
27992
|
+
};
|
|
27993
|
+
};
|
|
27994
|
+
|
|
27995
|
+
export type ListFacebookTaggedPostsResponse = ({
|
|
27996
|
+
data: Array<FacebookTaggedPost>;
|
|
27997
|
+
/**
|
|
27998
|
+
* Pass as `cursor` to read the next page. Null when there are no more pages.
|
|
27999
|
+
*/
|
|
28000
|
+
nextCursor: (string) | null;
|
|
28001
|
+
});
|
|
28002
|
+
|
|
28003
|
+
export type ListFacebookTaggedPostsError = (ErrorResponse);
|
|
28004
|
+
|
|
27945
28005
|
export type GetRedditSubredditsData = {
|
|
27946
28006
|
path: {
|
|
27947
28007
|
accountId: string;
|
|
@@ -44336,11 +44396,17 @@ export type ListAdSetsData = {
|
|
|
44336
44396
|
* Platform campaign ID
|
|
44337
44397
|
*/
|
|
44338
44398
|
campaignId?: string;
|
|
44399
|
+
limit?: number;
|
|
44339
44400
|
/**
|
|
44340
44401
|
* Read the on/off switches live from the platform instead of returning the synced values. The fresh values are stored (so later reads return them too) and the response carries `statusReadAt`, the time of the read. At most 20 platform objects are read per request. Where a read fails (credentials, platform error, no reader on that platform), the stored values come back with `statusReadAt: null`. See "Status freshness" in the operation description. On X the budget is read live in the same read: on GET /v1/ads/{adId} `budget`, `adSetBudget`, `campaignBudget` and `budgetLevel` are the line item and campaign budgets X holds now (stored like the switches); on the ad set and campaign listings `budget` is the one that line item or campaign holds now (returned, not stored); a row whose budget the other level holds keeps its synced `budget`.
|
|
44341
44402
|
*/
|
|
44342
44403
|
live?: boolean;
|
|
44404
|
+
page?: number;
|
|
44343
44405
|
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit';
|
|
44406
|
+
/**
|
|
44407
|
+
* Filter by the ad set's stored `status`, the value each row returns. A live read does not change it. Rows whose `status` is null match no filter.
|
|
44408
|
+
*/
|
|
44409
|
+
status?: AdStatus;
|
|
44344
44410
|
};
|
|
44345
44411
|
};
|
|
44346
44412
|
|
|
@@ -44349,6 +44415,9 @@ export type ListAdSetsResponse = ({
|
|
|
44349
44415
|
platformAdSetId?: string;
|
|
44350
44416
|
platform?: string;
|
|
44351
44417
|
adSetName?: (string) | null;
|
|
44418
|
+
/**
|
|
44419
|
+
* Stored ad set status (active, paused, pending_review, rejected, completed, cancelled, error), as last synced. The `status` filter matches it.
|
|
44420
|
+
*/
|
|
44352
44421
|
status?: (string) | null;
|
|
44353
44422
|
/**
|
|
44354
44423
|
* Raw platform ad set status. On TikTok the ad group's own switch `operation_status` (ENABLE / DISABLE), independent of its campaign. On Meta and Reddit the ad set's `effective_status` (e.g. CAMPAIGN_PAUSED).
|
|
@@ -44479,6 +44548,7 @@ export type ListAdSetsResponse = ({
|
|
|
44479
44548
|
*/
|
|
44480
44549
|
configReadAt?: (string) | null;
|
|
44481
44550
|
}>;
|
|
44551
|
+
pagination?: Pagination;
|
|
44482
44552
|
});
|
|
44483
44553
|
|
|
44484
44554
|
export type ListAdSetsError = (ErrorResponse | unknown);
|