@getlatedev/node 0.2.1273 → 0.2.1275
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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +9 -1
- package/src/generated/types.gen.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1051,7 +1051,7 @@ declare class Zernio {
|
|
|
1051
1051
|
createAdInsightsReport: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateAdInsightsReportData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateAdInsightsReportResponse, unknown, ThrowOnError>;
|
|
1052
1052
|
getAdInsightsReport: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetAdInsightsReportData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAdInsightsReportResponse, unknown, ThrowOnError>;
|
|
1053
1053
|
getAdAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetAdAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAdAnalyticsResponse, unknown, ThrowOnError>;
|
|
1054
|
-
getTikTokSmartPlusMaterialReport: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetTikTokSmartPlusMaterialReportData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetTikTokSmartPlusMaterialReportResponse,
|
|
1054
|
+
getTikTokSmartPlusMaterialReport: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetTikTokSmartPlusMaterialReportData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetTikTokSmartPlusMaterialReportResponse, unknown, ThrowOnError>;
|
|
1055
1055
|
};
|
|
1056
1056
|
/**
|
|
1057
1057
|
* adcreatives API
|
|
@@ -1831,7 +1831,7 @@ declare class Zernio {
|
|
|
1831
1831
|
/** @deprecated Use `zernio.adinsights.getAdAnalytics` instead. */
|
|
1832
1832
|
getAdAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetAdAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAdAnalyticsResponse, unknown, ThrowOnError>;
|
|
1833
1833
|
/** @deprecated Use `zernio.adinsights.getTikTokSmartPlusMaterialReport` instead. */
|
|
1834
|
-
getTikTokSmartPlusMaterialReport: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetTikTokSmartPlusMaterialReportData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetTikTokSmartPlusMaterialReportResponse,
|
|
1834
|
+
getTikTokSmartPlusMaterialReport: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetTikTokSmartPlusMaterialReportData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetTikTokSmartPlusMaterialReportResponse, unknown, ThrowOnError>;
|
|
1835
1835
|
/** @deprecated Use `zernio.conversions.getConversionsQuality` instead. */
|
|
1836
1836
|
getConversionsQuality: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetConversionsQualityData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetConversionsQualityResponse, unknown, ThrowOnError>;
|
|
1837
1837
|
/** @deprecated Use `zernio.conversions.sendConversions` instead. */
|
|
@@ -45982,7 +45982,7 @@ type GetTikTokSmartPlusMaterialReportResponse = ({
|
|
|
45982
45982
|
};
|
|
45983
45983
|
}>;
|
|
45984
45984
|
});
|
|
45985
|
-
type GetTikTokSmartPlusMaterialReportError = (ErrorResponse);
|
|
45985
|
+
type GetTikTokSmartPlusMaterialReportError = (ErrorResponse | unknown);
|
|
45986
45986
|
type ListAdsInstagramAccountsData = {
|
|
45987
45987
|
query: {
|
|
45988
45988
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1051,7 +1051,7 @@ declare class Zernio {
|
|
|
1051
1051
|
createAdInsightsReport: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateAdInsightsReportData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateAdInsightsReportResponse, unknown, ThrowOnError>;
|
|
1052
1052
|
getAdInsightsReport: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetAdInsightsReportData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAdInsightsReportResponse, unknown, ThrowOnError>;
|
|
1053
1053
|
getAdAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetAdAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAdAnalyticsResponse, unknown, ThrowOnError>;
|
|
1054
|
-
getTikTokSmartPlusMaterialReport: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetTikTokSmartPlusMaterialReportData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetTikTokSmartPlusMaterialReportResponse,
|
|
1054
|
+
getTikTokSmartPlusMaterialReport: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetTikTokSmartPlusMaterialReportData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetTikTokSmartPlusMaterialReportResponse, unknown, ThrowOnError>;
|
|
1055
1055
|
};
|
|
1056
1056
|
/**
|
|
1057
1057
|
* adcreatives API
|
|
@@ -1831,7 +1831,7 @@ declare class Zernio {
|
|
|
1831
1831
|
/** @deprecated Use `zernio.adinsights.getAdAnalytics` instead. */
|
|
1832
1832
|
getAdAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetAdAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAdAnalyticsResponse, unknown, ThrowOnError>;
|
|
1833
1833
|
/** @deprecated Use `zernio.adinsights.getTikTokSmartPlusMaterialReport` instead. */
|
|
1834
|
-
getTikTokSmartPlusMaterialReport: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetTikTokSmartPlusMaterialReportData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetTikTokSmartPlusMaterialReportResponse,
|
|
1834
|
+
getTikTokSmartPlusMaterialReport: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetTikTokSmartPlusMaterialReportData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetTikTokSmartPlusMaterialReportResponse, unknown, ThrowOnError>;
|
|
1835
1835
|
/** @deprecated Use `zernio.conversions.getConversionsQuality` instead. */
|
|
1836
1836
|
getConversionsQuality: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetConversionsQualityData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetConversionsQualityResponse, unknown, ThrowOnError>;
|
|
1837
1837
|
/** @deprecated Use `zernio.conversions.sendConversions` instead. */
|
|
@@ -45982,7 +45982,7 @@ type GetTikTokSmartPlusMaterialReportResponse = ({
|
|
|
45982
45982
|
};
|
|
45983
45983
|
}>;
|
|
45984
45984
|
});
|
|
45985
|
-
type GetTikTokSmartPlusMaterialReportError = (ErrorResponse);
|
|
45985
|
+
type GetTikTokSmartPlusMaterialReportError = (ErrorResponse | unknown);
|
|
45986
45986
|
type ListAdsInstagramAccountsData = {
|
|
45987
45987
|
query: {
|
|
45988
45988
|
/**
|
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.1275",
|
|
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.1275",
|
|
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
|
@@ -11457,6 +11457,14 @@ export const getAdReview = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
11457
11457
|
* (creator content, authorized TikTok posts, Creative Library content) and lists each image of a
|
|
11458
11458
|
* carousel under its own material id, so those entries come back with the review verdict and
|
|
11459
11459
|
* null descriptive fields. TikTok returns no review timestamp; `readAt` is when Zernio read it.
|
|
11460
|
+
*
|
|
11461
|
+
* TikTok's review endpoint has a strict quota of its own. One TikTok call reads the review of
|
|
11462
|
+
* every live Smart+ ad of the ad group (up to 100), and each review is cached for 10 minutes per
|
|
11463
|
+
* connection, advertiser and Smart+ ad, so sibling ads are answered from the cache and `readAt`
|
|
11464
|
+
* can be up to 10 minutes old. Read reviews when you need them instead of sweeping every ad on a
|
|
11465
|
+
* loop. When TikTok answers over quota, Zernio returns 429 with `Retry-After: 60` and answers
|
|
11466
|
+
* 429 for that advertiser and connection without calling TikTok until the minute is over; cached
|
|
11467
|
+
* reviews are still served.
|
|
11460
11468
|
*/
|
|
11461
11469
|
export const getTikTokSmartPlusAdReview = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTikTokSmartPlusAdReviewData, ThrowOnError>) => {
|
|
11462
11470
|
return (options?.client ?? client).get<GetTikTokSmartPlusAdReviewResponse, GetTikTokSmartPlusAdReviewError, ThrowOnError>({
|
|
@@ -11967,7 +11975,7 @@ export const listAdsTikTokIdentities = <ThrowOnError extends boolean = false>(op
|
|
|
11967
11975
|
|
|
11968
11976
|
/**
|
|
11969
11977
|
* Per-creative performance inside TikTok Smart+ ads
|
|
11970
|
-
* Breaks a Smart+ ad (or ad group) down by creative material, one row per Spark post, video or image, from TikTok's Smart+ material report. For a Spark post `tiktokItemId` is the TikTok post id. Conversion metrics are TikTok web (pixel) events. `purchases`, `purchaseValue` and `roas` come from Complete Payment, or from Place an Order (legacy ON_WEB_ORDER pixels) when that reports more; the two are never summed. TikTok allows two dimensions per report, so rows are keyed by the Smart+ ad (`level=ad`) or by the ad group (`level=adGroup`), not both. Metrics TikTok returns empty come back as null.
|
|
11978
|
+
* Breaks a Smart+ ad (or ad group) down by creative material, one row per Spark post, video or image, from TikTok's Smart+ material report. For a Spark post `tiktokItemId` is the TikTok post id. Conversion metrics are TikTok web (pixel) events. `purchases`, `purchaseValue` and `roas` come from Complete Payment, or from Place an Order (legacy ON_WEB_ORDER pixels) when that reports more; the two are never summed. TikTok allows two dimensions per report, so rows are keyed by the Smart+ ad (`level=ad`) or by the ad group (`level=adGroup`), not both. A row is identified by `smartPlusAdId` + `materialId` at `level=ad` and by `adGroupId` + `materialId` at `level=adGroup`; each appears once across all pages. Rows are sorted by `spend` descending, then the Smart+ ad or ad group id, then `materialId`, and the full result is cached for 10 minutes per account, advertiser and query, so pages read within that window are consistent and `totalRows` counts distinct rows. When TikTok's slices do not add up to the row count it declares on two reads, the call answers 502 instead of a short result. Metrics TikTok returns empty come back as null.
|
|
11971
11979
|
*/
|
|
11972
11980
|
export const getTikTokSmartPlusMaterialReport = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTikTokSmartPlusMaterialReportData, ThrowOnError>) => {
|
|
11973
11981
|
return (options?.client ?? client).get<GetTikTokSmartPlusMaterialReportResponse, GetTikTokSmartPlusMaterialReportError, ThrowOnError>({
|
|
@@ -46631,7 +46631,7 @@ export type GetTikTokSmartPlusMaterialReportResponse = ({
|
|
|
46631
46631
|
}>;
|
|
46632
46632
|
});
|
|
46633
46633
|
|
|
46634
|
-
export type GetTikTokSmartPlusMaterialReportError = (ErrorResponse);
|
|
46634
|
+
export type GetTikTokSmartPlusMaterialReportError = (ErrorResponse | unknown);
|
|
46635
46635
|
|
|
46636
46636
|
export type ListAdsInstagramAccountsData = {
|
|
46637
46637
|
query: {
|