@zernio/node 0.2.976 → 0.2.978
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 +61 -11
- package/dist/index.d.ts +61 -11
- 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 +70 -1
- package/src/generated/types.gen.ts +61 -10
|
@@ -3958,6 +3958,10 @@ export type CustomConversion = {
|
|
|
3958
3958
|
*/
|
|
3959
3959
|
pixelId?: (string) | null;
|
|
3960
3960
|
isArchived?: boolean;
|
|
3961
|
+
/**
|
|
3962
|
+
* Value Meta assigns a conversion that carries none, in the ad account's currency.
|
|
3963
|
+
*/
|
|
3964
|
+
defaultConversionValue?: (number) | null;
|
|
3961
3965
|
};
|
|
3962
3966
|
|
|
3963
3967
|
export type CustomConversionResult = {
|
|
@@ -9706,7 +9710,7 @@ export type TrackingTag = {
|
|
|
9706
9710
|
*/
|
|
9707
9711
|
events?: Array<TrackingTagEvent>;
|
|
9708
9712
|
name: string;
|
|
9709
|
-
platform: 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads';
|
|
9713
|
+
platform: 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads';
|
|
9710
9714
|
/**
|
|
9711
9715
|
* Platform-native flavor of the tag (Meta: `pixel`).
|
|
9712
9716
|
*/
|
|
@@ -9753,13 +9757,33 @@ export type TrackingTag = {
|
|
|
9753
9757
|
ownerAdAccountId?: string;
|
|
9754
9758
|
};
|
|
9755
9759
|
|
|
9756
|
-
export type platform11 = 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads';
|
|
9760
|
+
export type platform11 = 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads';
|
|
9757
9761
|
|
|
9758
9762
|
/**
|
|
9759
9763
|
* Platform-native flavor of the tag (Meta: `pixel`).
|
|
9760
9764
|
*/
|
|
9761
9765
|
export type kind2 = 'pixel' | 'tag' | 'insight_tag';
|
|
9762
9766
|
|
|
9767
|
+
/**
|
|
9768
|
+
* One health check the platform runs on a tracking tag.
|
|
9769
|
+
*/
|
|
9770
|
+
export type TrackingTagDiagnostic = {
|
|
9771
|
+
/**
|
|
9772
|
+
* Platform check id (Meta: e.g. `pixel_missing_param_in_events`).
|
|
9773
|
+
*/
|
|
9774
|
+
key: string;
|
|
9775
|
+
title: string;
|
|
9776
|
+
description?: string;
|
|
9777
|
+
/**
|
|
9778
|
+
* The platform verdict (Meta: `passed`, `failed`, `warning`).
|
|
9779
|
+
*/
|
|
9780
|
+
result: string;
|
|
9781
|
+
/**
|
|
9782
|
+
* Where to fix it in the platform UI (Meta: Events Manager).
|
|
9783
|
+
*/
|
|
9784
|
+
actionUrl?: string;
|
|
9785
|
+
};
|
|
9786
|
+
|
|
9763
9787
|
/**
|
|
9764
9788
|
* A conversion event tied to a tracking tag (Google conversion action, LinkedIn conversion rule, X web event tag, OpenAI event setting, TikTok pixel event, Meta custom conversion).
|
|
9765
9789
|
*/
|
|
@@ -9786,6 +9810,10 @@ export type TrackingTagEvent = {
|
|
|
9786
9810
|
currency?: string;
|
|
9787
9811
|
clickWindowDays?: number;
|
|
9788
9812
|
viewWindowDays?: number;
|
|
9813
|
+
/**
|
|
9814
|
+
* Fires only on pages whose URL contains this text (case-insensitive).
|
|
9815
|
+
*/
|
|
9816
|
+
urlContains?: string;
|
|
9789
9817
|
};
|
|
9790
9818
|
|
|
9791
9819
|
/**
|
|
@@ -9818,6 +9846,10 @@ export type TrackingTagEventInput = {
|
|
|
9818
9846
|
currency?: string;
|
|
9819
9847
|
clickWindowDays?: number;
|
|
9820
9848
|
viewWindowDays?: number;
|
|
9849
|
+
/**
|
|
9850
|
+
* Fire only on pages whose URL contains this text (case-insensitive).
|
|
9851
|
+
*/
|
|
9852
|
+
urlContains?: string;
|
|
9821
9853
|
};
|
|
9822
9854
|
|
|
9823
9855
|
/**
|
|
@@ -49512,7 +49544,7 @@ export type ListTrackingTagsData = {
|
|
|
49512
49544
|
};
|
|
49513
49545
|
|
|
49514
49546
|
export type ListTrackingTagsResponse = ({
|
|
49515
|
-
platform?: 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads';
|
|
49547
|
+
platform?: 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads';
|
|
49516
49548
|
tags?: Array<TrackingTag>;
|
|
49517
49549
|
});
|
|
49518
49550
|
|
|
@@ -49541,7 +49573,7 @@ export type CreateTrackingTagData = {
|
|
|
49541
49573
|
};
|
|
49542
49574
|
|
|
49543
49575
|
export type CreateTrackingTagResponse = ({
|
|
49544
|
-
platform?: 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads';
|
|
49576
|
+
platform?: 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads';
|
|
49545
49577
|
tag?: TrackingTag;
|
|
49546
49578
|
});
|
|
49547
49579
|
|
|
@@ -49566,7 +49598,7 @@ export type GetTrackingTagData = {
|
|
|
49566
49598
|
};
|
|
49567
49599
|
|
|
49568
49600
|
export type GetTrackingTagResponse = ({
|
|
49569
|
-
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads';
|
|
49601
|
+
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads';
|
|
49570
49602
|
tag?: TrackingTag;
|
|
49571
49603
|
});
|
|
49572
49604
|
|
|
@@ -49606,7 +49638,7 @@ export type UpdateTrackingTagData = {
|
|
|
49606
49638
|
};
|
|
49607
49639
|
|
|
49608
49640
|
export type UpdateTrackingTagResponse = ({
|
|
49609
|
-
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads';
|
|
49641
|
+
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads';
|
|
49610
49642
|
tag?: TrackingTag;
|
|
49611
49643
|
});
|
|
49612
49644
|
|
|
@@ -49709,7 +49741,7 @@ export type InstallTrackingTagOnStoreData = {
|
|
|
49709
49741
|
};
|
|
49710
49742
|
|
|
49711
49743
|
export type InstallTrackingTagOnStoreResponse = ({
|
|
49712
|
-
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads';
|
|
49744
|
+
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads';
|
|
49713
49745
|
install?: (StorePixelInstall & {
|
|
49714
49746
|
/**
|
|
49715
49747
|
* Shopify only: the pixel this install replaced on the store, if any.
|
|
@@ -49764,7 +49796,7 @@ export type GetTrackingTagStoreInstallData = {
|
|
|
49764
49796
|
};
|
|
49765
49797
|
|
|
49766
49798
|
export type GetTrackingTagStoreInstallResponse = ({
|
|
49767
|
-
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads';
|
|
49799
|
+
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads';
|
|
49768
49800
|
install?: (StorePixelInstall & {
|
|
49769
49801
|
/**
|
|
49770
49802
|
* WordPress only.
|
|
@@ -49814,7 +49846,7 @@ export type RemoveTrackingTagFromStoreData = {
|
|
|
49814
49846
|
};
|
|
49815
49847
|
|
|
49816
49848
|
export type RemoveTrackingTagFromStoreResponse = ({
|
|
49817
|
-
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads';
|
|
49849
|
+
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads';
|
|
49818
49850
|
install?: (StorePixelInstall & {
|
|
49819
49851
|
/**
|
|
49820
49852
|
* WordPress only: number of Zernio widgets deleted.
|
|
@@ -49922,6 +49954,25 @@ export type DeleteTrackingTagEventError = (ErrorResponse | {
|
|
|
49922
49954
|
error?: string;
|
|
49923
49955
|
} | unknown);
|
|
49924
49956
|
|
|
49957
|
+
export type GetTrackingTagDiagnosticsData = {
|
|
49958
|
+
path: {
|
|
49959
|
+
accountId: string;
|
|
49960
|
+
/**
|
|
49961
|
+
* Tag id (`TrackingTag.id`).
|
|
49962
|
+
*/
|
|
49963
|
+
tagId: string;
|
|
49964
|
+
};
|
|
49965
|
+
};
|
|
49966
|
+
|
|
49967
|
+
export type GetTrackingTagDiagnosticsResponse = ({
|
|
49968
|
+
platform?: string;
|
|
49969
|
+
checks?: Array<TrackingTagDiagnostic>;
|
|
49970
|
+
});
|
|
49971
|
+
|
|
49972
|
+
export type GetTrackingTagDiagnosticsError = (ErrorResponse | {
|
|
49973
|
+
error?: string;
|
|
49974
|
+
} | unknown);
|
|
49975
|
+
|
|
49925
49976
|
export type GetTrackingTagStatsData = {
|
|
49926
49977
|
path: {
|
|
49927
49978
|
accountId: string;
|
|
@@ -49951,7 +50002,7 @@ export type GetTrackingTagStatsData = {
|
|
|
49951
50002
|
};
|
|
49952
50003
|
|
|
49953
50004
|
export type GetTrackingTagStatsResponse = ({
|
|
49954
|
-
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads';
|
|
50005
|
+
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads';
|
|
49955
50006
|
stats?: {
|
|
49956
50007
|
aggregation?: string;
|
|
49957
50008
|
startTime?: number;
|