@getlatedev/node 0.2.1411 → 0.2.1412
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 +47 -4
- package/dist/index.d.ts +47 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +47 -3
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.1412",
|
|
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.1412",
|
|
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
|
@@ -4424,6 +4424,10 @@ export type CampaignReport = {
|
|
|
4424
4424
|
*/
|
|
4425
4425
|
total: number;
|
|
4426
4426
|
};
|
|
4427
|
+
/**
|
|
4428
|
+
* The campaign engagement types summed over the same submissions.
|
|
4429
|
+
*/
|
|
4430
|
+
engagements: number;
|
|
4427
4431
|
submissions: CampaignSubmissionCounts;
|
|
4428
4432
|
/**
|
|
4429
4433
|
* Top 10 participants by payable, settling and settled cents.
|
|
@@ -4521,6 +4525,10 @@ export type CampaignSubmission = {
|
|
|
4521
4525
|
* Views that count toward earnings: every view the platform reports for the post, including those before submission, read at the tracking window end at the latest: once the window completes or is cancelled, the last read at or before its end is final and this value stops moving.
|
|
4522
4526
|
*/
|
|
4523
4527
|
viewsEligible: (number) | null;
|
|
4528
|
+
/**
|
|
4529
|
+
* The campaign engagement types summed at the latest read (all four on a views campaign), frozen at the tracking window end like `viewsEligible`. An `engagements` campaign earns on this count.
|
|
4530
|
+
*/
|
|
4531
|
+
engagementsLatest: (number) | null;
|
|
4524
4532
|
lastAccruedViews: number;
|
|
4525
4533
|
accruedCents: number;
|
|
4526
4534
|
approvedCents: number;
|
|
@@ -6471,7 +6479,7 @@ export type CreatorCampaignCaps = {
|
|
|
6471
6479
|
*
|
|
6472
6480
|
* Every type carries `budgetCents`, the most the campaign can pay out in total. Once earnings reach it, the campaign stops accruing and `creator_campaign.budget_exhausted` fires.
|
|
6473
6481
|
*
|
|
6474
|
-
* - `cpm`: `ratePer1kCents` per 1,000
|
|
6482
|
+
* - `cpm`: `ratePer1kCents` per 1,000 of the counted `metric` (views by default), earned once a post reaches `minViewsToEarn` of it, capped per post by `maxPayoutPerClipCents`.
|
|
6475
6483
|
* - `per_post`: `perApprovedPostCents` for each approved post, at most `maxPostsPerParticipant` per participant.
|
|
6476
6484
|
* - `pool`: `budgetCents` is split at close among approved posts by eligible views; a post needs `minViewsToQualify` views to share.
|
|
6477
6485
|
*
|
|
@@ -6480,12 +6488,28 @@ export type CreatorCampaignEconomics = CreatorCampaignEconomicsCpm | CreatorCamp
|
|
|
6480
6488
|
|
|
6481
6489
|
export type CreatorCampaignEconomicsCpm = {
|
|
6482
6490
|
type: 'cpm';
|
|
6491
|
+
/**
|
|
6492
|
+
* What the rate pays on. `engagements` counts the `engagementTypes` as each platform reports them, and `minViewsToEarn` then applies to engagements. Fixed once the campaign leaves draft.
|
|
6493
|
+
*/
|
|
6494
|
+
metric?: 'views' | 'engagements';
|
|
6495
|
+
/**
|
|
6496
|
+
* With `metric: engagements`, the engagements that count. Missing means all four, and sending it on a views campaign answers 400. YouTube reports likes and comments only, Facebook and Threads have no saves, and Pinterest reports saves only.
|
|
6497
|
+
*/
|
|
6498
|
+
engagementTypes?: Array<('likes' | 'comments' | 'shares' | 'saves')>;
|
|
6483
6499
|
ratePer1kCents: number;
|
|
6500
|
+
/**
|
|
6501
|
+
* The count a post must reach before it earns, in the campaign metric (views or engagements).
|
|
6502
|
+
*/
|
|
6484
6503
|
minViewsToEarn: number;
|
|
6485
6504
|
maxPayoutPerClipCents?: number;
|
|
6486
6505
|
budgetCents: number;
|
|
6487
6506
|
};
|
|
6488
6507
|
|
|
6508
|
+
/**
|
|
6509
|
+
* What the rate pays on. `engagements` counts the `engagementTypes` as each platform reports them, and `minViewsToEarn` then applies to engagements. Fixed once the campaign leaves draft.
|
|
6510
|
+
*/
|
|
6511
|
+
export type metric2 = 'views' | 'engagements';
|
|
6512
|
+
|
|
6489
6513
|
export type CreatorCampaignEconomicsPerPost = {
|
|
6490
6514
|
type: 'per_post';
|
|
6491
6515
|
perApprovedPostCents: number;
|
|
@@ -6542,6 +6566,14 @@ export type CreatorPortalCampaign = {
|
|
|
6542
6566
|
*/
|
|
6543
6567
|
export type CreatorPortalEconomics = {
|
|
6544
6568
|
type: 'cpm';
|
|
6569
|
+
/**
|
|
6570
|
+
* What the rate pays on. Missing means views.
|
|
6571
|
+
*/
|
|
6572
|
+
metric?: 'views' | 'engagements';
|
|
6573
|
+
/**
|
|
6574
|
+
* The engagements that count. Missing means all four.
|
|
6575
|
+
*/
|
|
6576
|
+
engagementTypes?: Array<('likes' | 'comments' | 'shares' | 'saves')>;
|
|
6545
6577
|
ratePer1kCents: number;
|
|
6546
6578
|
minViewsToEarn: number;
|
|
6547
6579
|
maxPayoutPerClipCents?: number;
|
|
@@ -6662,6 +6694,10 @@ export type CreatorPortalSubmission = {
|
|
|
6662
6694
|
* Latest view count read for the post.
|
|
6663
6695
|
*/
|
|
6664
6696
|
views: number;
|
|
6697
|
+
/**
|
|
6698
|
+
* The campaign engagement types summed at the latest read. Null until the post is read.
|
|
6699
|
+
*/
|
|
6700
|
+
engagements: (number) | null;
|
|
6665
6701
|
earnedCents: number;
|
|
6666
6702
|
rejectReason: (string) | null;
|
|
6667
6703
|
/**
|
|
@@ -10596,7 +10632,7 @@ export type InstagramDemographicsResponse = {
|
|
|
10596
10632
|
note?: string;
|
|
10597
10633
|
};
|
|
10598
10634
|
|
|
10599
|
-
export type
|
|
10635
|
+
export type metric3 = 'follower_demographics' | 'engaged_audience_demographics';
|
|
10600
10636
|
|
|
10601
10637
|
/**
|
|
10602
10638
|
* The timeframe used for demographic data
|
|
@@ -18040,6 +18076,14 @@ export type WebhookPayloadCampaignSubmission = {
|
|
|
18040
18076
|
platformPostUrl: (string) | null;
|
|
18041
18077
|
status: string;
|
|
18042
18078
|
viewsAtSubmission: (number) | null;
|
|
18079
|
+
/**
|
|
18080
|
+
* Views that count toward earnings at the latest read.
|
|
18081
|
+
*/
|
|
18082
|
+
viewsEligible: (number) | null;
|
|
18083
|
+
/**
|
|
18084
|
+
* The campaign engagement types summed at the latest read. An engagements campaign earns on this count.
|
|
18085
|
+
*/
|
|
18086
|
+
engagementsLatest: (number) | null;
|
|
18043
18087
|
flags: Array<{
|
|
18044
18088
|
code: string;
|
|
18045
18089
|
detail: string;
|
|
@@ -68231,7 +68275,7 @@ export type ListCampaignSubmissionsData = {
|
|
|
68231
68275
|
/**
|
|
68232
68276
|
* What to sort by. Posts with no value to sort by (not read yet, not scored) come last in either direction.
|
|
68233
68277
|
*/
|
|
68234
|
-
sort?: 'submittedAt' | 'viewsEligible' | 'earnedCents' | 'authenticityScore';
|
|
68278
|
+
sort?: 'submittedAt' | 'viewsEligible' | 'engagementsLatest' | 'earnedCents' | 'authenticityScore';
|
|
68235
68279
|
status?: 'received' | 'tracking' | 'pending_review' | 'approved' | 'rejected' | 'expired' | 'withdrawn';
|
|
68236
68280
|
};
|
|
68237
68281
|
};
|