@getlatedev/node 0.2.1082 → 0.2.1083

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
@@ -24010,8 +24010,18 @@ type GetFacebookPagesResponse = ({
24010
24010
  username?: string;
24011
24011
  category?: string;
24012
24012
  fan_count?: number;
24013
+ /**
24014
+ * The Instagram professional account linked to the Page (Meta instagram_business_account), or null when none is linked or the list was served from a cache stored before this field existed (pass refresh=true to re-read it).
24015
+ */
24016
+ instagramAccount?: {
24017
+ /**
24018
+ * Instagram professional account id, usable as instagramAccountId on POST /v1/ads/create
24019
+ */
24020
+ id?: string;
24021
+ username?: (string) | null;
24022
+ } | null;
24013
24023
  }>;
24014
- selectedPageId?: string;
24024
+ selectedPageId?: (string) | null;
24015
24025
  /**
24016
24026
  * false when this response was just read from Meta (cold cache or a refresh that ran), true when served from the stored list (including a debounced refresh or an empty Meta answer)
24017
24027
  */
package/dist/index.d.ts CHANGED
@@ -24010,8 +24010,18 @@ type GetFacebookPagesResponse = ({
24010
24010
  username?: string;
24011
24011
  category?: string;
24012
24012
  fan_count?: number;
24013
+ /**
24014
+ * The Instagram professional account linked to the Page (Meta instagram_business_account), or null when none is linked or the list was served from a cache stored before this field existed (pass refresh=true to re-read it).
24015
+ */
24016
+ instagramAccount?: {
24017
+ /**
24018
+ * Instagram professional account id, usable as instagramAccountId on POST /v1/ads/create
24019
+ */
24020
+ id?: string;
24021
+ username?: (string) | null;
24022
+ } | null;
24013
24023
  }>;
24014
- selectedPageId?: string;
24024
+ selectedPageId?: (string) | null;
24015
24025
  /**
24016
24026
  * false when this response was just read from Meta (cold cache or a refresh that ran), true when served from the stored list (including a debounced refresh or an empty Meta answer)
24017
24027
  */
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.1082",
39
+ version: "0.2.1083",
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.1082",
8
+ version: "0.2.1083",
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.1082",
3
+ "version": "0.2.1083",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2696,7 +2696,8 @@ export const revokeBusinessPartner = <ThrowOnError extends boolean = false>(opti
2696
2696
 
2697
2697
  /**
2698
2698
  * List Facebook pages
2699
- * Returns all Facebook pages the connected account has access to, including the currently selected page.
2699
+ * Returns all Facebook Pages the connected account has access to, including the currently selected Page and the Instagram professional account linked to each Page. Works on `facebook` accounts and on `metaads` accounts (classic and Facebook Login for Business connections). On a business-login `metaads` connection `selectedPageId` is the default Page ads run as, and every listed Page can be passed as `pageId` on POST /v1/ads/create. A classic `metaads` connection has no default Page, so `selectedPageId` is null there.
2700
+ *
2700
2701
  */
2701
2702
  export const getFacebookPages = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetFacebookPagesData, ThrowOnError>) => {
2702
2703
  return (options?.client ?? client).get<GetFacebookPagesResponse, GetFacebookPagesError, ThrowOnError>({
@@ -2707,7 +2708,8 @@ export const getFacebookPages = <ThrowOnError extends boolean = false>(options:
2707
2708
 
2708
2709
  /**
2709
2710
  * Update Facebook page
2710
- * Switch which Facebook Page is active for a connected account.
2711
+ * Switch which Facebook Page is active for a connected account. On a `facebook` account this changes the Page posts publish to. On a Facebook Login for Business `metaads` connection it changes the default Page ads run as (and the Page whose leads are ingested). A classic `metaads` connection has no default Page and answers 400; pass `pageId` per ad on POST /v1/ads/create instead. The Page must be in the list returned by GET (use refresh=true to pick up newly granted Pages).
2712
+ *
2711
2713
  */
2712
2714
  export const updateFacebookPage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateFacebookPageData, ThrowOnError>) => {
2713
2715
  return (options?.client ?? client).put<UpdateFacebookPageResponse, UpdateFacebookPageError, ThrowOnError>({
@@ -23134,8 +23134,18 @@ export type GetFacebookPagesResponse = ({
23134
23134
  username?: string;
23135
23135
  category?: string;
23136
23136
  fan_count?: number;
23137
+ /**
23138
+ * The Instagram professional account linked to the Page (Meta instagram_business_account), or null when none is linked or the list was served from a cache stored before this field existed (pass refresh=true to re-read it).
23139
+ */
23140
+ instagramAccount?: {
23141
+ /**
23142
+ * Instagram professional account id, usable as instagramAccountId on POST /v1/ads/create
23143
+ */
23144
+ id?: string;
23145
+ username?: (string) | null;
23146
+ } | null;
23137
23147
  }>;
23138
- selectedPageId?: string;
23148
+ selectedPageId?: (string) | null;
23139
23149
  /**
23140
23150
  * false when this response was just read from Meta (cold cache or a refresh that ran), true when served from the stored list (including a debounced refresh or an empty Meta answer)
23141
23151
  */