@shware/analytics 8.13.0 → 8.14.0
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/attribution/classify.d.cts +6 -7
- package/dist/attribution/classify.d.cts.map +1 -1
- package/dist/attribution/classify.d.mts +6 -7
- package/dist/attribution/classify.d.mts.map +1 -1
- package/dist/attribution/vocabulary.d.cts +24 -25
- package/dist/attribution/vocabulary.d.cts.map +1 -1
- package/dist/attribution/vocabulary.d.mts +24 -25
- package/dist/attribution/vocabulary.d.mts.map +1 -1
- package/dist/click-id/index.d.cts +18 -19
- package/dist/click-id/index.d.cts.map +1 -1
- package/dist/click-id/index.d.mts +18 -19
- package/dist/click-id/index.d.mts.map +1 -1
- package/dist/constants/storage.d.cts +1 -2
- package/dist/constants/storage.d.cts.map +1 -1
- package/dist/constants/storage.d.mts +1 -2
- package/dist/constants/storage.d.mts.map +1 -1
- package/dist/feedback/index.d.cts +1 -2
- package/dist/feedback/index.d.cts.map +1 -1
- package/dist/feedback/index.d.mts +1 -2
- package/dist/feedback/index.d.mts.map +1 -1
- package/dist/hooks/use-app-analytics.d.cts +1 -2
- package/dist/hooks/use-app-analytics.d.cts.map +1 -1
- package/dist/hooks/use-app-analytics.d.mts +1 -2
- package/dist/hooks/use-app-analytics.d.mts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.d.cts +1 -2
- package/dist/hooks/use-outbound-click-analytics.d.cts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.d.mts +1 -2
- package/dist/hooks/use-outbound-click-analytics.d.mts.map +1 -1
- package/dist/hooks/use-previous.d.cts +1 -2
- package/dist/hooks/use-previous.d.cts.map +1 -1
- package/dist/hooks/use-previous.d.mts +1 -2
- package/dist/hooks/use-previous.d.mts.map +1 -1
- package/dist/hooks/use-report-web-vitals.d.cts +1 -2
- package/dist/hooks/use-report-web-vitals.d.cts.map +1 -1
- package/dist/hooks/use-report-web-vitals.d.mts +1 -2
- package/dist/hooks/use-report-web-vitals.d.mts.map +1 -1
- package/dist/hooks/use-track-impression.d.cts +1 -2
- package/dist/hooks/use-track-impression.d.cts.map +1 -1
- package/dist/hooks/use-track-impression.d.mts +1 -2
- package/dist/hooks/use-track-impression.d.mts.map +1 -1
- package/dist/hooks/use-uet-id-sync.d.cts +1 -2
- package/dist/hooks/use-uet-id-sync.d.cts.map +1 -1
- package/dist/hooks/use-uet-id-sync.d.mts +1 -2
- package/dist/hooks/use-uet-id-sync.d.mts.map +1 -1
- package/dist/hooks/use-web-analytics.d.cts +1 -2
- package/dist/hooks/use-web-analytics.d.cts.map +1 -1
- package/dist/hooks/use-web-analytics.d.mts +1 -2
- package/dist/hooks/use-web-analytics.d.mts.map +1 -1
- package/dist/link/index.d.cts +3 -4
- package/dist/link/index.d.cts.map +1 -1
- package/dist/link/index.d.mts +3 -4
- package/dist/link/index.d.mts.map +1 -1
- package/dist/native/fbsdk.d.cts +1 -2
- package/dist/native/fbsdk.d.cts.map +1 -1
- package/dist/native/fbsdk.d.mts +1 -2
- package/dist/native/fbsdk.d.mts.map +1 -1
- package/dist/native/fingerprint.d.cts +4 -5
- package/dist/native/fingerprint.d.cts.map +1 -1
- package/dist/native/fingerprint.d.mts +4 -5
- package/dist/native/fingerprint.d.mts.map +1 -1
- package/dist/native/firebase.d.cts +1 -2
- package/dist/native/firebase.d.cts.map +1 -1
- package/dist/native/firebase.d.mts +1 -2
- package/dist/native/firebase.d.mts.map +1 -1
- package/dist/native/posthog.d.cts +1 -2
- package/dist/native/posthog.d.cts.map +1 -1
- package/dist/native/posthog.d.mts +1 -2
- package/dist/native/posthog.d.mts.map +1 -1
- package/dist/native/setup.d.cts +4 -5
- package/dist/native/setup.d.cts.map +1 -1
- package/dist/native/setup.d.mts +4 -5
- package/dist/native/setup.d.mts.map +1 -1
- package/dist/next/index.cjs +14 -14
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.d.cts +1 -2
- package/dist/next/index.d.cts.map +1 -1
- package/dist/next/index.d.mts +1 -2
- package/dist/next/index.d.mts.map +1 -1
- package/dist/next/index.mjs +3 -3
- package/dist/react-router/index.d.cts +1 -2
- package/dist/react-router/index.d.cts.map +1 -1
- package/dist/react-router/index.d.mts +1 -2
- package/dist/react-router/index.d.mts.map +1 -1
- package/dist/schema/index.cjs +32 -2
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +155 -18
- package/dist/schema/index.d.cts.map +1 -1
- package/dist/schema/index.d.mts +155 -18
- package/dist/schema/index.d.mts.map +1 -1
- package/dist/schema/index.mjs +32 -2
- package/dist/schema/index.mjs.map +1 -1
- package/dist/server/action-source.d.cts +3 -4
- package/dist/server/action-source.d.cts.map +1 -1
- package/dist/server/action-source.d.mts +3 -4
- package/dist/server/action-source.d.mts.map +1 -1
- package/dist/server/google-data-manager.d.cts +9 -10
- package/dist/server/google-data-manager.d.cts.map +1 -1
- package/dist/server/google-data-manager.d.mts +9 -10
- package/dist/server/google-data-manager.d.mts.map +1 -1
- package/dist/server/linkedin-conversions-api.d.cts +4 -5
- package/dist/server/linkedin-conversions-api.d.cts.map +1 -1
- package/dist/server/linkedin-conversions-api.d.mts +4 -5
- package/dist/server/linkedin-conversions-api.d.mts.map +1 -1
- package/dist/server/meta-capi.d.cts +5 -6
- package/dist/server/meta-capi.d.cts.map +1 -1
- package/dist/server/meta-capi.d.mts +5 -6
- package/dist/server/meta-capi.d.mts.map +1 -1
- package/dist/server/meta-conversions-api.d.cts +4 -5
- package/dist/server/meta-conversions-api.d.cts.map +1 -1
- package/dist/server/meta-conversions-api.d.mts +4 -5
- package/dist/server/meta-conversions-api.d.mts.map +1 -1
- package/dist/server/microsoft-conversions-api.d.cts +11 -12
- package/dist/server/microsoft-conversions-api.d.cts.map +1 -1
- package/dist/server/microsoft-conversions-api.d.mts +11 -12
- package/dist/server/microsoft-conversions-api.d.mts.map +1 -1
- package/dist/server/openai-conversions-api.d.cts +5 -6
- package/dist/server/openai-conversions-api.d.cts.map +1 -1
- package/dist/server/openai-conversions-api.d.mts +5 -6
- package/dist/server/openai-conversions-api.d.mts.map +1 -1
- package/dist/server/page-location.d.cts +1 -2
- package/dist/server/page-location.d.cts.map +1 -1
- package/dist/server/page-location.d.mts +1 -2
- package/dist/server/page-location.d.mts.map +1 -1
- package/dist/server/reddit-conversions-api.d.cts +4 -5
- package/dist/server/reddit-conversions-api.d.cts.map +1 -1
- package/dist/server/reddit-conversions-api.d.mts +4 -5
- package/dist/server/reddit-conversions-api.d.mts.map +1 -1
- package/dist/setup/index.d.cts +5 -6
- package/dist/setup/index.d.cts.map +1 -1
- package/dist/setup/index.d.mts +5 -6
- package/dist/setup/index.d.mts.map +1 -1
- package/dist/setup/session.d.cts +2 -3
- package/dist/setup/session.d.cts.map +1 -1
- package/dist/setup/session.d.mts +2 -3
- package/dist/setup/session.d.mts.map +1 -1
- package/dist/tanstack/analytics.d.cts +1 -2
- package/dist/tanstack/analytics.d.cts.map +1 -1
- package/dist/tanstack/analytics.d.mts +1 -2
- package/dist/tanstack/analytics.d.mts.map +1 -1
- package/dist/tanstack/middleware.d.cts +3 -4
- package/dist/tanstack/middleware.d.cts.map +1 -1
- package/dist/tanstack/middleware.d.mts +3 -4
- package/dist/tanstack/middleware.d.mts.map +1 -1
- package/dist/test/setup.d.cts +3 -4
- package/dist/test/setup.d.cts.map +1 -1
- package/dist/test/setup.d.mts +3 -4
- package/dist/test/setup.d.mts.map +1 -1
- package/dist/third-parties/google-analytics.d.cts +2 -3
- package/dist/third-parties/google-analytics.d.cts.map +1 -1
- package/dist/third-parties/google-analytics.d.mts +2 -3
- package/dist/third-parties/google-analytics.d.mts.map +1 -1
- package/dist/third-parties/ignored-events.d.cts +1 -2
- package/dist/third-parties/ignored-events.d.cts.map +1 -1
- package/dist/third-parties/ignored-events.d.mts +1 -2
- package/dist/third-parties/ignored-events.d.mts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.d.cts +3 -4
- package/dist/third-parties/linkedin-insight-tag.d.cts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.d.mts +3 -4
- package/dist/third-parties/linkedin-insight-tag.d.mts.map +1 -1
- package/dist/third-parties/meta-pixel.d.cts +2 -3
- package/dist/third-parties/meta-pixel.d.cts.map +1 -1
- package/dist/third-parties/meta-pixel.d.mts +2 -3
- package/dist/third-parties/meta-pixel.d.mts.map +1 -1
- package/dist/third-parties/microsoft-uet.d.cts +6 -7
- package/dist/third-parties/microsoft-uet.d.cts.map +1 -1
- package/dist/third-parties/microsoft-uet.d.mts +6 -7
- package/dist/third-parties/microsoft-uet.d.mts.map +1 -1
- package/dist/third-parties/openai-pixel.d.cts +2 -3
- package/dist/third-parties/openai-pixel.d.cts.map +1 -1
- package/dist/third-parties/openai-pixel.d.mts +2 -3
- package/dist/third-parties/openai-pixel.d.mts.map +1 -1
- package/dist/third-parties/posthog.d.cts +2 -3
- package/dist/third-parties/posthog.d.cts.map +1 -1
- package/dist/third-parties/posthog.d.mts +2 -3
- package/dist/third-parties/posthog.d.mts.map +1 -1
- package/dist/third-parties/reddit-pixel.d.cts +2 -3
- package/dist/third-parties/reddit-pixel.d.cts.map +1 -1
- package/dist/third-parties/reddit-pixel.d.mts +2 -3
- package/dist/third-parties/reddit-pixel.d.mts.map +1 -1
- package/dist/track/fbq.d.cts +10 -11
- package/dist/track/fbq.d.cts.map +1 -1
- package/dist/track/fbq.d.mts +10 -11
- package/dist/track/fbq.d.mts.map +1 -1
- package/dist/track/gtag.d.cts +26 -27
- package/dist/track/gtag.d.cts.map +1 -1
- package/dist/track/gtag.d.mts +26 -27
- package/dist/track/gtag.d.mts.map +1 -1
- package/dist/track/index.d.cts +4 -5
- package/dist/track/index.d.cts.map +1 -1
- package/dist/track/index.d.mts +4 -5
- package/dist/track/index.d.mts.map +1 -1
- package/dist/track/lintrk.d.cts +1 -2
- package/dist/track/lintrk.d.cts.map +1 -1
- package/dist/track/lintrk.d.mts +1 -2
- package/dist/track/lintrk.d.mts.map +1 -1
- package/dist/track/oaiq.d.cts +17 -18
- package/dist/track/oaiq.d.cts.map +1 -1
- package/dist/track/oaiq.d.mts +17 -18
- package/dist/track/oaiq.d.mts.map +1 -1
- package/dist/track/rdt.d.cts +10 -11
- package/dist/track/rdt.d.cts.map +1 -1
- package/dist/track/rdt.d.mts +10 -11
- package/dist/track/rdt.d.mts.map +1 -1
- package/dist/track/types.d.cts +20 -21
- package/dist/track/types.d.cts.map +1 -1
- package/dist/track/types.d.mts +20 -21
- package/dist/track/types.d.mts.map +1 -1
- package/dist/track/uetq.d.cts +8 -9
- package/dist/track/uetq.d.cts.map +1 -1
- package/dist/track/uetq.d.mts +8 -9
- package/dist/track/uetq.d.mts.map +1 -1
- package/dist/utils/field.d.cts +1 -2
- package/dist/utils/field.d.cts.map +1 -1
- package/dist/utils/field.d.mts +1 -2
- package/dist/utils/field.d.mts.map +1 -1
- package/dist/utils/sha256.d.cts +1 -2
- package/dist/utils/sha256.d.cts.map +1 -1
- package/dist/utils/sha256.d.mts +1 -2
- package/dist/utils/sha256.d.mts.map +1 -1
- package/dist/utils/stripe.d.cts +2 -3
- package/dist/utils/stripe.d.cts.map +1 -1
- package/dist/utils/stripe.d.mts +2 -3
- package/dist/utils/stripe.d.mts.map +1 -1
- package/dist/visitor/index.d.cts +2 -3
- package/dist/visitor/index.d.cts.map +1 -1
- package/dist/visitor/index.d.mts +2 -3
- package/dist/visitor/index.d.mts.map +1 -1
- package/dist/visitor/types.d.cts +4 -5
- package/dist/visitor/types.d.cts.map +1 -1
- package/dist/visitor/types.d.mts +4 -5
- package/dist/visitor/types.d.mts.map +1 -1
- package/dist/web/index.d.cts +3 -4
- package/dist/web/index.d.cts.map +1 -1
- package/dist/web/index.d.mts +3 -4
- package/dist/web/index.d.mts.map +1 -1
- package/dist/web/page-key.d.cts +1 -2
- package/dist/web/page-key.d.cts.map +1 -1
- package/dist/web/page-key.d.mts +1 -2
- package/dist/web/page-key.d.mts.map +1 -1
- package/package.json +27 -27
|
@@ -25,7 +25,7 @@ interface CapiUserData {
|
|
|
25
25
|
madid?: string;
|
|
26
26
|
}
|
|
27
27
|
/** One entry of the `data` array POSTed to `/{pixel_id}/events`. */
|
|
28
|
-
interface CapiEvent {
|
|
28
|
+
export interface CapiEvent {
|
|
29
29
|
event_name: string;
|
|
30
30
|
event_time: number;
|
|
31
31
|
event_id: string;
|
|
@@ -41,8 +41,8 @@ interface CapiEvent {
|
|
|
41
41
|
* declare `platform: 'unknown'` — lands in Meta's `other`, exactly where the business-SDK
|
|
42
42
|
* sender put an explicit `'offline'` too.
|
|
43
43
|
*/
|
|
44
|
-
declare function getCapiEvent(event: TrackEvent<any>, data: UserProvidedData, appPackageName?: string): CapiEvent;
|
|
45
|
-
interface MetaConversionsOptions {
|
|
44
|
+
export declare function getCapiEvent(event: TrackEvent<any>, data: UserProvidedData, appPackageName?: string): CapiEvent;
|
|
45
|
+
export interface MetaConversionsOptions {
|
|
46
46
|
/** Attaches `app_data`/extinfo to events whose platform resolves to an app. */
|
|
47
47
|
appPackageName?: string;
|
|
48
48
|
/** Routes the batch to Events Manager's Test Events tab instead of production. */
|
|
@@ -50,7 +50,7 @@ interface MetaConversionsOptions {
|
|
|
50
50
|
/** Graph API version, e.g. 'v24.0'. */
|
|
51
51
|
apiVersion?: string;
|
|
52
52
|
}
|
|
53
|
-
interface MetaConversionsResponse {
|
|
53
|
+
export interface MetaConversionsResponse {
|
|
54
54
|
events_received?: number;
|
|
55
55
|
messages?: string[];
|
|
56
56
|
fbtrace_id?: string;
|
|
@@ -60,7 +60,6 @@ interface MetaConversionsResponse {
|
|
|
60
60
|
* same filtering, same payload, same never-throws contract, minus the 31MB SDK. The token
|
|
61
61
|
* travels in the JSON body, never in the URL, and is never logged.
|
|
62
62
|
*/
|
|
63
|
-
declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, options?: MetaConversionsOptions): Promise<MetaConversionsResponse | undefined>;
|
|
63
|
+
export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, options?: MetaConversionsOptions): Promise<MetaConversionsResponse | undefined>;
|
|
64
64
|
//#endregion
|
|
65
|
-
export { CapiEvent, MetaConversionsOptions, MetaConversionsResponse, getCapiEvent, sendEvents };
|
|
66
65
|
//# sourceMappingURL=meta-capi.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-capi.d.cts","names":[],"sources":["../../src/server/meta-capi.ts"],"mappings":";;UAsGU;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;
|
|
1
|
+
{"version":3,"file":"meta-capi.d.cts","names":[],"sources":["../../src/server/meta-capi.ts"],"mappings":";;UAsGU;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;iBAwLe;EACf;EACA;EACA;EACA;EACA;EACA,WAAW;EACX,aAAa;EACb,WAAW;;;;;;;;wBASG,aAEd,OAAO,iBACP,MAAM,kBACN,0BACC;iBAyBc;;EAEf;;EAEA;;EAEA;;iBAGe;EACf;EACA;EACA;;;;;;;wBAQoB,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,UAAS,yBACR,QAAQ"}
|
|
@@ -25,7 +25,7 @@ interface CapiUserData {
|
|
|
25
25
|
madid?: string;
|
|
26
26
|
}
|
|
27
27
|
/** One entry of the `data` array POSTed to `/{pixel_id}/events`. */
|
|
28
|
-
interface CapiEvent {
|
|
28
|
+
export interface CapiEvent {
|
|
29
29
|
event_name: string;
|
|
30
30
|
event_time: number;
|
|
31
31
|
event_id: string;
|
|
@@ -41,8 +41,8 @@ interface CapiEvent {
|
|
|
41
41
|
* declare `platform: 'unknown'` — lands in Meta's `other`, exactly where the business-SDK
|
|
42
42
|
* sender put an explicit `'offline'` too.
|
|
43
43
|
*/
|
|
44
|
-
declare function getCapiEvent(event: TrackEvent<any>, data: UserProvidedData, appPackageName?: string): CapiEvent;
|
|
45
|
-
interface MetaConversionsOptions {
|
|
44
|
+
export declare function getCapiEvent(event: TrackEvent<any>, data: UserProvidedData, appPackageName?: string): CapiEvent;
|
|
45
|
+
export interface MetaConversionsOptions {
|
|
46
46
|
/** Attaches `app_data`/extinfo to events whose platform resolves to an app. */
|
|
47
47
|
appPackageName?: string;
|
|
48
48
|
/** Routes the batch to Events Manager's Test Events tab instead of production. */
|
|
@@ -50,7 +50,7 @@ interface MetaConversionsOptions {
|
|
|
50
50
|
/** Graph API version, e.g. 'v24.0'. */
|
|
51
51
|
apiVersion?: string;
|
|
52
52
|
}
|
|
53
|
-
interface MetaConversionsResponse {
|
|
53
|
+
export interface MetaConversionsResponse {
|
|
54
54
|
events_received?: number;
|
|
55
55
|
messages?: string[];
|
|
56
56
|
fbtrace_id?: string;
|
|
@@ -60,7 +60,6 @@ interface MetaConversionsResponse {
|
|
|
60
60
|
* same filtering, same payload, same never-throws contract, minus the 31MB SDK. The token
|
|
61
61
|
* travels in the JSON body, never in the URL, and is never logged.
|
|
62
62
|
*/
|
|
63
|
-
declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, options?: MetaConversionsOptions): Promise<MetaConversionsResponse | undefined>;
|
|
63
|
+
export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, options?: MetaConversionsOptions): Promise<MetaConversionsResponse | undefined>;
|
|
64
64
|
//#endregion
|
|
65
|
-
export { CapiEvent, MetaConversionsOptions, MetaConversionsResponse, getCapiEvent, sendEvents };
|
|
66
65
|
//# sourceMappingURL=meta-capi.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-capi.d.mts","names":[],"sources":["../../src/server/meta-capi.ts"],"mappings":";;UAsGU;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;
|
|
1
|
+
{"version":3,"file":"meta-capi.d.mts","names":[],"sources":["../../src/server/meta-capi.ts"],"mappings":";;UAsGU;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;iBAwLe;EACf;EACA;EACA;EACA;EACA;EACA,WAAW;EACX,aAAa;EACb,WAAW;;;;;;;;wBASG,aAEd,OAAO,iBACP,MAAM,kBACN,0BACC;iBAyBc;;EAEf;;EAEA;;EAEA;;iBAGe;EACf;EACA;EACA;;;;;;;wBAQoB,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,UAAS,yBACR,QAAQ"}
|
|
@@ -2,10 +2,9 @@ import { TrackEvent, UserProvidedData } from "../track/types.cjs";
|
|
|
2
2
|
import { EventActionSource } from "./action-source.cjs";
|
|
3
3
|
import { ServerEvent } from "facebook-nodejs-business-sdk";
|
|
4
4
|
//#region src/server/meta-conversions-api.d.ts
|
|
5
|
-
declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): ServerEvent;
|
|
6
|
-
declare function sendEvent(accessToken: string, pixelId: string, event: TrackEvent<any>, data?: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): Promise<import("facebook-nodejs-business-sdk").EventResponse | undefined>;
|
|
7
|
-
declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): Promise<import("facebook-nodejs-business-sdk").EventResponse | undefined>;
|
|
8
|
-
declare function sendTestEvent(accessToken: string, pixelId: string, testEventCode: string): Promise<import("facebook-nodejs-business-sdk").EventResponse>;
|
|
5
|
+
export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): ServerEvent;
|
|
6
|
+
export declare function sendEvent(accessToken: string, pixelId: string, event: TrackEvent<any>, data?: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): Promise<import("facebook-nodejs-business-sdk").EventResponse | undefined>;
|
|
7
|
+
export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): Promise<import("facebook-nodejs-business-sdk").EventResponse | undefined>;
|
|
8
|
+
export declare function sendTestEvent(accessToken: string, pixelId: string, testEventCode: string): Promise<import("facebook-nodejs-business-sdk").EventResponse>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { getServerEvent, sendEvent, sendEvents, sendTestEvent };
|
|
11
10
|
//# sourceMappingURL=meta-conversions-api.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-conversions-api.d.cts","names":[],"sources":["../../src/server/meta-conversions-api.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"meta-conversions-api.d.cts","names":[],"sources":["../../src/server/meta-conversions-api.ts"],"mappings":";;;;wBA4OgB,eAEd,OAAO,iBACP,MAAM,kBACN,yBACA,eAAe,oBAAiB;wBA8DZ,UACpB,qBACA,iBAEA,OAAO,iBACP,OAAM,kBACN,yBACA,eAAe,oBAAiB,+CAAA;wBAcZ,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,yBACA,eAAe,oBAAiB,+CAAA;wBAgBZ,cAAc,qBAAqB,iBAAiB,wBAAqB,+CAAA"}
|
|
@@ -2,10 +2,9 @@ import { TrackEvent, UserProvidedData } from "../track/types.mjs";
|
|
|
2
2
|
import { EventActionSource } from "./action-source.mjs";
|
|
3
3
|
import { ServerEvent } from "facebook-nodejs-business-sdk";
|
|
4
4
|
//#region src/server/meta-conversions-api.d.ts
|
|
5
|
-
declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): ServerEvent;
|
|
6
|
-
declare function sendEvent(accessToken: string, pixelId: string, event: TrackEvent<any>, data?: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): Promise<import("facebook-nodejs-business-sdk").EventResponse | undefined>;
|
|
7
|
-
declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): Promise<import("facebook-nodejs-business-sdk").EventResponse | undefined>;
|
|
8
|
-
declare function sendTestEvent(accessToken: string, pixelId: string, testEventCode: string): Promise<import("facebook-nodejs-business-sdk").EventResponse>;
|
|
5
|
+
export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): ServerEvent;
|
|
6
|
+
export declare function sendEvent(accessToken: string, pixelId: string, event: TrackEvent<any>, data?: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): Promise<import("facebook-nodejs-business-sdk").EventResponse | undefined>;
|
|
7
|
+
export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): Promise<import("facebook-nodejs-business-sdk").EventResponse | undefined>;
|
|
8
|
+
export declare function sendTestEvent(accessToken: string, pixelId: string, testEventCode: string): Promise<import("facebook-nodejs-business-sdk").EventResponse>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { getServerEvent, sendEvent, sendEvents, sendTestEvent };
|
|
11
10
|
//# sourceMappingURL=meta-conversions-api.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-conversions-api.d.mts","names":[],"sources":["../../src/server/meta-conversions-api.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"meta-conversions-api.d.mts","names":[],"sources":["../../src/server/meta-conversions-api.ts"],"mappings":";;;;wBA4OgB,eAEd,OAAO,iBACP,MAAM,kBACN,yBACA,eAAe,oBAAiB;wBA8DZ,UACpB,qBACA,iBAEA,OAAO,iBACP,OAAM,kBACN,yBACA,eAAe,oBAAiB,+CAAA;wBAcZ,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,yBACA,eAAe,oBAAiB,+CAAA;wBAgBZ,cAAc,qBAAqB,iBAAiB,wBAAqB,+CAAA"}
|
|
@@ -6,8 +6,8 @@ import { TrackEvent, UserProvidedData } from "../track/types.cjs";
|
|
|
6
6
|
* already a SHA-256 hex digest passes through.
|
|
7
7
|
* https://learn.microsoft.com/en-us/advertising/guides/uet-conversion-api-integration#hashed-identifiers
|
|
8
8
|
*/
|
|
9
|
-
declare function normalizeEmail(input: string): string;
|
|
10
|
-
interface MicrosoftUserData {
|
|
9
|
+
export declare function normalizeEmail(input: string): string;
|
|
10
|
+
export interface MicrosoftUserData {
|
|
11
11
|
/** Microsoft click id, as a dashed UUID. */
|
|
12
12
|
msclkid?: string;
|
|
13
13
|
/** SHA-256 of the normalized email. */
|
|
@@ -23,13 +23,13 @@ interface MicrosoftUserData {
|
|
|
23
23
|
idfa?: string;
|
|
24
24
|
gaid?: string;
|
|
25
25
|
}
|
|
26
|
-
interface MicrosoftItem {
|
|
26
|
+
export interface MicrosoftItem {
|
|
27
27
|
id?: string;
|
|
28
28
|
name?: string;
|
|
29
29
|
price?: number;
|
|
30
30
|
quantity?: number;
|
|
31
31
|
}
|
|
32
|
-
interface MicrosoftCustomData {
|
|
32
|
+
export interface MicrosoftCustomData {
|
|
33
33
|
eventCategory?: string;
|
|
34
34
|
eventLabel?: string;
|
|
35
35
|
eventValue?: number;
|
|
@@ -44,7 +44,7 @@ interface MicrosoftCustomData {
|
|
|
44
44
|
ecommCategory?: string;
|
|
45
45
|
}
|
|
46
46
|
/** One entry of the `data` array POSTed to `/v1/{tagId}/events`. */
|
|
47
|
-
interface MicrosoftEvent {
|
|
47
|
+
export interface MicrosoftEvent {
|
|
48
48
|
eventType: 'custom' | 'pageLoad';
|
|
49
49
|
eventId: string;
|
|
50
50
|
/** The UET action; absent on `pageLoad` events. */
|
|
@@ -61,7 +61,7 @@ interface MicrosoftEvent {
|
|
|
61
61
|
userData: MicrosoftUserData;
|
|
62
62
|
customData?: MicrosoftCustomData;
|
|
63
63
|
}
|
|
64
|
-
interface MicrosoftConversionsOptions {
|
|
64
|
+
export interface MicrosoftConversionsOptions {
|
|
65
65
|
/**
|
|
66
66
|
* EEA/UK/CH consent for the whole batch. `denied` events are accepted but used for nothing —
|
|
67
67
|
* no attribution, no audiences. Absent means granted, which is also the API's default.
|
|
@@ -88,7 +88,7 @@ interface MicrosoftConversionsOptions {
|
|
|
88
88
|
*/
|
|
89
89
|
continueOnValidationError?: boolean;
|
|
90
90
|
}
|
|
91
|
-
interface MicrosoftValidationDetail {
|
|
91
|
+
export interface MicrosoftValidationDetail {
|
|
92
92
|
index?: number;
|
|
93
93
|
propertyName?: string;
|
|
94
94
|
attemptedValue?: unknown;
|
|
@@ -96,7 +96,7 @@ interface MicrosoftValidationDetail {
|
|
|
96
96
|
errorCode?: string;
|
|
97
97
|
isWarning?: boolean;
|
|
98
98
|
}
|
|
99
|
-
interface MicrosoftConversionsResponse {
|
|
99
|
+
export interface MicrosoftConversionsResponse {
|
|
100
100
|
eventsReceived?: number;
|
|
101
101
|
error?: {
|
|
102
102
|
code?: string;
|
|
@@ -109,8 +109,8 @@ interface MicrosoftConversionsResponse {
|
|
|
109
109
|
* send those, see `MicrosoftConversionsOptions.pageLoads`); everything else is a `custom` event
|
|
110
110
|
* named after the track event, which is also the UET action the browser sent.
|
|
111
111
|
*/
|
|
112
|
-
type MicrosoftEventOptions = Pick<MicrosoftConversionsOptions, 'consent' | 'pageLoads'>;
|
|
113
|
-
declare function getServerEvent(event: TrackEvent<any>, data?: UserProvidedData,
|
|
112
|
+
export type MicrosoftEventOptions = Pick<MicrosoftConversionsOptions, 'consent' | 'pageLoads'>;
|
|
113
|
+
export declare function getServerEvent(event: TrackEvent<any>, data?: UserProvidedData,
|
|
114
114
|
/** Options, or — the 8.3.0 signature, still accepted — the bare consent value. */
|
|
115
115
|
options?: MicrosoftEventOptions | MicrosoftEventOptions['consent']): MicrosoftEvent;
|
|
116
116
|
/**
|
|
@@ -118,7 +118,6 @@ options?: MicrosoftEventOptions | MicrosoftEventOptions['consent']): MicrosoftEv
|
|
|
118
118
|
* into consecutive requests; one response is returned per request made. Never throws: an HTTP
|
|
119
119
|
* or network failure is logged (without the token) and yields no response for that request.
|
|
120
120
|
*/
|
|
121
|
-
declare function sendEvents(token: string, tagId: string | number, events: TrackEvent<any>[], data?: UserProvidedData, options?: MicrosoftConversionsOptions): Promise<MicrosoftConversionsResponse[]>;
|
|
121
|
+
export declare function sendEvents(token: string, tagId: string | number, events: TrackEvent<any>[], data?: UserProvidedData, options?: MicrosoftConversionsOptions): Promise<MicrosoftConversionsResponse[]>;
|
|
122
122
|
//#endregion
|
|
123
|
-
export { MicrosoftConversionsOptions, MicrosoftConversionsResponse, MicrosoftCustomData, MicrosoftEvent, MicrosoftEventOptions, MicrosoftItem, MicrosoftUserData, MicrosoftValidationDetail, getServerEvent, normalizeEmail, sendEvents };
|
|
124
123
|
//# sourceMappingURL=microsoft-conversions-api.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"microsoft-conversions-api.d.cts","names":[],"sources":["../../src/server/microsoft-conversions-api.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"microsoft-conversions-api.d.cts","names":[],"sources":["../../src/server/microsoft-conversions-api.ts"],"mappings":";;;;;;;;wBAwCgB,eAAe;iBA2Bd;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;EACA;;;iBAIe;EACf;EACA;;EAEA;;EAEA;EACA;;EAEA;EACA;EACA;;EAEA;EACA,UAAU;EACV,aAAa;;iBAGE;;;;;EAKf;;;;;;;;;;;;EAYA;;EAEA;;;;;;EAMA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;IAAU;IAAe;IAAkB,UAAU;;;;;;;;YA2D3C,wBAAwB,KAAK;wBAEzB,eAEd,OAAO,iBACP,OAAM,kBAEN;;AAAA,UAAS,wBAAwB,mCAChC;;;;;;wBA+BmB,WACpB,eACA,wBAEA,QAAQ,mBACR,OAAM,kBACN,UAAS,8BACR,QAAQ"}
|
|
@@ -6,8 +6,8 @@ import { TrackEvent, UserProvidedData } from "../track/types.mjs";
|
|
|
6
6
|
* already a SHA-256 hex digest passes through.
|
|
7
7
|
* https://learn.microsoft.com/en-us/advertising/guides/uet-conversion-api-integration#hashed-identifiers
|
|
8
8
|
*/
|
|
9
|
-
declare function normalizeEmail(input: string): string;
|
|
10
|
-
interface MicrosoftUserData {
|
|
9
|
+
export declare function normalizeEmail(input: string): string;
|
|
10
|
+
export interface MicrosoftUserData {
|
|
11
11
|
/** Microsoft click id, as a dashed UUID. */
|
|
12
12
|
msclkid?: string;
|
|
13
13
|
/** SHA-256 of the normalized email. */
|
|
@@ -23,13 +23,13 @@ interface MicrosoftUserData {
|
|
|
23
23
|
idfa?: string;
|
|
24
24
|
gaid?: string;
|
|
25
25
|
}
|
|
26
|
-
interface MicrosoftItem {
|
|
26
|
+
export interface MicrosoftItem {
|
|
27
27
|
id?: string;
|
|
28
28
|
name?: string;
|
|
29
29
|
price?: number;
|
|
30
30
|
quantity?: number;
|
|
31
31
|
}
|
|
32
|
-
interface MicrosoftCustomData {
|
|
32
|
+
export interface MicrosoftCustomData {
|
|
33
33
|
eventCategory?: string;
|
|
34
34
|
eventLabel?: string;
|
|
35
35
|
eventValue?: number;
|
|
@@ -44,7 +44,7 @@ interface MicrosoftCustomData {
|
|
|
44
44
|
ecommCategory?: string;
|
|
45
45
|
}
|
|
46
46
|
/** One entry of the `data` array POSTed to `/v1/{tagId}/events`. */
|
|
47
|
-
interface MicrosoftEvent {
|
|
47
|
+
export interface MicrosoftEvent {
|
|
48
48
|
eventType: 'custom' | 'pageLoad';
|
|
49
49
|
eventId: string;
|
|
50
50
|
/** The UET action; absent on `pageLoad` events. */
|
|
@@ -61,7 +61,7 @@ interface MicrosoftEvent {
|
|
|
61
61
|
userData: MicrosoftUserData;
|
|
62
62
|
customData?: MicrosoftCustomData;
|
|
63
63
|
}
|
|
64
|
-
interface MicrosoftConversionsOptions {
|
|
64
|
+
export interface MicrosoftConversionsOptions {
|
|
65
65
|
/**
|
|
66
66
|
* EEA/UK/CH consent for the whole batch. `denied` events are accepted but used for nothing —
|
|
67
67
|
* no attribution, no audiences. Absent means granted, which is also the API's default.
|
|
@@ -88,7 +88,7 @@ interface MicrosoftConversionsOptions {
|
|
|
88
88
|
*/
|
|
89
89
|
continueOnValidationError?: boolean;
|
|
90
90
|
}
|
|
91
|
-
interface MicrosoftValidationDetail {
|
|
91
|
+
export interface MicrosoftValidationDetail {
|
|
92
92
|
index?: number;
|
|
93
93
|
propertyName?: string;
|
|
94
94
|
attemptedValue?: unknown;
|
|
@@ -96,7 +96,7 @@ interface MicrosoftValidationDetail {
|
|
|
96
96
|
errorCode?: string;
|
|
97
97
|
isWarning?: boolean;
|
|
98
98
|
}
|
|
99
|
-
interface MicrosoftConversionsResponse {
|
|
99
|
+
export interface MicrosoftConversionsResponse {
|
|
100
100
|
eventsReceived?: number;
|
|
101
101
|
error?: {
|
|
102
102
|
code?: string;
|
|
@@ -109,8 +109,8 @@ interface MicrosoftConversionsResponse {
|
|
|
109
109
|
* send those, see `MicrosoftConversionsOptions.pageLoads`); everything else is a `custom` event
|
|
110
110
|
* named after the track event, which is also the UET action the browser sent.
|
|
111
111
|
*/
|
|
112
|
-
type MicrosoftEventOptions = Pick<MicrosoftConversionsOptions, 'consent' | 'pageLoads'>;
|
|
113
|
-
declare function getServerEvent(event: TrackEvent<any>, data?: UserProvidedData,
|
|
112
|
+
export type MicrosoftEventOptions = Pick<MicrosoftConversionsOptions, 'consent' | 'pageLoads'>;
|
|
113
|
+
export declare function getServerEvent(event: TrackEvent<any>, data?: UserProvidedData,
|
|
114
114
|
/** Options, or — the 8.3.0 signature, still accepted — the bare consent value. */
|
|
115
115
|
options?: MicrosoftEventOptions | MicrosoftEventOptions['consent']): MicrosoftEvent;
|
|
116
116
|
/**
|
|
@@ -118,7 +118,6 @@ options?: MicrosoftEventOptions | MicrosoftEventOptions['consent']): MicrosoftEv
|
|
|
118
118
|
* into consecutive requests; one response is returned per request made. Never throws: an HTTP
|
|
119
119
|
* or network failure is logged (without the token) and yields no response for that request.
|
|
120
120
|
*/
|
|
121
|
-
declare function sendEvents(token: string, tagId: string | number, events: TrackEvent<any>[], data?: UserProvidedData, options?: MicrosoftConversionsOptions): Promise<MicrosoftConversionsResponse[]>;
|
|
121
|
+
export declare function sendEvents(token: string, tagId: string | number, events: TrackEvent<any>[], data?: UserProvidedData, options?: MicrosoftConversionsOptions): Promise<MicrosoftConversionsResponse[]>;
|
|
122
122
|
//#endregion
|
|
123
|
-
export { MicrosoftConversionsOptions, MicrosoftConversionsResponse, MicrosoftCustomData, MicrosoftEvent, MicrosoftEventOptions, MicrosoftItem, MicrosoftUserData, MicrosoftValidationDetail, getServerEvent, normalizeEmail, sendEvents };
|
|
124
123
|
//# sourceMappingURL=microsoft-conversions-api.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"microsoft-conversions-api.d.mts","names":[],"sources":["../../src/server/microsoft-conversions-api.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"microsoft-conversions-api.d.mts","names":[],"sources":["../../src/server/microsoft-conversions-api.ts"],"mappings":";;;;;;;;wBAwCgB,eAAe;iBA2Bd;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;EACA;;;iBAIe;EACf;EACA;;EAEA;;EAEA;EACA;;EAEA;EACA;EACA;;EAEA;EACA,UAAU;EACV,aAAa;;iBAGE;;;;;EAKf;;;;;;;;;;;;EAYA;;EAEA;;;;;;EAMA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;IAAU;IAAe;IAAkB,UAAU;;;;;;;;YA2D3C,wBAAwB,KAAK;wBAEzB,eAEd,OAAO,iBACP,OAAM,kBAEN;;AAAA,UAAS,wBAAwB,mCAChC;;;;;;wBA+BmB,WACpB,eACA,wBAEA,QAAQ,mBACR,OAAM,kBACN,UAAS,8BACR,QAAQ"}
|
|
@@ -7,7 +7,7 @@ type ActionSource = 'web' | 'mobile_app' | 'offline' | 'physical_store' | 'phone
|
|
|
7
7
|
* User/identity fields. Email and external id must be sent as lowercase 64-char SHA-256 hex
|
|
8
8
|
* strings; geographic, IP, and user-agent fields are sent as raw values.
|
|
9
9
|
*/
|
|
10
|
-
interface OpenAIUser {
|
|
10
|
+
export interface OpenAIUser {
|
|
11
11
|
email_sha256?: string;
|
|
12
12
|
external_id_sha256?: string;
|
|
13
13
|
/** Two-letter ISO 3166-1 country code (e.g. "US"). */
|
|
@@ -17,7 +17,7 @@ interface OpenAIUser {
|
|
|
17
17
|
ip_address?: string;
|
|
18
18
|
user_agent?: string;
|
|
19
19
|
}
|
|
20
|
-
interface OpenAIEvent {
|
|
20
|
+
export interface OpenAIEvent {
|
|
21
21
|
/** Unique event id; combined with `type` for deduplication against pixel events. */
|
|
22
22
|
id: string;
|
|
23
23
|
/** Standard event name or `custom`. */
|
|
@@ -36,13 +36,12 @@ interface OpenAIEvent {
|
|
|
36
36
|
user?: OpenAIUser;
|
|
37
37
|
data: EventData;
|
|
38
38
|
}
|
|
39
|
-
interface CreateOpenAIEventsDTO {
|
|
39
|
+
export interface CreateOpenAIEventsDTO {
|
|
40
40
|
/** When true, validates the events without persisting them. */
|
|
41
41
|
validate_only?: boolean;
|
|
42
42
|
events: OpenAIEvent[];
|
|
43
43
|
}
|
|
44
|
-
declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): OpenAIEvent;
|
|
45
|
-
declare function sendEvents(apiKey: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, validateOnly?: boolean, actionSource?: EventActionSource): Promise<void>;
|
|
44
|
+
export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): OpenAIEvent;
|
|
45
|
+
export declare function sendEvents(apiKey: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, validateOnly?: boolean, actionSource?: EventActionSource): Promise<void>;
|
|
46
46
|
//#endregion
|
|
47
|
-
export { CreateOpenAIEventsDTO, OpenAIEvent, OpenAIUser, getServerEvent, sendEvents };
|
|
48
47
|
//# sourceMappingURL=openai-conversions-api.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai-conversions-api.d.cts","names":[],"sources":["../../src/server/openai-conversions-api.ts"],"mappings":";;;;KAgBK;;;;;
|
|
1
|
+
{"version":3,"file":"openai-conversions-api.d.cts","names":[],"sources":["../../src/server/openai-conversions-api.ts"],"mappings":";;;;KAgBK;;;;;iBAaY;EACf;EACA;;EAEA;EACA;EACA;EACA;EACA;;iBAGe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;EACA,gBAAgB;;EAEhB;;EAEA;EACA,OAAO;EACP,MAAM;;iBAGS;;EAEf;EACA,QAAQ;;wBAwCM,eAEd,OAAO,iBACP,MAAM,kBACN,eAAe,oBACd;wBAiBmB,WACpB,gBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,wBACA,eAAe,oBAAiB"}
|
|
@@ -7,7 +7,7 @@ type ActionSource = 'web' | 'mobile_app' | 'offline' | 'physical_store' | 'phone
|
|
|
7
7
|
* User/identity fields. Email and external id must be sent as lowercase 64-char SHA-256 hex
|
|
8
8
|
* strings; geographic, IP, and user-agent fields are sent as raw values.
|
|
9
9
|
*/
|
|
10
|
-
interface OpenAIUser {
|
|
10
|
+
export interface OpenAIUser {
|
|
11
11
|
email_sha256?: string;
|
|
12
12
|
external_id_sha256?: string;
|
|
13
13
|
/** Two-letter ISO 3166-1 country code (e.g. "US"). */
|
|
@@ -17,7 +17,7 @@ interface OpenAIUser {
|
|
|
17
17
|
ip_address?: string;
|
|
18
18
|
user_agent?: string;
|
|
19
19
|
}
|
|
20
|
-
interface OpenAIEvent {
|
|
20
|
+
export interface OpenAIEvent {
|
|
21
21
|
/** Unique event id; combined with `type` for deduplication against pixel events. */
|
|
22
22
|
id: string;
|
|
23
23
|
/** Standard event name or `custom`. */
|
|
@@ -36,13 +36,12 @@ interface OpenAIEvent {
|
|
|
36
36
|
user?: OpenAIUser;
|
|
37
37
|
data: EventData;
|
|
38
38
|
}
|
|
39
|
-
interface CreateOpenAIEventsDTO {
|
|
39
|
+
export interface CreateOpenAIEventsDTO {
|
|
40
40
|
/** When true, validates the events without persisting them. */
|
|
41
41
|
validate_only?: boolean;
|
|
42
42
|
events: OpenAIEvent[];
|
|
43
43
|
}
|
|
44
|
-
declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): OpenAIEvent;
|
|
45
|
-
declare function sendEvents(apiKey: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, validateOnly?: boolean, actionSource?: EventActionSource): Promise<void>;
|
|
44
|
+
export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): OpenAIEvent;
|
|
45
|
+
export declare function sendEvents(apiKey: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, validateOnly?: boolean, actionSource?: EventActionSource): Promise<void>;
|
|
46
46
|
//#endregion
|
|
47
|
-
export { CreateOpenAIEventsDTO, OpenAIEvent, OpenAIUser, getServerEvent, sendEvents };
|
|
48
47
|
//# sourceMappingURL=openai-conversions-api.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai-conversions-api.d.mts","names":[],"sources":["../../src/server/openai-conversions-api.ts"],"mappings":";;;;KAgBK;;;;;
|
|
1
|
+
{"version":3,"file":"openai-conversions-api.d.mts","names":[],"sources":["../../src/server/openai-conversions-api.ts"],"mappings":";;;;KAgBK;;;;;iBAaY;EACf;EACA;;EAEA;EACA;EACA;EACA;EACA;;iBAGe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;EACA,gBAAgB;;EAEhB;;EAEA;EACA,OAAO;EACP,MAAM;;iBAGS;;EAEf;EACA,QAAQ;;wBAwCM,eAEd,OAAO,iBACP,MAAM,kBACN,eAAe,oBACd;wBAiBmB,WACpB,gBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,wBACA,eAAe,oBAAiB"}
|
|
@@ -13,7 +13,6 @@ import { TrackTags } from "../track/types.cjs";
|
|
|
13
13
|
* inline `tags.page_location` at both call sites once no client is sending the old name —
|
|
14
14
|
* a month of cache lifetime is the usual bound, and stored rows can be checked for it.
|
|
15
15
|
*/
|
|
16
|
-
declare function pageLocation(tags: TrackTags): string | undefined;
|
|
16
|
+
export declare function pageLocation(tags: TrackTags): string | undefined;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { pageLocation };
|
|
19
18
|
//# sourceMappingURL=page-location.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-location.d.cts","names":[],"sources":["../../src/server/page-location.ts"],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"page-location.d.cts","names":[],"sources":["../../src/server/page-location.ts"],"mappings":";;;;;;;;;;;;;;;wBAegB,aAAa,MAAM"}
|
|
@@ -13,7 +13,6 @@ import { TrackTags } from "../track/types.mjs";
|
|
|
13
13
|
* inline `tags.page_location` at both call sites once no client is sending the old name —
|
|
14
14
|
* a month of cache lifetime is the usual bound, and stored rows can be checked for it.
|
|
15
15
|
*/
|
|
16
|
-
declare function pageLocation(tags: TrackTags): string | undefined;
|
|
16
|
+
export declare function pageLocation(tags: TrackTags): string | undefined;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { pageLocation };
|
|
19
18
|
//# sourceMappingURL=page-location.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-location.d.mts","names":[],"sources":["../../src/server/page-location.ts"],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"page-location.d.mts","names":[],"sources":["../../src/server/page-location.ts"],"mappings":";;;;;;;;;;;;;;;wBAegB,aAAa,MAAM"}
|
|
@@ -6,7 +6,7 @@ import { EventActionSource } from "./action-source.cjs";
|
|
|
6
6
|
* https://ads-api.reddit.com/docs/v3/operations/Post%20Conversion%20Events
|
|
7
7
|
* https://business.reddithelp.com/s/article/map-a-catalog-to-a-signal-source
|
|
8
8
|
*/
|
|
9
|
-
interface RedditEvent {
|
|
9
|
+
export interface RedditEvent {
|
|
10
10
|
/** Match keys: Share user identifiers to match conversions to a Reddit ad engagement. */
|
|
11
11
|
click_id?: string;
|
|
12
12
|
/** Unix epoch timestamp in milliseconds, event_at can't be older than seven days. */
|
|
@@ -63,14 +63,13 @@ interface RedditEvent {
|
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
interface CreateRedditEventDTO {
|
|
66
|
+
export interface CreateRedditEventDTO {
|
|
67
67
|
data: {
|
|
68
68
|
test_id?: string;
|
|
69
69
|
events: RedditEvent[];
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): RedditEvent;
|
|
73
|
-
declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, testId?: string, actionSource?: EventActionSource): Promise<void>;
|
|
72
|
+
export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): RedditEvent;
|
|
73
|
+
export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, testId?: string, actionSource?: EventActionSource): Promise<void>;
|
|
74
74
|
//#endregion
|
|
75
|
-
export { CreateRedditEventDTO, RedditEvent, getServerEvent, sendEvents };
|
|
76
75
|
//# sourceMappingURL=reddit-conversions-api.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reddit-conversions-api.d.cts","names":[],"sources":["../../src/server/reddit-conversions-api.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"reddit-conversions-api.d.cts","names":[],"sources":["../../src/server/reddit-conversions-api.ts"],"mappings":";;;;;;;;iBAWiB;;EAEf;;EAGA;EAEA;EAEA;IACE,eAAe;IACf;;;;;;;EAQF;IACE;IACA;IACA;IACA;IACA;MAAa;MAAY;MAAe;;;EAG1C;IACE;IACA;IACA;IACA;IACA;;IAGA;;IAGA;;;;;;IAMA;IAEA;MAAsB;MAAe;;;;;;IAMrC;MACE;MACA;MACA;;;;iBAKW;EACf;IAAQ;IAAkB,QAAQ;;;wBAGpB,eAEd,OAAO,iBACP,MAAM,kBACN,eAAe,oBACd;wBAgDmB,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,iBACA,eAAe,oBAAiB"}
|
|
@@ -6,7 +6,7 @@ import { EventActionSource } from "./action-source.mjs";
|
|
|
6
6
|
* https://ads-api.reddit.com/docs/v3/operations/Post%20Conversion%20Events
|
|
7
7
|
* https://business.reddithelp.com/s/article/map-a-catalog-to-a-signal-source
|
|
8
8
|
*/
|
|
9
|
-
interface RedditEvent {
|
|
9
|
+
export interface RedditEvent {
|
|
10
10
|
/** Match keys: Share user identifiers to match conversions to a Reddit ad engagement. */
|
|
11
11
|
click_id?: string;
|
|
12
12
|
/** Unix epoch timestamp in milliseconds, event_at can't be older than seven days. */
|
|
@@ -63,14 +63,13 @@ interface RedditEvent {
|
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
interface CreateRedditEventDTO {
|
|
66
|
+
export interface CreateRedditEventDTO {
|
|
67
67
|
data: {
|
|
68
68
|
test_id?: string;
|
|
69
69
|
events: RedditEvent[];
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): RedditEvent;
|
|
73
|
-
declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, testId?: string, actionSource?: EventActionSource): Promise<void>;
|
|
72
|
+
export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): RedditEvent;
|
|
73
|
+
export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, testId?: string, actionSource?: EventActionSource): Promise<void>;
|
|
74
74
|
//#endregion
|
|
75
|
-
export { CreateRedditEventDTO, RedditEvent, getServerEvent, sendEvents };
|
|
76
75
|
//# sourceMappingURL=reddit-conversions-api.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reddit-conversions-api.d.mts","names":[],"sources":["../../src/server/reddit-conversions-api.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"reddit-conversions-api.d.mts","names":[],"sources":["../../src/server/reddit-conversions-api.ts"],"mappings":";;;;;;;;iBAWiB;;EAEf;;EAGA;EAEA;EAEA;IACE,eAAe;IACf;;;;;;;EAQF;IACE;IACA;IACA;IACA;IACA;MAAa;MAAY;MAAe;;;EAG1C;IACE;IACA;IACA;IACA;IACA;;IAGA;;IAGA;;;;;;IAMA;IAEA;MAAsB;MAAe;;;;;;IAMrC;MACE;MACA;MACA;;;;iBAKW;EACf;IAAQ;IAAkB,QAAQ;;;wBAGpB,eAEd,OAAO,iBACP,MAAM,kBACN,eAAe,oBACd;wBAgDmB,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,iBACA,eAAe,oBAAiB"}
|
package/dist/setup/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Environment, Platform, ThirdPartyTracker, TrackTags } from "../track/types.cjs";
|
|
2
2
|
import { ThirdPartyUserSetter, Visitor } from "../visitor/types.cjs";
|
|
3
3
|
//#region src/setup/index.d.ts
|
|
4
|
-
interface Storage {
|
|
4
|
+
export interface Storage {
|
|
5
5
|
getItem: (key: string) => string | null;
|
|
6
6
|
setItem: (key: string, value: string) => void;
|
|
7
7
|
}
|
|
8
|
-
interface Options {
|
|
8
|
+
export interface Options {
|
|
9
9
|
release: string;
|
|
10
10
|
storage: Storage;
|
|
11
11
|
endpoint: string;
|
|
@@ -33,9 +33,8 @@ interface Cache {
|
|
|
33
33
|
tags: TrackTags | null;
|
|
34
34
|
visitor: Visitor | null;
|
|
35
35
|
}
|
|
36
|
-
declare const cache: Cache;
|
|
37
|
-
declare const config: Config;
|
|
38
|
-
declare function setupAnalytics(init: Options): void;
|
|
36
|
+
export declare const cache: Cache;
|
|
37
|
+
export declare const config: Config;
|
|
38
|
+
export declare function setupAnalytics(init: Options): void;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { Options, Storage, cache, config, setupAnalytics };
|
|
41
40
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/setup/index.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/setup/index.ts"],"mappings":";;;iBAGiB;EACf,UAAU;EACV,UAAU,aAAa;;iBAGR;EACf;EACA,SAAS;EACT;EACA,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,mBAAmB,yBAAyB,QAAQ;EACpD,qBAAqB;EACrB,wBAAwB;;UAGhB;EACR;EACA;EACA,SAAS;EACT,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,kBAAkB,yBAAyB,QAAQ;EACnD,oBAAoB;EACpB,uBAAuB;;UAGf;EACR,MAAM;EACN,SAAS;;qBAGE,OAAO;qBAMP,QAAQ;wBAcL,eAAe,MAAM"}
|
package/dist/setup/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Environment, Platform, ThirdPartyTracker, TrackTags } from "../track/types.mjs";
|
|
2
2
|
import { ThirdPartyUserSetter, Visitor } from "../visitor/types.mjs";
|
|
3
3
|
//#region src/setup/index.d.ts
|
|
4
|
-
interface Storage {
|
|
4
|
+
export interface Storage {
|
|
5
5
|
getItem: (key: string) => string | null;
|
|
6
6
|
setItem: (key: string, value: string) => void;
|
|
7
7
|
}
|
|
8
|
-
interface Options {
|
|
8
|
+
export interface Options {
|
|
9
9
|
release: string;
|
|
10
10
|
storage: Storage;
|
|
11
11
|
endpoint: string;
|
|
@@ -33,9 +33,8 @@ interface Cache {
|
|
|
33
33
|
tags: TrackTags | null;
|
|
34
34
|
visitor: Visitor | null;
|
|
35
35
|
}
|
|
36
|
-
declare const cache: Cache;
|
|
37
|
-
declare const config: Config;
|
|
38
|
-
declare function setupAnalytics(init: Options): void;
|
|
36
|
+
export declare const cache: Cache;
|
|
37
|
+
export declare const config: Config;
|
|
38
|
+
export declare function setupAnalytics(init: Options): void;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { Options, Storage, cache, config, setupAnalytics };
|
|
41
40
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/setup/index.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/setup/index.ts"],"mappings":";;;iBAGiB;EACf,UAAU;EACV,UAAU,aAAa;;iBAGR;EACf;EACA,SAAS;EACT;EACA,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,mBAAmB,yBAAyB,QAAQ;EACpD,qBAAqB;EACrB,wBAAwB;;UAGhB;EACR;EACA;EACA,SAAS;EACT,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,kBAAkB,yBAAyB,QAAQ;EACnD,oBAAoB;EACpB,uBAAuB;;UAGf;EACR,MAAM;EACN,SAAS;;qBAGE,OAAO;qBAMP,QAAQ;wBAcL,eAAe,MAAM"}
|
package/dist/setup/session.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/setup/session.d.ts
|
|
2
|
-
declare const SESSION_TIMEOUT: number;
|
|
2
|
+
export declare const SESSION_TIMEOUT: number;
|
|
3
3
|
/** The session an event belongs to, and whether that event is the one that started it. */
|
|
4
4
|
interface SessionForEvent {
|
|
5
5
|
id: string;
|
|
@@ -68,7 +68,6 @@ declare class Session {
|
|
|
68
68
|
* module singletons, so calling `track()` on a server shares one session and one
|
|
69
69
|
* visitor across every request the isolate serves. Import it there; do not track.
|
|
70
70
|
*/
|
|
71
|
-
declare function getSession(): Session;
|
|
71
|
+
export declare function getSession(): Session;
|
|
72
72
|
//#endregion
|
|
73
|
-
export { SESSION_TIMEOUT, getSession };
|
|
74
73
|
//# sourceMappingURL=session.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.cts","names":[],"sources":["../../src/setup/session.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"session.d.cts","names":[],"sources":["../../src/setup/session.ts"],"mappings":";qBAIa;;UAiBH;EACR;EACA;;cA8BI;;;;;;;;;UASI;UACA;UAEA;UACA;UACA;EAER;;;;;;;EAeA,QAAK,mBAAqB,2BAA8B;;;;;;;EA4BxD;EAWA;EAEA,eAAY;EAIZ;EAWA;EAKA;EAKA;EAKA;EAKA,mBAAgB,OAAW;EAK3B;;;;;;;;;;;;;;;;;;;;;;;;;;wBAkCc,cAAU"}
|
package/dist/setup/session.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/setup/session.d.ts
|
|
2
|
-
declare const SESSION_TIMEOUT: number;
|
|
2
|
+
export declare const SESSION_TIMEOUT: number;
|
|
3
3
|
/** The session an event belongs to, and whether that event is the one that started it. */
|
|
4
4
|
interface SessionForEvent {
|
|
5
5
|
id: string;
|
|
@@ -68,7 +68,6 @@ declare class Session {
|
|
|
68
68
|
* module singletons, so calling `track()` on a server shares one session and one
|
|
69
69
|
* visitor across every request the isolate serves. Import it there; do not track.
|
|
70
70
|
*/
|
|
71
|
-
declare function getSession(): Session;
|
|
71
|
+
export declare function getSession(): Session;
|
|
72
72
|
//#endregion
|
|
73
|
-
export { SESSION_TIMEOUT, getSession };
|
|
74
73
|
//# sourceMappingURL=session.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.mts","names":[],"sources":["../../src/setup/session.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"session.d.mts","names":[],"sources":["../../src/setup/session.ts"],"mappings":";qBAIa;;UAiBH;EACR;EACA;;cA8BI;;;;;;;;;UASI;UACA;UAEA;UACA;UACA;EAER;;;;;;;EAeA,QAAK,mBAAqB,2BAA8B;;;;;;;EA4BxD;EAWA;EAEA,eAAY;EAIZ;EAWA;EAKA;EAKA;EAKA;EAKA,mBAAgB,OAAW;EAK3B;;;;;;;;;;;;;;;;;;;;;;;;;;wBAkCc,cAAU"}
|
|
@@ -20,7 +20,6 @@ interface Props {
|
|
|
20
20
|
debugMode?: boolean;
|
|
21
21
|
reportWebVitals?: boolean;
|
|
22
22
|
}
|
|
23
|
-
declare function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, openaiPixelId, redditPixelId, linkedInPartnerId, uetTagId, uetCustomerId, hotjarId, facebookAppId, reportWebVitals }: Props): import("react").JSX.Element;
|
|
23
|
+
export declare function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, openaiPixelId, redditPixelId, linkedInPartnerId, uetTagId, uetCustomerId, hotjarId, facebookAppId, reportWebVitals }: Props): import("react").JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { Analytics };
|
|
26
25
|
//# sourceMappingURL=analytics.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.cts","names":[],"sources":["../../src/tanstack/analytics.tsx"],"mappings":";;;;UAUU;EACR,OAAO;EACP;EACA,QAAQ;EACR,
|
|
1
|
+
{"version":3,"file":"analytics.d.cts","names":["MetaPixelId","RedditPixelId"],"sources":["../../src/tanstack/analytics.tsx"],"mappings":";;;;UAUU;EACR,OAAO;EACP;EACA,QAAQ;EACR,cAAcA;EACd;EACA,gBAAgBC;EAChB;;EAEA;;EAEA;EACA;EACA;EACA;EACA;EACA;;wBAGc,YACd,MACA,OACA,OACA,WACA,aACA,eACA,eACA,mBACA,UACA,eACA,UACA,eACA,mBACC,wBAAK,IAAA"}
|