@getlatedev/node 0.2.1687 → 0.2.1689
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +4 -0
- package/src/generated/types.gen.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -36575,7 +36575,7 @@ type ConnectAdsData = {
|
|
|
36575
36575
|
/**
|
|
36576
36576
|
* Scope ad sync to multiple platform ad accounts (same platform support and id shapes as `adAccountId`). Repeat the param (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate (`?adAccountIds=act_1,act_2`).
|
|
36577
36577
|
*
|
|
36578
|
-
* - Persisted server-side; the latest call wins. De-scoped ad accounts have their synced ads, campaigns, ad sets and keywords removed.
|
|
36578
|
+
* - Persisted server-side; the latest call wins. De-scoped ad accounts have their synced ads, campaigns, ad sets and keywords removed. Where ad accounts are already split into one account each, the call only adds accounts for new ids and never removes one (disconnect that account instead).
|
|
36579
36579
|
* - On Meta only the scoped ad accounts get webhook subscriptions, including when the call starts a fresh OAuth.
|
|
36580
36580
|
* - On Meta, ad accounts left out of the scope are unsubscribed from Zernio's ad-account webhooks (unless another connection still holds them) and are no longer stored, so syncs do not add them back. `GET /v1/ads/accounts` lists them (`selected: false`) only with `live=true`; passing them again reselects them.
|
|
36581
36581
|
* - On TikTok, advertisers left out of the scope are no longer synced or stored either, and are listed (`selected: false`) only with `live=true`.
|
package/dist/index.d.ts
CHANGED
|
@@ -36575,7 +36575,7 @@ type ConnectAdsData = {
|
|
|
36575
36575
|
/**
|
|
36576
36576
|
* Scope ad sync to multiple platform ad accounts (same platform support and id shapes as `adAccountId`). Repeat the param (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate (`?adAccountIds=act_1,act_2`).
|
|
36577
36577
|
*
|
|
36578
|
-
* - Persisted server-side; the latest call wins. De-scoped ad accounts have their synced ads, campaigns, ad sets and keywords removed.
|
|
36578
|
+
* - Persisted server-side; the latest call wins. De-scoped ad accounts have their synced ads, campaigns, ad sets and keywords removed. Where ad accounts are already split into one account each, the call only adds accounts for new ids and never removes one (disconnect that account instead).
|
|
36579
36579
|
* - On Meta only the scoped ad accounts get webhook subscriptions, including when the call starts a fresh OAuth.
|
|
36580
36580
|
* - On Meta, ad accounts left out of the scope are unsubscribed from Zernio's ad-account webhooks (unless another connection still holds them) and are no longer stored, so syncs do not add them back. `GET /v1/ads/accounts` lists them (`selected: false`) only with `live=true`; passing them again reselects them.
|
|
36581
36581
|
* - On TikTok, advertisers left out of the scope are no longer synced or stored either, and are listed (`selected: false`) only with `live=true`.
|
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.1689",
|
|
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.1689",
|
|
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
|
@@ -3086,6 +3086,8 @@ export const handleOAuthCallback = <ThrowOnError extends boolean = false>(option
|
|
|
3086
3086
|
* Starts the Google Ads OAuth flow and creates a standalone ads SocialAccount (googleads) with no parent.
|
|
3087
3087
|
*
|
|
3088
3088
|
* - If the account already exists and has at least one discovered Google Ads customer account, returns alreadyConnected: true.
|
|
3089
|
+
* - When the profile's accounts are already one per ad account of a single Google login, it also returns alreadyConnected: true and adds an account per new `adAccountIds` entry. Existing accounts are never de-scoped, and `accountId` is a reused account.
|
|
3090
|
+
* - Accounts of several Google logins return an authUrl to sign in again.
|
|
3089
3091
|
* - When the existing connection has zero customer accounts (metadata.googleAdsCustomerIds is empty) or is flagged needsReconnection, it returns an authUrl instead. Completing it reconnects the same account (same accountId) and re-runs ad account discovery.
|
|
3090
3092
|
*
|
|
3091
3093
|
* Discovery includes the client accounts under every manager (MCC) the Google user can reach. It also includes Google Ads test accounts, which Google always reports with status CLOSED.
|
|
@@ -4119,6 +4121,8 @@ export const testOAuthApp = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
4119
4121
|
*
|
|
4120
4122
|
* The redirect carries a `pendingDataToken` instead of the full payload. The response includes the corresponding selection array (e.g. `boards` for Pinterest).
|
|
4121
4123
|
*
|
|
4124
|
+
* For LinkedIn, add `pendingDataOnly=true` to your `redirect_url` to keep `tempToken`, `userProfile` and `organizations` out of the redirect: it then carries only `pendingDataToken`, and this endpoint returns `tempToken`, `refreshToken`, `userProfile` and `organizations` for POST /v1/connect/linkedin/select-organization. Other platforms ignore it.
|
|
4125
|
+
*
|
|
4122
4126
|
* WhatsApp, Facebook and other platforms pass selection state directly via URL query params on the redirect (`profileId`, `tempToken`, `step`), and no pending record is created. So this endpoint will return 404 for those flows. Use the platform-specific selection endpoint instead (e.g. `/v1/connect/whatsapp/select-phone-number`).
|
|
4123
4127
|
*
|
|
4124
4128
|
* ### Token lifetime
|
|
@@ -35714,7 +35714,7 @@ export type ConnectAdsData = {
|
|
|
35714
35714
|
/**
|
|
35715
35715
|
* Scope ad sync to multiple platform ad accounts (same platform support and id shapes as `adAccountId`). Repeat the param (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate (`?adAccountIds=act_1,act_2`).
|
|
35716
35716
|
*
|
|
35717
|
-
* - Persisted server-side; the latest call wins. De-scoped ad accounts have their synced ads, campaigns, ad sets and keywords removed.
|
|
35717
|
+
* - Persisted server-side; the latest call wins. De-scoped ad accounts have their synced ads, campaigns, ad sets and keywords removed. Where ad accounts are already split into one account each, the call only adds accounts for new ids and never removes one (disconnect that account instead).
|
|
35718
35718
|
* - On Meta only the scoped ad accounts get webhook subscriptions, including when the call starts a fresh OAuth.
|
|
35719
35719
|
* - On Meta, ad accounts left out of the scope are unsubscribed from Zernio's ad-account webhooks (unless another connection still holds them) and are no longer stored, so syncs do not add them back. `GET /v1/ads/accounts` lists them (`selected: false`) only with `live=true`; passing them again reselects them.
|
|
35720
35720
|
* - On TikTok, advertisers left out of the scope are no longer synced or stored either, and are listed (`selected: false`) only with `live=true`.
|