@getlatedev/node 0.2.944 → 0.2.945
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 +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -1
- package/src/generated/types.gen.ts +11 -0
package/dist/index.d.mts
CHANGED
|
@@ -40229,6 +40229,17 @@ type GetAdAccountHierarchyResponse = ({
|
|
|
40229
40229
|
*/
|
|
40230
40230
|
clients?: Array<GoogleAdsHierarchyClient>;
|
|
40231
40231
|
}>;
|
|
40232
|
+
directCustomers?: Array<{
|
|
40233
|
+
customerId?: string;
|
|
40234
|
+
manager?: boolean;
|
|
40235
|
+
/**
|
|
40236
|
+
* Manager invitations this account has not answered yet.
|
|
40237
|
+
*/
|
|
40238
|
+
pendingInvitations?: Array<{
|
|
40239
|
+
managerCustomerId?: string;
|
|
40240
|
+
managerLinkId?: string;
|
|
40241
|
+
}>;
|
|
40242
|
+
}>;
|
|
40232
40243
|
unavailable?: Array<{
|
|
40233
40244
|
customerId?: string;
|
|
40234
40245
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -40229,6 +40229,17 @@ type GetAdAccountHierarchyResponse = ({
|
|
|
40229
40229
|
*/
|
|
40230
40230
|
clients?: Array<GoogleAdsHierarchyClient>;
|
|
40231
40231
|
}>;
|
|
40232
|
+
directCustomers?: Array<{
|
|
40233
|
+
customerId?: string;
|
|
40234
|
+
manager?: boolean;
|
|
40235
|
+
/**
|
|
40236
|
+
* Manager invitations this account has not answered yet.
|
|
40237
|
+
*/
|
|
40238
|
+
pendingInvitations?: Array<{
|
|
40239
|
+
managerCustomerId?: string;
|
|
40240
|
+
managerLinkId?: string;
|
|
40241
|
+
}>;
|
|
40242
|
+
}>;
|
|
40232
40243
|
unavailable?: Array<{
|
|
40233
40244
|
customerId?: string;
|
|
40234
40245
|
/**
|
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.945",
|
|
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.945",
|
|
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
|
@@ -10641,7 +10641,7 @@ export const removeAccountStructuredSnippet = <ThrowOnError extends boolean = fa
|
|
|
10641
10641
|
|
|
10642
10642
|
/**
|
|
10643
10643
|
* Get manager account hierarchy
|
|
10644
|
-
* Live manager (MCC) and client tree for a Google Ads connection. Starts from every customer the Google user behind the connection can access directly and walks each tree to any depth with `customer_client`, then reads each manager's own client links so every client carries its direct parent, the `managerLinkId` and the link status. Invitations a manager sent that the client has not accepted yet appear as clients with `linkStatus: PENDING` (Google returns no name or currency for them). Refused, canceled and ended links are history and are omitted. `managerLinks` on a root lists the managers linked to that account, including invitations it can still accept with PATCH /v1/ads/accounts/manager-links. A directly accessible account that is also nested in another tree appears only once, inside that tree. Customers Google refuses to read (for example a cancelled account) are listed in `unavailable` with Google's reason instead of failing the call. Up to 50 roots and 50 managers per root are read; `truncated` is true when more exist. Cached for 10 minutes per connection; the response carries `cachedAt` and `stale`. When the connection is scoped to specific ad accounts, client accounts outside that scope are hidden (managers stay visible).
|
|
10644
|
+
* Live manager (MCC) and client tree for a Google Ads connection. Starts from every customer the Google user behind the connection can access directly and walks each tree to any depth with `customer_client`, then reads each manager's own client links so every client carries its direct parent, the `managerLinkId` and the link status. Invitations a manager sent that the client has not accepted yet appear as clients with `linkStatus: PENDING` (Google returns no name or currency for them). Refused, canceled and ended links are history and are omitted. `managerLinks` on a root lists the managers linked to that account, including invitations it can still accept with PATCH /v1/ads/accounts/manager-links. A directly accessible account that is also nested in another tree appears only once, inside that tree. `directCustomers` lists every account the Google user accesses directly (the ones this connection can accept or decline invitations for) with their pending invitations, including accounts that are also nested in a tree. Customers Google refuses to read (for example a cancelled account) are listed in `unavailable` with Google's reason instead of failing the call. Up to 50 roots and 50 managers per root are read; `truncated` is true when more exist. Cached for 10 minutes per connection; the response carries `cachedAt` and `stale`. When the connection is scoped to specific ad accounts, client accounts outside that scope are hidden (managers stay visible).
|
|
10645
10645
|
*/
|
|
10646
10646
|
export const getAdAccountHierarchy = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetAdAccountHierarchyData, ThrowOnError>) => {
|
|
10647
10647
|
return (options?.client ?? client).get<GetAdAccountHierarchyResponse, GetAdAccountHierarchyError, ThrowOnError>({
|
|
@@ -40835,6 +40835,17 @@ export type GetAdAccountHierarchyResponse = ({
|
|
|
40835
40835
|
*/
|
|
40836
40836
|
clients?: Array<GoogleAdsHierarchyClient>;
|
|
40837
40837
|
}>;
|
|
40838
|
+
directCustomers?: Array<{
|
|
40839
|
+
customerId?: string;
|
|
40840
|
+
manager?: boolean;
|
|
40841
|
+
/**
|
|
40842
|
+
* Manager invitations this account has not answered yet.
|
|
40843
|
+
*/
|
|
40844
|
+
pendingInvitations?: Array<{
|
|
40845
|
+
managerCustomerId?: string;
|
|
40846
|
+
managerLinkId?: string;
|
|
40847
|
+
}>;
|
|
40848
|
+
}>;
|
|
40838
40849
|
unavailable?: Array<{
|
|
40839
40850
|
customerId?: string;
|
|
40840
40851
|
/**
|