@zernio/node 0.2.118 → 0.2.120
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 +12 -12
- package/dist/index.d.ts +12 -12
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +6 -3
- package/src/generated/types.gen.ts +12 -12
package/dist/index.d.mts
CHANGED
|
@@ -2876,9 +2876,9 @@ type SnapchatPlatformData = {
|
|
|
2876
2876
|
*/
|
|
2877
2877
|
type contentType3 = 'story' | 'saved_story' | 'spotlight';
|
|
2878
2878
|
type SocialAccount = {
|
|
2879
|
-
_id
|
|
2880
|
-
platform
|
|
2881
|
-
profileId
|
|
2879
|
+
_id: string;
|
|
2880
|
+
platform: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
|
|
2881
|
+
profileId: (string | Profile);
|
|
2882
2882
|
username?: string;
|
|
2883
2883
|
displayName?: string;
|
|
2884
2884
|
/**
|
|
@@ -2889,7 +2889,7 @@ type SocialAccount = {
|
|
|
2889
2889
|
* Full profile URL for the connected account on its platform.
|
|
2890
2890
|
*/
|
|
2891
2891
|
profileUrl?: string;
|
|
2892
|
-
isActive
|
|
2892
|
+
isActive: boolean;
|
|
2893
2893
|
/**
|
|
2894
2894
|
* Follower count (only included if user has analytics add-on)
|
|
2895
2895
|
*/
|
|
@@ -5950,11 +5950,11 @@ type ListAccountsData = {
|
|
|
5950
5950
|
};
|
|
5951
5951
|
};
|
|
5952
5952
|
type ListAccountsResponse = ({
|
|
5953
|
-
accounts
|
|
5953
|
+
accounts: Array<SocialAccount>;
|
|
5954
5954
|
/**
|
|
5955
5955
|
* Whether user has analytics add-on access
|
|
5956
5956
|
*/
|
|
5957
|
-
hasAnalyticsAccess
|
|
5957
|
+
hasAnalyticsAccess: boolean;
|
|
5958
5958
|
/**
|
|
5959
5959
|
* Only present when page/limit params are provided
|
|
5960
5960
|
*/
|
|
@@ -12985,7 +12985,7 @@ type ListAdsData = {
|
|
|
12985
12985
|
*/
|
|
12986
12986
|
campaignId?: string;
|
|
12987
12987
|
/**
|
|
12988
|
-
* Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
|
|
12988
|
+
* Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
|
|
12989
12989
|
*/
|
|
12990
12990
|
fromDate?: string;
|
|
12991
12991
|
limit?: number;
|
|
@@ -13004,7 +13004,7 @@ type ListAdsData = {
|
|
|
13004
13004
|
source?: 'zernio' | 'all';
|
|
13005
13005
|
status?: AdStatus;
|
|
13006
13006
|
/**
|
|
13007
|
-
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max
|
|
13007
|
+
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
13008
13008
|
*/
|
|
13009
13009
|
toDate?: string;
|
|
13010
13010
|
};
|
|
@@ -13293,7 +13293,7 @@ type GetAdTreeData = {
|
|
|
13293
13293
|
*/
|
|
13294
13294
|
adAccountId?: string;
|
|
13295
13295
|
/**
|
|
13296
|
-
* Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
|
|
13296
|
+
* Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
|
|
13297
13297
|
*/
|
|
13298
13298
|
fromDate?: string;
|
|
13299
13299
|
/**
|
|
@@ -13318,7 +13318,7 @@ type GetAdTreeData = {
|
|
|
13318
13318
|
*/
|
|
13319
13319
|
status?: AdStatus;
|
|
13320
13320
|
/**
|
|
13321
|
-
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max
|
|
13321
|
+
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
13322
13322
|
*/
|
|
13323
13323
|
toDate?: string;
|
|
13324
13324
|
};
|
|
@@ -13427,11 +13427,11 @@ type GetAdAnalyticsData = {
|
|
|
13427
13427
|
*/
|
|
13428
13428
|
breakdowns?: string;
|
|
13429
13429
|
/**
|
|
13430
|
-
* Start of date range (YYYY-MM-DD). Defaults to 90 days ago.
|
|
13430
|
+
* Start of date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch.
|
|
13431
13431
|
*/
|
|
13432
13432
|
fromDate?: string;
|
|
13433
13433
|
/**
|
|
13434
|
-
* End of date range (YYYY-MM-DD). Defaults to today. Max
|
|
13434
|
+
* End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
13435
13435
|
*/
|
|
13436
13436
|
toDate?: string;
|
|
13437
13437
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2876,9 +2876,9 @@ type SnapchatPlatformData = {
|
|
|
2876
2876
|
*/
|
|
2877
2877
|
type contentType3 = 'story' | 'saved_story' | 'spotlight';
|
|
2878
2878
|
type SocialAccount = {
|
|
2879
|
-
_id
|
|
2880
|
-
platform
|
|
2881
|
-
profileId
|
|
2879
|
+
_id: string;
|
|
2880
|
+
platform: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
|
|
2881
|
+
profileId: (string | Profile);
|
|
2882
2882
|
username?: string;
|
|
2883
2883
|
displayName?: string;
|
|
2884
2884
|
/**
|
|
@@ -2889,7 +2889,7 @@ type SocialAccount = {
|
|
|
2889
2889
|
* Full profile URL for the connected account on its platform.
|
|
2890
2890
|
*/
|
|
2891
2891
|
profileUrl?: string;
|
|
2892
|
-
isActive
|
|
2892
|
+
isActive: boolean;
|
|
2893
2893
|
/**
|
|
2894
2894
|
* Follower count (only included if user has analytics add-on)
|
|
2895
2895
|
*/
|
|
@@ -5950,11 +5950,11 @@ type ListAccountsData = {
|
|
|
5950
5950
|
};
|
|
5951
5951
|
};
|
|
5952
5952
|
type ListAccountsResponse = ({
|
|
5953
|
-
accounts
|
|
5953
|
+
accounts: Array<SocialAccount>;
|
|
5954
5954
|
/**
|
|
5955
5955
|
* Whether user has analytics add-on access
|
|
5956
5956
|
*/
|
|
5957
|
-
hasAnalyticsAccess
|
|
5957
|
+
hasAnalyticsAccess: boolean;
|
|
5958
5958
|
/**
|
|
5959
5959
|
* Only present when page/limit params are provided
|
|
5960
5960
|
*/
|
|
@@ -12985,7 +12985,7 @@ type ListAdsData = {
|
|
|
12985
12985
|
*/
|
|
12986
12986
|
campaignId?: string;
|
|
12987
12987
|
/**
|
|
12988
|
-
* Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
|
|
12988
|
+
* Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
|
|
12989
12989
|
*/
|
|
12990
12990
|
fromDate?: string;
|
|
12991
12991
|
limit?: number;
|
|
@@ -13004,7 +13004,7 @@ type ListAdsData = {
|
|
|
13004
13004
|
source?: 'zernio' | 'all';
|
|
13005
13005
|
status?: AdStatus;
|
|
13006
13006
|
/**
|
|
13007
|
-
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max
|
|
13007
|
+
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
13008
13008
|
*/
|
|
13009
13009
|
toDate?: string;
|
|
13010
13010
|
};
|
|
@@ -13293,7 +13293,7 @@ type GetAdTreeData = {
|
|
|
13293
13293
|
*/
|
|
13294
13294
|
adAccountId?: string;
|
|
13295
13295
|
/**
|
|
13296
|
-
* Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
|
|
13296
|
+
* Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
|
|
13297
13297
|
*/
|
|
13298
13298
|
fromDate?: string;
|
|
13299
13299
|
/**
|
|
@@ -13318,7 +13318,7 @@ type GetAdTreeData = {
|
|
|
13318
13318
|
*/
|
|
13319
13319
|
status?: AdStatus;
|
|
13320
13320
|
/**
|
|
13321
|
-
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max
|
|
13321
|
+
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
13322
13322
|
*/
|
|
13323
13323
|
toDate?: string;
|
|
13324
13324
|
};
|
|
@@ -13427,11 +13427,11 @@ type GetAdAnalyticsData = {
|
|
|
13427
13427
|
*/
|
|
13428
13428
|
breakdowns?: string;
|
|
13429
13429
|
/**
|
|
13430
|
-
* Start of date range (YYYY-MM-DD). Defaults to 90 days ago.
|
|
13430
|
+
* Start of date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch.
|
|
13431
13431
|
*/
|
|
13432
13432
|
fromDate?: string;
|
|
13433
13433
|
/**
|
|
13434
|
-
* End of date range (YYYY-MM-DD). Defaults to today. Max
|
|
13434
|
+
* End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
13435
13435
|
*/
|
|
13436
13436
|
toDate?: string;
|
|
13437
13437
|
};
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -3228,7 +3228,8 @@ export const listCommentAutomationLogs = <ThrowOnError extends boolean = false>(
|
|
|
3228
3228
|
* List ads
|
|
3229
3229
|
* Returns a paginated list of ads with metrics computed over an optional date range.
|
|
3230
3230
|
* Use source=all to include externally-synced ads from platform ad managers.
|
|
3231
|
-
* If no date range is provided, defaults to the last 90 days. Date range is capped at
|
|
3231
|
+
* If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max.
|
|
3232
|
+
* Ranges older than 90 days trigger a one-time on-demand fetch from the platform when scoped to a specific accountId, then serve from cache on subsequent requests.
|
|
3232
3233
|
*
|
|
3233
3234
|
*/
|
|
3234
3235
|
export const listAds = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListAdsData, ThrowOnError>) => {
|
|
@@ -3390,7 +3391,8 @@ export const updateAdSetStatus = <ThrowOnError extends boolean = false>(options:
|
|
|
3390
3391
|
* Metrics are computed over an optional date range, then rolled up from ad level to ad set
|
|
3391
3392
|
* and campaign levels. Pagination is at the campaign level. Ads without a campaign or ad set
|
|
3392
3393
|
* ID are grouped into synthetic "Ungrouped" buckets.
|
|
3393
|
-
* If no date range is provided, defaults to the last 90 days. Date range is capped at
|
|
3394
|
+
* If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max.
|
|
3395
|
+
* Ranges older than 90 days trigger a one-time on-demand fetch from the platform when scoped to a specific accountId, then serve from cache on subsequent requests.
|
|
3394
3396
|
*
|
|
3395
3397
|
*/
|
|
3396
3398
|
export const getAdTree = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAdTreeData, ThrowOnError>) => {
|
|
@@ -3446,7 +3448,8 @@ export const deleteAd = <ThrowOnError extends boolean = false>(options: OptionsL
|
|
|
3446
3448
|
* Get ad analytics
|
|
3447
3449
|
* Returns detailed performance analytics for an ad. Includes summary metrics, a daily timeline
|
|
3448
3450
|
* over the requested date range, and optional demographic breakdowns (Meta and TikTok only).
|
|
3449
|
-
* If no date range is provided, defaults to the last 90 days. Date range is capped at
|
|
3451
|
+
* If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max.
|
|
3452
|
+
* Ranges older than 90 days trigger a one-time on-demand fetch from the platform, then serve from cache on subsequent requests.
|
|
3450
3453
|
*
|
|
3451
3454
|
*/
|
|
3452
3455
|
export const getAdAnalytics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetAdAnalyticsData, ThrowOnError>) => {
|
|
@@ -2378,9 +2378,9 @@ export type SnapchatPlatformData = {
|
|
|
2378
2378
|
export type contentType3 = 'story' | 'saved_story' | 'spotlight';
|
|
2379
2379
|
|
|
2380
2380
|
export type SocialAccount = {
|
|
2381
|
-
_id
|
|
2382
|
-
platform
|
|
2383
|
-
profileId
|
|
2381
|
+
_id: string;
|
|
2382
|
+
platform: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
|
|
2383
|
+
profileId: (string | Profile);
|
|
2384
2384
|
username?: string;
|
|
2385
2385
|
displayName?: string;
|
|
2386
2386
|
/**
|
|
@@ -2391,7 +2391,7 @@ export type SocialAccount = {
|
|
|
2391
2391
|
* Full profile URL for the connected account on its platform.
|
|
2392
2392
|
*/
|
|
2393
2393
|
profileUrl?: string;
|
|
2394
|
-
isActive
|
|
2394
|
+
isActive: boolean;
|
|
2395
2395
|
/**
|
|
2396
2396
|
* Follower count (only included if user has analytics add-on)
|
|
2397
2397
|
*/
|
|
@@ -5659,11 +5659,11 @@ export type ListAccountsData = {
|
|
|
5659
5659
|
};
|
|
5660
5660
|
|
|
5661
5661
|
export type ListAccountsResponse = ({
|
|
5662
|
-
accounts
|
|
5662
|
+
accounts: Array<SocialAccount>;
|
|
5663
5663
|
/**
|
|
5664
5664
|
* Whether user has analytics add-on access
|
|
5665
5665
|
*/
|
|
5666
|
-
hasAnalyticsAccess
|
|
5666
|
+
hasAnalyticsAccess: boolean;
|
|
5667
5667
|
/**
|
|
5668
5668
|
* Only present when page/limit params are provided
|
|
5669
5669
|
*/
|
|
@@ -13276,7 +13276,7 @@ export type ListAdsData = {
|
|
|
13276
13276
|
*/
|
|
13277
13277
|
campaignId?: string;
|
|
13278
13278
|
/**
|
|
13279
|
-
* Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
|
|
13279
|
+
* Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
|
|
13280
13280
|
*/
|
|
13281
13281
|
fromDate?: string;
|
|
13282
13282
|
limit?: number;
|
|
@@ -13295,7 +13295,7 @@ export type ListAdsData = {
|
|
|
13295
13295
|
source?: 'zernio' | 'all';
|
|
13296
13296
|
status?: AdStatus;
|
|
13297
13297
|
/**
|
|
13298
|
-
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max
|
|
13298
|
+
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
13299
13299
|
*/
|
|
13300
13300
|
toDate?: string;
|
|
13301
13301
|
};
|
|
@@ -13611,7 +13611,7 @@ export type GetAdTreeData = {
|
|
|
13611
13611
|
*/
|
|
13612
13612
|
adAccountId?: string;
|
|
13613
13613
|
/**
|
|
13614
|
-
* Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
|
|
13614
|
+
* Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
|
|
13615
13615
|
*/
|
|
13616
13616
|
fromDate?: string;
|
|
13617
13617
|
/**
|
|
@@ -13636,7 +13636,7 @@ export type GetAdTreeData = {
|
|
|
13636
13636
|
*/
|
|
13637
13637
|
status?: AdStatus;
|
|
13638
13638
|
/**
|
|
13639
|
-
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max
|
|
13639
|
+
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
13640
13640
|
*/
|
|
13641
13641
|
toDate?: string;
|
|
13642
13642
|
};
|
|
@@ -13757,11 +13757,11 @@ export type GetAdAnalyticsData = {
|
|
|
13757
13757
|
*/
|
|
13758
13758
|
breakdowns?: string;
|
|
13759
13759
|
/**
|
|
13760
|
-
* Start of date range (YYYY-MM-DD). Defaults to 90 days ago.
|
|
13760
|
+
* Start of date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch.
|
|
13761
13761
|
*/
|
|
13762
13762
|
fromDate?: string;
|
|
13763
13763
|
/**
|
|
13764
|
-
* End of date range (YYYY-MM-DD). Defaults to today. Max
|
|
13764
|
+
* End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
13765
13765
|
*/
|
|
13766
13766
|
toDate?: string;
|
|
13767
13767
|
};
|