@zernio/node 0.2.145 → 0.2.146

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 CHANGED
@@ -14129,6 +14129,10 @@ type GetAdsTimelineError = ({
14129
14129
  } | unknown);
14130
14130
  type GetAdData = {
14131
14131
  path: {
14132
+ /**
14133
+ * Zernio `_id` (hex), Meta `platformAdId` (numeric), or one of the creative's effective story/media IDs. See description for details.
14134
+ *
14135
+ */
14132
14136
  adId: string;
14133
14137
  };
14134
14138
  };
package/dist/index.d.ts CHANGED
@@ -14129,6 +14129,10 @@ type GetAdsTimelineError = ({
14129
14129
  } | unknown);
14130
14130
  type GetAdData = {
14131
14131
  path: {
14132
+ /**
14133
+ * Zernio `_id` (hex), Meta `platformAdId` (numeric), or one of the creative's effective story/media IDs. See description for details.
14134
+ *
14135
+ */
14132
14136
  adId: string;
14133
14137
  };
14134
14138
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.145",
3
+ "version": "0.2.146",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3493,6 +3493,15 @@ export const getAdsTimeline = <ThrowOnError extends boolean = false>(options: Op
3493
3493
  /**
3494
3494
  * Get ad details
3495
3495
  * Returns an ad with its creative, targeting, status, and performance metrics.
3496
+ *
3497
+ * The `{adId}` path segment accepts any identifier dialect Zernio indexes for the ad:
3498
+ * - the Zernio internal `_id` (24-char hex)
3499
+ * - Meta's numeric `platformAdId` (the value shipped in `comment.received` webhooks as `comment.ad.id`)
3500
+ * - the creative's `effective_object_story_id` (`{pageId}_{postId}` shape, Facebook side)
3501
+ * - the creative's `effective_instagram_media_id` (Instagram side)
3502
+ *
3503
+ * Any of the four resolve to the same ad. Caller doesn't need a translation step.
3504
+ *
3496
3505
  */
3497
3506
  export const getAd = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetAdData, ThrowOnError>) => {
3498
3507
  return (options?.client ?? client).get<GetAdResponse, GetAdError, ThrowOnError>({
@@ -3570,6 +3579,12 @@ export const getAdAnalytics = <ThrowOnError extends boolean = false>(options: Op
3570
3579
  *
3571
3580
  * Requires the Ads add-on. Response shape matches GET /v1/inbox/comments/{postId}.
3572
3581
  *
3582
+ * The `{adId}` path segment accepts any identifier dialect Zernio indexes for the ad:
3583
+ * Zernio internal `_id` (24-char hex), Meta's numeric `platformAdId` (the value shipped in
3584
+ * `comment.received` webhooks as `comment.ad.id`), or the creative's
3585
+ * `effective_object_story_id` / `effective_instagram_media_id`. Caller doesn't need a
3586
+ * translation step.
3587
+ *
3573
3588
  */
3574
3589
  export const getAdComments = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetAdCommentsData, ThrowOnError>) => {
3575
3590
  return (options?.client ?? client).get<GetAdCommentsResponse, GetAdCommentsError, ThrowOnError>({
@@ -14457,6 +14457,10 @@ export type GetAdsTimelineError = ({
14457
14457
 
14458
14458
  export type GetAdData = {
14459
14459
  path: {
14460
+ /**
14461
+ * Zernio `_id` (hex), Meta `platformAdId` (numeric), or one of the creative's effective story/media IDs. See description for details.
14462
+ *
14463
+ */
14460
14464
  adId: string;
14461
14465
  };
14462
14466
  };