@getlatedev/node 0.2.1447 → 0.2.1449
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 +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +0 -55
- package/src/generated/types.gen.ts +12 -3
package/dist/index.d.mts
CHANGED
|
@@ -22077,9 +22077,18 @@ type event52 = 'review.restored';
|
|
|
22077
22077
|
/**
|
|
22078
22078
|
* Webhook payload for the review.updated event. Same shape as review.new.
|
|
22079
22079
|
*
|
|
22080
|
-
* Fired when the reviewer edits their text or rating, or when a reply is
|
|
22080
|
+
* Fired when the reviewer edits their text or rating, or when a reply is added, edited or removed.
|
|
22081
22081
|
*
|
|
22082
|
-
* A reply
|
|
22082
|
+
* A reply posted through POST /v1/inbox/reviews/{reviewId}/reply fires immediately. The periodic check then reports it again with the full review payload, so expect a second delivery.
|
|
22083
|
+
*
|
|
22084
|
+
*
|
|
22085
|
+
* Replies written or removed in Google's own interface, and replies removed through the API, are reported by the periodic check.
|
|
22086
|
+
*
|
|
22087
|
+
*
|
|
22088
|
+
* For replies written in Google, that is usually within 6 hours for reviews updated in the last 30 days, and usually within about 7 days for older ones.
|
|
22089
|
+
*
|
|
22090
|
+
*
|
|
22091
|
+
* Only teams with a webhook subscribed to review.updated are checked. A removed reply fires with hasReply false.
|
|
22083
22092
|
*
|
|
22084
22093
|
* When a reply is present, review.hasReply is true and review.reply is populated.
|
|
22085
22094
|
*
|
|
@@ -27212,7 +27221,7 @@ type CreatePostData = {
|
|
|
27212
27221
|
*/
|
|
27213
27222
|
title?: string;
|
|
27214
27223
|
/**
|
|
27215
|
-
* Post caption/text. Optional when media is attached, all platforms have customContent, every platform entry is an X Article (platformSpecificData.article), or every platform entry is a LinkedIn text-free reshare (platformSpecificData.reshareUrl with no text). Required for other text-only posts. LinkedIn @mentions: write @[https://www.linkedin.com/in/jane-doe] or @[https://www.linkedin.com/company/acme] in the text
|
|
27224
|
+
* Post caption/text. Optional when media is attached, all platforms have customContent, every platform entry is an X Article (platformSpecificData.article), or every platform entry is a LinkedIn text-free reshare (platformSpecificData.reshareUrl with no text). Required for other text-only posts. LinkedIn @mentions: write @[https://www.linkedin.com/in/jane-doe] or @[https://www.linkedin.com/company/acme] in the text, see [LinkedIn mentions](/platforms/linkedin#mentions).
|
|
27216
27225
|
*/
|
|
27217
27226
|
content?: string;
|
|
27218
27227
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -22077,9 +22077,18 @@ type event52 = 'review.restored';
|
|
|
22077
22077
|
/**
|
|
22078
22078
|
* Webhook payload for the review.updated event. Same shape as review.new.
|
|
22079
22079
|
*
|
|
22080
|
-
* Fired when the reviewer edits their text or rating, or when a reply is
|
|
22080
|
+
* Fired when the reviewer edits their text or rating, or when a reply is added, edited or removed.
|
|
22081
22081
|
*
|
|
22082
|
-
* A reply
|
|
22082
|
+
* A reply posted through POST /v1/inbox/reviews/{reviewId}/reply fires immediately. The periodic check then reports it again with the full review payload, so expect a second delivery.
|
|
22083
|
+
*
|
|
22084
|
+
*
|
|
22085
|
+
* Replies written or removed in Google's own interface, and replies removed through the API, are reported by the periodic check.
|
|
22086
|
+
*
|
|
22087
|
+
*
|
|
22088
|
+
* For replies written in Google, that is usually within 6 hours for reviews updated in the last 30 days, and usually within about 7 days for older ones.
|
|
22089
|
+
*
|
|
22090
|
+
*
|
|
22091
|
+
* Only teams with a webhook subscribed to review.updated are checked. A removed reply fires with hasReply false.
|
|
22083
22092
|
*
|
|
22084
22093
|
* When a reply is present, review.hasReply is true and review.reply is populated.
|
|
22085
22094
|
*
|
|
@@ -27212,7 +27221,7 @@ type CreatePostData = {
|
|
|
27212
27221
|
*/
|
|
27213
27222
|
title?: string;
|
|
27214
27223
|
/**
|
|
27215
|
-
* Post caption/text. Optional when media is attached, all platforms have customContent, every platform entry is an X Article (platformSpecificData.article), or every platform entry is a LinkedIn text-free reshare (platformSpecificData.reshareUrl with no text). Required for other text-only posts. LinkedIn @mentions: write @[https://www.linkedin.com/in/jane-doe] or @[https://www.linkedin.com/company/acme] in the text
|
|
27224
|
+
* Post caption/text. Optional when media is attached, all platforms have customContent, every platform entry is an X Article (platformSpecificData.article), or every platform entry is a LinkedIn text-free reshare (platformSpecificData.reshareUrl with no text). Required for other text-only posts. LinkedIn @mentions: write @[https://www.linkedin.com/in/jane-doe] or @[https://www.linkedin.com/company/acme] in the text, see [LinkedIn mentions](/platforms/linkedin#mentions).
|
|
27216
27225
|
*/
|
|
27217
27226
|
content?: string;
|
|
27218
27227
|
/**
|
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.1449",
|
|
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.1449",
|
|
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
|
@@ -1694,39 +1694,6 @@ export const listPosts = <ThrowOnError extends boolean = false>(options?: Option
|
|
|
1694
1694
|
*
|
|
1695
1695
|
* See each platform's schema for media constraints.
|
|
1696
1696
|
*
|
|
1697
|
-
* ## LinkedIn @mentions
|
|
1698
|
-
*
|
|
1699
|
-
* Mention a person or company by putting its LinkedIn URL inside `@[...]`, in `content`, a LinkedIn entry's `customContent` or its `platformSpecificData.firstComment`. The post is published with LinkedIn's real name and link, with no lookup call first.
|
|
1700
|
-
*
|
|
1701
|
-
* - Person: `@[https://www.linkedin.com/in/jane-doe]`
|
|
1702
|
-
* - Company: `@[https://www.linkedin.com/company/acme]`
|
|
1703
|
-
* - Your own text: `@[Jane](https://www.linkedin.com/in/jane-doe)`. For a person it must be the first, last or full name, for a company the exact company name, both case-sensitive. Other text is replaced with LinkedIn's name and returns a `linkedin_mention_name_replaced` warning.
|
|
1704
|
-
* - `@[Text](urn:li:person:ID)`, as returned by `GET /v1/accounts/{accountId}/linkedin-mentions`: published exactly as written, with no lookup, so its text must already be LinkedIn's name.
|
|
1705
|
-
*
|
|
1706
|
-
* A post can resolve at most 10 profile or company URL mentions across its shared content, LinkedIn entries and first comments. Resolving a person's profile URL needs one of your LinkedIn accounts to administer a Page; publishing does not.
|
|
1707
|
-
*
|
|
1708
|
-
* ### When a mention can't be resolved
|
|
1709
|
-
*
|
|
1710
|
-
* Only profile and company URLs can fail. A scheduled or published post is rejected with:
|
|
1711
|
-
*
|
|
1712
|
-
* - `400` `linkedin_mentions_invalid`: a URL could not be resolved
|
|
1713
|
-
* - `400` `linkedin_mentions_limit_exceeded`: more than 10 URL mentions
|
|
1714
|
-
* - `401` `reconnect_required`: the LinkedIn token expired
|
|
1715
|
-
* - `429` `rate_limited`: LinkedIn is rate limiting
|
|
1716
|
-
* - `503` `temporarily_unavailable` (retryable): LinkedIn did not answer within 8 seconds in total
|
|
1717
|
-
*
|
|
1718
|
-
* `details.mentions[]` (`LinkedInMentionIssue`) lists each failing mention with its own code:
|
|
1719
|
-
*
|
|
1720
|
-
* - `linkedin_mention_unresolvable`
|
|
1721
|
-
* - `linkedin_mention_requires_page_admin`
|
|
1722
|
-
* - `linkedin_mention_name_unavailable`: LinkedIn withheld the name and none was given
|
|
1723
|
-
*
|
|
1724
|
-
* Drafts never fail on a mention: unresolved ones (and more than 10) stay as written and come back as `warnings`. A draft is checked again when it is scheduled.
|
|
1725
|
-
*
|
|
1726
|
-
* ### On other platforms
|
|
1727
|
-
*
|
|
1728
|
-
* `@[linkedin.com/in/jane]` is posted as its text, or as the vanity (`jane`) when you wrote no text, and `@[Text](urn:li:...)` as `Text`.
|
|
1729
|
-
*
|
|
1730
1697
|
* ## Scheduling
|
|
1731
1698
|
*
|
|
1732
1699
|
* Pick one of:
|
|
@@ -1878,28 +1845,6 @@ export const getPost = <ThrowOnError extends boolean = false>(options: OptionsLe
|
|
|
1878
1845
|
*
|
|
1879
1846
|
* Non-draft updates run the same per-platform validation as post creation (media requirements, platform-specific field rules, etc.) against the resulting platforms, returning 400 on failure.
|
|
1880
1847
|
*
|
|
1881
|
-
* ## LinkedIn @mentions
|
|
1882
|
-
*
|
|
1883
|
-
* Profile and company URLs in the `content` or LinkedIn `customContent` you send are resolved to LinkedIn's name and link, exactly as on `POST /v1/posts` (see Create post for the rules). For example:
|
|
1884
|
-
*
|
|
1885
|
-
* - `@[https://www.linkedin.com/in/jane-doe]`
|
|
1886
|
-
* - `@[Jane](https://www.linkedin.com/company/acme)`
|
|
1887
|
-
*
|
|
1888
|
-
* Only what the request sends is looked up: an update of the schedule, status or media makes no LinkedIn call, and `@[Text](urn:li:...)` markup is stored as written.
|
|
1889
|
-
*
|
|
1890
|
-
* Moving a draft out of draft also resolves the stored `content` and the stored `customContent` of its LinkedIn entries, and saves the result.
|
|
1891
|
-
*
|
|
1892
|
-
* ### When a mention can't be resolved
|
|
1893
|
-
*
|
|
1894
|
-
* On a non-draft, the request returns one of these, with each mention under `details.mentions[]` (`LinkedInMentionIssue`):
|
|
1895
|
-
*
|
|
1896
|
-
* - `400` `linkedin_mentions_invalid`
|
|
1897
|
-
* - `429` `rate_limited`
|
|
1898
|
-
* - `401` `reconnect_required`
|
|
1899
|
-
* - `503` `temporarily_unavailable` (retryable)
|
|
1900
|
-
*
|
|
1901
|
-
* Drafts get `warnings` instead.
|
|
1902
|
-
*
|
|
1903
1848
|
*/
|
|
1904
1849
|
export const updatePost = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdatePostData, ThrowOnError>) => {
|
|
1905
1850
|
return (options?.client ?? client).put<UpdatePostResponse, UpdatePostError, ThrowOnError>({
|
|
@@ -20665,9 +20665,18 @@ export type event52 = 'review.restored';
|
|
|
20665
20665
|
/**
|
|
20666
20666
|
* Webhook payload for the review.updated event. Same shape as review.new.
|
|
20667
20667
|
*
|
|
20668
|
-
* Fired when the reviewer edits their text or rating, or when a reply is
|
|
20668
|
+
* Fired when the reviewer edits their text or rating, or when a reply is added, edited or removed.
|
|
20669
20669
|
*
|
|
20670
|
-
* A reply
|
|
20670
|
+
* A reply posted through POST /v1/inbox/reviews/{reviewId}/reply fires immediately. The periodic check then reports it again with the full review payload, so expect a second delivery.
|
|
20671
|
+
*
|
|
20672
|
+
*
|
|
20673
|
+
* Replies written or removed in Google's own interface, and replies removed through the API, are reported by the periodic check.
|
|
20674
|
+
*
|
|
20675
|
+
*
|
|
20676
|
+
* For replies written in Google, that is usually within 6 hours for reviews updated in the last 30 days, and usually within about 7 days for older ones.
|
|
20677
|
+
*
|
|
20678
|
+
*
|
|
20679
|
+
* Only teams with a webhook subscribed to review.updated are checked. A removed reply fires with hasReply false.
|
|
20671
20680
|
*
|
|
20672
20681
|
* When a reply is present, review.hasReply is true and review.reply is populated.
|
|
20673
20682
|
*
|
|
@@ -26141,7 +26150,7 @@ export type CreatePostData = {
|
|
|
26141
26150
|
*/
|
|
26142
26151
|
title?: string;
|
|
26143
26152
|
/**
|
|
26144
|
-
* Post caption/text. Optional when media is attached, all platforms have customContent, every platform entry is an X Article (platformSpecificData.article), or every platform entry is a LinkedIn text-free reshare (platformSpecificData.reshareUrl with no text). Required for other text-only posts. LinkedIn @mentions: write @[https://www.linkedin.com/in/jane-doe] or @[https://www.linkedin.com/company/acme] in the text
|
|
26153
|
+
* Post caption/text. Optional when media is attached, all platforms have customContent, every platform entry is an X Article (platformSpecificData.article), or every platform entry is a LinkedIn text-free reshare (platformSpecificData.reshareUrl with no text). Required for other text-only posts. LinkedIn @mentions: write @[https://www.linkedin.com/in/jane-doe] or @[https://www.linkedin.com/company/acme] in the text, see [LinkedIn mentions](/platforms/linkedin#mentions).
|
|
26145
26154
|
*/
|
|
26146
26155
|
content?: string;
|
|
26147
26156
|
/**
|