@shware/analytics 8.16.0 → 9.0.1
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 +28 -4
- package/dist/attribution/classify.cjs +6 -6
- package/dist/attribution/classify.cjs.map +1 -1
- package/dist/attribution/classify.mjs +6 -6
- package/dist/attribution/classify.mjs.map +1 -1
- package/dist/attribution/vocabulary.cjs +3 -4
- package/dist/attribution/vocabulary.cjs.map +1 -1
- package/dist/attribution/vocabulary.d.cts +3 -4
- package/dist/attribution/vocabulary.d.cts.map +1 -1
- package/dist/attribution/vocabulary.d.mts +3 -4
- package/dist/attribution/vocabulary.d.mts.map +1 -1
- package/dist/attribution/vocabulary.mjs +3 -4
- package/dist/attribution/vocabulary.mjs.map +1 -1
- package/dist/click-id/index.cjs +24 -6
- package/dist/click-id/index.cjs.map +1 -1
- package/dist/click-id/index.d.cts +14 -3
- package/dist/click-id/index.d.cts.map +1 -1
- package/dist/click-id/index.d.mts +14 -3
- package/dist/click-id/index.d.mts.map +1 -1
- package/dist/click-id/index.mjs +23 -7
- package/dist/click-id/index.mjs.map +1 -1
- package/dist/hooks/use-web-analytics.cjs +5 -1
- package/dist/hooks/use-web-analytics.cjs.map +1 -1
- package/dist/hooks/use-web-analytics.d.cts.map +1 -1
- package/dist/hooks/use-web-analytics.d.mts.map +1 -1
- package/dist/hooks/use-web-analytics.mjs +6 -2
- package/dist/hooks/use-web-analytics.mjs.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/schema/index.cjs +25 -9
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +114 -54
- package/dist/schema/index.d.cts.map +1 -1
- package/dist/schema/index.d.mts +114 -54
- package/dist/schema/index.d.mts.map +1 -1
- package/dist/schema/index.mjs +25 -9
- package/dist/schema/index.mjs.map +1 -1
- package/dist/server/click-ids.cjs +93 -0
- package/dist/server/click-ids.cjs.map +1 -0
- package/dist/server/click-ids.d.cts +40 -0
- package/dist/server/click-ids.d.cts.map +1 -0
- package/dist/server/click-ids.d.mts +40 -0
- package/dist/server/click-ids.d.mts.map +1 -0
- package/dist/server/click-ids.mjs +85 -0
- package/dist/server/click-ids.mjs.map +1 -0
- package/dist/server/google-data-manager.cjs +2 -1
- package/dist/server/google-data-manager.cjs.map +1 -1
- package/dist/server/google-data-manager.d.cts.map +1 -1
- package/dist/server/google-data-manager.d.mts.map +1 -1
- package/dist/server/google-data-manager.mjs +2 -1
- package/dist/server/google-data-manager.mjs.map +1 -1
- package/dist/server/linkedin-conversions-api.cjs +9 -4
- package/dist/server/linkedin-conversions-api.cjs.map +1 -1
- package/dist/server/linkedin-conversions-api.d.cts.map +1 -1
- package/dist/server/linkedin-conversions-api.d.mts.map +1 -1
- package/dist/server/linkedin-conversions-api.mjs +9 -4
- package/dist/server/linkedin-conversions-api.mjs.map +1 -1
- package/dist/server/meta-capi.cjs +5 -4
- package/dist/server/meta-capi.cjs.map +1 -1
- package/dist/server/meta-capi.mjs +5 -4
- package/dist/server/meta-capi.mjs.map +1 -1
- package/dist/server/meta-conversions-api.cjs +5 -4
- package/dist/server/meta-conversions-api.cjs.map +1 -1
- package/dist/server/meta-conversions-api.d.cts.map +1 -1
- package/dist/server/meta-conversions-api.d.mts.map +1 -1
- package/dist/server/meta-conversions-api.mjs +5 -4
- package/dist/server/meta-conversions-api.mjs.map +1 -1
- package/dist/server/microsoft-conversions-api.cjs +3 -1
- package/dist/server/microsoft-conversions-api.cjs.map +1 -1
- package/dist/server/microsoft-conversions-api.d.cts.map +1 -1
- package/dist/server/microsoft-conversions-api.d.mts.map +1 -1
- package/dist/server/microsoft-conversions-api.mjs +3 -1
- package/dist/server/microsoft-conversions-api.mjs.map +1 -1
- package/dist/server/openai-conversions-api.cjs +33 -11
- package/dist/server/openai-conversions-api.cjs.map +1 -1
- package/dist/server/openai-conversions-api.d.cts +19 -8
- package/dist/server/openai-conversions-api.d.cts.map +1 -1
- package/dist/server/openai-conversions-api.d.mts +19 -8
- package/dist/server/openai-conversions-api.d.mts.map +1 -1
- package/dist/server/openai-conversions-api.mjs +33 -11
- package/dist/server/openai-conversions-api.mjs.map +1 -1
- package/dist/server/reddit-conversions-api.cjs +3 -2
- package/dist/server/reddit-conversions-api.cjs.map +1 -1
- package/dist/server/reddit-conversions-api.d.cts.map +1 -1
- package/dist/server/reddit-conversions-api.d.mts.map +1 -1
- package/dist/server/reddit-conversions-api.mjs +3 -2
- package/dist/server/reddit-conversions-api.mjs.map +1 -1
- package/dist/setup/session.cjs +1 -1
- package/dist/setup/session.cjs.map +1 -1
- package/dist/setup/session.d.cts +6 -5
- package/dist/setup/session.d.cts.map +1 -1
- package/dist/setup/session.d.mts +6 -5
- package/dist/setup/session.d.mts.map +1 -1
- package/dist/setup/session.mjs +1 -1
- package/dist/setup/session.mjs.map +1 -1
- package/dist/track/index.cjs +156 -89
- package/dist/track/index.cjs.map +1 -1
- package/dist/track/index.d.cts +17 -0
- package/dist/track/index.d.cts.map +1 -1
- package/dist/track/index.d.mts +17 -0
- package/dist/track/index.d.mts.map +1 -1
- package/dist/track/index.mjs +156 -90
- package/dist/track/index.mjs.map +1 -1
- package/dist/track/types.d.cts +48 -16
- package/dist/track/types.d.cts.map +1 -1
- package/dist/track/types.d.mts +48 -16
- package/dist/track/types.d.mts.map +1 -1
- package/dist/web/index.cjs +17 -11
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.d.cts.map +1 -1
- package/dist/web/index.d.mts.map +1 -1
- package/dist/web/index.mjs +17 -11
- package/dist/web/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -5,8 +5,8 @@ import { sendFeedback } from "./feedback/index.cjs";
|
|
|
5
5
|
import { useTrackImpression } from "./hooks/use-track-impression.cjs";
|
|
6
6
|
import { VisitorProperties } from "./visitor/types.cjs";
|
|
7
7
|
import { setupAnalytics } from "./setup/index.cjs";
|
|
8
|
-
import { sendBeacon, track, trackAsync } from "./track/index.cjs";
|
|
8
|
+
import { sendBeacon, sendPendingEvents, track, trackAsync } from "./track/index.cjs";
|
|
9
9
|
import { getVisitor, setVisitor } from "./visitor/index.cjs";
|
|
10
10
|
import { Link, createLink, getLink } from "./link/index.cjs";
|
|
11
11
|
import { stripeMinorUnits } from "./utils/stripe.cjs";
|
|
12
|
-
export { ALL_ENVIRONMENTS, ALL_PLATFORMS, type AllowedPropertyValues, BOT_CATEGORIES, type Bot, type BotCategory, type CreateFeedbackDTO, type CreateLinkDTO, type CustomEventProperties, type Environment, type Link, NOT_A_BOT, type Platform, type TrackProperties, type TrackTags, type UTMParams, type UserProvidedData, type VisitorProperties, botOf, createFeedbackSchema, createLink, createLinkSchema, createTrackEventSchema, createVisitorSchema, getLink, getVisitor, sendBeacon, sendFeedback, setVisitor, setupAnalytics, stripeMinorUnits, track, trackAsync, updateVisitorSchema, useTrackImpression };
|
|
12
|
+
export { ALL_ENVIRONMENTS, ALL_PLATFORMS, type AllowedPropertyValues, BOT_CATEGORIES, type Bot, type BotCategory, type CreateFeedbackDTO, type CreateLinkDTO, type CustomEventProperties, type Environment, type Link, NOT_A_BOT, type Platform, type TrackProperties, type TrackTags, type UTMParams, type UserProvidedData, type VisitorProperties, botOf, createFeedbackSchema, createLink, createLinkSchema, createTrackEventSchema, createVisitorSchema, getLink, getVisitor, sendBeacon, sendFeedback, sendPendingEvents, setVisitor, setupAnalytics, stripeMinorUnits, track, trackAsync, updateVisitorSchema, useTrackImpression };
|
package/dist/index.d.mts
CHANGED
|
@@ -5,8 +5,8 @@ import { sendFeedback } from "./feedback/index.mjs";
|
|
|
5
5
|
import { useTrackImpression } from "./hooks/use-track-impression.mjs";
|
|
6
6
|
import { VisitorProperties } from "./visitor/types.mjs";
|
|
7
7
|
import { setupAnalytics } from "./setup/index.mjs";
|
|
8
|
-
import { sendBeacon, track, trackAsync } from "./track/index.mjs";
|
|
8
|
+
import { sendBeacon, sendPendingEvents, track, trackAsync } from "./track/index.mjs";
|
|
9
9
|
import { getVisitor, setVisitor } from "./visitor/index.mjs";
|
|
10
10
|
import { Link, createLink, getLink } from "./link/index.mjs";
|
|
11
11
|
import { stripeMinorUnits } from "./utils/stripe.mjs";
|
|
12
|
-
export { ALL_ENVIRONMENTS, ALL_PLATFORMS, type AllowedPropertyValues, BOT_CATEGORIES, type Bot, type BotCategory, type CreateFeedbackDTO, type CreateLinkDTO, type CustomEventProperties, type Environment, type Link, NOT_A_BOT, type Platform, type TrackProperties, type TrackTags, type UTMParams, type UserProvidedData, type VisitorProperties, botOf, createFeedbackSchema, createLink, createLinkSchema, createTrackEventSchema, createVisitorSchema, getLink, getVisitor, sendBeacon, sendFeedback, setVisitor, setupAnalytics, stripeMinorUnits, track, trackAsync, updateVisitorSchema, useTrackImpression };
|
|
12
|
+
export { ALL_ENVIRONMENTS, ALL_PLATFORMS, type AllowedPropertyValues, BOT_CATEGORIES, type Bot, type BotCategory, type CreateFeedbackDTO, type CreateLinkDTO, type CustomEventProperties, type Environment, type Link, NOT_A_BOT, type Platform, type TrackProperties, type TrackTags, type UTMParams, type UserProvidedData, type VisitorProperties, botOf, createFeedbackSchema, createLink, createLinkSchema, createTrackEventSchema, createVisitorSchema, getLink, getVisitor, sendBeacon, sendFeedback, sendPendingEvents, setVisitor, setupAnalytics, stripeMinorUnits, track, trackAsync, updateVisitorSchema, useTrackImpression };
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { setupAnalytics } from "./setup/index.mjs";
|
|
2
2
|
import { getVisitor, setVisitor } from "./visitor/index.mjs";
|
|
3
|
-
import { sendBeacon, track, trackAsync } from "./track/index.mjs";
|
|
3
|
+
import { sendBeacon, sendPendingEvents, track, trackAsync } from "./track/index.mjs";
|
|
4
4
|
import { sendFeedback } from "./feedback/index.mjs";
|
|
5
5
|
import { createLink, getLink } from "./link/index.mjs";
|
|
6
6
|
import { ALL_ENVIRONMENTS, ALL_PLATFORMS, createFeedbackSchema, createLinkSchema, createTrackEventSchema, createVisitorSchema, updateVisitorSchema } from "./schema/index.mjs";
|
|
7
7
|
import { BOT_CATEGORIES, NOT_A_BOT, botOf } from "./bot/index.mjs";
|
|
8
8
|
import { stripeMinorUnits } from "./utils/stripe.mjs";
|
|
9
9
|
import { useTrackImpression } from "./hooks/use-track-impression.mjs";
|
|
10
|
-
export { ALL_ENVIRONMENTS, ALL_PLATFORMS, BOT_CATEGORIES, NOT_A_BOT, botOf, createFeedbackSchema, createLink, createLinkSchema, createTrackEventSchema, createVisitorSchema, getLink, getVisitor, sendBeacon, sendFeedback, setVisitor, setupAnalytics, stripeMinorUnits, track, trackAsync, updateVisitorSchema, useTrackImpression };
|
|
10
|
+
export { ALL_ENVIRONMENTS, ALL_PLATFORMS, BOT_CATEGORIES, NOT_A_BOT, botOf, createFeedbackSchema, createLink, createLinkSchema, createTrackEventSchema, createVisitorSchema, getLink, getVisitor, sendBeacon, sendFeedback, sendPendingEvents, setVisitor, setupAnalytics, stripeMinorUnits, track, trackAsync, updateVisitorSchema, useTrackImpression };
|
package/dist/schema/index.cjs
CHANGED
|
@@ -87,8 +87,6 @@ const tagsSchema = (0, zod_mini.object)({
|
|
|
87
87
|
source_url: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
88
88
|
advertising_id: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
89
89
|
install_referrer: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
90
|
-
fbc: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
91
|
-
fbp: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
92
90
|
fbclid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
93
91
|
ad_id: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
94
92
|
ad_name: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
@@ -97,23 +95,41 @@ const tagsSchema = (0, zod_mini.object)({
|
|
|
97
95
|
campaign_id: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
98
96
|
campaign_name: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
99
97
|
placement: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
98
|
+
_fbc: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
99
|
+
_fbp: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated `fbc` / `fbp` / `rdt_uuid` were renamed to `_fbc` / `_fbp` / `_rdt_uuid` in 9.0.0.
|
|
102
|
+
* Accepted so that conversions from clients still on an older SDK keep their match keys; the
|
|
103
|
+
* senders read them only as a fallback (`server/click-ids.ts`). Remove once those clients are
|
|
104
|
+
* gone.
|
|
105
|
+
*/
|
|
106
|
+
fbc: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
107
|
+
fbp: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
108
|
+
rdt_uuid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
100
109
|
gclid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
101
110
|
gclsrc: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
102
111
|
gad_source: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
103
112
|
gad_campaignid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
104
|
-
|
|
105
|
-
|
|
113
|
+
wbraid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
114
|
+
gbraid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
106
115
|
dclid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
107
|
-
|
|
108
|
-
|
|
116
|
+
_gcl_aw: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
117
|
+
_gcl_gb: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
109
118
|
msclkid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
119
|
+
_uetmsclkid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
120
|
+
rdt_cid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
121
|
+
_rdt_cid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
122
|
+
_rdt_uuid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
123
|
+
li_fat_id: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
124
|
+
_li_fat_id: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
125
|
+
oppref: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
126
|
+
__oppref: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
127
|
+
__obref: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
128
|
+
ko_click_id: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
110
129
|
ScCid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
111
130
|
ttclid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
112
131
|
twclid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
113
|
-
wbraid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
114
|
-
gbraid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
115
132
|
yclid: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
116
|
-
oppref: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
117
133
|
epik: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
118
134
|
utm_source: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
119
135
|
utm_medium: (0, zod_mini.optional)((0, zod_mini.string)()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["pipe","string","transform","array","record","union","number","boolean","_null","object","optional","trim","minLength","maxLength","regex","uuid","_enum","iso","toLowerCase","email","e164","toUpperCase","url"],"sources":["../../src/schema/index.ts"],"sourcesContent":["import {\n enum as _enum,\n null as _null,\n array,\n boolean,\n e164,\n email,\n iso,\n maxLength,\n minLength,\n number,\n object,\n optional,\n pipe,\n record,\n regex,\n string,\n toLowerCase,\n toUpperCase,\n transform,\n trim,\n union,\n url,\n uuid,\n type z,\n} from 'zod/mini';\nimport type { Environment, Platform } from '../track/types';\n\nconst MAX_KEY_LENGTH = 128;\nconst MAX_VALUE_LENGTH = 512;\nconst MAX_PROPERTIES = 64;\n\n/**\n * Truncated rather than rejected. These schemas validate a whole batch at once, so refusing one\n * oversized value costs every event that traveled with it — and the values that overrun are the\n * ones derived from the page (a link's text, a URL carrying a long query), which no client can\n * bound in advance. A shortened value is worth more than a lost batch.\n */\nconst propertyText = pipe(\n string(),\n transform((value) => value.slice(0, MAX_VALUE_LENGTH))\n);\n\n/**\n * Keys are written by hand in instrumentation code, so an unusable one is a mistake in the host\n * rather than something the visitor typed. It is still dropped rather than rejected, for the same\n * reason: the mistake should cost that property, not the batch it happens to be in. Truncating a\n * key is not an option — two long keys would silently become one field.\n *\n * The key schema below is deliberately permissive so that this transform is reached at all; the\n * trimming it used to do happens here instead. `MAX_PROPERTIES` keeps the first N in insertion\n * order.\n */\nfunction takeProperties<T>(data: Record<string, T>): Record<string, T> {\n const result: Record<string, T> = {};\n let count = 0;\n for (const [rawKey, value] of Object.entries(data)) {\n if (count >= MAX_PROPERTIES) break;\n const key = rawKey.trim();\n if (!key || key.length > MAX_KEY_LENGTH) continue;\n result[key] = value;\n count++;\n }\n return result;\n}\n\n/**\n * Capped at GA4's own item-list limit, and truncated rather than rejected like every other\n * property limit here: an unbounded array is the one field a caller could still blow a batch\n * up with after the value and key limits.\n */\nconst MAX_ITEMS = 200;\n\nconst items = pipe(\n array(\n pipe(\n record(string(), union([propertyText, number(), boolean(), _null()])),\n transform(takeProperties)\n )\n ),\n transform((list) => list.slice(0, MAX_ITEMS))\n);\n\nexport const ALL_PLATFORMS = [\n 'ios',\n 'android',\n 'web',\n 'macos',\n 'windows',\n 'linux',\n 'unknown',\n] as const satisfies Platform[];\n\nexport const ALL_ENVIRONMENTS = ['development', 'production'] as const satisfies Environment[];\n\nexport const tagsSchema = object({\n os: optional(string()),\n os_name: optional(string()),\n os_version: optional(string()),\n browser: optional(string()),\n browser_name: optional(string()),\n browser_version: optional(string()),\n device: optional(string()),\n device_id: optional(string().check(trim(), minLength(1), maxLength(36))),\n device_type: optional(string()),\n device_vendor: optional(string()),\n device_pixel_ratio: optional(number()),\n screen_width: optional(number()),\n screen_height: optional(number()),\n screen_resolution: optional(\n pipe(\n string().check(regex(/^\\d+x\\d+$/)),\n transform((v) => v as `${number}x${number}`)\n )\n ),\n webdriver: optional(boolean()),\n release: optional(string()),\n language: optional(string()),\n time_zone: optional(string()),\n page_location: optional(string()),\n page_referrer: optional(string()),\n page_title: optional(string()),\n page_load_id: optional(string()),\n /**\n * @deprecated Renamed to `page_location` in 7.0.0. Accepted so that events from clients\n * still on an older SDK are not stripped of their page URL at this boundary — a browser\n * bundle stays cached long after a backend deploys. Remove once those clients are gone;\n * `pageLocation` in `server/page-location.ts` is the only reader.\n */\n source_url: optional(string()),\n // app info\n advertising_id: optional(string()),\n install_referrer: optional(string()),\n // Meta Ads\n fbc: optional(string()),\n fbp: optional(string()),\n fbclid: optional(string()),\n ad_id: optional(string()),\n ad_name: optional(string()),\n adset_id: optional(string()),\n adset_name: optional(string()),\n campaign_id: optional(string()),\n campaign_name: optional(string()),\n placement: optional(string()),\n // Google Ads\n gclid: optional(string()),\n gclsrc: optional(string()),\n gad_source: optional(string()),\n gad_campaignid: optional(string()),\n // Reddit ads\n rdt_cid: optional(string()),\n rdt_uuid: optional(string()),\n // click ids\n dclid: optional(string()),\n ko_click_id: optional(string()),\n li_fat_id: optional(string()),\n msclkid: optional(string()),\n ScCid: optional(string()),\n ttclid: optional(string()),\n twclid: optional(string()),\n wbraid: optional(string()),\n gbraid: optional(string()),\n yclid: optional(string()),\n oppref: optional(string()),\n epik: optional(string()),\n // utm params\n utm_source: optional(string()),\n utm_medium: optional(string()),\n utm_campaign: optional(string()),\n utm_term: optional(string()),\n utm_content: optional(string()),\n utm_id: optional(string()),\n utm_source_platform: optional(string()),\n utm_creative_format: optional(string()),\n utm_marketing_tactic: optional(string()),\n});\n\nexport const propertiesSchema = optional(\n pipe(\n record(string(), union([propertyText, number(), boolean(), _null(), items])),\n transform(takeProperties)\n )\n);\n\n/** Visitor properties differ from event properties only in taking no nested item lists. */\nconst visitorPropertiesSchema = optional(\n pipe(\n record(string(), union([propertyText, number(), boolean(), _null()])),\n transform(takeProperties)\n )\n);\n\n/**\n * How far an event's time may be from the server's before the client clock it was stamped with is\n * taken as wrong. A batch legitimately arrives late — a tab frozen in the background, a\n * session_start held back after a failed batch — by hours, not days; a phone set to another year\n * writes its sessions into that year.\n */\nconst MAX_CLOCK_SKEW = 24 * 60 * 60 * 1000;\n\n/**\n * Puts the events stamped by a wrong client clock onto the server's, where they are parsed. Only\n * the events outside `MAX_CLOCK_SKEW` move, so one bad event cannot drag the rest of its batch\n * along: they move together by their own latest one — the wrong clock at sending — keeping their\n * order and spacing, and one still out after that (a batch mixing two wrong clocks) is on no clock\n * at all and takes the server's time. Corrected rather than rejected, for the same reason values\n * are truncated: a wrong clock should cost the event its time, not the batch its events.\n */\nfunction alignClock<T extends { timestamp: string }>(events: T[], now = Date.now()): T[] {\n const within = (time: number) => Math.abs(now - time) <= MAX_CLOCK_SKEW;\n const times = events.map((event) => Date.parse(event.timestamp));\n const wrong = times.filter((time) => !within(time));\n if (wrong.length === 0) return events;\n const offset = now - Math.max(...wrong);\n return events.map((event, i) => {\n if (within(times[i])) return event;\n const shifted = times[i] + offset;\n return { ...event, timestamp: new Date(within(shifted) ? shifted : now).toISOString() };\n });\n}\n\nexport const createTrackEventSchema = pipe(\n array(\n object({\n name: string().check(trim(), minLength(1), maxLength(64)),\n visitor_id: uuid(),\n session_id: uuid(),\n platform: _enum(ALL_PLATFORMS),\n environment: _enum(ALL_ENVIRONMENTS),\n timestamp: iso.datetime(),\n tags: tagsSchema,\n properties: propertiesSchema,\n })\n ).check(minLength(1), maxLength(100)),\n transform((events) => alignClock(events))\n);\n\nexport const createVisitorSchema = object({\n device_id: string().check(trim(), minLength(1), maxLength(36)),\n platform: _enum(ALL_PLATFORMS),\n environment: _enum(ALL_ENVIRONMENTS),\n tags: tagsSchema,\n properties: visitorPropertiesSchema,\n});\n\nconst emailValue = pipe(string().check(trim(), toLowerCase(), maxLength(320)), email());\n\n/** E.164: a plus sign (+) prefix, country code, then digits only, no dashes/parens/spaces. */\nconst phoneValue = pipe(string().check(trim()), e164());\n\nconst addressValue = object({\n first_name: optional(string().check(trim(), maxLength(128))),\n last_name: optional(string().check(trim(), maxLength(128))),\n street: optional(string().check(trim(), maxLength(256))),\n city: optional(string().check(trim(), maxLength(128))),\n /** User province, state, or region. Example: `Hampshire` */\n region: optional(string().check(trim(), maxLength(128))),\n postal_code: optional(string().check(trim(), maxLength(32))),\n /** 2-letter country code, per the ISO 3166-1 alpha-2 standard. Example: `UK` */\n country: optional(string().check(trim(), toUpperCase(), regex(/^[A-Z]{2}$/))),\n});\n\n/**\n * User-provided data (UPD) used for enhanced conversions, Customer Match, and demographics.\n * Values are sent unhashed; Google normalizes and hashes them before they reach its servers.\n *\n * Multiple values may be sent to increase the match rate: up to 3 emails, 3 phone numbers, and\n * 2 addresses.\n *\n * @see https://support.google.com/analytics/answer/14078702\n * @see https://support.google.com/google-ads/answer/13258081\n */\nexport const userProvidedDataSchema = object({\n email: optional(union([emailValue, array(emailValue).check(minLength(1), maxLength(3))])),\n phone_number: optional(union([phoneValue, array(phoneValue).check(minLength(1), maxLength(3))])),\n address: optional(union([addressValue, array(addressValue).check(minLength(1), maxLength(2))])),\n});\n\nexport const updateVisitorSchema = object({\n user_id: optional(uuid()),\n user_data: optional(userProvidedDataSchema),\n tags: tagsSchema,\n properties: visitorPropertiesSchema,\n});\n\nexport const createFeedbackSchema = object({\n name: string().check(minLength(1), maxLength(256)),\n email: email().check(maxLength(320)),\n message: string().check(minLength(1), maxLength(65536)),\n});\n\nconst noEmptyString = pipe(\n string().check(maxLength(256)),\n transform((v) => (v ? v : undefined))\n);\n\n/**\n * The schema for creating a link.\n * @see https://support.google.com/analytics/answer/10917952\n * */\nexport const createLinkSchema = object({\n /** The URL that the user is redirected to. */\n url: url().check(minLength(1), maxLength(1024)), // required\n\n /**\n * Campaign ID. Used to identify a specific campaign or promotion. This is a required key for GA4\n * data import. Use the same IDs that you use when uploading campaign cost data.\n */\n utm_id: optional(noEmptyString),\n\n /** Referrer, for example: google, newsletter4, billboard */\n utm_source: string().check(minLength(1), maxLength(256)), // required\n\n /** Marketing medium, for example: cpc, banner, email */\n utm_medium: string().check(minLength(1), maxLength(256)), // required\n\n /** Product, slogan, promo code, for example, spring_sale */\n utm_campaign: string().check(minLength(1), maxLength(256)), // required\n\n /** Paid keyword */\n utm_term: optional(noEmptyString),\n\n /**\n * Use to differentiate creatives. For example, if you have two call-to-action links within the\n * same email message, you can use utm_content and set different values for each so you can tell\n * which version is more effective.\n */\n utm_content: optional(noEmptyString),\n\n /**\n * The platform responsible for directing traffic to a given Analytics property (such as a buying\n * platform that sets budgets and targeting criteria or a platform that manages organic traffic\n * data). For example, Search Ads 360 or Display & Video 360.\n */\n utm_source_platform: optional(noEmptyString),\n\n /**\n * Type of creative, for example, display, native, video, search, utm_creative_format is not\n * currently reported in Google Analytics 4 properties.\n */\n utm_creative_format: optional(noEmptyString),\n\n /**\n * Targeting criteria applied to a campaign, for example, remarketing, prospecting,\n * utm_marketing_tactic is not currently reported in Google Analytics 4 properties.\n * */\n utm_marketing_tactic: optional(noEmptyString),\n});\n\nexport type CreateTrackEventDTO = z.output<typeof createTrackEventSchema>;\nexport type CreateFeedbackDTO = z.output<typeof createFeedbackSchema>;\nexport type CreateLinkDTO = z.output<typeof createLinkSchema>;\nexport type CreateVisitorDTO = z.output<typeof createVisitorSchema>;\nexport type UserProvidedDataDTO = z.output<typeof userProvidedDataSchema>;\nexport type UpdateVisitorDTO = z.output<typeof updateVisitorSchema>;\n"],"mappings":";;;AA4BA,MAAM,iBAAiB;AACvB,MAAM,mBAAmB;AACzB,MAAM,iBAAiB;;;;;;;AAQvB,MAAM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CAOnC,sBAAA,GAAqBA,SAAAA,SAAAA,CAAS,aAAa;;;;;CAM3C,sBAAA,GAAqBA,SAAAA,SAAAA,CAAS,aAAa;;;;;CAM3C,uBAAA,GAAsBA,SAAAA,SAAAA,CAAS,aAAa;AAC9C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["pipe","string","transform","array","record","union","number","boolean","_null","object","optional","trim","minLength","maxLength","regex","uuid","_enum","iso","toLowerCase","email","e164","toUpperCase","url"],"sources":["../../src/schema/index.ts"],"sourcesContent":["import {\n enum as _enum,\n null as _null,\n array,\n boolean,\n e164,\n email,\n iso,\n maxLength,\n minLength,\n number,\n object,\n optional,\n pipe,\n record,\n regex,\n string,\n toLowerCase,\n toUpperCase,\n transform,\n trim,\n union,\n url,\n uuid,\n type z,\n} from 'zod/mini';\nimport type { Environment, Platform } from '../track/types';\n\nconst MAX_KEY_LENGTH = 128;\nconst MAX_VALUE_LENGTH = 512;\nconst MAX_PROPERTIES = 64;\n\n/**\n * Truncated rather than rejected. These schemas validate a whole batch at once, so refusing one\n * oversized value costs every event that traveled with it — and the values that overrun are the\n * ones derived from the page (a link's text, a URL carrying a long query), which no client can\n * bound in advance. A shortened value is worth more than a lost batch.\n */\nconst propertyText = pipe(\n string(),\n transform((value) => value.slice(0, MAX_VALUE_LENGTH))\n);\n\n/**\n * Keys are written by hand in instrumentation code, so an unusable one is a mistake in the host\n * rather than something the visitor typed. It is still dropped rather than rejected, for the same\n * reason: the mistake should cost that property, not the batch it happens to be in. Truncating a\n * key is not an option — two long keys would silently become one field.\n *\n * The key schema below is deliberately permissive so that this transform is reached at all; the\n * trimming it used to do happens here instead. `MAX_PROPERTIES` keeps the first N in insertion\n * order.\n */\nfunction takeProperties<T>(data: Record<string, T>): Record<string, T> {\n const result: Record<string, T> = {};\n let count = 0;\n for (const [rawKey, value] of Object.entries(data)) {\n if (count >= MAX_PROPERTIES) break;\n const key = rawKey.trim();\n if (!key || key.length > MAX_KEY_LENGTH) continue;\n result[key] = value;\n count++;\n }\n return result;\n}\n\n/**\n * Capped at GA4's own item-list limit, and truncated rather than rejected like every other\n * property limit here: an unbounded array is the one field a caller could still blow a batch\n * up with after the value and key limits.\n */\nconst MAX_ITEMS = 200;\n\nconst items = pipe(\n array(\n pipe(\n record(string(), union([propertyText, number(), boolean(), _null()])),\n transform(takeProperties)\n )\n ),\n transform((list) => list.slice(0, MAX_ITEMS))\n);\n\nexport const ALL_PLATFORMS = [\n 'ios',\n 'android',\n 'web',\n 'macos',\n 'windows',\n 'linux',\n 'unknown',\n] as const satisfies Platform[];\n\nexport const ALL_ENVIRONMENTS = ['development', 'production'] as const satisfies Environment[];\n\nexport const tagsSchema = object({\n os: optional(string()),\n os_name: optional(string()),\n os_version: optional(string()),\n browser: optional(string()),\n browser_name: optional(string()),\n browser_version: optional(string()),\n device: optional(string()),\n device_id: optional(string().check(trim(), minLength(1), maxLength(36))),\n device_type: optional(string()),\n device_vendor: optional(string()),\n device_pixel_ratio: optional(number()),\n screen_width: optional(number()),\n screen_height: optional(number()),\n screen_resolution: optional(\n pipe(\n string().check(regex(/^\\d+x\\d+$/)),\n transform((v) => v as `${number}x${number}`)\n )\n ),\n webdriver: optional(boolean()),\n release: optional(string()),\n language: optional(string()),\n time_zone: optional(string()),\n page_location: optional(string()),\n page_referrer: optional(string()),\n page_title: optional(string()),\n page_load_id: optional(string()),\n /**\n * @deprecated Renamed to `page_location` in 7.0.0. Accepted so that events from clients\n * still on an older SDK are not stripped of their page URL at this boundary — a browser\n * bundle stays cached long after a backend deploys. Remove once those clients are gone;\n * `pageLocation` in `server/page-location.ts` is the only reader.\n */\n source_url: optional(string()),\n // app info\n advertising_id: optional(string()),\n install_referrer: optional(string()),\n // Ad click ids (URL parameters) and ad platform cookies (underscore names); see AdvertisingInfo.\n // Meta Ads\n fbclid: optional(string()),\n ad_id: optional(string()),\n ad_name: optional(string()),\n adset_id: optional(string()),\n adset_name: optional(string()),\n campaign_id: optional(string()),\n campaign_name: optional(string()),\n placement: optional(string()),\n _fbc: optional(string()),\n _fbp: optional(string()),\n /**\n * @deprecated `fbc` / `fbp` / `rdt_uuid` were renamed to `_fbc` / `_fbp` / `_rdt_uuid` in 9.0.0.\n * Accepted so that conversions from clients still on an older SDK keep their match keys; the\n * senders read them only as a fallback (`server/click-ids.ts`). Remove once those clients are\n * gone.\n */\n fbc: optional(string()),\n fbp: optional(string()),\n rdt_uuid: optional(string()),\n // Google Ads\n gclid: optional(string()),\n gclsrc: optional(string()),\n gad_source: optional(string()),\n gad_campaignid: optional(string()),\n wbraid: optional(string()),\n gbraid: optional(string()),\n dclid: optional(string()),\n _gcl_aw: optional(string()),\n _gcl_gb: optional(string()),\n // Microsoft Ads\n msclkid: optional(string()),\n _uetmsclkid: optional(string()),\n // Reddit Ads\n rdt_cid: optional(string()),\n _rdt_cid: optional(string()),\n _rdt_uuid: optional(string()),\n // LinkedIn Ads\n li_fat_id: optional(string()),\n _li_fat_id: optional(string()),\n // OpenAI Ads\n oppref: optional(string()),\n __oppref: optional(string()),\n __obref: optional(string()),\n // other click ids\n ko_click_id: optional(string()),\n ScCid: optional(string()),\n ttclid: optional(string()),\n twclid: optional(string()),\n yclid: optional(string()),\n epik: optional(string()),\n // utm params\n utm_source: optional(string()),\n utm_medium: optional(string()),\n utm_campaign: optional(string()),\n utm_term: optional(string()),\n utm_content: optional(string()),\n utm_id: optional(string()),\n utm_source_platform: optional(string()),\n utm_creative_format: optional(string()),\n utm_marketing_tactic: optional(string()),\n});\n\nexport const propertiesSchema = optional(\n pipe(\n record(string(), union([propertyText, number(), boolean(), _null(), items])),\n transform(takeProperties)\n )\n);\n\n/** Visitor properties differ from event properties only in taking no nested item lists. */\nconst visitorPropertiesSchema = optional(\n pipe(\n record(string(), union([propertyText, number(), boolean(), _null()])),\n transform(takeProperties)\n )\n);\n\n/**\n * How far an event's time may be from the server's before the client clock it was stamped with is\n * taken as wrong. A batch legitimately arrives late — a tab frozen in the background, a\n * session_start held back after a failed batch — by hours, not days; a phone set to another year\n * writes its sessions into that year.\n */\nconst MAX_CLOCK_SKEW = 24 * 60 * 60 * 1000;\n\n/**\n * Puts the events stamped by a wrong client clock onto the server's, where they are parsed. Only\n * the events outside `MAX_CLOCK_SKEW` move, so one bad event cannot drag the rest of its batch\n * along: they move together by their own latest one — the wrong clock at sending — keeping their\n * order and spacing, and one still out after that (a batch mixing two wrong clocks) is on no clock\n * at all and takes the server's time. Corrected rather than rejected, for the same reason values\n * are truncated: a wrong clock should cost the event its time, not the batch its events.\n */\nfunction alignClock<T extends { timestamp: string }>(events: T[], now = Date.now()): T[] {\n const within = (time: number) => Math.abs(now - time) <= MAX_CLOCK_SKEW;\n const times = events.map((event) => Date.parse(event.timestamp));\n const wrong = times.filter((time) => !within(time));\n if (wrong.length === 0) return events;\n const offset = now - Math.max(...wrong);\n return events.map((event, i) => {\n if (within(times[i])) return event;\n const shifted = times[i] + offset;\n return { ...event, timestamp: new Date(within(shifted) ? shifted : now).toISOString() };\n });\n}\n\nexport const createTrackEventSchema = pipe(\n array(\n object({\n name: string().check(trim(), minLength(1), maxLength(64)),\n visitor_id: uuid(),\n session_id: uuid(),\n platform: _enum(ALL_PLATFORMS),\n environment: _enum(ALL_ENVIRONMENTS),\n timestamp: iso.datetime(),\n tags: tagsSchema,\n properties: propertiesSchema,\n })\n ).check(minLength(1), maxLength(100)),\n transform((events) => alignClock(events))\n);\n\nexport const createVisitorSchema = object({\n device_id: string().check(trim(), minLength(1), maxLength(36)),\n platform: _enum(ALL_PLATFORMS),\n environment: _enum(ALL_ENVIRONMENTS),\n tags: tagsSchema,\n properties: visitorPropertiesSchema,\n});\n\nconst emailValue = pipe(string().check(trim(), toLowerCase(), maxLength(320)), email());\n\n/** E.164: a plus sign (+) prefix, country code, then digits only, no dashes/parens/spaces. */\nconst phoneValue = pipe(string().check(trim()), e164());\n\nconst addressValue = object({\n first_name: optional(string().check(trim(), maxLength(128))),\n last_name: optional(string().check(trim(), maxLength(128))),\n street: optional(string().check(trim(), maxLength(256))),\n city: optional(string().check(trim(), maxLength(128))),\n /** User province, state, or region. Example: `Hampshire` */\n region: optional(string().check(trim(), maxLength(128))),\n postal_code: optional(string().check(trim(), maxLength(32))),\n /** 2-letter country code, per the ISO 3166-1 alpha-2 standard. Example: `UK` */\n country: optional(string().check(trim(), toUpperCase(), regex(/^[A-Z]{2}$/))),\n});\n\n/**\n * User-provided data (UPD) used for enhanced conversions, Customer Match, and demographics.\n * Values are sent unhashed; Google normalizes and hashes them before they reach its servers.\n *\n * Multiple values may be sent to increase the match rate: up to 3 emails, 3 phone numbers, and\n * 2 addresses.\n *\n * @see https://support.google.com/analytics/answer/14078702\n * @see https://support.google.com/google-ads/answer/13258081\n */\nexport const userProvidedDataSchema = object({\n email: optional(union([emailValue, array(emailValue).check(minLength(1), maxLength(3))])),\n phone_number: optional(union([phoneValue, array(phoneValue).check(minLength(1), maxLength(3))])),\n address: optional(union([addressValue, array(addressValue).check(minLength(1), maxLength(2))])),\n});\n\nexport const updateVisitorSchema = object({\n user_id: optional(uuid()),\n user_data: optional(userProvidedDataSchema),\n tags: tagsSchema,\n properties: visitorPropertiesSchema,\n});\n\nexport const createFeedbackSchema = object({\n name: string().check(minLength(1), maxLength(256)),\n email: email().check(maxLength(320)),\n message: string().check(minLength(1), maxLength(65536)),\n});\n\nconst noEmptyString = pipe(\n string().check(maxLength(256)),\n transform((v) => (v ? v : undefined))\n);\n\n/**\n * The schema for creating a link.\n * @see https://support.google.com/analytics/answer/10917952\n * */\nexport const createLinkSchema = object({\n /** The URL that the user is redirected to. */\n url: url().check(minLength(1), maxLength(1024)), // required\n\n /**\n * Campaign ID. Used to identify a specific campaign or promotion. This is a required key for GA4\n * data import. Use the same IDs that you use when uploading campaign cost data.\n */\n utm_id: optional(noEmptyString),\n\n /** Referrer, for example: google, newsletter4, billboard */\n utm_source: string().check(minLength(1), maxLength(256)), // required\n\n /** Marketing medium, for example: cpc, banner, email */\n utm_medium: string().check(minLength(1), maxLength(256)), // required\n\n /** Product, slogan, promo code, for example, spring_sale */\n utm_campaign: string().check(minLength(1), maxLength(256)), // required\n\n /** Paid keyword */\n utm_term: optional(noEmptyString),\n\n /**\n * Use to differentiate creatives. For example, if you have two call-to-action links within the\n * same email message, you can use utm_content and set different values for each so you can tell\n * which version is more effective.\n */\n utm_content: optional(noEmptyString),\n\n /**\n * The platform responsible for directing traffic to a given Analytics property (such as a buying\n * platform that sets budgets and targeting criteria or a platform that manages organic traffic\n * data). For example, Search Ads 360 or Display & Video 360.\n */\n utm_source_platform: optional(noEmptyString),\n\n /**\n * Type of creative, for example, display, native, video, search, utm_creative_format is not\n * currently reported in Google Analytics 4 properties.\n */\n utm_creative_format: optional(noEmptyString),\n\n /**\n * Targeting criteria applied to a campaign, for example, remarketing, prospecting,\n * utm_marketing_tactic is not currently reported in Google Analytics 4 properties.\n * */\n utm_marketing_tactic: optional(noEmptyString),\n});\n\nexport type CreateTrackEventDTO = z.output<typeof createTrackEventSchema>;\nexport type CreateFeedbackDTO = z.output<typeof createFeedbackSchema>;\nexport type CreateLinkDTO = z.output<typeof createLinkSchema>;\nexport type CreateVisitorDTO = z.output<typeof createVisitorSchema>;\nexport type UserProvidedDataDTO = z.output<typeof userProvidedDataSchema>;\nexport type UpdateVisitorDTO = z.output<typeof updateVisitorSchema>;\n"],"mappings":";;;AA4BA,MAAM,iBAAiB;AACvB,MAAM,mBAAmB;AACzB,MAAM,iBAAiB;;;;;;;AAQvB,MAAM,gBAAA,GAAeA,SAAAA,KAAAA,EAAAA,GACnBC,SAAAA,OAAAA,CAAO,IAAA,GACPC,SAAAA,UAAAA,EAAW,UAAU,MAAM,MAAM,GAAG,gBAAgB,CAAC,CACvD;;;;;;;;;;;AAYA,SAAS,eAAkB,MAA4C;CACrE,MAAM,SAA4B,CAAC;CACnC,IAAI,QAAQ;CACZ,KAAK,MAAM,CAAC,QAAQ,UAAU,OAAO,QAAQ,IAAI,GAAG;EAClD,IAAI,SAAS,gBAAgB;EAC7B,MAAM,MAAM,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UAAAA,CAAU,GAAG,CAAC;;CAGvD,aAAA,GAAYZ,SAAAA,OAAAA,CAAO,CAAC,CAAC,OAAA,GAAMW,SAAAA,UAAAA,CAAU,CAAC,IAAA,GAAGC,SAAAA,UAAAA,CAAU,GAAG,CAAC;;CAGvD,eAAA,GAAcZ,SAAAA,OAAAA,CAAO,CAAC,CAAC,OAAA,GAAMW,SAAAA,UAAAA,CAAU,CAAC,IAAA,GAAGC,SAAAA,UAAAA,CAAU,GAAG,CAAC;;CAGzD,WAAA,GAAUH,SAAAA,SAAAA,CAAS,aAAa;;;;;;CAOhC,cAAA,GAAaA,SAAAA,SAAAA,CAAS,aAAa;;;;;;CAOnC,sBAAA,GAAqBA,SAAAA,SAAAA,CAAS,aAAa;;;;;CAM3C,sBAAA,GAAqBA,SAAAA,SAAAA,CAAS,aAAa;;;;;CAM3C,uBAAA,GAAsBA,SAAAA,SAAAA,CAAS,aAAa;AAC9C,CAAC"}
|
package/dist/schema/index.d.cts
CHANGED
|
@@ -28,8 +28,6 @@ export declare const tagsSchema: z.ZodMiniObject<{
|
|
|
28
28
|
source_url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
29
29
|
advertising_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
30
30
|
install_referrer: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
31
|
-
fbc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
32
|
-
fbp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
33
31
|
fbclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
34
32
|
ad_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
35
33
|
ad_name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -38,23 +36,35 @@ export declare const tagsSchema: z.ZodMiniObject<{
|
|
|
38
36
|
campaign_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
39
37
|
campaign_name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
40
38
|
placement: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
39
|
+
_fbc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
40
|
+
_fbp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
41
|
+
fbc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
42
|
+
fbp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
43
|
+
rdt_uuid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
41
44
|
gclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
42
45
|
gclsrc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
43
46
|
gad_source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
44
47
|
gad_campaignid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
wbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
49
|
+
gbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
47
50
|
dclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
_gcl_aw: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
52
|
+
_gcl_gb: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
50
53
|
msclkid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
54
|
+
_uetmsclkid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
55
|
+
rdt_cid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
56
|
+
_rdt_cid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
57
|
+
_rdt_uuid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
58
|
+
li_fat_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
59
|
+
_li_fat_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
60
|
+
oppref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
61
|
+
__oppref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
62
|
+
__obref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
63
|
+
ko_click_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
51
64
|
ScCid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
52
65
|
ttclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
53
66
|
twclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
54
|
-
wbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
55
|
-
gbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
56
67
|
yclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
57
|
-
oppref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
58
68
|
epik: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
59
69
|
utm_source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
60
70
|
utm_medium: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -111,8 +121,6 @@ export declare const createTrackEventSchema: z.ZodMiniPipe<z.ZodMiniArray<z.ZodM
|
|
|
111
121
|
source_url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
112
122
|
advertising_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
113
123
|
install_referrer: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
114
|
-
fbc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
115
|
-
fbp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
116
124
|
fbclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
117
125
|
ad_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
118
126
|
ad_name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -121,23 +129,35 @@ export declare const createTrackEventSchema: z.ZodMiniPipe<z.ZodMiniArray<z.ZodM
|
|
|
121
129
|
campaign_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
122
130
|
campaign_name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
123
131
|
placement: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
132
|
+
_fbc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
133
|
+
_fbp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
134
|
+
fbc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
135
|
+
fbp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
136
|
+
rdt_uuid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
124
137
|
gclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
125
138
|
gclsrc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
126
139
|
gad_source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
127
140
|
gad_campaignid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
128
|
-
|
|
129
|
-
|
|
141
|
+
wbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
142
|
+
gbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
130
143
|
dclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
131
|
-
|
|
132
|
-
|
|
144
|
+
_gcl_aw: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
145
|
+
_gcl_gb: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
133
146
|
msclkid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
147
|
+
_uetmsclkid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
148
|
+
rdt_cid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
149
|
+
_rdt_cid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
150
|
+
_rdt_uuid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
151
|
+
li_fat_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
152
|
+
_li_fat_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
153
|
+
oppref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
154
|
+
__oppref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
155
|
+
__obref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
156
|
+
ko_click_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
134
157
|
ScCid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
135
158
|
ttclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
136
159
|
twclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
137
|
-
wbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
138
|
-
gbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
139
160
|
yclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
140
|
-
oppref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
141
161
|
epik: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
142
162
|
utm_source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
143
163
|
utm_medium: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -183,8 +203,6 @@ export declare const createTrackEventSchema: z.ZodMiniPipe<z.ZodMiniArray<z.ZodM
|
|
|
183
203
|
source_url?: string | undefined;
|
|
184
204
|
advertising_id?: string | undefined;
|
|
185
205
|
install_referrer?: string | undefined;
|
|
186
|
-
fbc?: string | undefined;
|
|
187
|
-
fbp?: string | undefined;
|
|
188
206
|
fbclid?: string | undefined;
|
|
189
207
|
ad_id?: string | undefined;
|
|
190
208
|
ad_name?: string | undefined;
|
|
@@ -193,23 +211,35 @@ export declare const createTrackEventSchema: z.ZodMiniPipe<z.ZodMiniArray<z.ZodM
|
|
|
193
211
|
campaign_id?: string | undefined;
|
|
194
212
|
campaign_name?: string | undefined;
|
|
195
213
|
placement?: string | undefined;
|
|
214
|
+
_fbc?: string | undefined;
|
|
215
|
+
_fbp?: string | undefined;
|
|
216
|
+
fbc?: string | undefined;
|
|
217
|
+
fbp?: string | undefined;
|
|
218
|
+
rdt_uuid?: string | undefined;
|
|
196
219
|
gclid?: string | undefined;
|
|
197
220
|
gclsrc?: string | undefined;
|
|
198
221
|
gad_source?: string | undefined;
|
|
199
222
|
gad_campaignid?: string | undefined;
|
|
200
|
-
|
|
201
|
-
|
|
223
|
+
wbraid?: string | undefined;
|
|
224
|
+
gbraid?: string | undefined;
|
|
202
225
|
dclid?: string | undefined;
|
|
203
|
-
|
|
204
|
-
|
|
226
|
+
_gcl_aw?: string | undefined;
|
|
227
|
+
_gcl_gb?: string | undefined;
|
|
205
228
|
msclkid?: string | undefined;
|
|
229
|
+
_uetmsclkid?: string | undefined;
|
|
230
|
+
rdt_cid?: string | undefined;
|
|
231
|
+
_rdt_cid?: string | undefined;
|
|
232
|
+
_rdt_uuid?: string | undefined;
|
|
233
|
+
li_fat_id?: string | undefined;
|
|
234
|
+
_li_fat_id?: string | undefined;
|
|
235
|
+
oppref?: string | undefined;
|
|
236
|
+
__oppref?: string | undefined;
|
|
237
|
+
__obref?: string | undefined;
|
|
238
|
+
ko_click_id?: string | undefined;
|
|
206
239
|
ScCid?: string | undefined;
|
|
207
240
|
ttclid?: string | undefined;
|
|
208
241
|
twclid?: string | undefined;
|
|
209
|
-
wbraid?: string | undefined;
|
|
210
|
-
gbraid?: string | undefined;
|
|
211
242
|
yclid?: string | undefined;
|
|
212
|
-
oppref?: string | undefined;
|
|
213
243
|
epik?: string | undefined;
|
|
214
244
|
utm_source?: string | undefined;
|
|
215
245
|
utm_medium?: string | undefined;
|
|
@@ -255,8 +285,6 @@ export declare const createTrackEventSchema: z.ZodMiniPipe<z.ZodMiniArray<z.ZodM
|
|
|
255
285
|
source_url?: string | undefined;
|
|
256
286
|
advertising_id?: string | undefined;
|
|
257
287
|
install_referrer?: string | undefined;
|
|
258
|
-
fbc?: string | undefined;
|
|
259
|
-
fbp?: string | undefined;
|
|
260
288
|
fbclid?: string | undefined;
|
|
261
289
|
ad_id?: string | undefined;
|
|
262
290
|
ad_name?: string | undefined;
|
|
@@ -265,23 +293,35 @@ export declare const createTrackEventSchema: z.ZodMiniPipe<z.ZodMiniArray<z.ZodM
|
|
|
265
293
|
campaign_id?: string | undefined;
|
|
266
294
|
campaign_name?: string | undefined;
|
|
267
295
|
placement?: string | undefined;
|
|
296
|
+
_fbc?: string | undefined;
|
|
297
|
+
_fbp?: string | undefined;
|
|
298
|
+
fbc?: string | undefined;
|
|
299
|
+
fbp?: string | undefined;
|
|
300
|
+
rdt_uuid?: string | undefined;
|
|
268
301
|
gclid?: string | undefined;
|
|
269
302
|
gclsrc?: string | undefined;
|
|
270
303
|
gad_source?: string | undefined;
|
|
271
304
|
gad_campaignid?: string | undefined;
|
|
272
|
-
|
|
273
|
-
|
|
305
|
+
wbraid?: string | undefined;
|
|
306
|
+
gbraid?: string | undefined;
|
|
274
307
|
dclid?: string | undefined;
|
|
275
|
-
|
|
276
|
-
|
|
308
|
+
_gcl_aw?: string | undefined;
|
|
309
|
+
_gcl_gb?: string | undefined;
|
|
277
310
|
msclkid?: string | undefined;
|
|
311
|
+
_uetmsclkid?: string | undefined;
|
|
312
|
+
rdt_cid?: string | undefined;
|
|
313
|
+
_rdt_cid?: string | undefined;
|
|
314
|
+
_rdt_uuid?: string | undefined;
|
|
315
|
+
li_fat_id?: string | undefined;
|
|
316
|
+
_li_fat_id?: string | undefined;
|
|
317
|
+
oppref?: string | undefined;
|
|
318
|
+
__oppref?: string | undefined;
|
|
319
|
+
__obref?: string | undefined;
|
|
320
|
+
ko_click_id?: string | undefined;
|
|
278
321
|
ScCid?: string | undefined;
|
|
279
322
|
ttclid?: string | undefined;
|
|
280
323
|
twclid?: string | undefined;
|
|
281
|
-
wbraid?: string | undefined;
|
|
282
|
-
gbraid?: string | undefined;
|
|
283
324
|
yclid?: string | undefined;
|
|
284
|
-
oppref?: string | undefined;
|
|
285
325
|
epik?: string | undefined;
|
|
286
326
|
utm_source?: string | undefined;
|
|
287
327
|
utm_medium?: string | undefined;
|
|
@@ -336,8 +376,6 @@ export declare const createVisitorSchema: z.ZodMiniObject<{
|
|
|
336
376
|
source_url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
337
377
|
advertising_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
338
378
|
install_referrer: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
339
|
-
fbc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
340
|
-
fbp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
341
379
|
fbclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
342
380
|
ad_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
343
381
|
ad_name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -346,23 +384,35 @@ export declare const createVisitorSchema: z.ZodMiniObject<{
|
|
|
346
384
|
campaign_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
347
385
|
campaign_name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
348
386
|
placement: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
387
|
+
_fbc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
388
|
+
_fbp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
389
|
+
fbc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
390
|
+
fbp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
391
|
+
rdt_uuid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
349
392
|
gclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
350
393
|
gclsrc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
351
394
|
gad_source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
352
395
|
gad_campaignid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
353
|
-
|
|
354
|
-
|
|
396
|
+
wbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
397
|
+
gbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
355
398
|
dclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
356
|
-
|
|
357
|
-
|
|
399
|
+
_gcl_aw: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
400
|
+
_gcl_gb: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
358
401
|
msclkid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
402
|
+
_uetmsclkid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
403
|
+
rdt_cid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
404
|
+
_rdt_cid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
405
|
+
_rdt_uuid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
406
|
+
li_fat_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
407
|
+
_li_fat_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
408
|
+
oppref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
409
|
+
__oppref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
410
|
+
__obref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
411
|
+
ko_click_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
359
412
|
ScCid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
360
413
|
ttclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
361
414
|
twclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
362
|
-
wbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
363
|
-
gbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
364
415
|
yclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
365
|
-
oppref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
366
416
|
epik: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
367
417
|
utm_source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
368
418
|
utm_medium: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -456,8 +506,6 @@ export declare const updateVisitorSchema: z.ZodMiniObject<{
|
|
|
456
506
|
source_url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
457
507
|
advertising_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
458
508
|
install_referrer: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
459
|
-
fbc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
460
|
-
fbp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
461
509
|
fbclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
462
510
|
ad_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
463
511
|
ad_name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -466,23 +514,35 @@ export declare const updateVisitorSchema: z.ZodMiniObject<{
|
|
|
466
514
|
campaign_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
467
515
|
campaign_name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
468
516
|
placement: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
517
|
+
_fbc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
518
|
+
_fbp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
519
|
+
fbc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
520
|
+
fbp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
521
|
+
rdt_uuid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
469
522
|
gclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
470
523
|
gclsrc: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
471
524
|
gad_source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
472
525
|
gad_campaignid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
473
|
-
|
|
474
|
-
|
|
526
|
+
wbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
527
|
+
gbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
475
528
|
dclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
476
|
-
|
|
477
|
-
|
|
529
|
+
_gcl_aw: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
530
|
+
_gcl_gb: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
478
531
|
msclkid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
532
|
+
_uetmsclkid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
533
|
+
rdt_cid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
534
|
+
_rdt_cid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
535
|
+
_rdt_uuid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
536
|
+
li_fat_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
537
|
+
_li_fat_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
538
|
+
oppref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
539
|
+
__oppref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
540
|
+
__obref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
541
|
+
ko_click_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
479
542
|
ScCid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
480
543
|
ttclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
481
544
|
twclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
482
|
-
wbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
483
|
-
gbraid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
484
545
|
yclid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
485
|
-
oppref: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
486
546
|
epik: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
487
547
|
utm_source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
488
548
|
utm_medium: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/schema/index.ts"],"mappings":";;qBAmFa;qBAUA;qBAEA,YAAU,EAAA
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/schema/index.ts"],"mappings":";;qBAmFa;qBAUA;qBAEA,YAAU,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoGrB,EAAA,KAAA;qBAEW,kBAAgB,EAAA,gBAAA,EAAA,YAAA,EAAA,cAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA,YAAA,EAAA,uBAAA,EAAA,mCAAA,EAAA,uBAAA,EAAA,yBAAA,EAAA,aAAA,EAAA,YAAA,EAAA,aAAA,EAAA,YAAA,EAAA,cAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA,YAAA,EAAA,uBAAA,EAAA,mCAAA,EAAA,uBAAA,EAAA,yBAAA,EAAA,gBAAA,EAAA,iBAAA,kDAAA,qDAAA,EAAA,iBAAA,oDAAA,yDAAA,EAAA,iBAAA,2CAAA,4DAAA,2CAAA;qBA4ChB,wBAAsB,EAAA,YAAA,EAAA,aAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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