@getlatedev/node 0.2.906 → 0.2.908
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 +12 -2
- package/src/generated/types.gen.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -24433,7 +24433,7 @@ type SendInboxMessageError = ({
|
|
|
24433
24433
|
};
|
|
24434
24434
|
} | {
|
|
24435
24435
|
error?: string;
|
|
24436
|
-
} | ErrorResponse | unknown |
|
|
24436
|
+
} | ErrorResponse | unknown | (ErrorResponse | WhatsAppTemplateLookupError) | WhatsAppTemplateLookupError);
|
|
24437
24437
|
type GetWhatsAppMediaData = {
|
|
24438
24438
|
path: {
|
|
24439
24439
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -24433,7 +24433,7 @@ type SendInboxMessageError = ({
|
|
|
24433
24433
|
};
|
|
24434
24434
|
} | {
|
|
24435
24435
|
error?: string;
|
|
24436
|
-
} | ErrorResponse | unknown |
|
|
24436
|
+
} | ErrorResponse | unknown | (ErrorResponse | WhatsAppTemplateLookupError) | WhatsAppTemplateLookupError);
|
|
24437
24437
|
type GetWhatsAppMediaData = {
|
|
24438
24438
|
path: {
|
|
24439
24439
|
/**
|
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.908",
|
|
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.908",
|
|
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
|
@@ -1704,8 +1704,18 @@ export const handleOAuthCallback = <ThrowOnError extends boolean = false>(option
|
|
|
1704
1704
|
* - twitter (X Ads): accountId is REQUIRED. There's no ads-only mode, because tweets need to be authored by a real X user.
|
|
1705
1705
|
*
|
|
1706
1706
|
* **Standalone platforms (googleads).** Starts the Google Ads OAuth flow and creates a
|
|
1707
|
-
* standalone ads SocialAccount (googleads) with no parent. If the account already exists
|
|
1708
|
-
* returns alreadyConnected: true.
|
|
1707
|
+
* standalone ads SocialAccount (googleads) with no parent. If the account already exists and
|
|
1708
|
+
* has at least one discovered Google Ads customer account, returns alreadyConnected: true.
|
|
1709
|
+
* When the existing connection has zero customer accounts (metadata.googleAdsCustomerIds is
|
|
1710
|
+
* empty) or is flagged needsReconnection, it returns an authUrl instead; completing it
|
|
1711
|
+
* reconnects the same account (same accountId) and re-runs ad account discovery. Discovery
|
|
1712
|
+
* includes the client accounts under every manager (MCC) the Google user can reach, and
|
|
1713
|
+
* includes Google Ads test accounts, which Google always reports with status CLOSED. When
|
|
1714
|
+
* discovery finds no usable customer account, the callback saves nothing and redirects with
|
|
1715
|
+
* `error=google_ads_no_ad_accounts`, `platform=googleads` and an `error_message` naming each
|
|
1716
|
+
* customer the Google user can reach and why it was left out (for example
|
|
1717
|
+
* CUSTOMER_NOT_ENABLED). Sign in with a Google user that has access to the ad account or to
|
|
1718
|
+
* its manager account.
|
|
1709
1719
|
*
|
|
1710
1720
|
* Ads accounts appear as regular SocialAccount documents with ads platform values (e.g., metaads, tiktokads) in GET /v1/accounts.
|
|
1711
1721
|
*
|
|
@@ -23896,7 +23896,7 @@ export type SendInboxMessageError = ({
|
|
|
23896
23896
|
};
|
|
23897
23897
|
} | {
|
|
23898
23898
|
error?: string;
|
|
23899
|
-
} | ErrorResponse | unknown |
|
|
23899
|
+
} | ErrorResponse | unknown | (ErrorResponse | WhatsAppTemplateLookupError) | WhatsAppTemplateLookupError);
|
|
23900
23900
|
|
|
23901
23901
|
export type GetWhatsAppMediaData = {
|
|
23902
23902
|
path: {
|