@iann29/rastro 0.1.0-alpha.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/LICENSE +201 -0
- package/README.md +352 -0
- package/assets/rastro-live-atlas.png +0 -0
- package/dist/client/_generated/_ignore.d.ts +1 -0
- package/dist/client/_generated/_ignore.d.ts.map +1 -0
- package/dist/client/_generated/_ignore.js +3 -0
- package/dist/client/_generated/_ignore.js.map +1 -0
- package/dist/client/index.d.ts +960 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +591 -0
- package/dist/client/index.js.map +1 -0
- package/dist/component/_generated/api.d.ts +60 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +569 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +11 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +46 -0
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +11 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +133 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +80 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/affiliates.d.ts +28 -0
- package/dist/component/affiliates.d.ts.map +1 -0
- package/dist/component/affiliates.js +110 -0
- package/dist/component/affiliates.js.map +1 -0
- package/dist/component/constants.d.ts +28 -0
- package/dist/component/constants.d.ts.map +1 -0
- package/dist/component/constants.js +28 -0
- package/dist/component/constants.js.map +1 -0
- package/dist/component/convex.config.d.ts +3 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +3 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/errors.d.ts +3 -0
- package/dist/component/errors.d.ts.map +1 -0
- package/dist/component/errors.js +5 -0
- package/dist/component/errors.js.map +1 -0
- package/dist/component/funnels.d.ts +36 -0
- package/dist/component/funnels.d.ts.map +1 -0
- package/dist/component/funnels.js +117 -0
- package/dist/component/funnels.js.map +1 -0
- package/dist/component/goals.d.ts +30 -0
- package/dist/component/goals.d.ts.map +1 -0
- package/dist/component/goals.js +110 -0
- package/dist/component/goals.js.map +1 -0
- package/dist/component/guards.d.ts +2 -0
- package/dist/component/guards.d.ts.map +1 -0
- package/dist/component/guards.js +4 -0
- package/dist/component/guards.js.map +1 -0
- package/dist/component/http.d.ts +3 -0
- package/dist/component/http.d.ts.map +1 -0
- package/dist/component/http.js +270 -0
- package/dist/component/http.js.map +1 -0
- package/dist/component/ingest.d.ts +51 -0
- package/dist/component/ingest.d.ts.map +1 -0
- package/dist/component/ingest.js +991 -0
- package/dist/component/ingest.js.map +1 -0
- package/dist/component/live.d.ts +9 -0
- package/dist/component/live.d.ts.map +1 -0
- package/dist/component/live.js +36 -0
- package/dist/component/live.js.map +1 -0
- package/dist/component/reports.d.ts +330 -0
- package/dist/component/reports.d.ts.map +1 -0
- package/dist/component/reports.js +595 -0
- package/dist/component/reports.js.map +1 -0
- package/dist/component/retention.d.ts +10 -0
- package/dist/component/retention.d.ts.map +1 -0
- package/dist/component/retention.js +107 -0
- package/dist/component/retention.js.map +1 -0
- package/dist/component/sanitize.d.ts +20 -0
- package/dist/component/sanitize.d.ts.map +1 -0
- package/dist/component/sanitize.js +269 -0
- package/dist/component/sanitize.js.map +1 -0
- package/dist/component/schema.d.ts +517 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +209 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/component/sites.d.ts +54 -0
- package/dist/component/sites.d.ts.map +1 -0
- package/dist/component/sites.js +164 -0
- package/dist/component/sites.js.map +1 -0
- package/dist/component/validators.d.ts +377 -0
- package/dist/component/validators.d.ts.map +1 -0
- package/dist/component/validators.js +176 -0
- package/dist/component/validators.js.map +1 -0
- package/dist/react/index.d.ts +40 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +31 -0
- package/dist/react/index.js.map +1 -0
- package/dist/tracker/generated.d.ts +5 -0
- package/dist/tracker/generated.d.ts.map +1 -0
- package/dist/tracker/generated.js +6 -0
- package/dist/tracker/generated.js.map +1 -0
- package/dist/tracker/tracker.d.ts +27 -0
- package/dist/tracker/tracker.d.ts.map +1 -0
- package/dist/tracker/tracker.js +108 -0
- package/dist/tracker/tracker.js.map +1 -0
- package/dist/tracker.min.js +1 -0
- package/package.json +121 -0
- package/src/component/_generated/api.ts +76 -0
- package/src/component/_generated/component.ts +706 -0
- package/src/component/_generated/dataModel.ts +60 -0
- package/src/component/_generated/server.ts +169 -0
- package/src/component/affiliates.ts +119 -0
- package/src/component/constants.ts +28 -0
- package/src/component/convex.config.ts +3 -0
- package/src/component/errors.ts +20 -0
- package/src/component/funnels.ts +134 -0
- package/src/component/goals.ts +122 -0
- package/src/component/guards.ts +3 -0
- package/src/component/http.ts +301 -0
- package/src/component/ingest.ts +1364 -0
- package/src/component/live.ts +36 -0
- package/src/component/reports.ts +720 -0
- package/src/component/retention.ts +180 -0
- package/src/component/sanitize.ts +278 -0
- package/src/component/schema.ts +232 -0
- package/src/component/sites.ts +188 -0
- package/src/component/validators.ts +226 -0
- package/src/test.ts +19 -0
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
declare const _default: import("convex/server").SchemaDefinition<{
|
|
2
|
+
sites: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3
|
+
cookieless: boolean;
|
|
4
|
+
createdAt: number;
|
|
5
|
+
currency?: string | undefined;
|
|
6
|
+
domains: string[];
|
|
7
|
+
name: string;
|
|
8
|
+
networkId?: string | undefined;
|
|
9
|
+
ownerId: string;
|
|
10
|
+
timezone?: string | undefined;
|
|
11
|
+
updatedAt: number;
|
|
12
|
+
}, {
|
|
13
|
+
ownerId: import("convex/values").VString<string, "required">;
|
|
14
|
+
name: import("convex/values").VString<string, "required">;
|
|
15
|
+
domains: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
16
|
+
networkId: import("convex/values").VString<string | undefined, "optional">;
|
|
17
|
+
timezone: import("convex/values").VString<string | undefined, "optional">;
|
|
18
|
+
currency: import("convex/values").VString<string | undefined, "optional">;
|
|
19
|
+
cookieless: import("convex/values").VBoolean<boolean, "required">;
|
|
20
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
21
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
22
|
+
}, "required", "cookieless" | "createdAt" | "currency" | "domains" | "name" | "networkId" | "ownerId" | "timezone" | "updatedAt">, {
|
|
23
|
+
by_networkId: ["networkId", "_creationTime"];
|
|
24
|
+
by_ownerId: ["ownerId", "_creationTime"];
|
|
25
|
+
by_ownerId_and_name: ["ownerId", "name", "_creationTime"];
|
|
26
|
+
}, {}, {}>;
|
|
27
|
+
sessions: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
28
|
+
affiliateAttributedAt?: number | undefined;
|
|
29
|
+
affiliateExpiresAt?: number | undefined;
|
|
30
|
+
affiliateId?: import("convex/values").GenericId<"affiliates"> | undefined;
|
|
31
|
+
affiliateSlug?: string | undefined;
|
|
32
|
+
browser: string;
|
|
33
|
+
city?: string | undefined;
|
|
34
|
+
conversionCount: number;
|
|
35
|
+
country?: string | undefined;
|
|
36
|
+
currency?: string | undefined;
|
|
37
|
+
device: string;
|
|
38
|
+
durationMs: number;
|
|
39
|
+
entryPath: string;
|
|
40
|
+
eventCount: number;
|
|
41
|
+
exitPath: string;
|
|
42
|
+
lastSeenAt: number;
|
|
43
|
+
latitude?: number | undefined;
|
|
44
|
+
longitude?: number | undefined;
|
|
45
|
+
os: string;
|
|
46
|
+
pageviewCount: number;
|
|
47
|
+
referrer?: string | undefined;
|
|
48
|
+
revenueCents: number;
|
|
49
|
+
sessionId: string;
|
|
50
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
51
|
+
source: string;
|
|
52
|
+
startedAt: number;
|
|
53
|
+
utmCampaign?: string | undefined;
|
|
54
|
+
utmMedium?: string | undefined;
|
|
55
|
+
utmSource?: string | undefined;
|
|
56
|
+
visitorId: string;
|
|
57
|
+
}, {
|
|
58
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
59
|
+
sessionId: import("convex/values").VString<string, "required">;
|
|
60
|
+
visitorId: import("convex/values").VString<string, "required">;
|
|
61
|
+
startedAt: import("convex/values").VFloat64<number, "required">;
|
|
62
|
+
lastSeenAt: import("convex/values").VFloat64<number, "required">;
|
|
63
|
+
entryPath: import("convex/values").VString<string, "required">;
|
|
64
|
+
exitPath: import("convex/values").VString<string, "required">;
|
|
65
|
+
referrer: import("convex/values").VString<string | undefined, "optional">;
|
|
66
|
+
source: import("convex/values").VString<string, "required">;
|
|
67
|
+
utmSource: import("convex/values").VString<string | undefined, "optional">;
|
|
68
|
+
utmMedium: import("convex/values").VString<string | undefined, "optional">;
|
|
69
|
+
utmCampaign: import("convex/values").VString<string | undefined, "optional">;
|
|
70
|
+
country: import("convex/values").VString<string | undefined, "optional">;
|
|
71
|
+
city: import("convex/values").VString<string | undefined, "optional">;
|
|
72
|
+
latitude: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
73
|
+
longitude: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
74
|
+
browser: import("convex/values").VString<string, "required">;
|
|
75
|
+
os: import("convex/values").VString<string, "required">;
|
|
76
|
+
device: import("convex/values").VString<string, "required">;
|
|
77
|
+
eventCount: import("convex/values").VFloat64<number, "required">;
|
|
78
|
+
pageviewCount: import("convex/values").VFloat64<number, "required">;
|
|
79
|
+
durationMs: import("convex/values").VFloat64<number, "required">;
|
|
80
|
+
conversionCount: import("convex/values").VFloat64<number, "required">;
|
|
81
|
+
revenueCents: import("convex/values").VFloat64<number, "required">;
|
|
82
|
+
currency: import("convex/values").VString<string | undefined, "optional">;
|
|
83
|
+
affiliateSlug: import("convex/values").VString<string | undefined, "optional">;
|
|
84
|
+
affiliateId: import("convex/values").VId<import("convex/values").GenericId<"affiliates"> | undefined, "optional">;
|
|
85
|
+
affiliateAttributedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
86
|
+
affiliateExpiresAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
87
|
+
}, "required", "affiliateAttributedAt" | "affiliateExpiresAt" | "affiliateId" | "affiliateSlug" | "browser" | "city" | "conversionCount" | "country" | "currency" | "device" | "durationMs" | "entryPath" | "eventCount" | "exitPath" | "lastSeenAt" | "latitude" | "longitude" | "os" | "pageviewCount" | "referrer" | "revenueCents" | "sessionId" | "siteId" | "source" | "startedAt" | "utmCampaign" | "utmMedium" | "utmSource" | "visitorId">, {
|
|
88
|
+
by_siteId_and_lastSeenAt: ["siteId", "lastSeenAt", "_creationTime"];
|
|
89
|
+
by_siteId_and_sessionId: ["siteId", "sessionId", "_creationTime"];
|
|
90
|
+
by_siteId_and_startedAt: ["siteId", "startedAt", "_creationTime"];
|
|
91
|
+
by_siteId_and_visitorId_and_lastSeenAt: ["siteId", "visitorId", "lastSeenAt", "_creationTime"];
|
|
92
|
+
}, {}, {}>;
|
|
93
|
+
liveSessions: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
94
|
+
browser: string;
|
|
95
|
+
city?: string | undefined;
|
|
96
|
+
country?: string | undefined;
|
|
97
|
+
device: string;
|
|
98
|
+
eventCount: number;
|
|
99
|
+
expiresAt: number;
|
|
100
|
+
expiryChainDeadline?: number | undefined;
|
|
101
|
+
lastHeartbeatEventId?: string | undefined;
|
|
102
|
+
lastSeenAt: number;
|
|
103
|
+
latitude?: number | undefined;
|
|
104
|
+
longitude?: number | undefined;
|
|
105
|
+
os: string;
|
|
106
|
+
pageviewCount: number;
|
|
107
|
+
path: string;
|
|
108
|
+
sessionId: string;
|
|
109
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
110
|
+
source: string;
|
|
111
|
+
startedAt: number;
|
|
112
|
+
visitorId: string;
|
|
113
|
+
}, {
|
|
114
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
115
|
+
sessionId: import("convex/values").VString<string, "required">;
|
|
116
|
+
visitorId: import("convex/values").VString<string, "required">;
|
|
117
|
+
path: import("convex/values").VString<string, "required">;
|
|
118
|
+
startedAt: import("convex/values").VFloat64<number, "required">;
|
|
119
|
+
lastSeenAt: import("convex/values").VFloat64<number, "required">;
|
|
120
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
121
|
+
expiryChainDeadline: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
122
|
+
country: import("convex/values").VString<string | undefined, "optional">;
|
|
123
|
+
city: import("convex/values").VString<string | undefined, "optional">;
|
|
124
|
+
latitude: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
125
|
+
longitude: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
126
|
+
browser: import("convex/values").VString<string, "required">;
|
|
127
|
+
os: import("convex/values").VString<string, "required">;
|
|
128
|
+
source: import("convex/values").VString<string, "required">;
|
|
129
|
+
device: import("convex/values").VString<string, "required">;
|
|
130
|
+
pageviewCount: import("convex/values").VFloat64<number, "required">;
|
|
131
|
+
lastHeartbeatEventId: import("convex/values").VString<string | undefined, "optional">;
|
|
132
|
+
eventCount: import("convex/values").VFloat64<number, "required">;
|
|
133
|
+
}, "required", "browser" | "city" | "country" | "device" | "eventCount" | "expiresAt" | "expiryChainDeadline" | "lastHeartbeatEventId" | "lastSeenAt" | "latitude" | "longitude" | "os" | "pageviewCount" | "path" | "sessionId" | "siteId" | "source" | "startedAt" | "visitorId">, {
|
|
134
|
+
by_siteId_and_expiresAt: ["siteId", "expiresAt", "_creationTime"];
|
|
135
|
+
by_siteId_and_lastSeenAt: ["siteId", "lastSeenAt", "_creationTime"];
|
|
136
|
+
by_siteId_and_sessionId: ["siteId", "sessionId", "_creationTime"];
|
|
137
|
+
}, {}, {}>;
|
|
138
|
+
events: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
139
|
+
affiliateSlug?: string | undefined;
|
|
140
|
+
browser: string;
|
|
141
|
+
city?: string | undefined;
|
|
142
|
+
country?: string | undefined;
|
|
143
|
+
currency?: string | undefined;
|
|
144
|
+
device: string;
|
|
145
|
+
eventId: string;
|
|
146
|
+
href?: string | undefined;
|
|
147
|
+
latitude?: number | undefined;
|
|
148
|
+
longitude?: number | undefined;
|
|
149
|
+
name?: string | undefined;
|
|
150
|
+
os: string;
|
|
151
|
+
path: string;
|
|
152
|
+
properties?: Record<string, string | number | boolean | null> | undefined;
|
|
153
|
+
referrer?: string | undefined;
|
|
154
|
+
revenueCents?: number | undefined;
|
|
155
|
+
sequence: number;
|
|
156
|
+
sessionId: string;
|
|
157
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
158
|
+
target?: string | undefined;
|
|
159
|
+
timestamp: number;
|
|
160
|
+
type: "click" | "conversion" | "custom" | "heartbeat" | "outbound" | "pageview";
|
|
161
|
+
visitorId: string;
|
|
162
|
+
}, {
|
|
163
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
164
|
+
eventId: import("convex/values").VString<string, "required">;
|
|
165
|
+
sessionId: import("convex/values").VString<string, "required">;
|
|
166
|
+
visitorId: import("convex/values").VString<string, "required">;
|
|
167
|
+
type: import("convex/values").VUnion<"click" | "conversion" | "custom" | "heartbeat" | "outbound" | "pageview", [import("convex/values").VLiteral<"pageview", "required">, import("convex/values").VLiteral<"click", "required">, import("convex/values").VLiteral<"custom", "required">, import("convex/values").VLiteral<"conversion", "required">, import("convex/values").VLiteral<"heartbeat", "required">, import("convex/values").VLiteral<"outbound", "required">], "required", never>;
|
|
168
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
169
|
+
path: import("convex/values").VString<string, "required">;
|
|
170
|
+
referrer: import("convex/values").VString<string | undefined, "optional">;
|
|
171
|
+
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
172
|
+
sequence: import("convex/values").VFloat64<number, "required">;
|
|
173
|
+
target: import("convex/values").VString<string | undefined, "optional">;
|
|
174
|
+
href: import("convex/values").VString<string | undefined, "optional">;
|
|
175
|
+
properties: import("convex/values").VRecord<Record<string, string | number | boolean | null> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean | null, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">, import("convex/values").VNull<null, "required">], "required", never>, "optional", string>;
|
|
176
|
+
revenueCents: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
177
|
+
currency: import("convex/values").VString<string | undefined, "optional">;
|
|
178
|
+
affiliateSlug: import("convex/values").VString<string | undefined, "optional">;
|
|
179
|
+
country: import("convex/values").VString<string | undefined, "optional">;
|
|
180
|
+
city: import("convex/values").VString<string | undefined, "optional">;
|
|
181
|
+
latitude: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
182
|
+
longitude: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
183
|
+
browser: import("convex/values").VString<string, "required">;
|
|
184
|
+
os: import("convex/values").VString<string, "required">;
|
|
185
|
+
device: import("convex/values").VString<string, "required">;
|
|
186
|
+
}, "required", "affiliateSlug" | "browser" | "city" | "country" | "currency" | "device" | "eventId" | "href" | "latitude" | "longitude" | "name" | "os" | "path" | "properties" | "referrer" | "revenueCents" | "sequence" | "sessionId" | "siteId" | "target" | "timestamp" | "type" | "visitorId" | `properties.${string}`>, {
|
|
187
|
+
by_siteId_and_eventId: ["siteId", "eventId", "_creationTime"];
|
|
188
|
+
by_siteId_and_sessionId_and_timestamp: ["siteId", "sessionId", "timestamp", "_creationTime"];
|
|
189
|
+
by_siteId_and_timestamp: ["siteId", "timestamp", "_creationTime"];
|
|
190
|
+
by_siteId_and_type_and_timestamp: ["siteId", "type", "timestamp", "_creationTime"];
|
|
191
|
+
by_siteId_and_visitorId_and_timestamp: ["siteId", "visitorId", "timestamp", "_creationTime"];
|
|
192
|
+
}, {}, {}>;
|
|
193
|
+
aggregateBuckets: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
194
|
+
bucketStart: number;
|
|
195
|
+
clicks: number;
|
|
196
|
+
conversions: number;
|
|
197
|
+
customEvents: number;
|
|
198
|
+
dimensions: {
|
|
199
|
+
count: number;
|
|
200
|
+
revenueCents: number;
|
|
201
|
+
slot: number;
|
|
202
|
+
type: "browser" | "country" | "device" | "event" | "goal" | "page" | "source";
|
|
203
|
+
value: string;
|
|
204
|
+
}[];
|
|
205
|
+
events: number;
|
|
206
|
+
granularity: "day" | "hour";
|
|
207
|
+
outboundClicks: number;
|
|
208
|
+
pageviews: number;
|
|
209
|
+
revenueCents: number;
|
|
210
|
+
sessions: number;
|
|
211
|
+
shard: number;
|
|
212
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
213
|
+
visitors: number;
|
|
214
|
+
}, {
|
|
215
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
216
|
+
granularity: import("convex/values").VUnion<"day" | "hour", [import("convex/values").VLiteral<"hour", "required">, import("convex/values").VLiteral<"day", "required">], "required", never>;
|
|
217
|
+
bucketStart: import("convex/values").VFloat64<number, "required">;
|
|
218
|
+
shard: import("convex/values").VFloat64<number, "required">;
|
|
219
|
+
events: import("convex/values").VFloat64<number, "required">;
|
|
220
|
+
pageviews: import("convex/values").VFloat64<number, "required">;
|
|
221
|
+
clicks: import("convex/values").VFloat64<number, "required">;
|
|
222
|
+
customEvents: import("convex/values").VFloat64<number, "required">;
|
|
223
|
+
outboundClicks: import("convex/values").VFloat64<number, "required">;
|
|
224
|
+
sessions: import("convex/values").VFloat64<number, "required">;
|
|
225
|
+
visitors: import("convex/values").VFloat64<number, "required">;
|
|
226
|
+
conversions: import("convex/values").VFloat64<number, "required">;
|
|
227
|
+
revenueCents: import("convex/values").VFloat64<number, "required">;
|
|
228
|
+
dimensions: import("convex/values").VArray<{
|
|
229
|
+
count: number;
|
|
230
|
+
revenueCents: number;
|
|
231
|
+
slot: number;
|
|
232
|
+
type: "browser" | "country" | "device" | "event" | "goal" | "page" | "source";
|
|
233
|
+
value: string;
|
|
234
|
+
}[], import("convex/values").VObject<{
|
|
235
|
+
count: number;
|
|
236
|
+
revenueCents: number;
|
|
237
|
+
slot: number;
|
|
238
|
+
type: "browser" | "country" | "device" | "event" | "goal" | "page" | "source";
|
|
239
|
+
value: string;
|
|
240
|
+
}, {
|
|
241
|
+
type: import("convex/values").VUnion<"browser" | "country" | "device" | "event" | "goal" | "page" | "source", [import("convex/values").VLiteral<"source", "required">, import("convex/values").VLiteral<"page", "required">, import("convex/values").VLiteral<"country", "required">, import("convex/values").VLiteral<"device", "required">, import("convex/values").VLiteral<"browser", "required">, import("convex/values").VLiteral<"event", "required">, import("convex/values").VLiteral<"goal", "required">], "required", never>;
|
|
242
|
+
slot: import("convex/values").VFloat64<number, "required">;
|
|
243
|
+
value: import("convex/values").VString<string, "required">;
|
|
244
|
+
count: import("convex/values").VFloat64<number, "required">;
|
|
245
|
+
revenueCents: import("convex/values").VFloat64<number, "required">;
|
|
246
|
+
}, "required", "count" | "revenueCents" | "slot" | "type" | "value">, "required">;
|
|
247
|
+
}, "required", "bucketStart" | "clicks" | "conversions" | "customEvents" | "dimensions" | "events" | "granularity" | "outboundClicks" | "pageviews" | "revenueCents" | "sessions" | "shard" | "siteId" | "visitors">, {
|
|
248
|
+
by_siteId_and_granularity_and_bucketStart: ["siteId", "granularity", "bucketStart", "_creationTime"];
|
|
249
|
+
by_siteId_and_granularity_and_bucketStart_and_shard: ["siteId", "granularity", "bucketStart", "shard", "_creationTime"];
|
|
250
|
+
}, {}, {}>;
|
|
251
|
+
goals: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
252
|
+
active: boolean;
|
|
253
|
+
createdAt: number;
|
|
254
|
+
key: string;
|
|
255
|
+
matchType: "custom" | "pageview";
|
|
256
|
+
matchValue: string;
|
|
257
|
+
name: string;
|
|
258
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
259
|
+
updatedAt: number;
|
|
260
|
+
valueCents?: number | undefined;
|
|
261
|
+
}, {
|
|
262
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
263
|
+
key: import("convex/values").VString<string, "required">;
|
|
264
|
+
name: import("convex/values").VString<string, "required">;
|
|
265
|
+
matchType: import("convex/values").VUnion<"custom" | "pageview", [import("convex/values").VLiteral<"pageview", "required">, import("convex/values").VLiteral<"custom", "required">], "required", never>;
|
|
266
|
+
matchValue: import("convex/values").VString<string, "required">;
|
|
267
|
+
valueCents: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
268
|
+
active: import("convex/values").VBoolean<boolean, "required">;
|
|
269
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
270
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
271
|
+
}, "required", "active" | "createdAt" | "key" | "matchType" | "matchValue" | "name" | "siteId" | "updatedAt" | "valueCents">, {
|
|
272
|
+
by_siteId: ["siteId", "_creationTime"];
|
|
273
|
+
by_siteId_and_key: ["siteId", "key", "_creationTime"];
|
|
274
|
+
}, {}, {}>;
|
|
275
|
+
goalCompletions: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
276
|
+
eventId: string;
|
|
277
|
+
goalId: import("convex/values").GenericId<"goals">;
|
|
278
|
+
goalKey: string;
|
|
279
|
+
sessionId: string;
|
|
280
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
281
|
+
timestamp: number;
|
|
282
|
+
valueCents: number;
|
|
283
|
+
visitorId: string;
|
|
284
|
+
}, {
|
|
285
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
286
|
+
goalId: import("convex/values").VId<import("convex/values").GenericId<"goals">, "required">;
|
|
287
|
+
goalKey: import("convex/values").VString<string, "required">;
|
|
288
|
+
eventId: import("convex/values").VString<string, "required">;
|
|
289
|
+
sessionId: import("convex/values").VString<string, "required">;
|
|
290
|
+
visitorId: import("convex/values").VString<string, "required">;
|
|
291
|
+
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
292
|
+
valueCents: import("convex/values").VFloat64<number, "required">;
|
|
293
|
+
}, "required", "eventId" | "goalId" | "goalKey" | "sessionId" | "siteId" | "timestamp" | "valueCents" | "visitorId">, {
|
|
294
|
+
by_siteId_and_goalId_and_eventId: ["siteId", "goalId", "eventId", "_creationTime"];
|
|
295
|
+
by_siteId_and_goalId_and_timestamp: ["siteId", "goalId", "timestamp", "_creationTime"];
|
|
296
|
+
by_siteId_and_timestamp: ["siteId", "timestamp", "_creationTime"];
|
|
297
|
+
}, {}, {}>;
|
|
298
|
+
funnels: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
299
|
+
active: boolean;
|
|
300
|
+
conversionWindowMs: number;
|
|
301
|
+
createdAt: number;
|
|
302
|
+
key: string;
|
|
303
|
+
name: string;
|
|
304
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
305
|
+
steps: {
|
|
306
|
+
name: string;
|
|
307
|
+
type: "custom" | "pageview";
|
|
308
|
+
value: string;
|
|
309
|
+
}[];
|
|
310
|
+
updatedAt: number;
|
|
311
|
+
}, {
|
|
312
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
313
|
+
key: import("convex/values").VString<string, "required">;
|
|
314
|
+
name: import("convex/values").VString<string, "required">;
|
|
315
|
+
steps: import("convex/values").VArray<{
|
|
316
|
+
name: string;
|
|
317
|
+
type: "custom" | "pageview";
|
|
318
|
+
value: string;
|
|
319
|
+
}[], import("convex/values").VObject<{
|
|
320
|
+
name: string;
|
|
321
|
+
type: "custom" | "pageview";
|
|
322
|
+
value: string;
|
|
323
|
+
}, {
|
|
324
|
+
type: import("convex/values").VUnion<"custom" | "pageview", [import("convex/values").VLiteral<"pageview", "required">, import("convex/values").VLiteral<"custom", "required">], "required", never>;
|
|
325
|
+
value: import("convex/values").VString<string, "required">;
|
|
326
|
+
name: import("convex/values").VString<string, "required">;
|
|
327
|
+
}, "required", "name" | "type" | "value">, "required">;
|
|
328
|
+
conversionWindowMs: import("convex/values").VFloat64<number, "required">;
|
|
329
|
+
active: import("convex/values").VBoolean<boolean, "required">;
|
|
330
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
331
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
332
|
+
}, "required", "active" | "conversionWindowMs" | "createdAt" | "key" | "name" | "siteId" | "steps" | "updatedAt">, {
|
|
333
|
+
by_siteId: ["siteId", "_creationTime"];
|
|
334
|
+
by_siteId_and_key: ["siteId", "key", "_creationTime"];
|
|
335
|
+
}, {}, {}>;
|
|
336
|
+
funnelProgress: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
337
|
+
completedAt?: number | undefined;
|
|
338
|
+
currentStep: number;
|
|
339
|
+
funnelId: import("convex/values").GenericId<"funnels">;
|
|
340
|
+
lastStepAt: number;
|
|
341
|
+
sessionId: string;
|
|
342
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
343
|
+
startedAt: number;
|
|
344
|
+
visitorId: string;
|
|
345
|
+
}, {
|
|
346
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
347
|
+
funnelId: import("convex/values").VId<import("convex/values").GenericId<"funnels">, "required">;
|
|
348
|
+
visitorId: import("convex/values").VString<string, "required">;
|
|
349
|
+
sessionId: import("convex/values").VString<string, "required">;
|
|
350
|
+
currentStep: import("convex/values").VFloat64<number, "required">;
|
|
351
|
+
startedAt: import("convex/values").VFloat64<number, "required">;
|
|
352
|
+
lastStepAt: import("convex/values").VFloat64<number, "required">;
|
|
353
|
+
completedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
354
|
+
}, "required", "completedAt" | "currentStep" | "funnelId" | "lastStepAt" | "sessionId" | "siteId" | "startedAt" | "visitorId">, {
|
|
355
|
+
by_siteId_and_funnelId_and_visitorId: ["siteId", "funnelId", "visitorId", "_creationTime"];
|
|
356
|
+
by_siteId_and_lastStepAt: ["siteId", "lastStepAt", "_creationTime"];
|
|
357
|
+
by_siteId_and_visitorId: ["siteId", "visitorId", "_creationTime"];
|
|
358
|
+
}, {}, {}>;
|
|
359
|
+
funnelStepBuckets: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
360
|
+
bucketStart: number;
|
|
361
|
+
completions: number;
|
|
362
|
+
entrants: number;
|
|
363
|
+
funnelId: import("convex/values").GenericId<"funnels">;
|
|
364
|
+
shard: number;
|
|
365
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
366
|
+
step: number;
|
|
367
|
+
}, {
|
|
368
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
369
|
+
funnelId: import("convex/values").VId<import("convex/values").GenericId<"funnels">, "required">;
|
|
370
|
+
bucketStart: import("convex/values").VFloat64<number, "required">;
|
|
371
|
+
step: import("convex/values").VFloat64<number, "required">;
|
|
372
|
+
shard: import("convex/values").VFloat64<number, "required">;
|
|
373
|
+
entrants: import("convex/values").VFloat64<number, "required">;
|
|
374
|
+
completions: import("convex/values").VFloat64<number, "required">;
|
|
375
|
+
}, "required", "bucketStart" | "completions" | "entrants" | "funnelId" | "shard" | "siteId" | "step">, {
|
|
376
|
+
by_siteId_and_bucketStart: ["siteId", "bucketStart", "_creationTime"];
|
|
377
|
+
by_siteId_and_funnelId_and_bucketStart: ["siteId", "funnelId", "bucketStart", "_creationTime"];
|
|
378
|
+
by_siteId_and_funnelId_and_bucketStart_and_step_and_shard: ["siteId", "funnelId", "bucketStart", "step", "shard", "_creationTime"];
|
|
379
|
+
}, {}, {}>;
|
|
380
|
+
affiliates: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
381
|
+
active: boolean;
|
|
382
|
+
attributionWindowDays: number;
|
|
383
|
+
commissionBps: number;
|
|
384
|
+
createdAt: number;
|
|
385
|
+
name: string;
|
|
386
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
387
|
+
slug: string;
|
|
388
|
+
updatedAt: number;
|
|
389
|
+
}, {
|
|
390
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
391
|
+
slug: import("convex/values").VString<string, "required">;
|
|
392
|
+
name: import("convex/values").VString<string, "required">;
|
|
393
|
+
commissionBps: import("convex/values").VFloat64<number, "required">;
|
|
394
|
+
attributionWindowDays: import("convex/values").VFloat64<number, "required">;
|
|
395
|
+
active: import("convex/values").VBoolean<boolean, "required">;
|
|
396
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
397
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
398
|
+
}, "required", "active" | "attributionWindowDays" | "commissionBps" | "createdAt" | "name" | "siteId" | "slug" | "updatedAt">, {
|
|
399
|
+
by_siteId: ["siteId", "_creationTime"];
|
|
400
|
+
by_siteId_and_slug: ["siteId", "slug", "_creationTime"];
|
|
401
|
+
}, {}, {}>;
|
|
402
|
+
visitorAttributions: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
403
|
+
affiliateId: import("convex/values").GenericId<"affiliates">;
|
|
404
|
+
affiliateSlug: string;
|
|
405
|
+
attributedAt: number;
|
|
406
|
+
expiresAt: number;
|
|
407
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
408
|
+
visitorId: string;
|
|
409
|
+
}, {
|
|
410
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
411
|
+
visitorId: import("convex/values").VString<string, "required">;
|
|
412
|
+
affiliateId: import("convex/values").VId<import("convex/values").GenericId<"affiliates">, "required">;
|
|
413
|
+
affiliateSlug: import("convex/values").VString<string, "required">;
|
|
414
|
+
attributedAt: import("convex/values").VFloat64<number, "required">;
|
|
415
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
416
|
+
}, "required", "affiliateId" | "affiliateSlug" | "attributedAt" | "expiresAt" | "siteId" | "visitorId">, {
|
|
417
|
+
by_siteId_and_expiresAt: ["siteId", "expiresAt", "_creationTime"];
|
|
418
|
+
by_siteId_and_visitorId: ["siteId", "visitorId", "_creationTime"];
|
|
419
|
+
}, {}, {}>;
|
|
420
|
+
affiliateDailyStats: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
421
|
+
affiliateId: import("convex/values").GenericId<"affiliates">;
|
|
422
|
+
affiliateSlug: string;
|
|
423
|
+
bucketStart: number;
|
|
424
|
+
commissionCents: number;
|
|
425
|
+
conversions: number;
|
|
426
|
+
revenueCents: number;
|
|
427
|
+
shard: number;
|
|
428
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
429
|
+
}, {
|
|
430
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
431
|
+
affiliateId: import("convex/values").VId<import("convex/values").GenericId<"affiliates">, "required">;
|
|
432
|
+
affiliateSlug: import("convex/values").VString<string, "required">;
|
|
433
|
+
bucketStart: import("convex/values").VFloat64<number, "required">;
|
|
434
|
+
shard: import("convex/values").VFloat64<number, "required">;
|
|
435
|
+
conversions: import("convex/values").VFloat64<number, "required">;
|
|
436
|
+
revenueCents: import("convex/values").VFloat64<number, "required">;
|
|
437
|
+
commissionCents: import("convex/values").VFloat64<number, "required">;
|
|
438
|
+
}, "required", "affiliateId" | "affiliateSlug" | "bucketStart" | "commissionCents" | "conversions" | "revenueCents" | "shard" | "siteId">, {
|
|
439
|
+
by_siteId_and_affiliateId_and_bucketStart_and_shard: ["siteId", "affiliateId", "bucketStart", "shard", "_creationTime"];
|
|
440
|
+
by_siteId_and_bucketStart: ["siteId", "bucketStart", "_creationTime"];
|
|
441
|
+
}, {}, {}>;
|
|
442
|
+
conversions: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
443
|
+
affiliateAttributedAt?: number | undefined;
|
|
444
|
+
affiliateExpiresAt?: number | undefined;
|
|
445
|
+
affiliateId?: import("convex/values").GenericId<"affiliates"> | undefined;
|
|
446
|
+
affiliateSlug?: string | undefined;
|
|
447
|
+
commissionCents: number;
|
|
448
|
+
currency: string;
|
|
449
|
+
eventId: string;
|
|
450
|
+
goalKey?: string | undefined;
|
|
451
|
+
path: string;
|
|
452
|
+
revenueCents: number;
|
|
453
|
+
sessionId: string;
|
|
454
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
455
|
+
source: "tracker" | "trusted";
|
|
456
|
+
timestamp: number;
|
|
457
|
+
visitorId: string;
|
|
458
|
+
}, {
|
|
459
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
460
|
+
eventId: import("convex/values").VString<string, "required">;
|
|
461
|
+
sessionId: import("convex/values").VString<string, "required">;
|
|
462
|
+
visitorId: import("convex/values").VString<string, "required">;
|
|
463
|
+
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
464
|
+
path: import("convex/values").VString<string, "required">;
|
|
465
|
+
revenueCents: import("convex/values").VFloat64<number, "required">;
|
|
466
|
+
currency: import("convex/values").VString<string, "required">;
|
|
467
|
+
source: import("convex/values").VUnion<"tracker" | "trusted", [import("convex/values").VLiteral<"tracker", "required">, import("convex/values").VLiteral<"trusted", "required">], "required", never>;
|
|
468
|
+
goalKey: import("convex/values").VString<string | undefined, "optional">;
|
|
469
|
+
affiliateId: import("convex/values").VId<import("convex/values").GenericId<"affiliates"> | undefined, "optional">;
|
|
470
|
+
affiliateAttributedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
471
|
+
affiliateExpiresAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
472
|
+
affiliateSlug: import("convex/values").VString<string | undefined, "optional">;
|
|
473
|
+
commissionCents: import("convex/values").VFloat64<number, "required">;
|
|
474
|
+
}, "required", "affiliateAttributedAt" | "affiliateExpiresAt" | "affiliateId" | "affiliateSlug" | "commissionCents" | "currency" | "eventId" | "goalKey" | "path" | "revenueCents" | "sessionId" | "siteId" | "source" | "timestamp" | "visitorId">, {
|
|
475
|
+
by_siteId_and_eventId: ["siteId", "eventId", "_creationTime"];
|
|
476
|
+
by_siteId_and_timestamp: ["siteId", "timestamp", "_creationTime"];
|
|
477
|
+
by_siteId_and_visitorId_and_timestamp: ["siteId", "visitorId", "timestamp", "_creationTime"];
|
|
478
|
+
}, {}, {}>;
|
|
479
|
+
ingestWindows: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
480
|
+
byteCount: number;
|
|
481
|
+
eventCount: number;
|
|
482
|
+
sessionId: string;
|
|
483
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
484
|
+
updatedAt: number;
|
|
485
|
+
windowStart: number;
|
|
486
|
+
}, {
|
|
487
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
488
|
+
sessionId: import("convex/values").VString<string, "required">;
|
|
489
|
+
windowStart: import("convex/values").VFloat64<number, "required">;
|
|
490
|
+
eventCount: import("convex/values").VFloat64<number, "required">;
|
|
491
|
+
byteCount: import("convex/values").VFloat64<number, "required">;
|
|
492
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
493
|
+
}, "required", "byteCount" | "eventCount" | "sessionId" | "siteId" | "updatedAt" | "windowStart">, {
|
|
494
|
+
by_siteId_and_sessionId_and_windowStart: ["siteId", "sessionId", "windowStart", "_creationTime"];
|
|
495
|
+
by_siteId_and_updatedAt: ["siteId", "updatedAt", "_creationTime"];
|
|
496
|
+
}, {}, {}>;
|
|
497
|
+
siteIngestWindows: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
498
|
+
byteCount: number;
|
|
499
|
+
eventCount: number;
|
|
500
|
+
shard: number;
|
|
501
|
+
siteId: import("convex/values").GenericId<"sites">;
|
|
502
|
+
updatedAt: number;
|
|
503
|
+
windowStart: number;
|
|
504
|
+
}, {
|
|
505
|
+
siteId: import("convex/values").VId<import("convex/values").GenericId<"sites">, "required">;
|
|
506
|
+
shard: import("convex/values").VFloat64<number, "required">;
|
|
507
|
+
windowStart: import("convex/values").VFloat64<number, "required">;
|
|
508
|
+
eventCount: import("convex/values").VFloat64<number, "required">;
|
|
509
|
+
byteCount: import("convex/values").VFloat64<number, "required">;
|
|
510
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
511
|
+
}, "required", "byteCount" | "eventCount" | "shard" | "siteId" | "updatedAt" | "windowStart">, {
|
|
512
|
+
by_siteId_and_shard_and_windowStart: ["siteId", "shard", "windowStart", "_creationTime"];
|
|
513
|
+
by_siteId_and_updatedAt: ["siteId", "updatedAt", "_creationTime"];
|
|
514
|
+
}, {}, {}>;
|
|
515
|
+
}, true>;
|
|
516
|
+
export default _default;
|
|
517
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":""}
|