@entrolytics/shared 2.3.0 → 2.3.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/dist/index.cjs +726 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +896 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +896 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +685 -0
- package/dist/index.js.map +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,896 @@
|
|
|
1
|
+
//#region src/analytics-types.d.ts
|
|
2
|
+
interface DateRangeFilter {
|
|
3
|
+
websiteId: string;
|
|
4
|
+
startDate: Date;
|
|
5
|
+
endDate: Date;
|
|
6
|
+
filters?: {
|
|
7
|
+
country?: string;
|
|
8
|
+
device?: "desktop" | "mobile" | "tablet";
|
|
9
|
+
browser?: string;
|
|
10
|
+
path?: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
interface OverviewStats {
|
|
14
|
+
pageviews: number;
|
|
15
|
+
visitors: number;
|
|
16
|
+
sessions: number;
|
|
17
|
+
pagesPerVisitor: number;
|
|
18
|
+
avgLoadTime: number;
|
|
19
|
+
}
|
|
20
|
+
interface TimeseriesData {
|
|
21
|
+
date: Date;
|
|
22
|
+
pageviews: number;
|
|
23
|
+
visitors: number;
|
|
24
|
+
sessions: number;
|
|
25
|
+
}
|
|
26
|
+
interface TopPage {
|
|
27
|
+
path: string;
|
|
28
|
+
views: number;
|
|
29
|
+
uniqueVisitors: number;
|
|
30
|
+
avgLoadTime: number;
|
|
31
|
+
p95LoadTime: number;
|
|
32
|
+
}
|
|
33
|
+
interface Referrer {
|
|
34
|
+
referrerDomain: string;
|
|
35
|
+
visits: number;
|
|
36
|
+
uniqueVisitors: number;
|
|
37
|
+
}
|
|
38
|
+
interface DeviceStats {
|
|
39
|
+
deviceType: string;
|
|
40
|
+
browser: string;
|
|
41
|
+
os: string;
|
|
42
|
+
pageviews: number;
|
|
43
|
+
uniqueVisitors: number;
|
|
44
|
+
}
|
|
45
|
+
interface GeoStats {
|
|
46
|
+
country: string;
|
|
47
|
+
city: string;
|
|
48
|
+
pageviews: number;
|
|
49
|
+
uniqueVisitors: number;
|
|
50
|
+
}
|
|
51
|
+
interface RealtimeStats {
|
|
52
|
+
visitors: number;
|
|
53
|
+
sessions: number;
|
|
54
|
+
pageviews: number;
|
|
55
|
+
}
|
|
56
|
+
interface RealtimeEvent {
|
|
57
|
+
timestamp: Date;
|
|
58
|
+
eventType: string;
|
|
59
|
+
eventName?: string;
|
|
60
|
+
path: string;
|
|
61
|
+
visitorId: string;
|
|
62
|
+
country?: string;
|
|
63
|
+
deviceType: string;
|
|
64
|
+
browser: string;
|
|
65
|
+
}
|
|
66
|
+
interface ActivePage {
|
|
67
|
+
path: string;
|
|
68
|
+
viewers: number;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Core event interface
|
|
72
|
+
*/
|
|
73
|
+
interface EntrolyticsEvent {
|
|
74
|
+
id: string;
|
|
75
|
+
websiteId: string;
|
|
76
|
+
sessionId: string;
|
|
77
|
+
visitorId: string;
|
|
78
|
+
timestamp: Date;
|
|
79
|
+
eventType: string;
|
|
80
|
+
eventName?: string;
|
|
81
|
+
url: string;
|
|
82
|
+
path: string;
|
|
83
|
+
referrer?: string;
|
|
84
|
+
referrerDomain?: string;
|
|
85
|
+
browser: string;
|
|
86
|
+
browserVersion?: string;
|
|
87
|
+
os: string;
|
|
88
|
+
osVersion?: string;
|
|
89
|
+
deviceType: "desktop" | "mobile" | "tablet" | "server" | "unknown";
|
|
90
|
+
screenWidth?: number;
|
|
91
|
+
screenHeight?: number;
|
|
92
|
+
country?: string;
|
|
93
|
+
city?: string;
|
|
94
|
+
region?: string;
|
|
95
|
+
loadTime?: number;
|
|
96
|
+
domInteractive?: number;
|
|
97
|
+
domComplete?: number;
|
|
98
|
+
utmSource?: string;
|
|
99
|
+
utmMedium?: string;
|
|
100
|
+
utmCampaign?: string;
|
|
101
|
+
utmTerm?: string;
|
|
102
|
+
utmContent?: string;
|
|
103
|
+
properties?: Record<string, unknown>;
|
|
104
|
+
}
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/event-protocol.d.ts
|
|
107
|
+
/**
|
|
108
|
+
* Event Protocol Types
|
|
109
|
+
*
|
|
110
|
+
* These types define the canonical event structures used across the Entrolytics ecosystem.
|
|
111
|
+
* Used by: API Server, SDKs, CLI, worker processes.
|
|
112
|
+
*
|
|
113
|
+
* This file was extracted from the internal @entrolytics/protocol package to enable
|
|
114
|
+
* sharing with external packages.
|
|
115
|
+
*/
|
|
116
|
+
/**
|
|
117
|
+
* Core event types supported by the analytics platform
|
|
118
|
+
*/
|
|
119
|
+
declare const EventType$1: {
|
|
120
|
+
readonly PageView: "pageview";
|
|
121
|
+
readonly Custom: "custom_event";
|
|
122
|
+
readonly Click: "click";
|
|
123
|
+
};
|
|
124
|
+
type EventType$1 = (typeof EventType$1)[keyof typeof EventType$1];
|
|
125
|
+
/**
|
|
126
|
+
* Event payload as sent from client SDKs
|
|
127
|
+
*/
|
|
128
|
+
interface EventPayload {
|
|
129
|
+
websiteId: string;
|
|
130
|
+
sessionId: string;
|
|
131
|
+
visitorId: string;
|
|
132
|
+
url: string;
|
|
133
|
+
referrer?: string;
|
|
134
|
+
eventType: EventType$1;
|
|
135
|
+
eventName?: string;
|
|
136
|
+
properties?: Record<string, unknown>;
|
|
137
|
+
screenWidth?: number;
|
|
138
|
+
screenHeight?: number;
|
|
139
|
+
loadTime?: number;
|
|
140
|
+
domInteractive?: number;
|
|
141
|
+
domComplete?: number;
|
|
142
|
+
utmSource?: string;
|
|
143
|
+
utmMedium?: string;
|
|
144
|
+
utmCampaign?: string;
|
|
145
|
+
utmTerm?: string;
|
|
146
|
+
utmContent?: string;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Event DB row structure as stored in ClickHouse
|
|
150
|
+
* Uses snake_case to match database column naming convention
|
|
151
|
+
*/
|
|
152
|
+
interface EventDBRow {
|
|
153
|
+
id: string;
|
|
154
|
+
website_id: string;
|
|
155
|
+
session_id: string;
|
|
156
|
+
visitor_id: string;
|
|
157
|
+
timestamp: string;
|
|
158
|
+
event_type: EventType$1;
|
|
159
|
+
event_name: string | null;
|
|
160
|
+
url: string;
|
|
161
|
+
path: string;
|
|
162
|
+
referrer: string | null;
|
|
163
|
+
referrer_domain: string | null;
|
|
164
|
+
browser: string;
|
|
165
|
+
browser_version: string | null;
|
|
166
|
+
os: string;
|
|
167
|
+
os_version: string | null;
|
|
168
|
+
device_type: "desktop" | "mobile" | "tablet" | "server" | "unknown";
|
|
169
|
+
screen_width: number | null;
|
|
170
|
+
screen_height: number | null;
|
|
171
|
+
country: string | null;
|
|
172
|
+
city: string | null;
|
|
173
|
+
region: string | null;
|
|
174
|
+
load_time: number | null;
|
|
175
|
+
dom_interactive: number | null;
|
|
176
|
+
dom_complete: number | null;
|
|
177
|
+
utm_source: string | null;
|
|
178
|
+
utm_medium: string | null;
|
|
179
|
+
utm_campaign: string | null;
|
|
180
|
+
utm_term: string | null;
|
|
181
|
+
utm_content: string | null;
|
|
182
|
+
properties: string;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Device types for analytics segmentation
|
|
186
|
+
*/
|
|
187
|
+
type DeviceType = "desktop" | "mobile" | "tablet" | "server" | "unknown";
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/index.d.ts
|
|
190
|
+
/**
|
|
191
|
+
* Shared constants across Entrolytics ecosystem
|
|
192
|
+
* Used by: CLI, SDKs, Dashboard, Integrations
|
|
193
|
+
*/
|
|
194
|
+
/**
|
|
195
|
+
* Plan definitions and limits
|
|
196
|
+
*/
|
|
197
|
+
declare const PLANS: {
|
|
198
|
+
readonly starter: {
|
|
199
|
+
readonly id: "starter";
|
|
200
|
+
readonly name: "Starter";
|
|
201
|
+
readonly price: 0;
|
|
202
|
+
readonly limits: {
|
|
203
|
+
readonly pageviewsPerMonth: 25000;
|
|
204
|
+
readonly websites: 2;
|
|
205
|
+
readonly retentionDays: 30;
|
|
206
|
+
readonly seats: 1;
|
|
207
|
+
};
|
|
208
|
+
readonly features: {
|
|
209
|
+
readonly funnels: false;
|
|
210
|
+
readonly attribution: false;
|
|
211
|
+
readonly revenue: false;
|
|
212
|
+
readonly customDashboards: false;
|
|
213
|
+
readonly apiAccess: false;
|
|
214
|
+
readonly weeklyReports: true;
|
|
215
|
+
readonly support: "community";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
readonly pro: {
|
|
219
|
+
readonly id: "pro";
|
|
220
|
+
readonly name: "Pro";
|
|
221
|
+
readonly price: 29;
|
|
222
|
+
readonly limits: {
|
|
223
|
+
readonly pageviewsPerMonth: 250000;
|
|
224
|
+
readonly websites: 10;
|
|
225
|
+
readonly retentionDays: 365;
|
|
226
|
+
readonly seats: 5;
|
|
227
|
+
};
|
|
228
|
+
readonly features: {
|
|
229
|
+
readonly funnels: true;
|
|
230
|
+
readonly attribution: true;
|
|
231
|
+
readonly revenue: true;
|
|
232
|
+
readonly customDashboards: false;
|
|
233
|
+
readonly apiAccess: true;
|
|
234
|
+
readonly weeklyReports: true;
|
|
235
|
+
readonly support: "email";
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
readonly business: {
|
|
239
|
+
readonly id: "business";
|
|
240
|
+
readonly name: "Business";
|
|
241
|
+
readonly price: 99;
|
|
242
|
+
readonly limits: {
|
|
243
|
+
readonly pageviewsPerMonth: 1000000;
|
|
244
|
+
readonly websites: -1;
|
|
245
|
+
readonly retentionDays: 730;
|
|
246
|
+
readonly seats: -1;
|
|
247
|
+
};
|
|
248
|
+
readonly features: {
|
|
249
|
+
readonly funnels: true;
|
|
250
|
+
readonly attribution: true;
|
|
251
|
+
readonly revenue: true;
|
|
252
|
+
readonly customDashboards: true;
|
|
253
|
+
readonly apiAccess: true;
|
|
254
|
+
readonly weeklyReports: true;
|
|
255
|
+
readonly support: "priority";
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
readonly enterprise: {
|
|
259
|
+
readonly id: "enterprise";
|
|
260
|
+
readonly name: "Enterprise";
|
|
261
|
+
readonly price: -1;
|
|
262
|
+
readonly limits: {
|
|
263
|
+
readonly pageviewsPerMonth: -1;
|
|
264
|
+
readonly websites: -1;
|
|
265
|
+
readonly retentionDays: -1;
|
|
266
|
+
readonly seats: -1;
|
|
267
|
+
};
|
|
268
|
+
readonly features: {
|
|
269
|
+
readonly funnels: true;
|
|
270
|
+
readonly attribution: true;
|
|
271
|
+
readonly revenue: true;
|
|
272
|
+
readonly customDashboards: true;
|
|
273
|
+
readonly apiAccess: true;
|
|
274
|
+
readonly weeklyReports: true;
|
|
275
|
+
readonly support: "dedicated";
|
|
276
|
+
readonly sso: true;
|
|
277
|
+
readonly auditLogs: true;
|
|
278
|
+
readonly customRetention: true;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* Plan feature names for display
|
|
284
|
+
*/
|
|
285
|
+
declare const PLAN_FEATURES: {
|
|
286
|
+
readonly funnels: "Funnel Analytics";
|
|
287
|
+
readonly attribution: "Attribution Reports";
|
|
288
|
+
readonly revenue: "Revenue Tracking";
|
|
289
|
+
readonly customDashboards: "Custom Dashboards";
|
|
290
|
+
readonly apiAccess: "API Access";
|
|
291
|
+
readonly weeklyReports: "Weekly Email Reports";
|
|
292
|
+
readonly sso: "SSO/SAML";
|
|
293
|
+
readonly auditLogs: "Audit Logs";
|
|
294
|
+
readonly customRetention: "Custom Data Retention";
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* Usage warning thresholds (percentages)
|
|
298
|
+
*/
|
|
299
|
+
declare const USAGE_THRESHOLDS: {
|
|
300
|
+
readonly warning: 90;
|
|
301
|
+
readonly critical: 95;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Billing-related error codes
|
|
305
|
+
*/
|
|
306
|
+
declare const BILLING_ERRORS: {
|
|
307
|
+
readonly quotaExceeded: "QUOTA_EXCEEDED";
|
|
308
|
+
readonly planRequired: "PLAN_REQUIRED";
|
|
309
|
+
readonly featureNotAvailable: "FEATURE_NOT_AVAILABLE";
|
|
310
|
+
readonly subscriptionInactive: "SUBSCRIPTION_INACTIVE";
|
|
311
|
+
readonly paymentFailed: "PAYMENT_FAILED";
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* API endpoint configuration
|
|
315
|
+
*/
|
|
316
|
+
declare const API_ENDPOINTS: {
|
|
317
|
+
readonly production: "https://api.entrolytics.com";
|
|
318
|
+
readonly development: "http://localhost:3001";
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* Default API host
|
|
322
|
+
*/
|
|
323
|
+
declare const DEFAULT_API_HOST: "https://api.entrolytics.com" | "http://localhost:3001";
|
|
324
|
+
/**
|
|
325
|
+
* Environment variable naming conventions by framework
|
|
326
|
+
*/
|
|
327
|
+
declare const ENV_VAR_NAMES: {
|
|
328
|
+
readonly nextjs: {
|
|
329
|
+
readonly websiteId: "NEXT_PUBLIC_ENTROLYTICS_WEBSITE_ID";
|
|
330
|
+
readonly host: "NEXT_PUBLIC_ENTROLYTICS_HOST";
|
|
331
|
+
readonly envFile: ".env.local";
|
|
332
|
+
};
|
|
333
|
+
readonly react: {
|
|
334
|
+
readonly websiteId: "VITE_ENTROLYTICS_WEBSITE_ID";
|
|
335
|
+
readonly host: "VITE_ENTROLYTICS_HOST";
|
|
336
|
+
readonly envFile: ".env";
|
|
337
|
+
readonly fallback: {
|
|
338
|
+
readonly websiteId: "REACT_APP_ENTROLYTICS_WEBSITE_ID";
|
|
339
|
+
readonly host: "REACT_APP_ENTROLYTICS_HOST";
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
readonly vue: {
|
|
343
|
+
readonly websiteId: "VITE_ENTROLYTICS_WEBSITE_ID";
|
|
344
|
+
readonly host: "VITE_ENTROLYTICS_HOST";
|
|
345
|
+
readonly envFile: ".env";
|
|
346
|
+
};
|
|
347
|
+
readonly svelte: {
|
|
348
|
+
readonly websiteId: "PUBLIC_ENTROLYTICS_WEBSITE_ID";
|
|
349
|
+
readonly host: "PUBLIC_ENTROLYTICS_HOST";
|
|
350
|
+
readonly envFile: ".env";
|
|
351
|
+
};
|
|
352
|
+
readonly astro: {
|
|
353
|
+
readonly websiteId: "PUBLIC_ENTROLYTICS_WEBSITE_ID";
|
|
354
|
+
readonly host: "PUBLIC_ENTROLYTICS_HOST";
|
|
355
|
+
readonly envFile: ".env";
|
|
356
|
+
};
|
|
357
|
+
readonly html: {
|
|
358
|
+
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
359
|
+
readonly host: "ENTROLYTICS_HOST";
|
|
360
|
+
readonly envFile: ".env";
|
|
361
|
+
};
|
|
362
|
+
readonly node: {
|
|
363
|
+
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
364
|
+
readonly host: "ENTROLYTICS_HOST";
|
|
365
|
+
readonly envFile: ".env";
|
|
366
|
+
};
|
|
367
|
+
readonly php: {
|
|
368
|
+
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
369
|
+
readonly host: "ENTROLYTICS_HOST";
|
|
370
|
+
readonly envFile: ".env";
|
|
371
|
+
};
|
|
372
|
+
readonly python: {
|
|
373
|
+
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
374
|
+
readonly host: "ENTROLYTICS_HOST";
|
|
375
|
+
readonly envFile: ".env";
|
|
376
|
+
};
|
|
377
|
+
readonly go: {
|
|
378
|
+
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
379
|
+
readonly host: "ENTROLYTICS_HOST";
|
|
380
|
+
readonly envFile: ".env";
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
* CLI configuration constants
|
|
385
|
+
*/
|
|
386
|
+
declare const CLI_CONFIG: {
|
|
387
|
+
readonly tokenExpiryMinutes: 15;
|
|
388
|
+
readonly maxTokensPerUser: 10;
|
|
389
|
+
readonly pollIntervalMs: 2000;
|
|
390
|
+
readonly setupTimeoutMs: 300000;
|
|
391
|
+
readonly minCliVersion: "1.0.0";
|
|
392
|
+
};
|
|
393
|
+
/**
|
|
394
|
+
* Core event types - matches backend protocol values exactly
|
|
395
|
+
* Used by: API Server, SDKs, CLI, worker processes
|
|
396
|
+
* See: entrolytics/packages/protocol/src/events.ts
|
|
397
|
+
*/
|
|
398
|
+
declare const EVENT_TYPES: {
|
|
399
|
+
readonly pageView: "pageview";
|
|
400
|
+
readonly custom: "custom_event";
|
|
401
|
+
readonly click: "click";
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* Extended event types for SDK-level semantics
|
|
405
|
+
* These are higher-level event categories used by SDKs
|
|
406
|
+
* They map to the core EVENT_TYPES when sent to the backend
|
|
407
|
+
*/
|
|
408
|
+
declare const SDK_EVENT_TYPES: {
|
|
409
|
+
readonly pageView: "pageview";
|
|
410
|
+
readonly click: "click";
|
|
411
|
+
readonly formSubmit: "form_submit";
|
|
412
|
+
readonly custom: "custom_event";
|
|
413
|
+
readonly error: "error";
|
|
414
|
+
readonly performance: "performance";
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
* Web Vitals metric types (Phase 2)
|
|
418
|
+
* Core Web Vitals: LCP, INP, CLS
|
|
419
|
+
* Additional: TTFB, FCP
|
|
420
|
+
*/
|
|
421
|
+
declare const VITAL_TYPES: {
|
|
422
|
+
readonly LCP: "LCP";
|
|
423
|
+
readonly INP: "INP";
|
|
424
|
+
readonly CLS: "CLS";
|
|
425
|
+
readonly TTFB: "TTFB";
|
|
426
|
+
readonly FCP: "FCP";
|
|
427
|
+
};
|
|
428
|
+
/**
|
|
429
|
+
* Web Vitals rating thresholds
|
|
430
|
+
*/
|
|
431
|
+
declare const VITAL_RATINGS: {
|
|
432
|
+
readonly good: "good";
|
|
433
|
+
readonly needsImprovement: "needs-improvement";
|
|
434
|
+
readonly poor: "poor";
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* Web Vitals thresholds by metric (in milliseconds, except CLS which is unitless)
|
|
438
|
+
*/
|
|
439
|
+
declare const VITAL_THRESHOLDS: {
|
|
440
|
+
readonly LCP: {
|
|
441
|
+
readonly good: 2500;
|
|
442
|
+
readonly poor: 4000;
|
|
443
|
+
};
|
|
444
|
+
readonly INP: {
|
|
445
|
+
readonly good: 200;
|
|
446
|
+
readonly poor: 500;
|
|
447
|
+
};
|
|
448
|
+
readonly CLS: {
|
|
449
|
+
readonly good: 0.1;
|
|
450
|
+
readonly poor: 0.25;
|
|
451
|
+
};
|
|
452
|
+
readonly TTFB: {
|
|
453
|
+
readonly good: 800;
|
|
454
|
+
readonly poor: 1800;
|
|
455
|
+
};
|
|
456
|
+
readonly FCP: {
|
|
457
|
+
readonly good: 1800;
|
|
458
|
+
readonly poor: 3000;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* Navigation types for Web Vitals context
|
|
463
|
+
*/
|
|
464
|
+
declare const NAVIGATION_TYPES: {
|
|
465
|
+
readonly navigate: "navigate";
|
|
466
|
+
readonly reload: "reload";
|
|
467
|
+
readonly backForward: "back-forward";
|
|
468
|
+
readonly backForwardCache: "back-forward-cache";
|
|
469
|
+
readonly prerender: "prerender";
|
|
470
|
+
readonly restore: "restore";
|
|
471
|
+
};
|
|
472
|
+
/**
|
|
473
|
+
* Form event types (Phase 2)
|
|
474
|
+
*/
|
|
475
|
+
declare const FORM_EVENT_TYPES: {
|
|
476
|
+
readonly start: "start";
|
|
477
|
+
readonly fieldFocus: "field_focus";
|
|
478
|
+
readonly fieldBlur: "field_blur";
|
|
479
|
+
readonly fieldError: "field_error";
|
|
480
|
+
readonly submit: "submit";
|
|
481
|
+
readonly abandon: "abandon";
|
|
482
|
+
};
|
|
483
|
+
/**
|
|
484
|
+
* Form field types
|
|
485
|
+
*/
|
|
486
|
+
declare const FORM_FIELD_TYPES: {
|
|
487
|
+
readonly text: "text";
|
|
488
|
+
readonly email: "email";
|
|
489
|
+
readonly password: "password";
|
|
490
|
+
readonly tel: "tel";
|
|
491
|
+
readonly number: "number";
|
|
492
|
+
readonly url: "url";
|
|
493
|
+
readonly textarea: "textarea";
|
|
494
|
+
readonly select: "select";
|
|
495
|
+
readonly checkbox: "checkbox";
|
|
496
|
+
readonly radio: "radio";
|
|
497
|
+
readonly date: "date";
|
|
498
|
+
readonly file: "file";
|
|
499
|
+
readonly hidden: "hidden";
|
|
500
|
+
readonly submit: "submit";
|
|
501
|
+
readonly other: "other";
|
|
502
|
+
};
|
|
503
|
+
/**
|
|
504
|
+
* Deployment platform sources (Phase 2)
|
|
505
|
+
*/
|
|
506
|
+
declare const DEPLOYMENT_SOURCES: {
|
|
507
|
+
readonly vercel: "vercel";
|
|
508
|
+
readonly netlify: "netlify";
|
|
509
|
+
readonly cloudflare: "cloudflare";
|
|
510
|
+
readonly railway: "railway";
|
|
511
|
+
readonly render: "render";
|
|
512
|
+
readonly fly: "fly";
|
|
513
|
+
readonly heroku: "heroku";
|
|
514
|
+
readonly aws: "aws";
|
|
515
|
+
readonly gcp: "gcp";
|
|
516
|
+
readonly azure: "azure";
|
|
517
|
+
readonly custom: "custom";
|
|
518
|
+
};
|
|
519
|
+
/**
|
|
520
|
+
* Deployment environment variables by platform
|
|
521
|
+
*/
|
|
522
|
+
declare const DEPLOYMENT_ENV_VARS: {
|
|
523
|
+
readonly vercel: {
|
|
524
|
+
readonly deployId: "VERCEL_DEPLOYMENT_ID";
|
|
525
|
+
readonly gitSha: "VERCEL_GIT_COMMIT_SHA";
|
|
526
|
+
readonly gitBranch: "VERCEL_GIT_COMMIT_REF";
|
|
527
|
+
readonly url: "VERCEL_URL";
|
|
528
|
+
};
|
|
529
|
+
readonly netlify: {
|
|
530
|
+
readonly deployId: "DEPLOY_ID";
|
|
531
|
+
readonly gitSha: "COMMIT_REF";
|
|
532
|
+
readonly gitBranch: "BRANCH";
|
|
533
|
+
readonly url: "DEPLOY_URL";
|
|
534
|
+
};
|
|
535
|
+
readonly cloudflare: {
|
|
536
|
+
readonly deployId: "CF_PAGES_COMMIT_SHA";
|
|
537
|
+
readonly gitSha: "CF_PAGES_COMMIT_SHA";
|
|
538
|
+
readonly gitBranch: "CF_PAGES_BRANCH";
|
|
539
|
+
readonly url: "CF_PAGES_URL";
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
/**
|
|
543
|
+
* HTTP status codes
|
|
544
|
+
*/
|
|
545
|
+
declare const HTTP_STATUS: {
|
|
546
|
+
readonly ok: 200;
|
|
547
|
+
readonly created: 201;
|
|
548
|
+
readonly accepted: 202;
|
|
549
|
+
readonly noContent: 204;
|
|
550
|
+
readonly badRequest: 400;
|
|
551
|
+
readonly unauthorized: 401;
|
|
552
|
+
readonly forbidden: 403;
|
|
553
|
+
readonly notFound: 404;
|
|
554
|
+
readonly conflict: 409;
|
|
555
|
+
readonly tooManyRequests: 429;
|
|
556
|
+
readonly internalServerError: 500;
|
|
557
|
+
readonly serviceUnavailable: 503;
|
|
558
|
+
};
|
|
559
|
+
/**
|
|
560
|
+
* API route paths
|
|
561
|
+
*/
|
|
562
|
+
declare const API_ROUTES: {
|
|
563
|
+
readonly cliAuthToken: "/api/auth/cli/token";
|
|
564
|
+
readonly cliAuthTokens: "/api/auth/cli/tokens";
|
|
565
|
+
readonly cliValidate: "/api/auth/cli/validate";
|
|
566
|
+
readonly cliToken: "/api/cli/token";
|
|
567
|
+
readonly shareToken: (shareId: string) => string;
|
|
568
|
+
readonly links: "/api/links";
|
|
569
|
+
readonly linkRedirect: (slug: string) => string;
|
|
570
|
+
readonly websites: "/api/websites";
|
|
571
|
+
readonly websiteById: (id: string) => string;
|
|
572
|
+
readonly websiteEvents: (id: string) => string;
|
|
573
|
+
readonly websiteRecentEvents: (id: string) => string;
|
|
574
|
+
readonly userOnboarding: "/api/user/onboarding";
|
|
575
|
+
readonly userProfile: "/api/user/profile";
|
|
576
|
+
readonly userEmailPreferences: "/api/me/email-preferences";
|
|
577
|
+
readonly billingUsage: "/api/billing/usage";
|
|
578
|
+
readonly billingCheckout: "/api/billing/checkout";
|
|
579
|
+
readonly billingPortal: "/api/billing/portal";
|
|
580
|
+
readonly billingWebhook: "/api/billing/webhook";
|
|
581
|
+
readonly analyticsOverview: (websiteId: string) => string;
|
|
582
|
+
readonly analyticsTimeseries: (websiteId: string) => string;
|
|
583
|
+
readonly analyticsTopPages: (websiteId: string) => string;
|
|
584
|
+
readonly analyticsTopReferrers: (websiteId: string) => string;
|
|
585
|
+
readonly analyticsGeography: (websiteId: string) => string;
|
|
586
|
+
readonly analyticsDevices: (websiteId: string) => string;
|
|
587
|
+
readonly collect: "/collect";
|
|
588
|
+
readonly collectBatch: "/collect/batch";
|
|
589
|
+
readonly send: "/collect";
|
|
590
|
+
readonly collectVitals: "/api/collect/vitals";
|
|
591
|
+
readonly collectVitalsBatch: "/api/collect/vitals/batch";
|
|
592
|
+
readonly collectForms: "/api/collect/forms";
|
|
593
|
+
readonly websiteVitals: (id: string) => string;
|
|
594
|
+
readonly websiteForms: (id: string) => string;
|
|
595
|
+
readonly websiteDeployments: (id: string) => string;
|
|
596
|
+
readonly health: "/api/health";
|
|
597
|
+
readonly healthIntegrations: "/api/health/integrations";
|
|
598
|
+
};
|
|
599
|
+
/**
|
|
600
|
+
* Onboarding step identifiers
|
|
601
|
+
*/
|
|
602
|
+
declare const ONBOARDING_STEPS: {
|
|
603
|
+
readonly welcome: "welcome";
|
|
604
|
+
readonly createWebsite: "create-website";
|
|
605
|
+
readonly installTracking: "install-tracking";
|
|
606
|
+
readonly verify: "verify";
|
|
607
|
+
readonly complete: "complete";
|
|
608
|
+
readonly skipped: "skipped";
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* CLI token statuses
|
|
612
|
+
*/
|
|
613
|
+
declare const CLI_TOKEN_STATUS: {
|
|
614
|
+
readonly pending: "pending";
|
|
615
|
+
readonly used: "used";
|
|
616
|
+
readonly expired: "expired";
|
|
617
|
+
readonly revoked: "revoked";
|
|
618
|
+
};
|
|
619
|
+
/**
|
|
620
|
+
* User roles
|
|
621
|
+
*/
|
|
622
|
+
declare const USER_ROLES: {
|
|
623
|
+
readonly admin: "admin";
|
|
624
|
+
readonly user: "user";
|
|
625
|
+
readonly viewer: "viewer";
|
|
626
|
+
};
|
|
627
|
+
/**
|
|
628
|
+
* Framework package names
|
|
629
|
+
*/
|
|
630
|
+
declare const FRAMEWORK_PACKAGES: {
|
|
631
|
+
readonly nextjs: "@entrolytics/nextjs-sdk";
|
|
632
|
+
readonly react: "@entrolytics/react-sdk";
|
|
633
|
+
readonly vue: "@entrolytics/vue-sdk";
|
|
634
|
+
readonly svelte: "@entrolytics/svelte-sdk";
|
|
635
|
+
readonly astro: "@entrolytics/astro-sdk";
|
|
636
|
+
readonly node: "@entrolytics/node-sdk";
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* Framework detection patterns
|
|
640
|
+
*/
|
|
641
|
+
declare const FRAMEWORK_PATTERNS: {
|
|
642
|
+
readonly nextjs: {
|
|
643
|
+
readonly files: readonly ["next.config.js", "next.config.mjs", "next.config.ts"];
|
|
644
|
+
readonly dependencies: readonly ["next"];
|
|
645
|
+
};
|
|
646
|
+
readonly react: {
|
|
647
|
+
readonly files: readonly ["vite.config.js", "vite.config.ts"];
|
|
648
|
+
readonly dependencies: readonly ["react", "vite"];
|
|
649
|
+
};
|
|
650
|
+
readonly vue: {
|
|
651
|
+
readonly files: readonly ["vite.config.js", "vite.config.ts"];
|
|
652
|
+
readonly dependencies: readonly ["vue", "vite"];
|
|
653
|
+
};
|
|
654
|
+
readonly svelte: {
|
|
655
|
+
readonly files: readonly ["svelte.config.js", "svelte.config.ts"];
|
|
656
|
+
readonly dependencies: readonly ["svelte"];
|
|
657
|
+
};
|
|
658
|
+
readonly astro: {
|
|
659
|
+
readonly files: readonly ["astro.config.mjs", "astro.config.ts"];
|
|
660
|
+
readonly dependencies: readonly ["astro"];
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
/**
|
|
664
|
+
* Rate limiting configuration
|
|
665
|
+
* Updated to match server-side implementation
|
|
666
|
+
*/
|
|
667
|
+
declare const RATE_LIMITS: {
|
|
668
|
+
readonly cliTokenExchange: {
|
|
669
|
+
readonly windowSeconds: 60;
|
|
670
|
+
readonly maxRequests: 5;
|
|
671
|
+
};
|
|
672
|
+
readonly shareTokenGeneration: {
|
|
673
|
+
readonly windowSeconds: 60;
|
|
674
|
+
readonly maxRequests: 10;
|
|
675
|
+
};
|
|
676
|
+
readonly linkCreation: {
|
|
677
|
+
readonly windowSeconds: 60;
|
|
678
|
+
readonly maxRequests: 20;
|
|
679
|
+
};
|
|
680
|
+
readonly linkRedirect: {
|
|
681
|
+
readonly windowSeconds: 60;
|
|
682
|
+
readonly maxRequests: 100;
|
|
683
|
+
};
|
|
684
|
+
readonly apiGeneral: {
|
|
685
|
+
readonly windowSeconds: 60;
|
|
686
|
+
readonly maxRequests: 100;
|
|
687
|
+
};
|
|
688
|
+
readonly cliTokenGeneration: {
|
|
689
|
+
readonly windowMs: 3600000;
|
|
690
|
+
readonly maxRequests: 10;
|
|
691
|
+
};
|
|
692
|
+
readonly cliValidation: {
|
|
693
|
+
readonly windowMs: 3600000;
|
|
694
|
+
readonly maxRequests: 100;
|
|
695
|
+
};
|
|
696
|
+
readonly eventCollection: {
|
|
697
|
+
readonly windowMs: 60000;
|
|
698
|
+
readonly maxRequests: 1000;
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
/**
|
|
702
|
+
* Error messages
|
|
703
|
+
*/
|
|
704
|
+
declare const ERROR_MESSAGES: {
|
|
705
|
+
readonly unauthorized: "Unauthorized access";
|
|
706
|
+
readonly forbidden: "Access forbidden";
|
|
707
|
+
readonly tokenExpired: "Token has expired";
|
|
708
|
+
readonly tokenInvalid: "Invalid token";
|
|
709
|
+
readonly tokenNotFound: "Token not found";
|
|
710
|
+
readonly tokenAlreadyUsed: "Token has already been used";
|
|
711
|
+
readonly tokenRevoked: "Token has been revoked";
|
|
712
|
+
readonly tokenMissingJti: "Token missing JTI - please re-authenticate";
|
|
713
|
+
readonly userBanned: "User account has been banned";
|
|
714
|
+
readonly userDeleted: "User account has been deleted";
|
|
715
|
+
readonly shareTokenExpired: "Share token has expired";
|
|
716
|
+
readonly shareTokenRevoked: "Share has been revoked";
|
|
717
|
+
readonly shareTokenInvalid: "Invalid share token";
|
|
718
|
+
readonly invalidUrl: "Invalid URL provided";
|
|
719
|
+
readonly invalidUrlProtocol: "URL must use http or https protocol";
|
|
720
|
+
readonly openRedirectBlocked: "Open redirect attempt blocked";
|
|
721
|
+
readonly invalidInput: "Invalid input provided";
|
|
722
|
+
readonly missingRequired: "Missing required fields";
|
|
723
|
+
readonly invalidFormat: "Invalid format";
|
|
724
|
+
readonly notFound: "Resource not found";
|
|
725
|
+
readonly websiteNotFound: "Website not found";
|
|
726
|
+
readonly userNotFound: "User not found";
|
|
727
|
+
readonly linkNotFound: "Link not found";
|
|
728
|
+
readonly tooManyRequests: "Too many requests. Please try again later.";
|
|
729
|
+
readonly rateLimitExceeded: "Rate limit exceeded";
|
|
730
|
+
readonly internalError: "Internal server error";
|
|
731
|
+
readonly serviceUnavailable: "Service temporarily unavailable";
|
|
732
|
+
};
|
|
733
|
+
/**
|
|
734
|
+
* Success messages
|
|
735
|
+
*/
|
|
736
|
+
declare const SUCCESS_MESSAGES: {
|
|
737
|
+
readonly tokenGenerated: "Setup token generated successfully";
|
|
738
|
+
readonly tokenValidated: "Token validated successfully";
|
|
739
|
+
readonly tokenRevoked: "Token revoked successfully";
|
|
740
|
+
readonly allTokensRevoked: "All tokens revoked successfully";
|
|
741
|
+
readonly websiteCreated: "Website created successfully";
|
|
742
|
+
readonly linkCreated: "Link created successfully";
|
|
743
|
+
readonly shareCreated: "Share created successfully";
|
|
744
|
+
readonly onboardingComplete: "Onboarding completed successfully";
|
|
745
|
+
readonly setupComplete: "Setup completed successfully";
|
|
746
|
+
};
|
|
747
|
+
/**
|
|
748
|
+
* CLI Access Token metadata
|
|
749
|
+
*/
|
|
750
|
+
interface CliAccessTokenMetadata {
|
|
751
|
+
jti: string;
|
|
752
|
+
createdAt: string;
|
|
753
|
+
expiresAt: string;
|
|
754
|
+
lastUsedAt: string | null;
|
|
755
|
+
ipAddress: string | null;
|
|
756
|
+
userAgent: string | null;
|
|
757
|
+
}
|
|
758
|
+
type Framework = keyof typeof ENV_VAR_NAMES;
|
|
759
|
+
type EventType = (typeof EVENT_TYPES)[keyof typeof EVENT_TYPES];
|
|
760
|
+
type SdkEventType = (typeof SDK_EVENT_TYPES)[keyof typeof SDK_EVENT_TYPES];
|
|
761
|
+
type OnboardingStep = (typeof ONBOARDING_STEPS)[keyof typeof ONBOARDING_STEPS];
|
|
762
|
+
type CliTokenStatus = (typeof CLI_TOKEN_STATUS)[keyof typeof CLI_TOKEN_STATUS];
|
|
763
|
+
type UserRole = (typeof USER_ROLES)[keyof typeof USER_ROLES];
|
|
764
|
+
type PlanId = keyof typeof PLANS;
|
|
765
|
+
type Plan = (typeof PLANS)[PlanId];
|
|
766
|
+
type PlanFeature = keyof typeof PLAN_FEATURES;
|
|
767
|
+
type BillingError = (typeof BILLING_ERRORS)[keyof typeof BILLING_ERRORS];
|
|
768
|
+
type VitalType = (typeof VITAL_TYPES)[keyof typeof VITAL_TYPES];
|
|
769
|
+
type VitalRating = (typeof VITAL_RATINGS)[keyof typeof VITAL_RATINGS];
|
|
770
|
+
type NavigationType = (typeof NAVIGATION_TYPES)[keyof typeof NAVIGATION_TYPES];
|
|
771
|
+
type FormEventType = (typeof FORM_EVENT_TYPES)[keyof typeof FORM_EVENT_TYPES];
|
|
772
|
+
type FormFieldType = (typeof FORM_FIELD_TYPES)[keyof typeof FORM_FIELD_TYPES];
|
|
773
|
+
type DeploymentSource = (typeof DEPLOYMENT_SOURCES)[keyof typeof DEPLOYMENT_SOURCES];
|
|
774
|
+
/**
|
|
775
|
+
* Web Vital data structure for SDK tracking
|
|
776
|
+
*/
|
|
777
|
+
interface WebVitalData {
|
|
778
|
+
metric: VitalType;
|
|
779
|
+
value: number;
|
|
780
|
+
rating: VitalRating;
|
|
781
|
+
delta?: number;
|
|
782
|
+
id?: string;
|
|
783
|
+
navigationType?: NavigationType;
|
|
784
|
+
attribution?: Record<string, unknown>;
|
|
785
|
+
url?: string;
|
|
786
|
+
path?: string;
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Form event data structure for SDK tracking
|
|
790
|
+
*/
|
|
791
|
+
interface FormEventData {
|
|
792
|
+
eventType: FormEventType;
|
|
793
|
+
formId: string;
|
|
794
|
+
formName?: string;
|
|
795
|
+
urlPath: string;
|
|
796
|
+
fieldName?: string;
|
|
797
|
+
fieldType?: FormFieldType;
|
|
798
|
+
fieldIndex?: number;
|
|
799
|
+
timeOnField?: number;
|
|
800
|
+
timeSinceStart?: number;
|
|
801
|
+
errorMessage?: string;
|
|
802
|
+
success?: boolean;
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Deployment context for SDK tracking
|
|
806
|
+
*/
|
|
807
|
+
interface DeploymentContext {
|
|
808
|
+
deployId: string;
|
|
809
|
+
gitSha?: string;
|
|
810
|
+
gitBranch?: string;
|
|
811
|
+
deployUrl?: string;
|
|
812
|
+
source?: DeploymentSource;
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* Utility functions
|
|
816
|
+
*/
|
|
817
|
+
declare function getEnvVarNames(framework: Framework): {
|
|
818
|
+
readonly websiteId: "NEXT_PUBLIC_ENTROLYTICS_WEBSITE_ID";
|
|
819
|
+
readonly host: "NEXT_PUBLIC_ENTROLYTICS_HOST";
|
|
820
|
+
readonly envFile: ".env.local";
|
|
821
|
+
} | {
|
|
822
|
+
readonly websiteId: "VITE_ENTROLYTICS_WEBSITE_ID";
|
|
823
|
+
readonly host: "VITE_ENTROLYTICS_HOST";
|
|
824
|
+
readonly envFile: ".env";
|
|
825
|
+
readonly fallback: {
|
|
826
|
+
readonly websiteId: "REACT_APP_ENTROLYTICS_WEBSITE_ID";
|
|
827
|
+
readonly host: "REACT_APP_ENTROLYTICS_HOST";
|
|
828
|
+
};
|
|
829
|
+
} | {
|
|
830
|
+
readonly websiteId: "VITE_ENTROLYTICS_WEBSITE_ID";
|
|
831
|
+
readonly host: "VITE_ENTROLYTICS_HOST";
|
|
832
|
+
readonly envFile: ".env";
|
|
833
|
+
} | {
|
|
834
|
+
readonly websiteId: "PUBLIC_ENTROLYTICS_WEBSITE_ID";
|
|
835
|
+
readonly host: "PUBLIC_ENTROLYTICS_HOST";
|
|
836
|
+
readonly envFile: ".env";
|
|
837
|
+
} | {
|
|
838
|
+
readonly websiteId: "PUBLIC_ENTROLYTICS_WEBSITE_ID";
|
|
839
|
+
readonly host: "PUBLIC_ENTROLYTICS_HOST";
|
|
840
|
+
readonly envFile: ".env";
|
|
841
|
+
} | {
|
|
842
|
+
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
843
|
+
readonly host: "ENTROLYTICS_HOST";
|
|
844
|
+
readonly envFile: ".env";
|
|
845
|
+
} | {
|
|
846
|
+
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
847
|
+
readonly host: "ENTROLYTICS_HOST";
|
|
848
|
+
readonly envFile: ".env";
|
|
849
|
+
} | {
|
|
850
|
+
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
851
|
+
readonly host: "ENTROLYTICS_HOST";
|
|
852
|
+
readonly envFile: ".env";
|
|
853
|
+
} | {
|
|
854
|
+
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
855
|
+
readonly host: "ENTROLYTICS_HOST";
|
|
856
|
+
readonly envFile: ".env";
|
|
857
|
+
} | {
|
|
858
|
+
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
859
|
+
readonly host: "ENTROLYTICS_HOST";
|
|
860
|
+
readonly envFile: ".env";
|
|
861
|
+
};
|
|
862
|
+
declare function getFrameworkPackage(framework: Framework): "@entrolytics/nextjs-sdk" | "@entrolytics/react-sdk" | "@entrolytics/vue-sdk" | "@entrolytics/svelte-sdk" | "@entrolytics/astro-sdk" | "@entrolytics/node-sdk";
|
|
863
|
+
declare function isValidFramework(framework: string): framework is Framework;
|
|
864
|
+
declare function getApiRoute(route: keyof typeof API_ROUTES, ...args: string[]): string;
|
|
865
|
+
/**
|
|
866
|
+
* Get plan by ID
|
|
867
|
+
*/
|
|
868
|
+
declare function getPlan(planId: PlanId): Plan;
|
|
869
|
+
/**
|
|
870
|
+
* Check if a feature is available for a plan
|
|
871
|
+
*/
|
|
872
|
+
declare function isPlanFeatureEnabled(planId: PlanId, feature: PlanFeature): boolean;
|
|
873
|
+
/**
|
|
874
|
+
* Get plan limit value (-1 means unlimited)
|
|
875
|
+
*/
|
|
876
|
+
declare function getPlanLimit(planId: PlanId, limit: keyof Plan["limits"]): number;
|
|
877
|
+
/**
|
|
878
|
+
* Check if usage is at warning threshold
|
|
879
|
+
*/
|
|
880
|
+
declare function isUsageWarning(current: number, limit: number): boolean;
|
|
881
|
+
/**
|
|
882
|
+
* Check if usage is at critical threshold
|
|
883
|
+
*/
|
|
884
|
+
declare function isUsageCritical(current: number, limit: number): boolean;
|
|
885
|
+
/**
|
|
886
|
+
* Calculate Web Vital rating from value (Phase 2)
|
|
887
|
+
*/
|
|
888
|
+
declare function getVitalRating(metric: VitalType, value: number): VitalRating;
|
|
889
|
+
/**
|
|
890
|
+
* Detect deployment context from environment variables (Phase 2)
|
|
891
|
+
* Works in Node.js environments only - returns null in browser
|
|
892
|
+
*/
|
|
893
|
+
declare function detectDeploymentContext(): DeploymentContext | null;
|
|
894
|
+
//#endregion
|
|
895
|
+
export { API_ENDPOINTS, API_ROUTES, ActivePage, BILLING_ERRORS, BillingError, CLI_CONFIG, CLI_TOKEN_STATUS, CliAccessTokenMetadata, CliTokenStatus, DEFAULT_API_HOST, DEPLOYMENT_ENV_VARS, DEPLOYMENT_SOURCES, DateRangeFilter, DeploymentContext, DeploymentSource, DeviceStats, DeviceType, ENV_VAR_NAMES, ERROR_MESSAGES, EVENT_TYPES, EntrolyticsEvent, EventDBRow, EventPayload, EventType, FORM_EVENT_TYPES, FORM_FIELD_TYPES, FRAMEWORK_PACKAGES, FRAMEWORK_PATTERNS, FormEventData, FormEventType, FormFieldType, Framework, GeoStats, HTTP_STATUS, NAVIGATION_TYPES, NavigationType, ONBOARDING_STEPS, OnboardingStep, OverviewStats, PLANS, PLAN_FEATURES, Plan, PlanFeature, PlanId, RATE_LIMITS, RealtimeEvent, RealtimeStats, Referrer, SDK_EVENT_TYPES, SUCCESS_MESSAGES, SdkEventType, TimeseriesData, TopPage, USAGE_THRESHOLDS, USER_ROLES, UserRole, VITAL_RATINGS, VITAL_THRESHOLDS, VITAL_TYPES, VitalRating, VitalType, WebVitalData, detectDeploymentContext, getApiRoute, getEnvVarNames, getFrameworkPackage, getPlan, getPlanLimit, getVitalRating, isPlanFeatureEnabled, isUsageCritical, isUsageWarning, isValidFramework };
|
|
896
|
+
//# sourceMappingURL=index.d.ts.map
|