@getlatedev/node 0.2.1276 → 0.2.1277
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/README.md +1 -0
- package/dist/index.d.mts +142 -56
- package/dist/index.d.ts +142 -56
- package/dist/index.js +10 -1
- package/dist/index.mjs +10 -1
- package/package.json +1 -1
- package/src/client.ts +4 -0
- package/src/generated/sdk.gen.ts +20 -1
- package/src/generated/types.gen.ts +144 -55
|
@@ -12274,6 +12274,71 @@ export type TikTokReviewRejection = {
|
|
|
12274
12274
|
} | null;
|
|
12275
12275
|
};
|
|
12276
12276
|
|
|
12277
|
+
/**
|
|
12278
|
+
* The ad-level verdict of a Smart+ ad (`smart_plus_ad_review_infos`). Null when TikTok returned none.
|
|
12279
|
+
*/
|
|
12280
|
+
export type TikTokSmartPlusAdLevelReview = {
|
|
12281
|
+
reviewStatus?: TikTokSmartPlusReviewStatus;
|
|
12282
|
+
/**
|
|
12283
|
+
* TikTok `review_status`, verbatim.
|
|
12284
|
+
*/
|
|
12285
|
+
rawReviewStatus?: (string) | null;
|
|
12286
|
+
/**
|
|
12287
|
+
* Every distinct reason across `rejections`.
|
|
12288
|
+
*/
|
|
12289
|
+
rejectReasons?: Array<(string)>;
|
|
12290
|
+
/**
|
|
12291
|
+
* Location codes that passed the review.
|
|
12292
|
+
*/
|
|
12293
|
+
passedLocations?: Array<(string)>;
|
|
12294
|
+
/**
|
|
12295
|
+
* TikTok `appeal_status`, verbatim: NOT_APPEALED, APPEALING, APPEAL_SUCCESSFUL, APPEAL_FAILED, APPEAL_DONE.
|
|
12296
|
+
*/
|
|
12297
|
+
appealStatus?: (string) | null;
|
|
12298
|
+
appealRejectReasons?: Array<(string)>;
|
|
12299
|
+
rejections?: Array<TikTokReviewRejection>;
|
|
12300
|
+
} | null;
|
|
12301
|
+
|
|
12302
|
+
/**
|
|
12303
|
+
* The verdict of one creative of a Smart+ ad (`material_review_infos`).
|
|
12304
|
+
*/
|
|
12305
|
+
export type TikTokSmartPlusMaterialReview = {
|
|
12306
|
+
/**
|
|
12307
|
+
* TikTok `ad_material_id` of the creative inside this ad.
|
|
12308
|
+
*/
|
|
12309
|
+
adMaterialId?: string;
|
|
12310
|
+
/**
|
|
12311
|
+
* Null for a creative TikTok added on its own or a carousel image.
|
|
12312
|
+
*/
|
|
12313
|
+
materialType?: ('spark_post' | 'video' | 'carousel' | 'catalog_carousel') | null;
|
|
12314
|
+
/**
|
|
12315
|
+
* The TikTok post id when the creative is a Spark post.
|
|
12316
|
+
*/
|
|
12317
|
+
tiktokItemId?: (string) | null;
|
|
12318
|
+
videoId?: (string) | null;
|
|
12319
|
+
name?: (string) | null;
|
|
12320
|
+
/**
|
|
12321
|
+
* TikTok `material_operation_status`: ENABLE or DISABLE.
|
|
12322
|
+
*/
|
|
12323
|
+
operationStatus?: (string) | null;
|
|
12324
|
+
reviewStatus?: TikTokSmartPlusReviewStatus;
|
|
12325
|
+
/**
|
|
12326
|
+
* TikTok `review_status`, verbatim.
|
|
12327
|
+
*/
|
|
12328
|
+
rawReviewStatus?: (string) | null;
|
|
12329
|
+
/**
|
|
12330
|
+
* Every distinct reason across `rejections`. Empty when approved.
|
|
12331
|
+
*/
|
|
12332
|
+
rejectReasons?: Array<(string)>;
|
|
12333
|
+
passedLocations?: Array<(string)>;
|
|
12334
|
+
rejections?: Array<TikTokReviewRejection>;
|
|
12335
|
+
};
|
|
12336
|
+
|
|
12337
|
+
/**
|
|
12338
|
+
* Null for a creative TikTok added on its own or a carousel image.
|
|
12339
|
+
*/
|
|
12340
|
+
export type materialType = 'spark_post' | 'video' | 'carousel' | 'catalog_carousel';
|
|
12341
|
+
|
|
12277
12342
|
/**
|
|
12278
12343
|
* TikTok `review_status` normalized: ALL_AVAILABLE -> approved, PART_AVAILABLE -> partially_approved (delivers in part of the targeted locations), UNAVAILABLE -> rejected, anything else or missing -> unknown (see `rawReviewStatus`).
|
|
12279
12344
|
*/
|
|
@@ -45477,64 +45542,11 @@ export type GetTikTokSmartPlusAdReviewResponse = ({
|
|
|
45477
45542
|
* The TikTok Smart+ ad whose review this is.
|
|
45478
45543
|
*/
|
|
45479
45544
|
smartPlusAdId?: string;
|
|
45480
|
-
|
|
45481
|
-
* The ad-level verdict (`smart_plus_ad_review_infos`). Null when TikTok returned none.
|
|
45482
|
-
*/
|
|
45483
|
-
review?: {
|
|
45484
|
-
reviewStatus?: TikTokSmartPlusReviewStatus;
|
|
45485
|
-
/**
|
|
45486
|
-
* TikTok `review_status`, verbatim.
|
|
45487
|
-
*/
|
|
45488
|
-
rawReviewStatus?: (string) | null;
|
|
45489
|
-
/**
|
|
45490
|
-
* Every distinct reason across `rejections`.
|
|
45491
|
-
*/
|
|
45492
|
-
rejectReasons?: Array<(string)>;
|
|
45493
|
-
/**
|
|
45494
|
-
* Location codes that passed the review.
|
|
45495
|
-
*/
|
|
45496
|
-
passedLocations?: Array<(string)>;
|
|
45497
|
-
/**
|
|
45498
|
-
* TikTok `appeal_status`, verbatim: NOT_APPEALED, APPEALING, APPEAL_SUCCESSFUL, APPEAL_FAILED, APPEAL_DONE.
|
|
45499
|
-
*/
|
|
45500
|
-
appealStatus?: (string) | null;
|
|
45501
|
-
appealRejectReasons?: Array<(string)>;
|
|
45502
|
-
rejections?: Array<TikTokReviewRejection>;
|
|
45503
|
-
} | null;
|
|
45545
|
+
review?: TikTokSmartPlusAdLevelReview;
|
|
45504
45546
|
/**
|
|
45505
45547
|
* One entry per creative TikTok reviewed (`material_review_infos`).
|
|
45506
45548
|
*/
|
|
45507
|
-
materials?: Array<
|
|
45508
|
-
/**
|
|
45509
|
-
* TikTok `ad_material_id` of the creative inside this ad.
|
|
45510
|
-
*/
|
|
45511
|
-
adMaterialId?: string;
|
|
45512
|
-
/**
|
|
45513
|
-
* Null for a creative TikTok added on its own or a carousel image.
|
|
45514
|
-
*/
|
|
45515
|
-
materialType?: ('spark_post' | 'video' | 'carousel' | 'catalog_carousel') | null;
|
|
45516
|
-
/**
|
|
45517
|
-
* The TikTok post id when the creative is a Spark post.
|
|
45518
|
-
*/
|
|
45519
|
-
tiktokItemId?: (string) | null;
|
|
45520
|
-
videoId?: (string) | null;
|
|
45521
|
-
name?: (string) | null;
|
|
45522
|
-
/**
|
|
45523
|
-
* TikTok `material_operation_status`: ENABLE or DISABLE.
|
|
45524
|
-
*/
|
|
45525
|
-
operationStatus?: (string) | null;
|
|
45526
|
-
reviewStatus?: TikTokSmartPlusReviewStatus;
|
|
45527
|
-
/**
|
|
45528
|
-
* TikTok `review_status`, verbatim.
|
|
45529
|
-
*/
|
|
45530
|
-
rawReviewStatus?: (string) | null;
|
|
45531
|
-
/**
|
|
45532
|
-
* Every distinct reason across `rejections`. Empty when approved.
|
|
45533
|
-
*/
|
|
45534
|
-
rejectReasons?: Array<(string)>;
|
|
45535
|
-
passedLocations?: Array<(string)>;
|
|
45536
|
-
rejections?: Array<TikTokReviewRejection>;
|
|
45537
|
-
}>;
|
|
45549
|
+
materials?: Array<TikTokSmartPlusMaterialReview>;
|
|
45538
45550
|
/**
|
|
45539
45551
|
* When the verdict was read from TikTok.
|
|
45540
45552
|
*/
|
|
@@ -46633,6 +46645,83 @@ export type GetTikTokSmartPlusMaterialReportResponse = ({
|
|
|
46633
46645
|
|
|
46634
46646
|
export type GetTikTokSmartPlusMaterialReportError = (ErrorResponse | unknown);
|
|
46635
46647
|
|
|
46648
|
+
export type ListTikTokSmartPlusReviewsData = {
|
|
46649
|
+
query: {
|
|
46650
|
+
/**
|
|
46651
|
+
* A tiktok or tiktokads account ID
|
|
46652
|
+
*/
|
|
46653
|
+
accountId: string;
|
|
46654
|
+
/**
|
|
46655
|
+
* TikTok advertiser ID
|
|
46656
|
+
*/
|
|
46657
|
+
adAccountId: string;
|
|
46658
|
+
/**
|
|
46659
|
+
* Also return Smart+ ads deleted on TikTok (listed with `primary_status: STATUS_ALL`).
|
|
46660
|
+
*/
|
|
46661
|
+
includeDeleted?: boolean;
|
|
46662
|
+
page?: number;
|
|
46663
|
+
pageSize?: number;
|
|
46664
|
+
};
|
|
46665
|
+
};
|
|
46666
|
+
|
|
46667
|
+
export type ListTikTokSmartPlusReviewsResponse = ({
|
|
46668
|
+
adAccountId?: string;
|
|
46669
|
+
includeDeleted?: boolean;
|
|
46670
|
+
page?: number;
|
|
46671
|
+
pageSize?: number;
|
|
46672
|
+
totalPages?: number;
|
|
46673
|
+
/**
|
|
46674
|
+
* Smart+ ads of the advertiser across all pages.
|
|
46675
|
+
*/
|
|
46676
|
+
totalSmartPlusAds?: number;
|
|
46677
|
+
items?: Array<{
|
|
46678
|
+
smartPlusAdId?: string;
|
|
46679
|
+
adGroupId?: (string) | null;
|
|
46680
|
+
campaignId?: (string) | null;
|
|
46681
|
+
review?: TikTokSmartPlusAdLevelReview;
|
|
46682
|
+
/**
|
|
46683
|
+
* One entry per creative TikTok reviewed (`material_review_infos`).
|
|
46684
|
+
*/
|
|
46685
|
+
materials?: Array<TikTokSmartPlusMaterialReview>;
|
|
46686
|
+
/**
|
|
46687
|
+
* When the verdict was read from TikTok.
|
|
46688
|
+
*/
|
|
46689
|
+
readAt?: string;
|
|
46690
|
+
}>;
|
|
46691
|
+
/**
|
|
46692
|
+
* Smart+ ads of this page whose review TikTok refused on its own (for example an ad deleted on TikTok since the listing was cached). Zernio splits a refused batch in halves (at most 16 extra calls per page), so the other ads of the batch are still read; ads left unresolved by that cap carry the batch error. Empty when none.
|
|
46693
|
+
*/
|
|
46694
|
+
failedSmartPlusAds?: Array<{
|
|
46695
|
+
smartPlusAdId?: string;
|
|
46696
|
+
adGroupId?: (string) | null;
|
|
46697
|
+
campaignId?: (string) | null;
|
|
46698
|
+
error?: {
|
|
46699
|
+
/**
|
|
46700
|
+
* TikTok's error code, verbatim.
|
|
46701
|
+
*/
|
|
46702
|
+
tiktokCode?: (number) | null;
|
|
46703
|
+
/**
|
|
46704
|
+
* TikTok's error message, verbatim.
|
|
46705
|
+
*/
|
|
46706
|
+
message?: string;
|
|
46707
|
+
};
|
|
46708
|
+
}>;
|
|
46709
|
+
/**
|
|
46710
|
+
* True when some Smart+ ads of this page could not be read because of TikTok's review quota.
|
|
46711
|
+
*/
|
|
46712
|
+
incomplete?: boolean;
|
|
46713
|
+
/**
|
|
46714
|
+
* Smart+ ads of this page still to read. Empty when complete.
|
|
46715
|
+
*/
|
|
46716
|
+
pendingSmartPlusAdIds?: Array<(string)>;
|
|
46717
|
+
/**
|
|
46718
|
+
* Seconds to wait before reading this page again. Null when complete.
|
|
46719
|
+
*/
|
|
46720
|
+
retryAfterSeconds?: (number) | null;
|
|
46721
|
+
});
|
|
46722
|
+
|
|
46723
|
+
export type ListTikTokSmartPlusReviewsError = (ErrorResponse | unknown);
|
|
46724
|
+
|
|
46636
46725
|
export type ListAdsInstagramAccountsData = {
|
|
46637
46726
|
query: {
|
|
46638
46727
|
/**
|