@getlatedev/node 0.2.1281 → 0.2.1283
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +10 -9
- package/src/generated/types.gen.ts +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -48432,7 +48432,7 @@ type ListAdAccountsData = {
|
|
|
48432
48432
|
*/
|
|
48433
48433
|
adAccountId?: string;
|
|
48434
48434
|
/**
|
|
48435
|
-
*
|
|
48435
|
+
* `true` returns only the ad accounts this connection accepts as `adAccountId` on the other /v1/ads endpoints, i.e. those inside its ad-account selection (every item then has `selected: true`). Without it, every ad account the login can reach is listed and `selected` flags selection membership. On Meta, LinkedIn, X and Reddit it drops the ad accounts with `selected: false`; a connection without a selection keeps them all. On Google Ads it also drops customers the login reaches that are not on this connection (for example ones selected on another connection of the same login), which those endpoints answer with a 400. TikTok and Pinterest have no selection, so the list is unchanged.
|
|
48436
48436
|
*/
|
|
48437
48437
|
inScopeOnly?: boolean;
|
|
48438
48438
|
/**
|
|
@@ -48575,7 +48575,7 @@ type ListAdAccountsResponse = ({
|
|
|
48575
48575
|
*/
|
|
48576
48576
|
unusableReason?: (string) | null;
|
|
48577
48577
|
/**
|
|
48578
|
-
* Always present. True when the ad account is in this connection's ad-account selection, or when the connection has no selection (then every ad account is usable). For a posting account (e.g. facebook, twitter) the selection of its ads connection applies. Unrelated to `selectable`, which is the platform's own status. Writes to an ad account with `selected: false`
|
|
48578
|
+
* Always present. True when the ad account is in this connection's ad-account selection, or when the connection has no selection (then every ad account is usable). For a posting account (e.g. facebook, twitter) the selection of its ads connection applies. Unrelated to `selectable`, which is the platform's own status. Writes to an ad account with `selected: false` answer 403 `ad_account_not_selected`; `inScopeOnly=true` lists only the selected ones.
|
|
48579
48579
|
*/
|
|
48580
48580
|
selected?: boolean;
|
|
48581
48581
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -48432,7 +48432,7 @@ type ListAdAccountsData = {
|
|
|
48432
48432
|
*/
|
|
48433
48433
|
adAccountId?: string;
|
|
48434
48434
|
/**
|
|
48435
|
-
*
|
|
48435
|
+
* `true` returns only the ad accounts this connection accepts as `adAccountId` on the other /v1/ads endpoints, i.e. those inside its ad-account selection (every item then has `selected: true`). Without it, every ad account the login can reach is listed and `selected` flags selection membership. On Meta, LinkedIn, X and Reddit it drops the ad accounts with `selected: false`; a connection without a selection keeps them all. On Google Ads it also drops customers the login reaches that are not on this connection (for example ones selected on another connection of the same login), which those endpoints answer with a 400. TikTok and Pinterest have no selection, so the list is unchanged.
|
|
48436
48436
|
*/
|
|
48437
48437
|
inScopeOnly?: boolean;
|
|
48438
48438
|
/**
|
|
@@ -48575,7 +48575,7 @@ type ListAdAccountsResponse = ({
|
|
|
48575
48575
|
*/
|
|
48576
48576
|
unusableReason?: (string) | null;
|
|
48577
48577
|
/**
|
|
48578
|
-
* Always present. True when the ad account is in this connection's ad-account selection, or when the connection has no selection (then every ad account is usable). For a posting account (e.g. facebook, twitter) the selection of its ads connection applies. Unrelated to `selectable`, which is the platform's own status. Writes to an ad account with `selected: false`
|
|
48578
|
+
* Always present. True when the ad account is in this connection's ad-account selection, or when the connection has no selection (then every ad account is usable). For a posting account (e.g. facebook, twitter) the selection of its ads connection applies. Unrelated to `selectable`, which is the platform's own status. Writes to an ad account with `selected: false` answer 403 `ad_account_not_selected`; `inScopeOnly=true` lists only the selected ones.
|
|
48579
48579
|
*/
|
|
48580
48580
|
selected?: boolean;
|
|
48581
48581
|
}>;
|
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.
|
|
39
|
+
version: "0.2.1283",
|
|
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.
|
|
8
|
+
version: "0.2.1283",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -5435,12 +5435,12 @@ export const getTweet = <ThrowOnError extends boolean = false>(options: OptionsL
|
|
|
5435
5435
|
* Returns mentions of your connected accounts from the last 7 days.
|
|
5436
5436
|
*
|
|
5437
5437
|
* - **LinkedIn**: organization mentions, delivered by webhooks and a background pull.
|
|
5438
|
-
* - **Instagram**: comment mentions (someone tags the account in a comment) and
|
|
5439
|
-
* (someone tags it in their media caption), delivered by Meta
|
|
5440
|
-
*
|
|
5441
|
-
*
|
|
5442
|
-
*
|
|
5443
|
-
* to answer one.
|
|
5438
|
+
* - **Instagram**: comment mentions (someone tags the account in a comment on their own media) and
|
|
5439
|
+
* caption mentions (someone tags it in their media caption), delivered by the Meta `mentions`
|
|
5440
|
+
* webhook. Only accounts connected through Facebook Login receive them; comments on the account's
|
|
5441
|
+
* own posts are never listed, even when they contain its @handle. Their text is read from Instagram
|
|
5442
|
+
* in the background after the first request, so `content` can be empty on the first read. Pass
|
|
5443
|
+
* `mediaId` and `commentId` to `POST /v1/inbox/mentions/reply` to answer one.
|
|
5444
5444
|
*
|
|
5445
5445
|
* Requires Inbox addon.
|
|
5446
5446
|
*
|
|
@@ -13086,9 +13086,10 @@ export const createAdAccount = <ThrowOnError extends boolean = false>(options: O
|
|
|
13086
13086
|
* Every listed ad account carries `selected`: whether it is in the connection's ad-account
|
|
13087
13087
|
* selection (the ad accounts picked at connect time or in the dashboard picker, the ones
|
|
13088
13088
|
* Zernio syncs). On a connection without a selection every ad account is `selected: true`.
|
|
13089
|
-
* Writes through /v1/ads endpoints to an ad account with `selected: false`
|
|
13090
|
-
*
|
|
13091
|
-
*
|
|
13089
|
+
* Writes through /v1/ads endpoints to an ad account with `selected: false` answer
|
|
13090
|
+
* `403 ad_account_not_selected`; add it to the selection first (dashboard picker, or
|
|
13091
|
+
* `GET /v1/connect/{platform}/ads` with `adAccountIds`). The list includes unselected ad
|
|
13092
|
+
* accounts by default; pass `inScopeOnly=true` to get only the ones this connection can use.
|
|
13092
13093
|
*
|
|
13093
13094
|
*/
|
|
13094
13095
|
export const listAdAccounts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListAdAccountsData, ThrowOnError>) => {
|
|
@@ -49280,7 +49280,7 @@ export type ListAdAccountsData = {
|
|
|
49280
49280
|
*/
|
|
49281
49281
|
adAccountId?: string;
|
|
49282
49282
|
/**
|
|
49283
|
-
*
|
|
49283
|
+
* `true` returns only the ad accounts this connection accepts as `adAccountId` on the other /v1/ads endpoints, i.e. those inside its ad-account selection (every item then has `selected: true`). Without it, every ad account the login can reach is listed and `selected` flags selection membership. On Meta, LinkedIn, X and Reddit it drops the ad accounts with `selected: false`; a connection without a selection keeps them all. On Google Ads it also drops customers the login reaches that are not on this connection (for example ones selected on another connection of the same login), which those endpoints answer with a 400. TikTok and Pinterest have no selection, so the list is unchanged.
|
|
49284
49284
|
*/
|
|
49285
49285
|
inScopeOnly?: boolean;
|
|
49286
49286
|
/**
|
|
@@ -49424,7 +49424,7 @@ export type ListAdAccountsResponse = ({
|
|
|
49424
49424
|
*/
|
|
49425
49425
|
unusableReason?: (string) | null;
|
|
49426
49426
|
/**
|
|
49427
|
-
* Always present. True when the ad account is in this connection's ad-account selection, or when the connection has no selection (then every ad account is usable). For a posting account (e.g. facebook, twitter) the selection of its ads connection applies. Unrelated to `selectable`, which is the platform's own status. Writes to an ad account with `selected: false`
|
|
49427
|
+
* Always present. True when the ad account is in this connection's ad-account selection, or when the connection has no selection (then every ad account is usable). For a posting account (e.g. facebook, twitter) the selection of its ads connection applies. Unrelated to `selectable`, which is the platform's own status. Writes to an ad account with `selected: false` answer 403 `ad_account_not_selected`; `inScopeOnly=true` lists only the selected ones.
|
|
49428
49428
|
*/
|
|
49429
49429
|
selected?: boolean;
|
|
49430
49430
|
}>;
|