@getlatedev/node 0.2.1430 → 0.2.1432

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.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.1430",
39
+ version: "0.2.1432",
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.1430",
8
+ version: "0.2.1432",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1430",
3
+ "version": "0.2.1432",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -524,6 +524,8 @@ export const getYouTubeDemographics = <ThrowOnError extends boolean = false>(opt
524
524
  * Each day includes post count, platform distribution, and summed metrics (impressions, reach, likes, comments, shares, saves, clicks, views).
525
525
  * Defaults to the last 180 days.
526
526
  *
527
+ * `totals` sums the whole range for the applied filters (pass `accountId` for one account). With attribution "publish" they are the lifetime metrics of posts published in the range, with "received" the engagement that arrived in the range.
528
+ *
527
529
  */
528
530
  export const getDailyMetrics = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetDailyMetricsData, ThrowOnError>) => {
529
531
  return (options?.client ?? client).get<GetDailyMetricsResponse, GetDailyMetricsError, ThrowOnError>({
@@ -4668,6 +4668,27 @@ export type CampaignSubmissionFlag = {
4668
4668
 
4669
4669
  export type code = 'duplicate_media' | 'duplicate_post' | 'view_spike' | 'linked_accounts' | 'cross_operator' | 'unreachable' | 'post_deleted' | 'account_restricted' | 'low_authenticity' | 'x_read_cap' | 'paid_views' | 'organic_unverified';
4670
4670
 
4671
+ /**
4672
+ * Facebook only. The media on a comment (sticker, GIF, photo, shared link or video). One attachment per
4673
+ * comment, a single object. URLs are expiring Meta CDN links (oe= expiry), so fetch promptly. Instagram
4674
+ * comments carry no media.
4675
+ *
4676
+ */
4677
+ export type CommentAttachment = {
4678
+ /**
4679
+ * Attachment type as Facebook reports it, for example sticker, animated_image_share, photo, image_share, share or video_inline.
4680
+ */
4681
+ type: string;
4682
+ /**
4683
+ * Rendered image/preview URL (from attachment.media.image.src).
4684
+ */
4685
+ imageUrl?: string;
4686
+ /**
4687
+ * Source URL (from attachment.url). For GIFs this is an l.facebook.com redirect.
4688
+ */
4689
+ url?: string;
4690
+ };
4691
+
4671
4692
  /**
4672
4693
  * Actions taken on the matched comment itself (comment trigger only; ignored on the
4673
4694
  * story-reply and DM doors). They never block or fail the DM: when one cannot run,
@@ -18335,25 +18356,12 @@ export type WebhookPayloadComment = {
18335
18356
  isDarkPost?: boolean;
18336
18357
  };
18337
18358
  /**
18338
- * Facebook only. Present on graphic-only comments (sticker, GIF, photo) that
18339
- * carry no text. URLs are ephemeral and may expire for Meta platforms (oe= expiry),
18340
- * so fetch promptly. Instagram comments do not support attachments.
18359
+ * Facebook only. Present on graphic-only comments (sticker, GIF, photo) that carry no text:
18360
+ * the webhook only includes it when the comment has no text. The REST comments API returns it
18361
+ * whenever Facebook returns one, text or not.
18341
18362
  *
18342
18363
  */
18343
- attachment?: {
18344
- /**
18345
- * Attachment type: sticker, animated_image_share, or photo.
18346
- */
18347
- type: string;
18348
- /**
18349
- * Rendered image/preview URL (from attachment.media.image.src).
18350
- */
18351
- imageUrl?: string;
18352
- /**
18353
- * Source URL (from attachment.url). For GIFs this is an l.facebook.com redirect.
18354
- */
18355
- url?: string;
18356
- };
18364
+ attachment?: (CommentAttachment);
18357
18365
  };
18358
18366
  post: {
18359
18367
  /**
@@ -23225,6 +23233,27 @@ export type GetDailyMetricsResponse = ({
23225
23233
  clicks?: number;
23226
23234
  views?: number;
23227
23235
  }>;
23236
+ /**
23237
+ * Sums of the whole range for the applied filters.
23238
+ */
23239
+ totals?: {
23240
+ postCount?: number;
23241
+ impressions?: number;
23242
+ /**
23243
+ * Sum of per-post reach, not unique accounts.
23244
+ */
23245
+ reach?: number;
23246
+ likes?: number;
23247
+ comments?: number;
23248
+ shares?: number;
23249
+ saves?: number;
23250
+ clicks?: number;
23251
+ views?: number;
23252
+ /**
23253
+ * Likes, comments, shares and saves (interactions).
23254
+ */
23255
+ engagement?: number;
23256
+ };
23228
23257
  });
23229
23258
 
23230
23259
  export type GetDailyMetricsError = (ErrorResponse | {
@@ -39008,6 +39037,10 @@ export type GetInboxPostCommentsResponse = ({
39008
39037
  * Whether the current user has liked this comment
39009
39038
  */
39010
39039
  isLiked?: boolean;
39040
+ /**
39041
+ * Facebook only. The comment's sticker, GIF, photo, share or video, whenever Facebook returns one (replies included). Absent when the comment has no media and on every other platform.
39042
+ */
39043
+ attachment?: (CommentAttachment);
39011
39044
  /**
39012
39045
  * Bluesky like URI for unliking
39013
39046
  */