@getlatedev/node 0.2.1232 → 0.2.1234
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 +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +18 -1
package/dist/index.d.mts
CHANGED
|
@@ -11538,7 +11538,12 @@ type PostRetryResponse = {
|
|
|
11538
11538
|
};
|
|
11539
11539
|
type PostsListResponse = {
|
|
11540
11540
|
posts?: Array<Post>;
|
|
11541
|
-
pagination?: Pagination
|
|
11541
|
+
pagination?: (Pagination & {
|
|
11542
|
+
/**
|
|
11543
|
+
* Cursor for the next page in the same sortBy order. Send it back as `cursor`. Null on the last page, and always null for `sortBy=status` or `sortBy=platform`. Absent for `source=external`.
|
|
11544
|
+
*/
|
|
11545
|
+
nextCursor?: (string) | null;
|
|
11546
|
+
});
|
|
11542
11547
|
};
|
|
11543
11548
|
type PostUpdateResponse = {
|
|
11544
11549
|
message?: string;
|
|
@@ -13541,6 +13546,10 @@ type TwitterPlatformData = {
|
|
|
13541
13546
|
*/
|
|
13542
13547
|
other?: boolean;
|
|
13543
13548
|
};
|
|
13549
|
+
/**
|
|
13550
|
+
* X usernames (with or without @) to tag on the photos of the post, up to 10. Photos only, not video or GIF. Applied to the media of every tweet in a thread. An unknown username fails the post.
|
|
13551
|
+
*/
|
|
13552
|
+
mediaTaggedUsers?: Array<(string)>;
|
|
13544
13553
|
};
|
|
13545
13554
|
/**
|
|
13546
13555
|
* Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers, "verified" allows only verified users. Omit for default (everyone can reply). For threads, applies to the first tweet only. Cannot be combined with replyToTweetId.
|
|
@@ -20477,6 +20486,10 @@ type ListPostsData = {
|
|
|
20477
20486
|
* Filter posts to those created by a specific team user (24-char hex ObjectId).
|
|
20478
20487
|
*/
|
|
20479
20488
|
createdBy?: string;
|
|
20489
|
+
/**
|
|
20490
|
+
* Opaque cursor from a previous response's `pagination.nextCursor`. Returns the page that follows it in the same `sortBy` order, and takes precedence over `page` and `offset`. Each cursor page costs the same however deep it is, unlike `page`/`offset`, which get slower the further you go; prefer it to walk a long history. Send the same filters and `sortBy` as the request that issued it: a cursor from another `sortBy` returns 400. Not available with `sortBy=status` or `sortBy=platform`, or with `source=external`.
|
|
20491
|
+
*/
|
|
20492
|
+
cursor?: string;
|
|
20480
20493
|
/**
|
|
20481
20494
|
* Alias of fromDate, kept for existing callers
|
|
20482
20495
|
* @deprecated
|
|
@@ -20487,6 +20500,10 @@ type ListPostsData = {
|
|
|
20487
20500
|
* @deprecated
|
|
20488
20501
|
*/
|
|
20489
20502
|
dateTo?: string;
|
|
20503
|
+
/**
|
|
20504
|
+
* Comma-separated list of post fields to return. Each post then carries `_id` plus only these fields, which makes large pages much cheaper: leave out `platforms`, `content`, `mediaItems` or `metadata` when you do not need them. Accepted: `userId`, `title`, `content`, `mediaItems`, `platforms`, `scheduledFor`, `timezone`, `status`, `tags`, `hashtags`, `mentions`, `visibility`, `metadata`, `recycling`, `recycledFromPostId`, `queuedFromProfile`, `queueId`, `createdAt`, `updatedAt`. An unknown field returns 400 naming it. `fields=_id` returns ids only. Omit it (or send it empty) for the full post. Not available with `source=external`.
|
|
20505
|
+
*/
|
|
20506
|
+
fields?: string;
|
|
20490
20507
|
/**
|
|
20491
20508
|
* Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400. The same name the other date-window filters use (ads, analytics).
|
|
20492
20509
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -11538,7 +11538,12 @@ type PostRetryResponse = {
|
|
|
11538
11538
|
};
|
|
11539
11539
|
type PostsListResponse = {
|
|
11540
11540
|
posts?: Array<Post>;
|
|
11541
|
-
pagination?: Pagination
|
|
11541
|
+
pagination?: (Pagination & {
|
|
11542
|
+
/**
|
|
11543
|
+
* Cursor for the next page in the same sortBy order. Send it back as `cursor`. Null on the last page, and always null for `sortBy=status` or `sortBy=platform`. Absent for `source=external`.
|
|
11544
|
+
*/
|
|
11545
|
+
nextCursor?: (string) | null;
|
|
11546
|
+
});
|
|
11542
11547
|
};
|
|
11543
11548
|
type PostUpdateResponse = {
|
|
11544
11549
|
message?: string;
|
|
@@ -13541,6 +13546,10 @@ type TwitterPlatformData = {
|
|
|
13541
13546
|
*/
|
|
13542
13547
|
other?: boolean;
|
|
13543
13548
|
};
|
|
13549
|
+
/**
|
|
13550
|
+
* X usernames (with or without @) to tag on the photos of the post, up to 10. Photos only, not video or GIF. Applied to the media of every tweet in a thread. An unknown username fails the post.
|
|
13551
|
+
*/
|
|
13552
|
+
mediaTaggedUsers?: Array<(string)>;
|
|
13544
13553
|
};
|
|
13545
13554
|
/**
|
|
13546
13555
|
* Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers, "verified" allows only verified users. Omit for default (everyone can reply). For threads, applies to the first tweet only. Cannot be combined with replyToTweetId.
|
|
@@ -20477,6 +20486,10 @@ type ListPostsData = {
|
|
|
20477
20486
|
* Filter posts to those created by a specific team user (24-char hex ObjectId).
|
|
20478
20487
|
*/
|
|
20479
20488
|
createdBy?: string;
|
|
20489
|
+
/**
|
|
20490
|
+
* Opaque cursor from a previous response's `pagination.nextCursor`. Returns the page that follows it in the same `sortBy` order, and takes precedence over `page` and `offset`. Each cursor page costs the same however deep it is, unlike `page`/`offset`, which get slower the further you go; prefer it to walk a long history. Send the same filters and `sortBy` as the request that issued it: a cursor from another `sortBy` returns 400. Not available with `sortBy=status` or `sortBy=platform`, or with `source=external`.
|
|
20491
|
+
*/
|
|
20492
|
+
cursor?: string;
|
|
20480
20493
|
/**
|
|
20481
20494
|
* Alias of fromDate, kept for existing callers
|
|
20482
20495
|
* @deprecated
|
|
@@ -20487,6 +20500,10 @@ type ListPostsData = {
|
|
|
20487
20500
|
* @deprecated
|
|
20488
20501
|
*/
|
|
20489
20502
|
dateTo?: string;
|
|
20503
|
+
/**
|
|
20504
|
+
* Comma-separated list of post fields to return. Each post then carries `_id` plus only these fields, which makes large pages much cheaper: leave out `platforms`, `content`, `mediaItems` or `metadata` when you do not need them. Accepted: `userId`, `title`, `content`, `mediaItems`, `platforms`, `scheduledFor`, `timezone`, `status`, `tags`, `hashtags`, `mentions`, `visibility`, `metadata`, `recycling`, `recycledFromPostId`, `queuedFromProfile`, `queueId`, `createdAt`, `updatedAt`. An unknown field returns 400 naming it. `fields=_id` returns ids only. Omit it (or send it empty) for the full post. Not available with `source=external`.
|
|
20505
|
+
*/
|
|
20506
|
+
fields?: string;
|
|
20490
20507
|
/**
|
|
20491
20508
|
* Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400. The same name the other date-window filters use (ads, analytics).
|
|
20492
20509
|
*/
|
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.1234",
|
|
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.1234",
|
|
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
|
@@ -9934,7 +9934,12 @@ export type PostRetryResponse = {
|
|
|
9934
9934
|
|
|
9935
9935
|
export type PostsListResponse = {
|
|
9936
9936
|
posts?: Array<Post>;
|
|
9937
|
-
pagination?: Pagination
|
|
9937
|
+
pagination?: (Pagination & {
|
|
9938
|
+
/**
|
|
9939
|
+
* Cursor for the next page in the same sortBy order. Send it back as `cursor`. Null on the last page, and always null for `sortBy=status` or `sortBy=platform`. Absent for `source=external`.
|
|
9940
|
+
*/
|
|
9941
|
+
nextCursor?: (string) | null;
|
|
9942
|
+
});
|
|
9938
9943
|
};
|
|
9939
9944
|
|
|
9940
9945
|
export type PostUpdateResponse = {
|
|
@@ -12031,6 +12036,10 @@ export type TwitterPlatformData = {
|
|
|
12031
12036
|
*/
|
|
12032
12037
|
other?: boolean;
|
|
12033
12038
|
};
|
|
12039
|
+
/**
|
|
12040
|
+
* X usernames (with or without @) to tag on the photos of the post, up to 10. Photos only, not video or GIF. Applied to the media of every tweet in a thread. An unknown username fails the post.
|
|
12041
|
+
*/
|
|
12042
|
+
mediaTaggedUsers?: Array<(string)>;
|
|
12034
12043
|
};
|
|
12035
12044
|
|
|
12036
12045
|
/**
|
|
@@ -19317,6 +19326,10 @@ export type ListPostsData = {
|
|
|
19317
19326
|
* Filter posts to those created by a specific team user (24-char hex ObjectId).
|
|
19318
19327
|
*/
|
|
19319
19328
|
createdBy?: string;
|
|
19329
|
+
/**
|
|
19330
|
+
* Opaque cursor from a previous response's `pagination.nextCursor`. Returns the page that follows it in the same `sortBy` order, and takes precedence over `page` and `offset`. Each cursor page costs the same however deep it is, unlike `page`/`offset`, which get slower the further you go; prefer it to walk a long history. Send the same filters and `sortBy` as the request that issued it: a cursor from another `sortBy` returns 400. Not available with `sortBy=status` or `sortBy=platform`, or with `source=external`.
|
|
19331
|
+
*/
|
|
19332
|
+
cursor?: string;
|
|
19320
19333
|
/**
|
|
19321
19334
|
* Alias of fromDate, kept for existing callers
|
|
19322
19335
|
* @deprecated
|
|
@@ -19327,6 +19340,10 @@ export type ListPostsData = {
|
|
|
19327
19340
|
* @deprecated
|
|
19328
19341
|
*/
|
|
19329
19342
|
dateTo?: string;
|
|
19343
|
+
/**
|
|
19344
|
+
* Comma-separated list of post fields to return. Each post then carries `_id` plus only these fields, which makes large pages much cheaper: leave out `platforms`, `content`, `mediaItems` or `metadata` when you do not need them. Accepted: `userId`, `title`, `content`, `mediaItems`, `platforms`, `scheduledFor`, `timezone`, `status`, `tags`, `hashtags`, `mentions`, `visibility`, `metadata`, `recycling`, `recycledFromPostId`, `queuedFromProfile`, `queueId`, `createdAt`, `updatedAt`. An unknown field returns 400 naming it. `fields=_id` returns ids only. Omit it (or send it empty) for the full post. Not available with `source=external`.
|
|
19345
|
+
*/
|
|
19346
|
+
fields?: string;
|
|
19330
19347
|
/**
|
|
19331
19348
|
* Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400. The same name the other date-window filters use (ads, analytics).
|
|
19332
19349
|
*/
|