@entrolytics/shared 2.4.2 → 3.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/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +94 -134
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +94 -134
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/analytics-types.d.ts
|
|
2
|
-
interface DateRangeFilter {
|
|
2
|
+
export interface DateRangeFilter {
|
|
3
3
|
websiteId: string;
|
|
4
4
|
startDate: Date;
|
|
5
5
|
endDate: Date;
|
|
@@ -10,50 +10,50 @@ interface DateRangeFilter {
|
|
|
10
10
|
path?: string;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
interface OverviewStats {
|
|
13
|
+
export interface OverviewStats {
|
|
14
14
|
pageviews: number;
|
|
15
15
|
visitors: number;
|
|
16
16
|
sessions: number;
|
|
17
17
|
pagesPerVisitor: number;
|
|
18
18
|
avgLoadTime: number;
|
|
19
19
|
}
|
|
20
|
-
interface TimeseriesData {
|
|
20
|
+
export interface TimeseriesData {
|
|
21
21
|
date: Date;
|
|
22
22
|
pageviews: number;
|
|
23
23
|
visitors: number;
|
|
24
24
|
sessions: number;
|
|
25
25
|
}
|
|
26
|
-
interface TopPage {
|
|
26
|
+
export interface TopPage {
|
|
27
27
|
path: string;
|
|
28
28
|
views: number;
|
|
29
29
|
uniqueVisitors: number;
|
|
30
30
|
avgLoadTime: number;
|
|
31
31
|
p95LoadTime: number;
|
|
32
32
|
}
|
|
33
|
-
interface Referrer {
|
|
33
|
+
export interface Referrer {
|
|
34
34
|
referrerDomain: string;
|
|
35
35
|
visits: number;
|
|
36
36
|
uniqueVisitors: number;
|
|
37
37
|
}
|
|
38
|
-
interface DeviceStats {
|
|
38
|
+
export interface DeviceStats {
|
|
39
39
|
deviceType: string;
|
|
40
40
|
browser: string;
|
|
41
41
|
os: string;
|
|
42
42
|
pageviews: number;
|
|
43
43
|
uniqueVisitors: number;
|
|
44
44
|
}
|
|
45
|
-
interface GeoStats {
|
|
45
|
+
export interface GeoStats {
|
|
46
46
|
country: string;
|
|
47
47
|
city: string;
|
|
48
48
|
pageviews: number;
|
|
49
49
|
uniqueVisitors: number;
|
|
50
50
|
}
|
|
51
|
-
interface RealtimeStats {
|
|
51
|
+
export interface RealtimeStats {
|
|
52
52
|
visitors: number;
|
|
53
53
|
sessions: number;
|
|
54
54
|
pageviews: number;
|
|
55
55
|
}
|
|
56
|
-
interface RealtimeEvent {
|
|
56
|
+
export interface RealtimeEvent {
|
|
57
57
|
timestamp: Date;
|
|
58
58
|
eventType: string;
|
|
59
59
|
eventName?: string;
|
|
@@ -63,14 +63,14 @@ interface RealtimeEvent {
|
|
|
63
63
|
deviceType: string;
|
|
64
64
|
browser: string;
|
|
65
65
|
}
|
|
66
|
-
interface ActivePage {
|
|
66
|
+
export interface ActivePage {
|
|
67
67
|
path: string;
|
|
68
68
|
viewers: number;
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* Core event interface
|
|
72
72
|
*/
|
|
73
|
-
interface EntrolyticsEvent {
|
|
73
|
+
export interface EntrolyticsEvent {
|
|
74
74
|
id: string;
|
|
75
75
|
websiteId: string;
|
|
76
76
|
sessionId: string;
|
|
@@ -125,7 +125,7 @@ type EventType$1 = (typeof EventType$1)[keyof typeof EventType$1];
|
|
|
125
125
|
/**
|
|
126
126
|
* Event payload as sent from client SDKs
|
|
127
127
|
*/
|
|
128
|
-
interface EventPayload {
|
|
128
|
+
export interface EventPayload {
|
|
129
129
|
websiteId: string;
|
|
130
130
|
eventId: string;
|
|
131
131
|
timestamp: string;
|
|
@@ -152,7 +152,7 @@ interface EventPayload {
|
|
|
152
152
|
* Event DB row structure as stored in ClickHouse
|
|
153
153
|
* Uses snake_case to match database column naming convention
|
|
154
154
|
*/
|
|
155
|
-
interface EventDBRow {
|
|
155
|
+
export interface EventDBRow {
|
|
156
156
|
id: string;
|
|
157
157
|
website_id: string;
|
|
158
158
|
session_id: string;
|
|
@@ -187,7 +187,7 @@ interface EventDBRow {
|
|
|
187
187
|
/**
|
|
188
188
|
* Device types for analytics segmentation
|
|
189
189
|
*/
|
|
190
|
-
type DeviceType = "desktop" | "mobile" | "tablet" | "server" | "unknown";
|
|
190
|
+
export type DeviceType = "desktop" | "mobile" | "tablet" | "server" | "unknown";
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region src/index.d.ts
|
|
193
193
|
/**
|
|
@@ -197,13 +197,13 @@ type DeviceType = "desktop" | "mobile" | "tablet" | "server" | "unknown";
|
|
|
197
197
|
/**
|
|
198
198
|
* Plan definitions and limits
|
|
199
199
|
*/
|
|
200
|
-
declare const PLANS: {
|
|
200
|
+
export declare const PLANS: {
|
|
201
201
|
readonly starter: {
|
|
202
202
|
readonly id: "starter";
|
|
203
203
|
readonly name: "Starter";
|
|
204
204
|
readonly price: 0;
|
|
205
205
|
readonly limits: {
|
|
206
|
-
readonly pageviewsPerMonth:
|
|
206
|
+
readonly pageviewsPerMonth: 25_000;
|
|
207
207
|
readonly websites: 2;
|
|
208
208
|
readonly retentionDays: 30;
|
|
209
209
|
readonly seats: 1;
|
|
@@ -223,7 +223,7 @@ declare const PLANS: {
|
|
|
223
223
|
readonly name: "Pro";
|
|
224
224
|
readonly price: 29;
|
|
225
225
|
readonly limits: {
|
|
226
|
-
readonly pageviewsPerMonth:
|
|
226
|
+
readonly pageviewsPerMonth: 250_000;
|
|
227
227
|
readonly websites: 10;
|
|
228
228
|
readonly retentionDays: 365;
|
|
229
229
|
readonly seats: 5;
|
|
@@ -243,7 +243,7 @@ declare const PLANS: {
|
|
|
243
243
|
readonly name: "Business";
|
|
244
244
|
readonly price: 99;
|
|
245
245
|
readonly limits: {
|
|
246
|
-
readonly pageviewsPerMonth:
|
|
246
|
+
readonly pageviewsPerMonth: 1_000_000;
|
|
247
247
|
readonly websites: -1;
|
|
248
248
|
readonly retentionDays: 730;
|
|
249
249
|
readonly seats: -1;
|
|
@@ -285,7 +285,7 @@ declare const PLANS: {
|
|
|
285
285
|
/**
|
|
286
286
|
* Plan feature names for display
|
|
287
287
|
*/
|
|
288
|
-
declare const PLAN_FEATURES: {
|
|
288
|
+
export declare const PLAN_FEATURES: {
|
|
289
289
|
readonly funnels: "Funnel Analytics";
|
|
290
290
|
readonly attribution: "Attribution Reports";
|
|
291
291
|
readonly revenue: "Revenue Tracking";
|
|
@@ -299,14 +299,14 @@ declare const PLAN_FEATURES: {
|
|
|
299
299
|
/**
|
|
300
300
|
* Usage warning thresholds (percentages)
|
|
301
301
|
*/
|
|
302
|
-
declare const USAGE_THRESHOLDS: {
|
|
302
|
+
export declare const USAGE_THRESHOLDS: {
|
|
303
303
|
readonly warning: 90;
|
|
304
304
|
readonly critical: 95;
|
|
305
305
|
};
|
|
306
306
|
/**
|
|
307
307
|
* Billing-related error codes
|
|
308
308
|
*/
|
|
309
|
-
declare const BILLING_ERRORS: {
|
|
309
|
+
export declare const BILLING_ERRORS: {
|
|
310
310
|
readonly quotaExceeded: "QUOTA_EXCEEDED";
|
|
311
311
|
readonly planRequired: "PLAN_REQUIRED";
|
|
312
312
|
readonly featureNotAvailable: "FEATURE_NOT_AVAILABLE";
|
|
@@ -316,18 +316,18 @@ declare const BILLING_ERRORS: {
|
|
|
316
316
|
/**
|
|
317
317
|
* API endpoint configuration
|
|
318
318
|
*/
|
|
319
|
-
declare const API_ENDPOINTS: {
|
|
319
|
+
export declare const API_ENDPOINTS: {
|
|
320
320
|
readonly production: "https://api.entrolytics.click";
|
|
321
321
|
readonly development: "http://localhost:3001";
|
|
322
322
|
};
|
|
323
323
|
/**
|
|
324
324
|
* Default API host
|
|
325
325
|
*/
|
|
326
|
-
declare const DEFAULT_API_HOST:
|
|
326
|
+
export declare const DEFAULT_API_HOST: string;
|
|
327
327
|
/**
|
|
328
328
|
* Environment variable naming conventions by framework
|
|
329
329
|
*/
|
|
330
|
-
declare const ENV_VAR_NAMES: {
|
|
330
|
+
export declare const ENV_VAR_NAMES: {
|
|
331
331
|
readonly nextjs: {
|
|
332
332
|
readonly websiteId: "NEXT_PUBLIC_ENTROLYTICS_WEBSITE_ID";
|
|
333
333
|
readonly host: "NEXT_PUBLIC_ENTROLYTICS_HOST";
|
|
@@ -382,7 +382,7 @@ declare const ENV_VAR_NAMES: {
|
|
|
382
382
|
/**
|
|
383
383
|
* CLI configuration constants
|
|
384
384
|
*/
|
|
385
|
-
declare const CLI_CONFIG: {
|
|
385
|
+
export declare const CLI_CONFIG: {
|
|
386
386
|
readonly tokenExpiryMinutes: 15;
|
|
387
387
|
readonly maxTokensPerUser: 10;
|
|
388
388
|
readonly pollIntervalMs: 2000;
|
|
@@ -394,7 +394,7 @@ declare const CLI_CONFIG: {
|
|
|
394
394
|
* Used by: API Server, SDKs, CLI, worker processes
|
|
395
395
|
* See: entrolytics/packages/protocol/src/events.ts
|
|
396
396
|
*/
|
|
397
|
-
declare const EVENT_TYPES: {
|
|
397
|
+
export declare const EVENT_TYPES: {
|
|
398
398
|
readonly pageView: "pageview";
|
|
399
399
|
readonly custom: "custom_event";
|
|
400
400
|
readonly click: "click";
|
|
@@ -404,7 +404,7 @@ declare const EVENT_TYPES: {
|
|
|
404
404
|
* These are higher-level event categories used by SDKs
|
|
405
405
|
* They map to the core EVENT_TYPES when sent to the backend
|
|
406
406
|
*/
|
|
407
|
-
declare const SDK_EVENT_TYPES: {
|
|
407
|
+
export declare const SDK_EVENT_TYPES: {
|
|
408
408
|
readonly pageView: "pageview";
|
|
409
409
|
readonly click: "click";
|
|
410
410
|
readonly formSubmit: "form_submit";
|
|
@@ -417,7 +417,7 @@ declare const SDK_EVENT_TYPES: {
|
|
|
417
417
|
* Core Web Vitals: LCP, INP, CLS
|
|
418
418
|
* Additional: TTFB, FCP
|
|
419
419
|
*/
|
|
420
|
-
declare const VITAL_TYPES: {
|
|
420
|
+
export declare const VITAL_TYPES: {
|
|
421
421
|
readonly LCP: "LCP";
|
|
422
422
|
readonly INP: "INP";
|
|
423
423
|
readonly CLS: "CLS";
|
|
@@ -427,7 +427,7 @@ declare const VITAL_TYPES: {
|
|
|
427
427
|
/**
|
|
428
428
|
* Web Vitals rating thresholds
|
|
429
429
|
*/
|
|
430
|
-
declare const VITAL_RATINGS: {
|
|
430
|
+
export declare const VITAL_RATINGS: {
|
|
431
431
|
readonly good: "good";
|
|
432
432
|
readonly needsImprovement: "needs-improvement";
|
|
433
433
|
readonly poor: "poor";
|
|
@@ -435,7 +435,7 @@ declare const VITAL_RATINGS: {
|
|
|
435
435
|
/**
|
|
436
436
|
* Web Vitals thresholds by metric (in milliseconds, except CLS which is unitless)
|
|
437
437
|
*/
|
|
438
|
-
declare const VITAL_THRESHOLDS: {
|
|
438
|
+
export declare const VITAL_THRESHOLDS: {
|
|
439
439
|
readonly LCP: {
|
|
440
440
|
readonly good: 2500;
|
|
441
441
|
readonly poor: 4000;
|
|
@@ -460,18 +460,19 @@ declare const VITAL_THRESHOLDS: {
|
|
|
460
460
|
/**
|
|
461
461
|
* Navigation types for Web Vitals context
|
|
462
462
|
*/
|
|
463
|
-
declare const NAVIGATION_TYPES: {
|
|
463
|
+
export declare const NAVIGATION_TYPES: {
|
|
464
464
|
readonly navigate: "navigate";
|
|
465
465
|
readonly reload: "reload";
|
|
466
466
|
readonly backForward: "back-forward";
|
|
467
467
|
readonly backForwardCache: "back-forward-cache";
|
|
468
468
|
readonly prerender: "prerender";
|
|
469
469
|
readonly restore: "restore";
|
|
470
|
+
readonly softNavigation: "soft-navigation";
|
|
470
471
|
};
|
|
471
472
|
/**
|
|
472
473
|
* Form event types (Phase 2)
|
|
473
474
|
*/
|
|
474
|
-
declare const FORM_EVENT_TYPES: {
|
|
475
|
+
export declare const FORM_EVENT_TYPES: {
|
|
475
476
|
readonly start: "start";
|
|
476
477
|
readonly fieldFocus: "field_focus";
|
|
477
478
|
readonly fieldBlur: "field_blur";
|
|
@@ -482,7 +483,7 @@ declare const FORM_EVENT_TYPES: {
|
|
|
482
483
|
/**
|
|
483
484
|
* Form field types
|
|
484
485
|
*/
|
|
485
|
-
declare const FORM_FIELD_TYPES: {
|
|
486
|
+
export declare const FORM_FIELD_TYPES: {
|
|
486
487
|
readonly text: "text";
|
|
487
488
|
readonly email: "email";
|
|
488
489
|
readonly password: "password";
|
|
@@ -502,7 +503,7 @@ declare const FORM_FIELD_TYPES: {
|
|
|
502
503
|
/**
|
|
503
504
|
* Deployment platform sources (Phase 2)
|
|
504
505
|
*/
|
|
505
|
-
declare const DEPLOYMENT_SOURCES: {
|
|
506
|
+
export declare const DEPLOYMENT_SOURCES: {
|
|
506
507
|
readonly vercel: "vercel";
|
|
507
508
|
readonly netlify: "netlify";
|
|
508
509
|
readonly cloudflare: "cloudflare";
|
|
@@ -518,7 +519,7 @@ declare const DEPLOYMENT_SOURCES: {
|
|
|
518
519
|
/**
|
|
519
520
|
* Deployment environment variables by platform
|
|
520
521
|
*/
|
|
521
|
-
declare const DEPLOYMENT_ENV_VARS: {
|
|
522
|
+
export declare const DEPLOYMENT_ENV_VARS: {
|
|
522
523
|
readonly vercel: {
|
|
523
524
|
readonly deployId: "VERCEL_DEPLOYMENT_ID";
|
|
524
525
|
readonly gitSha: "VERCEL_GIT_COMMIT_SHA";
|
|
@@ -541,7 +542,7 @@ declare const DEPLOYMENT_ENV_VARS: {
|
|
|
541
542
|
/**
|
|
542
543
|
* HTTP status codes
|
|
543
544
|
*/
|
|
544
|
-
declare const HTTP_STATUS: {
|
|
545
|
+
export declare const HTTP_STATUS: {
|
|
545
546
|
readonly ok: 200;
|
|
546
547
|
readonly created: 201;
|
|
547
548
|
readonly accepted: 202;
|
|
@@ -558,7 +559,7 @@ declare const HTTP_STATUS: {
|
|
|
558
559
|
/**
|
|
559
560
|
* API route paths
|
|
560
561
|
*/
|
|
561
|
-
declare const API_ROUTES: {
|
|
562
|
+
export declare const API_ROUTES: {
|
|
562
563
|
readonly cliAuthToken: "/api/auth/cli/token";
|
|
563
564
|
readonly cliAuthTokens: "/api/auth/cli/tokens";
|
|
564
565
|
readonly cliValidate: "/api/auth/cli/validate";
|
|
@@ -608,7 +609,7 @@ declare const API_ROUTES: {
|
|
|
608
609
|
/**
|
|
609
610
|
* Onboarding step identifiers
|
|
610
611
|
*/
|
|
611
|
-
declare const ONBOARDING_STEPS: {
|
|
612
|
+
export declare const ONBOARDING_STEPS: {
|
|
612
613
|
readonly welcome: "welcome";
|
|
613
614
|
readonly createWebsite: "create-website";
|
|
614
615
|
readonly installTracking: "install-tracking";
|
|
@@ -619,7 +620,7 @@ declare const ONBOARDING_STEPS: {
|
|
|
619
620
|
/**
|
|
620
621
|
* CLI token statuses
|
|
621
622
|
*/
|
|
622
|
-
declare const CLI_TOKEN_STATUS: {
|
|
623
|
+
export declare const CLI_TOKEN_STATUS: {
|
|
623
624
|
readonly pending: "pending";
|
|
624
625
|
readonly used: "used";
|
|
625
626
|
readonly expired: "expired";
|
|
@@ -628,7 +629,7 @@ declare const CLI_TOKEN_STATUS: {
|
|
|
628
629
|
/**
|
|
629
630
|
* User roles
|
|
630
631
|
*/
|
|
631
|
-
declare const USER_ROLES: {
|
|
632
|
+
export declare const USER_ROLES: {
|
|
632
633
|
readonly admin: "admin";
|
|
633
634
|
readonly user: "user";
|
|
634
635
|
readonly viewer: "viewer";
|
|
@@ -636,7 +637,7 @@ declare const USER_ROLES: {
|
|
|
636
637
|
/**
|
|
637
638
|
* Framework package names
|
|
638
639
|
*/
|
|
639
|
-
declare const FRAMEWORK_PACKAGES: {
|
|
640
|
+
export declare const FRAMEWORK_PACKAGES: {
|
|
640
641
|
readonly nextjs: "@entrolytics/nextjs-sdk";
|
|
641
642
|
readonly react: "@entrolytics/react-sdk";
|
|
642
643
|
readonly vue: "@entrolytics/vue-sdk";
|
|
@@ -647,7 +648,7 @@ declare const FRAMEWORK_PACKAGES: {
|
|
|
647
648
|
/**
|
|
648
649
|
* Framework detection patterns
|
|
649
650
|
*/
|
|
650
|
-
declare const FRAMEWORK_PATTERNS: {
|
|
651
|
+
export declare const FRAMEWORK_PATTERNS: {
|
|
651
652
|
readonly nextjs: {
|
|
652
653
|
readonly files: readonly ["next.config.js", "next.config.mjs", "next.config.ts"];
|
|
653
654
|
readonly dependencies: readonly ["next"];
|
|
@@ -673,7 +674,7 @@ declare const FRAMEWORK_PATTERNS: {
|
|
|
673
674
|
* Rate limiting configuration
|
|
674
675
|
* Updated to match server-side implementation
|
|
675
676
|
*/
|
|
676
|
-
declare const RATE_LIMITS: {
|
|
677
|
+
export declare const RATE_LIMITS: {
|
|
677
678
|
readonly cliTokenExchange: {
|
|
678
679
|
readonly windowSeconds: 60;
|
|
679
680
|
readonly maxRequests: 5;
|
|
@@ -698,7 +699,7 @@ declare const RATE_LIMITS: {
|
|
|
698
699
|
/**
|
|
699
700
|
* Error messages
|
|
700
701
|
*/
|
|
701
|
-
declare const ERROR_MESSAGES: {
|
|
702
|
+
export declare const ERROR_MESSAGES: {
|
|
702
703
|
readonly unauthorized: "Unauthorized access";
|
|
703
704
|
readonly forbidden: "Access forbidden";
|
|
704
705
|
readonly tokenExpired: "Token has expired";
|
|
@@ -730,7 +731,7 @@ declare const ERROR_MESSAGES: {
|
|
|
730
731
|
/**
|
|
731
732
|
* Success messages
|
|
732
733
|
*/
|
|
733
|
-
declare const SUCCESS_MESSAGES: {
|
|
734
|
+
export declare const SUCCESS_MESSAGES: {
|
|
734
735
|
readonly tokenGenerated: "Setup token generated successfully";
|
|
735
736
|
readonly tokenValidated: "Token validated successfully";
|
|
736
737
|
readonly tokenRevoked: "Token revoked successfully";
|
|
@@ -744,7 +745,7 @@ declare const SUCCESS_MESSAGES: {
|
|
|
744
745
|
/**
|
|
745
746
|
* CLI Access Token metadata
|
|
746
747
|
*/
|
|
747
|
-
interface CliAccessTokenMetadata {
|
|
748
|
+
export interface CliAccessTokenMetadata {
|
|
748
749
|
jti: string;
|
|
749
750
|
createdAt: string;
|
|
750
751
|
expiresAt: string;
|
|
@@ -752,43 +753,43 @@ interface CliAccessTokenMetadata {
|
|
|
752
753
|
ipAddress: string | null;
|
|
753
754
|
userAgent: string | null;
|
|
754
755
|
}
|
|
755
|
-
type Framework = keyof typeof ENV_VAR_NAMES;
|
|
756
|
-
type EventType = (typeof EVENT_TYPES)[keyof typeof EVENT_TYPES];
|
|
757
|
-
type SdkEventType = (typeof SDK_EVENT_TYPES)[keyof typeof SDK_EVENT_TYPES];
|
|
758
|
-
type OnboardingStep = (typeof ONBOARDING_STEPS)[keyof typeof ONBOARDING_STEPS];
|
|
759
|
-
type CliTokenStatus = (typeof CLI_TOKEN_STATUS)[keyof typeof CLI_TOKEN_STATUS];
|
|
760
|
-
type UserRole = (typeof USER_ROLES)[keyof typeof USER_ROLES];
|
|
761
|
-
type PlanId = keyof typeof PLANS;
|
|
762
|
-
type Plan = (typeof PLANS)[PlanId];
|
|
763
|
-
type PlanFeature = keyof typeof PLAN_FEATURES;
|
|
764
|
-
type BillingError = (typeof BILLING_ERRORS)[keyof typeof BILLING_ERRORS];
|
|
765
|
-
type VitalType = (typeof VITAL_TYPES)[keyof typeof VITAL_TYPES];
|
|
766
|
-
type VitalRating = (typeof VITAL_RATINGS)[keyof typeof VITAL_RATINGS];
|
|
767
|
-
type NavigationType = (typeof NAVIGATION_TYPES)[keyof typeof NAVIGATION_TYPES];
|
|
768
|
-
type FormEventType = (typeof FORM_EVENT_TYPES)[keyof typeof FORM_EVENT_TYPES];
|
|
769
|
-
type FormFieldType = (typeof FORM_FIELD_TYPES)[keyof typeof FORM_FIELD_TYPES];
|
|
770
|
-
type DeploymentSource = (typeof DEPLOYMENT_SOURCES)[keyof typeof DEPLOYMENT_SOURCES];
|
|
771
|
-
declare const EVENT_TYPE_VALUES: [EventType, ...EventType[]];
|
|
772
|
-
declare const SDK_EVENT_TYPE_VALUES: [SdkEventType, ...SdkEventType[]];
|
|
773
|
-
declare const VITAL_TYPE_VALUES: [VitalType, ...VitalType[]];
|
|
774
|
-
declare const VITAL_RATING_VALUES: [VitalRating, ...VitalRating[]];
|
|
775
|
-
declare const NAVIGATION_TYPE_VALUES: [NavigationType, ...NavigationType[]];
|
|
776
|
-
declare const FORM_EVENT_TYPE_VALUES: [FormEventType, ...FormEventType[]];
|
|
777
|
-
declare const FORM_FIELD_TYPE_VALUES: [FormFieldType, ...FormFieldType[]];
|
|
778
|
-
declare const DEPLOYMENT_SOURCE_VALUES: [DeploymentSource, ...DeploymentSource[]];
|
|
779
|
-
declare function isEventType(value: string): value is EventType;
|
|
780
|
-
declare function isSdkEventType(value: string): value is SdkEventType;
|
|
781
|
-
declare function isVitalType(value: string): value is VitalType;
|
|
782
|
-
declare function isVitalRating(value: string): value is VitalRating;
|
|
783
|
-
declare function isNavigationType(value: string): value is NavigationType;
|
|
784
|
-
declare function isFormEventType(value: string): value is FormEventType;
|
|
785
|
-
declare function isFormFieldType(value: string): value is FormFieldType;
|
|
786
|
-
declare function isDeploymentSource(value: string): value is DeploymentSource;
|
|
787
|
-
declare function normalizeDeploymentSource(value: string | null | undefined): DeploymentSource;
|
|
756
|
+
export type Framework = keyof typeof ENV_VAR_NAMES;
|
|
757
|
+
export type EventType = (typeof EVENT_TYPES)[keyof typeof EVENT_TYPES];
|
|
758
|
+
export type SdkEventType = (typeof SDK_EVENT_TYPES)[keyof typeof SDK_EVENT_TYPES];
|
|
759
|
+
export type OnboardingStep = (typeof ONBOARDING_STEPS)[keyof typeof ONBOARDING_STEPS];
|
|
760
|
+
export type CliTokenStatus = (typeof CLI_TOKEN_STATUS)[keyof typeof CLI_TOKEN_STATUS];
|
|
761
|
+
export type UserRole = (typeof USER_ROLES)[keyof typeof USER_ROLES];
|
|
762
|
+
export type PlanId = keyof typeof PLANS;
|
|
763
|
+
export type Plan = (typeof PLANS)[PlanId];
|
|
764
|
+
export type PlanFeature = keyof typeof PLAN_FEATURES;
|
|
765
|
+
export type BillingError = (typeof BILLING_ERRORS)[keyof typeof BILLING_ERRORS];
|
|
766
|
+
export type VitalType = (typeof VITAL_TYPES)[keyof typeof VITAL_TYPES];
|
|
767
|
+
export type VitalRating = (typeof VITAL_RATINGS)[keyof typeof VITAL_RATINGS];
|
|
768
|
+
export type NavigationType = (typeof NAVIGATION_TYPES)[keyof typeof NAVIGATION_TYPES];
|
|
769
|
+
export type FormEventType = (typeof FORM_EVENT_TYPES)[keyof typeof FORM_EVENT_TYPES];
|
|
770
|
+
export type FormFieldType = (typeof FORM_FIELD_TYPES)[keyof typeof FORM_FIELD_TYPES];
|
|
771
|
+
export type DeploymentSource = (typeof DEPLOYMENT_SOURCES)[keyof typeof DEPLOYMENT_SOURCES];
|
|
772
|
+
export declare const EVENT_TYPE_VALUES: [EventType, ...EventType[]];
|
|
773
|
+
export declare const SDK_EVENT_TYPE_VALUES: [SdkEventType, ...SdkEventType[]];
|
|
774
|
+
export declare const VITAL_TYPE_VALUES: [VitalType, ...VitalType[]];
|
|
775
|
+
export declare const VITAL_RATING_VALUES: [VitalRating, ...VitalRating[]];
|
|
776
|
+
export declare const NAVIGATION_TYPE_VALUES: [NavigationType, ...NavigationType[]];
|
|
777
|
+
export declare const FORM_EVENT_TYPE_VALUES: [FormEventType, ...FormEventType[]];
|
|
778
|
+
export declare const FORM_FIELD_TYPE_VALUES: [FormFieldType, ...FormFieldType[]];
|
|
779
|
+
export declare const DEPLOYMENT_SOURCE_VALUES: [DeploymentSource, ...DeploymentSource[]];
|
|
780
|
+
export declare function isEventType(value: string): value is EventType;
|
|
781
|
+
export declare function isSdkEventType(value: string): value is SdkEventType;
|
|
782
|
+
export declare function isVitalType(value: string): value is VitalType;
|
|
783
|
+
export declare function isVitalRating(value: string): value is VitalRating;
|
|
784
|
+
export declare function isNavigationType(value: string): value is NavigationType;
|
|
785
|
+
export declare function isFormEventType(value: string): value is FormEventType;
|
|
786
|
+
export declare function isFormFieldType(value: string): value is FormFieldType;
|
|
787
|
+
export declare function isDeploymentSource(value: string): value is DeploymentSource;
|
|
788
|
+
export declare function normalizeDeploymentSource(value: string | null | undefined): DeploymentSource;
|
|
788
789
|
/**
|
|
789
790
|
* Web Vital data structure for SDK tracking
|
|
790
791
|
*/
|
|
791
|
-
interface WebVitalData {
|
|
792
|
+
export interface WebVitalData {
|
|
792
793
|
metric: VitalType;
|
|
793
794
|
value: number;
|
|
794
795
|
rating: VitalRating;
|
|
@@ -802,7 +803,7 @@ interface WebVitalData {
|
|
|
802
803
|
/**
|
|
803
804
|
* Form event data structure for SDK tracking
|
|
804
805
|
*/
|
|
805
|
-
interface FormEventData {
|
|
806
|
+
export interface FormEventData {
|
|
806
807
|
eventType: FormEventType;
|
|
807
808
|
formId: string;
|
|
808
809
|
formName?: string;
|
|
@@ -818,7 +819,7 @@ interface FormEventData {
|
|
|
818
819
|
/**
|
|
819
820
|
* Deployment context for SDK tracking
|
|
820
821
|
*/
|
|
821
|
-
interface DeploymentContext {
|
|
822
|
+
export interface DeploymentContext {
|
|
822
823
|
deployId: string;
|
|
823
824
|
gitSha?: string;
|
|
824
825
|
gitBranch?: string;
|
|
@@ -828,79 +829,38 @@ interface DeploymentContext {
|
|
|
828
829
|
/**
|
|
829
830
|
* Utility functions
|
|
830
831
|
*/
|
|
831
|
-
declare function getEnvVarNames(framework: Framework):
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
} | {
|
|
836
|
-
readonly websiteId: "VITE_ENTROLYTICS_WEBSITE_ID";
|
|
837
|
-
readonly host: "VITE_ENTROLYTICS_HOST";
|
|
838
|
-
readonly envFile: ".env";
|
|
839
|
-
} | {
|
|
840
|
-
readonly websiteId: "VITE_ENTROLYTICS_WEBSITE_ID";
|
|
841
|
-
readonly host: "VITE_ENTROLYTICS_HOST";
|
|
842
|
-
readonly envFile: ".env";
|
|
843
|
-
} | {
|
|
844
|
-
readonly websiteId: "PUBLIC_ENTROLYTICS_WEBSITE_ID";
|
|
845
|
-
readonly host: "PUBLIC_ENTROLYTICS_HOST";
|
|
846
|
-
readonly envFile: ".env";
|
|
847
|
-
} | {
|
|
848
|
-
readonly websiteId: "PUBLIC_ENTROLYTICS_WEBSITE_ID";
|
|
849
|
-
readonly host: "PUBLIC_ENTROLYTICS_HOST";
|
|
850
|
-
readonly envFile: ".env";
|
|
851
|
-
} | {
|
|
852
|
-
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
853
|
-
readonly host: "ENTROLYTICS_HOST";
|
|
854
|
-
readonly envFile: ".env";
|
|
855
|
-
} | {
|
|
856
|
-
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
857
|
-
readonly host: "ENTROLYTICS_HOST";
|
|
858
|
-
readonly envFile: ".env";
|
|
859
|
-
} | {
|
|
860
|
-
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
861
|
-
readonly host: "ENTROLYTICS_HOST";
|
|
862
|
-
readonly envFile: ".env";
|
|
863
|
-
} | {
|
|
864
|
-
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
865
|
-
readonly host: "ENTROLYTICS_HOST";
|
|
866
|
-
readonly envFile: ".env";
|
|
867
|
-
} | {
|
|
868
|
-
readonly websiteId: "ENTROLYTICS_WEBSITE_ID";
|
|
869
|
-
readonly host: "ENTROLYTICS_HOST";
|
|
870
|
-
readonly envFile: ".env";
|
|
871
|
-
};
|
|
872
|
-
declare function getFrameworkPackage(framework: Framework): "@entrolytics/astro-sdk" | "@entrolytics/nextjs-sdk" | "@entrolytics/node-sdk" | "@entrolytics/react-sdk" | "@entrolytics/svelte-sdk" | "@entrolytics/vue-sdk";
|
|
873
|
-
declare function isValidFramework(framework: string): framework is Framework;
|
|
874
|
-
declare function getApiRoute(route: keyof typeof API_ROUTES, ...args: string[]): string;
|
|
832
|
+
export declare function getEnvVarNames(framework: Framework): (typeof ENV_VAR_NAMES)[Framework];
|
|
833
|
+
export declare function getFrameworkPackage(framework: Framework): string | null;
|
|
834
|
+
export declare function isValidFramework(framework: string): framework is Framework;
|
|
835
|
+
export declare function getApiRoute(route: keyof typeof API_ROUTES, ...args: string[]): string;
|
|
875
836
|
/**
|
|
876
837
|
* Get plan by ID
|
|
877
838
|
*/
|
|
878
|
-
declare function getPlan(planId: PlanId): Plan;
|
|
839
|
+
export declare function getPlan(planId: PlanId): Plan;
|
|
879
840
|
/**
|
|
880
841
|
* Check if a feature is available for a plan
|
|
881
842
|
*/
|
|
882
|
-
declare function isPlanFeatureEnabled(planId: PlanId, feature: PlanFeature): boolean;
|
|
843
|
+
export declare function isPlanFeatureEnabled(planId: PlanId, feature: PlanFeature): boolean;
|
|
883
844
|
/**
|
|
884
845
|
* Get plan limit value (-1 means unlimited)
|
|
885
846
|
*/
|
|
886
|
-
declare function getPlanLimit(planId: PlanId, limit: keyof Plan["limits"]): number;
|
|
847
|
+
export declare function getPlanLimit(planId: PlanId, limit: keyof Plan["limits"]): number;
|
|
887
848
|
/**
|
|
888
849
|
* Check if usage is at warning threshold
|
|
889
850
|
*/
|
|
890
|
-
declare function isUsageWarning(current: number, limit: number): boolean;
|
|
851
|
+
export declare function isUsageWarning(current: number, limit: number): boolean;
|
|
891
852
|
/**
|
|
892
853
|
* Check if usage is at critical threshold
|
|
893
854
|
*/
|
|
894
|
-
declare function isUsageCritical(current: number, limit: number): boolean;
|
|
855
|
+
export declare function isUsageCritical(current: number, limit: number): boolean;
|
|
895
856
|
/**
|
|
896
857
|
* Calculate Web Vital rating from value (Phase 2)
|
|
897
858
|
*/
|
|
898
|
-
declare function getVitalRating(metric: VitalType, value: number): VitalRating;
|
|
859
|
+
export declare function getVitalRating(metric: VitalType, value: number): VitalRating;
|
|
899
860
|
/**
|
|
900
861
|
* Detect deployment context from environment variables (Phase 2)
|
|
901
862
|
* Works in Node.js environments only - returns null in browser
|
|
902
863
|
*/
|
|
903
|
-
declare function detectDeploymentContext(): DeploymentContext | null;
|
|
864
|
+
export declare function detectDeploymentContext(): DeploymentContext | null;
|
|
904
865
|
//#endregion
|
|
905
|
-
export { API_ENDPOINTS, API_ROUTES, ActivePage, BILLING_ERRORS, BillingError, CLI_CONFIG, CLI_TOKEN_STATUS, CliAccessTokenMetadata, CliTokenStatus, DEFAULT_API_HOST, DEPLOYMENT_ENV_VARS, DEPLOYMENT_SOURCES, DEPLOYMENT_SOURCE_VALUES, DateRangeFilter, DeploymentContext, DeploymentSource, DeviceStats, DeviceType, ENV_VAR_NAMES, ERROR_MESSAGES, EVENT_TYPES, EVENT_TYPE_VALUES, EntrolyticsEvent, EventDBRow, EventPayload, EventType, FORM_EVENT_TYPES, FORM_EVENT_TYPE_VALUES, FORM_FIELD_TYPES, FORM_FIELD_TYPE_VALUES, FRAMEWORK_PACKAGES, FRAMEWORK_PATTERNS, FormEventData, FormEventType, FormFieldType, Framework, GeoStats, HTTP_STATUS, NAVIGATION_TYPES, NAVIGATION_TYPE_VALUES, NavigationType, ONBOARDING_STEPS, OnboardingStep, OverviewStats, PLANS, PLAN_FEATURES, Plan, PlanFeature, PlanId, RATE_LIMITS, RealtimeEvent, RealtimeStats, Referrer, SDK_EVENT_TYPES, SDK_EVENT_TYPE_VALUES, SUCCESS_MESSAGES, SdkEventType, TimeseriesData, TopPage, USAGE_THRESHOLDS, USER_ROLES, UserRole, VITAL_RATINGS, VITAL_RATING_VALUES, VITAL_THRESHOLDS, VITAL_TYPES, VITAL_TYPE_VALUES, VitalRating, VitalType, WebVitalData, detectDeploymentContext, getApiRoute, getEnvVarNames, getFrameworkPackage, getPlan, getPlanLimit, getVitalRating, isDeploymentSource, isEventType, isFormEventType, isFormFieldType, isNavigationType, isPlanFeatureEnabled, isSdkEventType, isUsageCritical, isUsageWarning, isValidFramework, isVitalRating, isVitalType, normalizeDeploymentSource };
|
|
906
866
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/analytics-types.ts","../src/event-protocol.ts","../src/index.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/analytics-types.ts","../src/event-protocol.ts","../src/index.ts"],"mappings":";iBAGiB;EACf;EACA,WAAW;EACX,SAAS;EACT;IACE;IACA;IACA;IACA;;;iBAIa;EACf;EACA;EACA;EACA;EACA;;iBAGe;EACf,MAAM;EACN;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;;iBAIe;EACf;EACA;EACA;;iBAGe;EACf,WAAW;EACX;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;;;;;iBAMe;EACf;EACA;EACA;EACA;EACA,WAAW;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,aAAa;;;;;;;;;;;;;;;;cCtGF;WACX;WACA;WACA;;KAGU,sBAAoB,0BAAwB;;;;iBAKvC;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA,WAAW;EACX;EACA;EACA,aAAa;EAGb;EACA;EAGA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;;;;;;iBAOe;EACf;EACA;EACA;EACA;EACA;EACA,YAAY;EACZ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;YAMU;;;;;;;;;;qBCtFC;WACX;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;eACA;eACA;eACA;eACA;eACA;;;WAGJ;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;eACA;eACA;eACA;eACA;eACA;;;WAGJ;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;eACA;eACA;eACA;eACA;eACA;;;WAGJ;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;;;;;;qBAQO;WACX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;qBAMW;WACX;WACA;;;;;qBAMW;WACX;WACA;WACA;WACA;WACA;;;;;qBAMW;WACX;WACA;;;;;qBAMW;;;;qBAMA;WACX;aACE;aACA;aACA;;WAEF;aACE;aACA;aACA;;WAEF;aACE;aACA;aACA;;WAEF;aACE;aACA;aACA;;WAEF;aACE;aACA;aACA;;WAEF;aACE;aACA;aACA;;WAEF;aACE;aACA;aACA;;WAEF;aACE;aACA;aACA;;WAEF;aACE;aACA;aACA;;WAEF;aACE;aACA;aACA;;;;;;qBAOS;WACX;WACA;WACA;WACA;WACA;;;;;;;qBAQW;WACX;WACA;WACA;;;;;;;qBAQW;WACX;WACA;WACA;WACA;WACA;WACA;;;;;;;qBAQW;WACX;WACA;WACA;WACA;WACA;;;;;qBAMW;WACX;WACA;WACA;;;;;qBAMW;WACX;aAAO;aAAY;;WACnB;aAAO;aAAW;;WAClB;aAAO;aAAW;;WAClB;aAAQ;aAAW;;WACnB;aAAO;aAAY;;;;;;qBAMR;WACX;WACA;WACA;WACA;WACA;WACA;WACA;;;;;qBAMW;WACX;WACA;WACA;WACA;WACA;WACA;;;;;qBAMW;WACX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;qBAMW;WACX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;qBAMW;WACX;aACE;aACA;aACA;aACA;;WAEF;aACE;aACA;aACA;aACA;;WAEF;aACE;aACA;aACA;aACA;;;;;;qBAOS;WACX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;qBAMW;WAEX;WACA;WACA;WAGA,aAAa;WAGb;WACA,eAAe;WAGf;WACA,cAAc;WACd,gBAAgB;WAChB,sBAAsB;WAGtB;WACA;WACA;WAGA;WACA;WACA;WACA;WAGA,oBAAoB;WACpB,sBAAsB;WACtB,oBAAoB;WACpB,wBAAwB;WACxB,qBAAqB;WACrB,mBAAmB;WAGnB;WACA;WACA;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,sBAAsB;WACtB,oBAAoB;WACpB,mBAAmB;WAGnB;WACA;;;;;qBAMW;WACX;WACA;WACA;WACA;WACA;WACA;;;;;qBAMW;WACX;WACA;WACA;WACA;;;;;qBAMW;WACX;WACA;WACA;;;;;qBAMW;WACX;WACA;WACA;WACA;WACA;WACA;;;;;qBAMW;WACX;aACE;aACA;;WAEF;aACE;aACA;;WAEF;aACE;aACA;;WAEF;aACE;aACA;;WAEF;aACE;aACA;;;;;;;qBAQS;WACX;aACE;aACA;;WAEF;aACE;aACA;;WAEF;aACE;aACA;;WAEF;aACE;aACA;;WAEF;aACE;aACA;;;;;;qBAOS;WAEX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WAGA;WACA;WACA;WAGA;WACA;WACA;WAGA;WACA;WACA;WAGA;WACA;WACA;WACA;WAGA;WACA;WAGA;WACA;;;;;qBAMW;WACX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;iBAMe;EACf;EACA;EACA;EACA;EACA;EACA;;YAIU,yBAAyB;YACzB,oBAAoB,0BAA0B;YAC9C,uBAAuB,8BAA8B;YACrD,yBAAyB,+BAA+B;YACxD,yBAAyB,+BAA+B;YACxD,mBAAmB,yBAAyB;YAC5C,sBAAsB;YACtB,eAAe,OAAO;YACtB,2BAA2B;YAC3B,uBAAuB,6BAA6B;YAGpD,oBAAoB,0BAA0B;YAC9C,sBAAsB,4BAA4B;YAClD,yBAAyB,+BAA+B;YACxD,wBAAwB,+BAA+B;YACvD,wBAAwB,+BAA+B;YACvD,2BAA2B,iCAAiC;qBAE3D,oBAAmD,cAAc;qBACjE,wBACX,iBACG;qBAEQ,oBAAmD,cAAc;qBACjE,sBAAuD,gBAAgB;qBACvE,yBACX,mBACG;qBAEQ,yBACX,kBACG;qBAEQ,yBACX,kBACG;qBAEQ,2BACX,qBACG;wBAGW,YAAY,gBAAgB,SAAS;wBAIrC,eAAe,gBAAgB,SAAS;wBAIxC,YAAY,gBAAgB,SAAS;wBAIrC,cAAc,gBAAgB,SAAS;wBAIvC,iBAAiB,gBAAgB,SAAS;wBAI1C,gBAAgB,gBAAgB,SAAS;wBAIzC,gBAAgB,gBAAgB,SAAS;wBAIzC,mBAAmB,gBAAgB,SAAS;wBAI5C,0BAA0B,mCAAmC;;;;iBAW5D;EACf,QAAQ;EACR;EACA,QAAQ;EACR;EACA;EACA,iBAAiB;EACjB,cAAc;EACd;EACA;;;;;iBAMe;EACf,WAAW;EACX;EACA;EACA;EACA;EACA,YAAY;EACZ;EACA;EACA;EACA;EACA;;;;;iBAMe;EACf;EACA;EACA;EACA;EACA,SAAS;;;;;wBAMK,eAAe,WAAW,oBAAoB,eAAe;wBAI7D,oBAAoB,WAAW;wBAI/B,iBAAiB,oBAAoB,aAAa;wBAIlD,YAAY,oBAAoB,eAAe;;;;wBAW/C,QAAQ,QAAQ,SAAS;;;;wBAOzB,qBAAqB,QAAQ,QAAQ,SAAS;;;;wBAQ9C,aAAa,QAAQ,QAAQ,aAAa;;;;wBAO1C,eAAe,iBAAiB;;;;wBAQhC,gBAAgB,iBAAiB;;;;wBAQjC,eAAe,QAAQ,WAAW,gBAAgB;;;;;wBAWlD,2BAA2B"}
|
package/dist/index.js
CHANGED
|
@@ -295,7 +295,8 @@ const NAVIGATION_TYPES = {
|
|
|
295
295
|
backForward: "back-forward",
|
|
296
296
|
backForwardCache: "back-forward-cache",
|
|
297
297
|
prerender: "prerender",
|
|
298
|
-
restore: "restore"
|
|
298
|
+
restore: "restore",
|
|
299
|
+
softNavigation: "soft-navigation"
|
|
299
300
|
};
|
|
300
301
|
/**
|
|
301
302
|
* Form event types (Phase 2)
|