@getlatedev/node 0.2.1308 → 0.2.1310

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.
@@ -6828,6 +6828,56 @@ export type FacebookTaggedPost = {
6828
6828
  } | null;
6829
6829
  };
6830
6830
 
6831
+ export type FacebookVisitorPost = {
6832
+ /**
6833
+ * Facebook post ID (`{pageId}_{postId}`).
6834
+ */
6835
+ id: string;
6836
+ /**
6837
+ * Text of the post. Null for media-only posts.
6838
+ */
6839
+ message: (string) | null;
6840
+ /**
6841
+ * Creation time as Meta returns it (ISO 8601).
6842
+ */
6843
+ createdTime: (string) | null;
6844
+ /**
6845
+ * The person or Page that published the post. Null when Meta omits the author.
6846
+ */
6847
+ from: {
6848
+ /**
6849
+ * App-scoped ID of the author.
6850
+ */
6851
+ id: string;
6852
+ name: (string) | null;
6853
+ } | null;
6854
+ /**
6855
+ * Public Facebook URL of the post.
6856
+ */
6857
+ permalinkUrl: (string) | null;
6858
+ /**
6859
+ * Media of the first attachment, in the same shape as Facebook Page posts. Null when the post has no attachment.
6860
+ */
6861
+ media: {
6862
+ mediaType: 'image' | 'video' | 'carousel' | 'text';
6863
+ /**
6864
+ * Temporary CDN URL of the cover image. Empty when there is none.
6865
+ */
6866
+ thumbnailUrl: string;
6867
+ mediaItems: Array<{
6868
+ type: 'image' | 'video';
6869
+ /**
6870
+ * Temporary CDN URL.
6871
+ */
6872
+ url: string;
6873
+ /**
6874
+ * Poster frame of a video.
6875
+ */
6876
+ thumbnail?: string;
6877
+ }>;
6878
+ } | null;
6879
+ };
6880
+
6831
6881
  export type FeedbackReceipt = {
6832
6882
  /**
6833
6883
  * Feedback id. Quote it if you follow up with support.
@@ -28001,6 +28051,35 @@ export type GetFacebookPostReactionsResponse = ({
28001
28051
 
28002
28052
  export type GetFacebookPostReactionsError = (unknown | ErrorResponse);
28003
28053
 
28054
+ export type ListFacebookVisitorPostsData = {
28055
+ path: {
28056
+ /**
28057
+ * The ID of a connected Facebook Page account.
28058
+ */
28059
+ accountId: string;
28060
+ };
28061
+ query?: {
28062
+ /**
28063
+ * The `nextCursor` of the previous page.
28064
+ */
28065
+ cursor?: string;
28066
+ /**
28067
+ * Number of Page feed entries to scan. The Page's own posts are dropped from them.
28068
+ */
28069
+ limit?: number;
28070
+ };
28071
+ };
28072
+
28073
+ export type ListFacebookVisitorPostsResponse = ({
28074
+ data: Array<FacebookVisitorPost>;
28075
+ /**
28076
+ * Pass as `cursor` to read the next page. Null when there are no more pages.
28077
+ */
28078
+ nextCursor: (string) | null;
28079
+ });
28080
+
28081
+ export type ListFacebookVisitorPostsError = (ErrorResponse);
28082
+
28004
28083
  export type ListFacebookTaggedPostsData = {
28005
28084
  path: {
28006
28085
  /**
@@ -52215,10 +52294,13 @@ export type CreateLeadFormData = {
52215
52294
  thankYouTitle?: string;
52216
52295
  thankYouBody?: string;
52217
52296
  thankYouButtonText?: string;
52297
+ /**
52298
+ * Meta thank_you_page.button_type. Defaults to VIEW_WEBSITE. Meta rejects MESSAGE_BUSINESS on thank-you pages with (#100) This button type is not yet supported for Thank You Page.
52299
+ */
52218
52300
  thankYouButtonType?: string;
52219
52301
  thankYouWebsiteUrl?: string;
52220
52302
  /**
52221
- * Adds a 'Continue in Messenger' option to the thank-you page (Meta thank_you_page.enable_messenger), so the lead can carry on chatting with the Page. Set thankYouButtonType to MESSAGE_BUSINESS or P2B_MESSENGER to make the chat the primary button.
52303
+ * Sent as Meta thank_you_page.enable_messenger (boolean). Accepted only inside platformSpecificData: a top-level thankYouEnableMessenger is a 400.
52222
52304
  */
52223
52305
  thankYouEnableMessenger?: boolean;
52224
52306
  /**