@getlatedev/node 0.2.1404 → 0.2.1406

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
@@ -4106,7 +4106,7 @@ type AdsAlert = {
4106
4106
  * Stable for the same problem on the same entity. Pass it to POST /v1/ads/alerts/{alertId}/dismiss.
4107
4107
  */
4108
4108
  id?: string;
4109
- kind?: 'ad_rejected' | 'delivery_issue' | 'payment' | 'budget_limited' | 'spend_no_results';
4109
+ kind?: 'ad_rejected' | 'delivery_issue' | 'payment' | 'budget_limited' | 'spend_no_results' | 'connection_lost' | 'sync_failing';
4110
4110
  severity?: 'error' | 'warning' | 'info';
4111
4111
  title?: string;
4112
4112
  /**
@@ -4127,10 +4127,14 @@ type AdsAlert = {
4127
4127
  * The Zernio ad id when the entity is an ad, for GET /v1/ads/{adId}.
4128
4128
  */
4129
4129
  adId?: string;
4130
+ /**
4131
+ * The Zernio ads connection, on connection_lost and sync_failing alerts.
4132
+ */
4133
+ accountId?: string;
4130
4134
  currency?: (string) | null;
4131
4135
  detectedAt?: string;
4132
4136
  /**
4133
- * Where to fix it on the platform, when there is such a place.
4137
+ * Where to fix it: a page on the platform, or for connection_lost the Zernio dashboard path (starting with /) where the connection is reconnected.
4134
4138
  */
4135
4139
  fix?: {
4136
4140
  label?: string;
@@ -4138,7 +4142,7 @@ type AdsAlert = {
4138
4142
  };
4139
4143
  dismissed?: boolean;
4140
4144
  };
4141
- type kind = 'ad_rejected' | 'delivery_issue' | 'payment' | 'budget_limited' | 'spend_no_results';
4145
+ type kind = 'ad_rejected' | 'delivery_issue' | 'payment' | 'budget_limited' | 'spend_no_results' | 'connection_lost' | 'sync_failing';
4142
4146
  type severity = 'error' | 'warning' | 'info';
4143
4147
  type level2 = 'ad_account' | 'campaign' | 'ad_set' | 'ad';
4144
4148
  /**
@@ -27504,6 +27508,13 @@ type DeleteProfileError = (unknown | ErrorResponse | {
27504
27508
  });
27505
27509
  type ListAccountsData = {
27506
27510
  query?: {
27511
+ /**
27512
+ * When true, lists every ads account row, one per ad account. By default an API key or OAuth app sees each ads login once per profile and platform, as the single ads connection it had before rows per ad account: its oldest row.
27513
+ *
27514
+ * Only changes the result once ads are connected as one row per ad account; until then the two shapes are the same. Applied before pagination. Accepts `true` or `false` in any letter case; any other value returns 400.
27515
+ *
27516
+ */
27517
+ adAccountRows?: boolean;
27507
27518
  /**
27508
27519
  * Only accounts of this kind. ads = ad accounts (Meta, Google, LinkedIn, Pinterest, TikTok, X, OpenAI, Reddit), communication = WhatsApp, Telegram, Discord, Slack and iMessage, blogs = Shopify and WordPress, crm = HubSpot, analytics = Google Analytics, social = every other platform.
27509
27520
  */
@@ -53538,6 +53549,10 @@ type ListAdsAlertsData = {
53538
53549
  * Also return dismissed alerts, with `dismissed: true`.
53539
53550
  */
53540
53551
  includeDismissed?: boolean;
53552
+ /**
53553
+ * Only alerts of the ads connections on this profile. Omit for every profile the API key can reach.
53554
+ */
53555
+ profileId?: string;
53541
53556
  };
53542
53557
  };
