@getlatedev/node 0.2.1273 → 0.2.1274
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +8 -0
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.1274",
|
|
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.1274",
|
|
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>({
|