@getlatedev/node 0.1.18 → 0.1.19
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/package.json +1 -1
- package/src/generated/sdk.gen.ts +6 -5
- package/src/generated/types.gen.ts +12 -3
package/dist/index.d.mts
CHANGED
|
@@ -742,6 +742,7 @@ type FoodMenuSection = {
|
|
|
742
742
|
* - Call-to-action buttons drive user engagement
|
|
743
743
|
* - Posts appear on your Google Business Profile and in Google Search/Maps
|
|
744
744
|
* - Use locationId to post to multiple locations from the same account connection
|
|
745
|
+
* - Language is auto-detected from content; override with languageCode if needed
|
|
745
746
|
*
|
|
746
747
|
*/
|
|
747
748
|
type GoogleBusinessPlatformData = {
|
|
@@ -753,6 +754,14 @@ type GoogleBusinessPlatformData = {
|
|
|
753
754
|
*
|
|
754
755
|
*/
|
|
755
756
|
locationId?: string;
|
|
757
|
+
/**
|
|
758
|
+
* BCP 47 language code for the post content (e.g., "en", "de", "es", "fr").
|
|
759
|
+
* If omitted, the language is automatically detected from the post text.
|
|
760
|
+
* Setting this explicitly is recommended when auto-detection may not be accurate
|
|
761
|
+
* (e.g., very short posts, mixed-language content, or transliterated text).
|
|
762
|
+
*
|
|
763
|
+
*/
|
|
764
|
+
languageCode?: string;
|
|
756
765
|
/**
|
|
757
766
|
* Optional call-to-action button displayed on the post
|
|
758
767
|
*/
|
|
@@ -6260,7 +6269,7 @@ type UnlikeInboxCommentError = (unknown | {
|
|
|
6260
6269
|
type SendPrivateReplyToCommentData = {
|
|
6261
6270
|
body: {
|
|
6262
6271
|
/**
|
|
6263
|
-
* The
|
|
6272
|
+
* The social account ID (Instagram or Facebook)
|
|
6264
6273
|
*/
|
|
6265
6274
|
accountId: string;
|
|
6266
6275
|
/**
|
|
@@ -6274,7 +6283,7 @@ type SendPrivateReplyToCommentData = {
|
|
|
6274
6283
|
*/
|
|
6275
6284
|
commentId: string;
|
|
6276
6285
|
/**
|
|
6277
|
-
* The Instagram media
|
|
6286
|
+
* The media/post ID (Instagram media ID or Facebook post ID)
|
|
6278
6287
|
*/
|
|
6279
6288
|
postId: string;
|
|
6280
6289
|
};
|
|
@@ -6289,7 +6298,7 @@ type SendPrivateReplyToCommentResponse = ({
|
|
|
6289
6298
|
* The comment ID that was replied to
|
|
6290
6299
|
*/
|
|
6291
6300
|
commentId?: string;
|
|
6292
|
-
platform?:
|
|
6301
|
+
platform?: 'instagram' | 'facebook';
|
|
6293
6302
|
});
|
|
6294
6303
|
type SendPrivateReplyToCommentError = ({
|
|
6295
6304
|
error?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -742,6 +742,7 @@ type FoodMenuSection = {
|
|
|
742
742
|
* - Call-to-action buttons drive user engagement
|
|
743
743
|
* - Posts appear on your Google Business Profile and in Google Search/Maps
|
|
744
744
|
* - Use locationId to post to multiple locations from the same account connection
|
|
745
|
+
* - Language is auto-detected from content; override with languageCode if needed
|
|
745
746
|
*
|
|
746
747
|
*/
|
|
747
748
|
type GoogleBusinessPlatformData = {
|
|
@@ -753,6 +754,14 @@ type GoogleBusinessPlatformData = {
|
|
|
753
754
|
*
|
|
754
755
|
*/
|
|
755
756
|
locationId?: string;
|
|
757
|
+
/**
|
|
758
|
+
* BCP 47 language code for the post content (e.g., "en", "de", "es", "fr").
|
|
759
|
+
* If omitted, the language is automatically detected from the post text.
|
|
760
|
+
* Setting this explicitly is recommended when auto-detection may not be accurate
|
|
761
|
+
* (e.g., very short posts, mixed-language content, or transliterated text).
|
|
762
|
+
*
|
|
763
|
+
*/
|
|
764
|
+
languageCode?: string;
|
|
756
765
|
/**
|
|
757
766
|
* Optional call-to-action button displayed on the post
|
|
758
767
|
*/
|
|
@@ -6260,7 +6269,7 @@ type UnlikeInboxCommentError = (unknown | {
|
|
|
6260
6269
|
type SendPrivateReplyToCommentData = {
|
|
6261
6270
|
body: {
|
|
6262
6271
|
/**
|
|
6263
|
-
* The
|
|
6272
|
+
* The social account ID (Instagram or Facebook)
|
|
6264
6273
|
*/
|
|
6265
6274
|
accountId: string;
|
|
6266
6275
|
/**
|
|
@@ -6274,7 +6283,7 @@ type SendPrivateReplyToCommentData = {
|
|
|
6274
6283
|
*/
|
|
6275
6284
|
commentId: string;
|
|
6276
6285
|
/**
|
|
6277
|
-
* The Instagram media
|
|
6286
|
+
* The media/post ID (Instagram media ID or Facebook post ID)
|
|
6278
6287
|
*/
|
|
6279
6288
|
postId: string;
|
|
6280
6289
|
};
|
|
@@ -6289,7 +6298,7 @@ type SendPrivateReplyToCommentResponse = ({
|
|
|
6289
6298
|
* The comment ID that was replied to
|
|
6290
6299
|
*/
|
|
6291
6300
|
commentId?: string;
|
|
6292
|
-
platform?:
|
|
6301
|
+
platform?: 'instagram' | 'facebook';
|
|
6293
6302
|
});
|
|
6294
6303
|
type SendPrivateReplyToCommentError = ({
|
|
6295
6304
|
error?: string;
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -2035,16 +2035,17 @@ export const unlikeInboxComment = <ThrowOnError extends boolean = false>(options
|
|
|
2035
2035
|
* Send a private direct message to the author of a comment on your post.
|
|
2036
2036
|
* This is useful for handling customer inquiries or sensitive matters privately.
|
|
2037
2037
|
*
|
|
2038
|
-
* **Supported platforms:** Instagram
|
|
2038
|
+
* **Supported platforms:** Instagram, Facebook
|
|
2039
2039
|
*
|
|
2040
2040
|
* **Limitations:**
|
|
2041
|
-
* -
|
|
2041
|
+
* - Only ONE private reply per comment (platform API restriction)
|
|
2042
2042
|
* - Must be sent within 7 days of the comment being posted
|
|
2043
2043
|
* - Only works for comments on posts owned by the connected account
|
|
2044
|
-
* -
|
|
2045
|
-
* -
|
|
2044
|
+
* - Text only (no media attachments)
|
|
2045
|
+
* - Instagram: message goes to the user's Inbox (if they follow you) or Message Requests (if they don't). Requires `instagram_business_manage_messages` permission.
|
|
2046
|
+
* - Facebook: message opens a Messenger conversation with the commenter. Requires `pages_messaging` permission.
|
|
2046
2047
|
*
|
|
2047
|
-
* **Note:** This does not create a conversation thread until the user replies back.
|
|
2048
|
+
* **Note:** Both permissions are already included in Late's OAuth flow. This does not create a conversation thread until the user replies back.
|
|
2048
2049
|
*
|
|
2049
2050
|
*/
|
|
2050
2051
|
export const sendPrivateReplyToComment = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SendPrivateReplyToCommentData, ThrowOnError>) => {
|
|
@@ -371,6 +371,7 @@ export type FoodMenuSection = {
|
|
|
371
371
|
* - Call-to-action buttons drive user engagement
|
|
372
372
|
* - Posts appear on your Google Business Profile and in Google Search/Maps
|
|
373
373
|
* - Use locationId to post to multiple locations from the same account connection
|
|
374
|
+
* - Language is auto-detected from content; override with languageCode if needed
|
|
374
375
|
*
|
|
375
376
|
*/
|
|
376
377
|
export type GoogleBusinessPlatformData = {
|
|
@@ -382,6 +383,14 @@ export type GoogleBusinessPlatformData = {
|
|
|
382
383
|
*
|
|
383
384
|
*/
|
|
384
385
|
locationId?: string;
|
|
386
|
+
/**
|
|
387
|
+
* BCP 47 language code for the post content (e.g., "en", "de", "es", "fr").
|
|
388
|
+
* If omitted, the language is automatically detected from the post text.
|
|
389
|
+
* Setting this explicitly is recommended when auto-detection may not be accurate
|
|
390
|
+
* (e.g., very short posts, mixed-language content, or transliterated text).
|
|
391
|
+
*
|
|
392
|
+
*/
|
|
393
|
+
languageCode?: string;
|
|
385
394
|
/**
|
|
386
395
|
* Optional call-to-action button displayed on the post
|
|
387
396
|
*/
|
|
@@ -6359,7 +6368,7 @@ export type UnlikeInboxCommentError = (unknown | {
|
|
|
6359
6368
|
export type SendPrivateReplyToCommentData = {
|
|
6360
6369
|
body: {
|
|
6361
6370
|
/**
|
|
6362
|
-
* The
|
|
6371
|
+
* The social account ID (Instagram or Facebook)
|
|
6363
6372
|
*/
|
|
6364
6373
|
accountId: string;
|
|
6365
6374
|
/**
|
|
@@ -6373,7 +6382,7 @@ export type SendPrivateReplyToCommentData = {
|
|
|
6373
6382
|
*/
|
|
6374
6383
|
commentId: string;
|
|
6375
6384
|
/**
|
|
6376
|
-
* The Instagram media
|
|
6385
|
+
* The media/post ID (Instagram media ID or Facebook post ID)
|
|
6377
6386
|
*/
|
|
6378
6387
|
postId: string;
|
|
6379
6388
|
};
|
|
@@ -6389,7 +6398,7 @@ export type SendPrivateReplyToCommentResponse = ({
|
|
|
6389
6398
|
* The comment ID that was replied to
|
|
6390
6399
|
*/
|
|
6391
6400
|
commentId?: string;
|
|
6392
|
-
platform?:
|
|
6401
|
+
platform?: 'instagram' | 'facebook';
|
|
6393
6402
|
});
|
|
6394
6403
|
|
|
6395
6404
|
export type SendPrivateReplyToCommentError = ({
|