53543
53558
  type ListAdsAlertsResponse = ({
package/dist/index.d.ts CHANGED
@@ -4106,7 +4106,7 @@ type AdsAlert = {
4106
4106
  * Stable for the same problem on the same entity. Pass it to POST /v1/ads/alerts/{alertId}/dismiss.
4107
4107
  */
4108
4108
  id?: string;
4109
- kind?: 'ad_rejected' | 'delivery_issue' | 'payment' | 'budget_limited' | 'spend_no_results';
4109
+ kind?: 'ad_rejected' | 'delivery_issue' | 'payment' | 'budget_limited' | 'spend_no_results' | 'connection_lost' | 'sync_failing';
4110
4110
  severity?: 'error' | 'warning' | 'info';
4111
4111
  title?: string;
4112
4112
  /**
@@ -4127,10 +4127,14 @@ type AdsAlert = {
4127
4127
  * The Zernio ad id when the entity is an ad, for GET /v1/ads/{adId}.
4128
4128
  */
4129
4129
  adId?: string;
4130
+ /**
4131
+ * The Zernio ads connection, on connection_lost and sync_failing alerts.
4132
+ */
4133
+ accountId?: string;
4130
4134
  currency?: (string) | null;
4131
4135
  detectedAt?: string;
4132
4136
  /**
4133
- * Where to fix it on the platform, when there is such a place.
4137
+ * Where to fix it: a page on the platform, or for connection_lost the Zernio dashboard path (starting with /) where the connection is reconnected.
4134
4138
  */
4135
4139
  fix?: {
4136
4140
  label?: string;
@@ -4138,7 +4142,7 @@ type AdsAlert = {
4138
4142
  };
4139
4143
  dismissed?: boolean;
4140
4144
  };
4141
- type kind = 'ad_rejected' | 'delivery_issue' | 'payment' | 'budget_limited' | 'spend_no_results';
4145
+ type kind = 'ad_rejected' | 'delivery_issue' | 'payment' | 'budget_limited' | 'spend_no_results' | 'connection_lost' | 'sync_failing';
4142
4146
  type severity = 'error' | 'warning' | 'info';
4143
4147
  type level2 = 'ad_account' | 'campaign' | 'ad_set' | 'ad';
4144
4148
  /**
@@ -27504,6 +27508,13 @@ type DeleteProfileError = (unknown | ErrorResponse | {
27504
27508
  });
27505
27509
  type ListAccountsData = {
27506
27510
  query?: {
27511
+ /**
27512
+ * When true, lists every ads account row, one per ad account. By default an API key or OAuth app sees each ads login once per profile and platform, as the single ads connection it had before rows per ad account: its oldest row.
27513
+ *
27514
+ * Only changes the result once ads are connected as one row per ad account; until then the two shapes are the same. Applied before pagination. Accepts `true` or `false` in any letter case; any other value returns 400.
27515
+ *
27516
+ */
27517
+ adAccountRows?: boolean;
27507
27518
  /**
27508
27519
  * Only accounts of this kind. ads = ad accounts (Meta, Google, LinkedIn, Pinterest, TikTok, X, OpenAI, Reddit), communication = WhatsApp, Telegram, Discord, Slack and iMessage, blogs = Shopify and WordPress, crm = HubSpot, analytics = Google Analytics, social = every other platform.
27509
27520
  */
@@ -53538,6 +53549,10 @@ type ListAdsAlertsData = {
53538
53549
  * Also return dismissed alerts, with `dismissed: true`.
53539
53550
  */
53540
53551
  includeDismissed?: boolean;
53552
+ /**
53553
+ * Only alerts of the ads connections on this profile. Omit for every profile the API key can reach.
53554
+ */
53555
+ profileId?: string;
53541
53556
  };
53542
53557
  };
53543
53558
  type ListAdsAlertsResponse = ({
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.1404",
39
+ version: "0.2.1406",
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.1404",
8
+ version: "0.2.1406",
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.1404",
3
+ "version": "0.2.1406",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -14438,6 +14438,8 @@ export const listAdsBusinessCenters = <ThrowOnError extends boolean = false>(opt
14438
14438
  * - Meta ad accounts with a failed or overdue payment, or disabled while holding live ads
14439
14439
  * - campaigns that spent on 3 or more of the last 7 days without a result (conversion, lead, purchase or conversation goals)
14440
14440
  * - budgets spent to their daily cap yesterday
14441
+ * - ads connections that need reconnecting while they still hold live ads
14442
+ * - ad accounts whose sync has been failing
14441
14443
  *
14442
14444
  * Built from stored data and the last 7 days of synced metrics, so it costs no platform call.
14443
14445
  *
@@ -1915,7 +1915,7 @@ export type AdsAlert = {
1915
1915
  * Stable for the same problem on the same entity. Pass it to POST /v1/ads/alerts/{alertId}/dismiss.
1916
1916
  */
1917
1917
  id?: string;
1918
- kind?: 'ad_rejected' | 'delivery_issue' | 'payment' | 'budget_limited' | 'spend_no_results';
1918
+ kind?: 'ad_rejected' | 'delivery_issue' | 'payment' | 'budget_limited' | 'spend_no_results' | 'connection_lost' | 'sync_failing';
1919
1919
  severity?: 'error' | 'warning' | 'info';
1920
1920
  title?: string;
1921
1921
  /**
@@ -1936,10 +1936,14 @@ export type AdsAlert = {
1936
1936
  * The Zernio ad id when the entity is an ad, for GET /v1/ads/{adId}.
1937
1937
  */
1938
1938
  adId?: string;
1939
+ /**
1940
+ * The Zernio ads connection, on connection_lost and sync_failing alerts.
1941
+ */
1942
+ accountId?: string;
1939
1943
  currency?: (string) | null;
1940
1944
  detectedAt?: string;
1941
1945
  /**
1942
- * Where to fix it on the platform, when there is such a place.
1946
+ * Where to fix it: a page on the platform, or for connection_lost the Zernio dashboard path (starting with /) where the connection is reconnected.
1943
1947
  */
1944
1948
  fix?: {
1945
1949
  label?: string;
@@ -1948,7 +1952,7 @@ export type AdsAlert = {
1948
1952
  dismissed?: boolean;
1949
1953
  };
1950
1954
 
1951
- export type kind = 'ad_rejected' | 'delivery_issue' | 'payment' | 'budget_limited' | 'spend_no_results';
1955
+ export type kind = 'ad_rejected' | 'delivery_issue' | 'payment' | 'budget_limited' | 'spend_no_results' | 'connection_lost' | 'sync_failing';
1952
1956
 
1953
1957
  export type severity = 'error' | 'warning' | 'info';
1954
1958
 
@@ -26493,6 +26497,13 @@ export type DeleteProfileError = (unknown | ErrorResponse | {
26493
26497
 
26494
26498
  export type ListAccountsData = {
26495
26499
  query?: {
26500
+ /**
26501
+ * When true, lists every ads account row, one per ad account. By default an API key or OAuth app sees each ads login once per profile and platform, as the single ads connection it had before rows per ad account: its oldest row.
26502
+ *
26503
+ * Only changes the result once ads are connected as one row per ad account; until then the two shapes are the same. Applied before pagination. Accepts `true` or `false` in any letter case; any other value returns 400.
26504
+ *
26505
+ */
26506
+ adAccountRows?: boolean;
26496
26507
  /**
26497
26508
  * Only accounts of this kind. ads = ad accounts (Meta, Google, LinkedIn, Pinterest, TikTok, X, OpenAI, Reddit), communication = WhatsApp, Telegram, Discord, Slack and iMessage, blogs = Shopify and WordPress, crm = HubSpot, analytics = Google Analytics, social = every other platform.
26498
26509
  */
@@ -54450,6 +54461,10 @@ export type ListAdsAlertsData = {
54450
54461
  * Also return dismissed alerts, with `dismissed: true`.
54451
54462
  */
54452
54463
  includeDismissed?: boolean;
54464
+ /**
54465
+ * Only alerts of the ads connections on this profile. Omit for every profile the API key can reach.
54466
+ */
54467
+ profileId?: string;
54453
54468
  };
54454
54469
  };
54455
54470