@getlatedev/node 0.2.1458 → 0.2.1460
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 +62 -4
- package/dist/index.d.ts +62 -4
- 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 +28 -4
- package/src/generated/types.gen.ts +63 -3
|
@@ -1806,7 +1806,10 @@ export type AdRuleCondition = {
|
|
|
1806
1806
|
*
|
|
1807
1807
|
*/
|
|
1808
1808
|
window: ('today' | 'yesterday' | 'last_3d' | 'last_7d' | 'last_14d' | 'last_30d' | unknown);
|
|
1809
|
-
|
|
1809
|
+
/**
|
|
1810
|
+
* `top` and `bottom` rank the rule's objects by the metric over the window, highest first for `top`, and match the first `value` (a whole number from 1 to 100). Objects with no value are not ranked; the run history shows each one's position.
|
|
1811
|
+
*/
|
|
1812
|
+
op: '>' | '>=' | '<' | '<=' | 'top' | 'bottom';
|
|
1810
1813
|
value: number;
|
|
1811
1814
|
/**
|
|
1812
1815
|
* Makes the condition relative: `value` becomes a ratio of the metric over `window` to the same metric over this window. `previous_period` is the same number of days just before `window`; any other value is a window, such as `30_to_2_days_ago`.
|
|
@@ -1817,7 +1820,10 @@ export type AdRuleCondition = {
|
|
|
1817
1820
|
compareTo?: string;
|
|
1818
1821
|
};
|
|
1819
1822
|
|
|
1820
|
-
|
|
1823
|
+
/**
|
|
1824
|
+
* `top` and `bottom` rank the rule's objects by the metric over the window, highest first for `top`, and match the first `value` (a whole number from 1 to 100). Objects with no value are not ranked; the run history shows each one's position.
|
|
1825
|
+
*/
|
|
1826
|
+
export type op = '>' | '>=' | '<' | '<=' | 'top' | 'bottom';
|
|
1821
1827
|
|
|
1822
1828
|
export type AdRuleConditionItem = AdRuleCondition | AdRuleConditions;
|
|
1823
1829
|
|
|
@@ -17583,7 +17589,10 @@ export type WebhookPayloadAdRuleTriggered = {
|
|
|
17583
17589
|
* `today`, `yesterday`, `last_3d`, `last_7d`, `last_14d` or `last_30d`, in the account's calendar (see `run.today`). New values may be added.
|
|
17584
17590
|
*/
|
|
17585
17591
|
window: string;
|
|
17586
|
-
|
|
17592
|
+
/**
|
|
17593
|
+
* `>`, `>=`, `<`, `<=`, or `top` and `bottom` for a rank condition, whose `actual` is the object's position (1 first).
|
|
17594
|
+
*/
|
|
17595
|
+
op: string;
|
|
17587
17596
|
/**
|
|
17588
17597
|
* The threshold set on the rule.
|
|
17589
17598
|
*/
|
|
@@ -22815,6 +22824,57 @@ export type GetTikTokAccountInsightsResponse = (InstagramAccountInsightsResponse
|
|
|
22815
22824
|
|
|
22816
22825
|
export type GetTikTokAccountInsightsError = (unknown | ErrorResponse);
|
|
22817
22826
|
|
|
22827
|
+
export type GetTikTokDemographicsData = {
|
|
22828
|
+
query: {
|
|
22829
|
+
/**
|
|
22830
|
+
* The Zernio SocialAccount ID for the TikTok account.
|
|
22831
|
+
*/
|
|
22832
|
+
accountId: string;
|
|
22833
|
+
/**
|
|
22834
|
+
* Comma-separated list of demographic dimensions: age, gender, country, city. Defaults to all four.
|
|
22835
|
+
*/
|
|
22836
|
+
breakdown?: string;
|
|
22837
|
+
};
|
|
22838
|
+
};
|
|
22839
|
+
|
|
22840
|
+
export type GetTikTokDemographicsResponse = ({
|
|
22841
|
+
success?: boolean;
|
|
22842
|
+
accountId?: string;
|
|
22843
|
+
platform?: 'tiktok';
|
|
22844
|
+
metric?: 'follower_demographics';
|
|
22845
|
+
/**
|
|
22846
|
+
* Only the requested breakdowns are present. Entries are sorted by value, largest first.
|
|
22847
|
+
*/
|
|
22848
|
+
demographics?: {
|
|
22849
|
+
[key: string]: Array<{
|
|
22850
|
+
/**
|
|
22851
|
+
* Age group (18-24, 25-34, 35-44, 45-54, 55+), gender (Female, Male, Other), ISO 3166-1 alpha-2 country code, or city name. `other` collects the countries TikTok does not list individually.
|
|
22852
|
+
*/
|
|
22853
|
+
dimension?: string;
|
|
22854
|
+
/**
|
|
22855
|
+
* Share of followers, from 0 to 1
|
|
22856
|
+
*/
|
|
22857
|
+
value?: number;
|
|
22858
|
+
}>;
|
|
22859
|
+
};
|
|
22860
|
+
note?: string;
|
|
22861
|
+
});
|
|
22862
|
+
|
|
22863
|
+
export type GetTikTokDemographicsError = (ErrorResponse | {
|
|
22864
|
+
error?: string;
|
|
22865
|
+
code?: string;
|
|
22866
|
+
} | {
|
|
22867
|
+
error?: string;
|
|
22868
|
+
} | {
|
|
22869
|
+
success?: boolean;
|
|
22870
|
+
error?: string;
|
|
22871
|
+
code?: string;
|
|
22872
|
+
scopeStatus?: {
|
|
22873
|
+
requiresReauthorization?: boolean;
|
|
22874
|
+
hasInsightsScope?: boolean;
|
|
22875
|
+
};
|
|
22876
|
+
});
|
|
22877
|
+
|
|
22818
22878
|
export type GetYouTubeDailyViewsData = {
|
|
22819
22879
|
query: {
|
|
22820
22880
|
/**
|