@getlatedev/node 0.2.1405 → 0.2.1407
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 +14 -6
- package/dist/index.d.ts +14 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -0
- package/src/generated/types.gen.ts +14 -6
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,
|
|
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
|
/**
|
|
@@ -23465,7 +23469,7 @@ type ValidateSubredditError = (ErrorResponse | unknown);
|
|
|
23465
23469
|
type GetAnalyticsData = {
|
|
23466
23470
|
query?: {
|
|
23467
23471
|
/**
|
|
23468
|
-
* Filter by account ID
|
|
23472
|
+
* Filter by account ID. With a native postId, selects that account's copy of the post.
|
|
23469
23473
|
*/
|
|
23470
23474
|
accountId?: string;
|
|
23471
23475
|
/**
|
|
@@ -23489,11 +23493,11 @@ type GetAnalyticsData = {
|
|
|
23489
23493
|
*/
|
|
23490
23494
|
platform?: string;
|
|
23491
23495
|
/**
|
|
23492
|
-
* Returns analytics for a single post. Accepts
|
|
23496
|
+
* Returns analytics for a single post. Accepts Zernio Post IDs, External Post IDs and the platform's native post ID. Zernio IDs are auto-resolved to External Post analytics.
|
|
23493
23497
|
*/
|
|
23494
23498
|
postId?: string;
|
|
23495
23499
|
/**
|
|
23496
|
-
* Filter by profile ID (default "all")
|
|
23500
|
+
* Filter by profile ID (default "all"). With a native postId, selects that profile's copy of the post.
|
|
23497
23501
|
*/
|
|
23498
23502
|
profileId?: string;
|
|
23499
23503
|
/**
|
|
@@ -53545,6 +53549,10 @@ type ListAdsAlertsData = {
|
|
|
53545
53549
|
* Also return dismissed alerts, with `dismissed: true`.
|
|
53546
53550
|
*/
|
|
53547
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;
|
|
53548
53556
|
};
|
|
53549
53557
|
};
|
|
53550
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,
|
|
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
|
/**
|
|
@@ -23465,7 +23469,7 @@ type ValidateSubredditError = (ErrorResponse | unknown);
|
|
|
23465
23469
|
type GetAnalyticsData = {
|
|
23466
23470
|
query?: {
|
|
23467
23471
|
/**
|
|
23468
|
-
* Filter by account ID
|
|
23472
|
+
* Filter by account ID. With a native postId, selects that account's copy of the post.
|
|
23469
23473
|
*/
|
|
23470
23474
|
accountId?: string;
|
|
23471
23475
|
/**
|
|
@@ -23489,11 +23493,11 @@ type GetAnalyticsData = {
|
|
|
23489
23493
|
*/
|
|
23490
23494
|
platform?: string;
|
|
23491
23495
|
/**
|
|
23492
|
-
* Returns analytics for a single post. Accepts
|
|
23496
|
+
* Returns analytics for a single post. Accepts Zernio Post IDs, External Post IDs and the platform's native post ID. Zernio IDs are auto-resolved to External Post analytics.
|
|
23493
23497
|
*/
|
|
23494
23498
|
postId?: string;
|
|
23495
23499
|
/**
|
|
23496
|
-
* Filter by profile ID (default "all")
|
|
23500
|
+
* Filter by profile ID (default "all"). With a native postId, selects that profile's copy of the post.
|
|
23497
23501
|
*/
|
|
23498
23502
|
profileId?: string;
|
|
23499
23503
|
/**
|
|
@@ -53545,6 +53549,10 @@ type ListAdsAlertsData = {
|
|
|
53545
53549
|
* Also return dismissed alerts, with `dismissed: true`.
|
|
53546
53550
|
*/
|
|
53547
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;
|
|
53548
53556
|
};
|
|
53549
53557
|
};
|
|
53550
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.
|
|
39
|
+
version: "0.2.1407",
|
|
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.1407",
|
|
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
|
@@ -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,
|
|
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
|
|
|
@@ -22157,7 +22161,7 @@ export type ValidateSubredditError = (ErrorResponse | unknown);
|
|
|
22157
22161
|
export type GetAnalyticsData = {
|
|
22158
22162
|
query?: {
|
|
22159
22163
|
/**
|
|
22160
|
-
* Filter by account ID
|
|
22164
|
+
* Filter by account ID. With a native postId, selects that account's copy of the post.
|
|
22161
22165
|
*/
|
|
22162
22166
|
accountId?: string;
|
|
22163
22167
|
/**
|
|
@@ -22181,11 +22185,11 @@ export type GetAnalyticsData = {
|
|
|
22181
22185
|
*/
|
|
22182
22186
|
platform?: string;
|
|
22183
22187
|
/**
|
|
22184
|
-
* Returns analytics for a single post. Accepts
|
|
22188
|
+
* Returns analytics for a single post. Accepts Zernio Post IDs, External Post IDs and the platform's native post ID. Zernio IDs are auto-resolved to External Post analytics.
|
|
22185
22189
|
*/
|
|
22186
22190
|
postId?: string;
|
|
22187
22191
|
/**
|
|
22188
|
-
* Filter by profile ID (default "all")
|
|
22192
|
+
* Filter by profile ID (default "all"). With a native postId, selects that profile's copy of the post.
|
|
22189
22193
|
*/
|
|
22190
22194
|
profileId?: string;
|
|
22191
22195
|
/**
|
|
@@ -54457,6 +54461,10 @@ export type ListAdsAlertsData = {
|
|
|
54457
54461
|
* Also return dismissed alerts, with `dismissed: true`.
|
|
54458
54462
|
*/
|
|
54459
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;
|
|
54460
54468
|
};
|
|
54461
54469
|
};
|
|
54462
54470
|
|