@getlatedev/node 0.2.1426 → 0.2.1428
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 +45 -5
- package/dist/index.d.ts +45 -5
- package/dist/index.js +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
- package/src/client.ts +2 -0
- package/src/generated/sdk.gen.ts +19 -1
- package/src/generated/types.gen.ts +46 -4
|
@@ -2685,7 +2685,7 @@ export type AnalyticsListResponse = {
|
|
|
2685
2685
|
isAd?: boolean;
|
|
2686
2686
|
profileId?: (string) | null;
|
|
2687
2687
|
/**
|
|
2688
|
-
* Cover image URL. Facebook and
|
|
2688
|
+
* Cover image URL. Facebook, Instagram and TikTok covers whose platform CDN link expired are re-read from the platform and served from Zernio storage, so that URL does not expire and can be cached.
|
|
2689
2689
|
*/
|
|
2690
2690
|
thumbnailUrl?: string;
|
|
2691
2691
|
mediaType?: 'image' | 'video' | 'gif' | 'document' | 'carousel' | 'text';
|
|
@@ -2787,7 +2787,7 @@ export type AnalyticsSinglePostResponse = {
|
|
|
2787
2787
|
*/
|
|
2788
2788
|
message?: (string) | null;
|
|
2789
2789
|
/**
|
|
2790
|
-
* Cover image URL. Facebook and
|
|
2790
|
+
* Cover image URL. Facebook, Instagram and TikTok covers whose platform CDN link expired are re-read from the platform and served from Zernio storage, so that URL does not expire and can be cached.
|
|
2791
2791
|
*/
|
|
2792
2792
|
thumbnailUrl?: (string) | null;
|
|
2793
2793
|
mediaType?: ('image' | 'video' | 'carousel' | 'text') | null;
|
|
@@ -6596,6 +6596,10 @@ export type CreatorPortalCampaign = {
|
|
|
6596
6596
|
contentRules: (string) | null;
|
|
6597
6597
|
startsAt: (string) | null;
|
|
6598
6598
|
endsAt: (string) | null;
|
|
6599
|
+
/**
|
|
6600
|
+
* Posts published before this moment do not count: `startsAt`, else when the campaign went live.
|
|
6601
|
+
*/
|
|
6602
|
+
startedAt: string;
|
|
6599
6603
|
currency: string;
|
|
6600
6604
|
economics: CreatorPortalEconomics;
|
|
6601
6605
|
/**
|
|
@@ -6610,6 +6614,10 @@ export type CreatorPortalCampaign = {
|
|
|
6610
6614
|
* Days each submitted post is tracked for views.
|
|
6611
6615
|
*/
|
|
6612
6616
|
trackingDays: number;
|
|
6617
|
+
/**
|
|
6618
|
+
* How many connected accounts can submit posts. Null means no limit.
|
|
6619
|
+
*/
|
|
6620
|
+
maxAccountsPerParticipant: (number) | null;
|
|
6613
6621
|
};
|
|
6614
6622
|
|
|
6615
6623
|
/**
|
|
@@ -6667,10 +6675,18 @@ export type CreatorPortalParticipant = {
|
|
|
6667
6675
|
* Verified accounts on the campaign's platforms.
|
|
6668
6676
|
*/
|
|
6669
6677
|
accounts: Array<{
|
|
6678
|
+
/**
|
|
6679
|
+
* Pass to `DELETE /public/creator-campaigns/{token}/accounts/{accountId}` to remove the account.
|
|
6680
|
+
*/
|
|
6681
|
+
id: string;
|
|
6670
6682
|
platform: string;
|
|
6671
6683
|
username: string;
|
|
6672
6684
|
displayName: (string) | null;
|
|
6673
6685
|
avatarUrl: (string) | null;
|
|
6686
|
+
/**
|
|
6687
|
+
* False for an account connected past `maxAccountsPerParticipant`: posts from it are refused until another account is removed.
|
|
6688
|
+
*/
|
|
6689
|
+
counts: boolean;
|
|
6674
6690
|
}>;
|
|
6675
6691
|
/**
|
|
6676
6692
|
* The latest 100 submissions.
|
|
@@ -6719,11 +6735,15 @@ export type CreatorPortalPayoutEntry = {
|
|
|
6719
6735
|
|
|
6720
6736
|
export type CreatorPortalPayoutSetup = {
|
|
6721
6737
|
/**
|
|
6722
|
-
* How the campaign pays: treasury means through Zernio, so the creator onboards for payouts.
|
|
6738
|
+
* How the campaign pays: treasury means through Zernio, so the creator onboards for payouts, which they can do from the moment they join. Earnings wait until it is done.
|
|
6723
6739
|
*/
|
|
6724
6740
|
mode: 'none' | 'external' | 'treasury';
|
|
6725
6741
|
status: 'not_started' | 'pending' | 'enabled' | 'not_applicable';
|
|
6726
6742
|
country: (string) | null;
|
|
6743
|
+
/**
|
|
6744
|
+
* The country the request came from, to preselect before payout setup starts. Null once the payout account has a country, and outside treasury mode.
|
|
6745
|
+
*/
|
|
6746
|
+
suggestedCountry: (string) | null;
|
|
6727
6747
|
/**
|
|
6728
6748
|
* Treasury payouts sent to the creator.
|
|
6729
6749
|
*/
|
|
@@ -6735,7 +6755,7 @@ export type CreatorPortalPayoutSetup = {
|
|
|
6735
6755
|
};
|
|
6736
6756
|
|
|
6737
6757
|
/**
|
|
6738
|
-
* How the campaign pays: treasury means through Zernio, so the creator onboards for payouts.
|
|
6758
|
+
* How the campaign pays: treasury means through Zernio, so the creator onboards for payouts, which they can do from the moment they join. Earnings wait until it is done.
|
|
6739
6759
|
*/
|
|
6740
6760
|
export type mode2 = 'none' | 'external' | 'treasury';
|
|
6741
6761
|
|
|
@@ -24416,6 +24436,28 @@ export type SubmitCreatorPostResponse = ({
|
|
|
24416
24436
|
|
|
24417
24437
|
export type SubmitCreatorPostError = (ErrorResponse);
|
|
24418
24438
|
|
|
24439
|
+
export type RemoveCreatorAccountData = {
|
|
24440
|
+
path: {
|
|
24441
|
+
/**
|
|
24442
|
+
* The `id` of one of the participant's `accounts`.
|
|
24443
|
+
*/
|
|
24444
|
+
accountId: string;
|
|
24445
|
+
/**
|
|
24446
|
+
* A participant token or an open invite token. A malformed token answers 404 like an unknown one.
|
|
24447
|
+
*/
|
|
24448
|
+
token: string;
|
|
24449
|
+
};
|
|
24450
|
+
};
|
|
24451
|
+
|
|
24452
|
+
export type RemoveCreatorAccountResponse = ({
|
|
24453
|
+
/**
|
|
24454
|
+
* Always true.
|
|
24455
|
+
*/
|
|
24456
|
+
removed: boolean;
|
|
24457
|
+
});
|
|
24458
|
+
|
|
24459
|
+
export type RemoveCreatorAccountError = (ErrorResponse);
|
|
24460
|
+
|
|
24419
24461
|
export type GetCreatorPayoutsData = {
|
|
24420
24462
|
path: {
|
|
24421
24463
|
/**
|