@entrolytics/shared 2.2.0 → 2.3.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/README.md CHANGED
@@ -6,9 +6,13 @@ Shared utilities and constants for Entrolytics packages.
6
6
 
7
7
  ```bash
8
8
  npm install @entrolytics/shared
9
+
9
10
  # or
11
+
10
12
  pnpm add @entrolytics/shared
13
+
11
14
  # or
15
+
12
16
  yarn add @entrolytics/shared
13
17
  ```
14
18
 
@@ -19,20 +23,20 @@ import {
19
23
  EVENT_TYPES,
20
24
  DEFAULT_CONFIG,
21
25
  validateWebsiteId,
22
- formatAnalyticsQuery
23
- } from '@entrolytics/shared';
26
+ formatAnalyticsQuery,
27
+ } from "@entrolytics/shared";
24
28
 
25
29
  // Use constants
26
30
  console.log(EVENT_TYPES.PAGEVIEW); // 'pageview'
27
31
 
28
32
  // Validate data
29
- const isValid = validateWebsiteId('abc123'); // true
33
+ const isValid = validateWebsiteId("abc123"); // true
30
34
 
31
35
  // Format queries
32
36
  const query = formatAnalyticsQuery({
33
- websiteId: 'abc123',
34
- startDate: '2025-01-01',
35
- endDate: '2025-01-31',
37
+ websiteId: "abc123",
38
+ startDate: "2025-01-01",
39
+ endDate: "2025-01-31",
36
40
  });
37
41
  ```
38
42
 
package/package.json CHANGED
@@ -1,7 +1,18 @@
1
1
  {
2
2
  "name": "@entrolytics/shared",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Shared utilities for Entrolytics - First-party growth analytics for the edge",
5
+ "keywords": [
6
+ "analytics",
7
+ "constants",
8
+ "entrolytics",
9
+ "types"
10
+ ],
11
+ "license": "MIT",
12
+ "files": [
13
+ "dist",
14
+ "README.md"
15
+ ],
5
16
  "type": "module",
6
17
  "main": "./dist/index.cjs",
7
18
  "module": "./dist/index.js",
@@ -18,26 +29,20 @@
18
29
  }
19
30
  }
20
31
  },
21
- "files": [
22
- "dist",
23
- "README.md"
24
- ],
25
32
  "devDependencies": {
26
- "@types/node": "^25.0.3",
27
- "tsup": "^8.5.1",
28
- "typescript": "^5.9.3",
29
- "vitest": "^4.0.16"
33
+ "@types/node": "^25.5.0",
34
+ "typescript": "rc",
35
+ "vite-plus": "latest",
36
+ "vitest": "^4.1.0"
30
37
  },
31
- "keywords": [
32
- "entrolytics",
33
- "analytics",
34
- "constants",
35
- "types"
36
- ],
37
- "license": "MIT",
38
38
  "scripts": {
39
- "build": "tsup",
40
- "dev": "tsup --watch",
41
- "typecheck": "tsc --noEmit"
39
+ "build": "vp pack",
40
+ "check": "vp check",
41
+ "dev": "vp pack --watch",
42
+ "lint": "vp lint --fix . && vp fmt --write .",
43
+ "lint:check": "vp lint . && vp fmt --check .",
44
+ "lint:fix-unsafe": "vp lint -f stylish --import-plugin --type-aware --type-check --vitest-plugin --fix --fix-suggestions --fix-dangerously src/",
45
+ "format": "vp fmt --write .",
46
+ "typecheck": "tsgo --noEmit"
42
47
  }
43
48
  }
package/dist/index.cjs DELETED
@@ -1,620 +0,0 @@
1
- 'use strict';
2
-
3
- // src/event-protocol.ts
4
- var EventType = {
5
- PageView: "pageview",
6
- Custom: "custom_event",
7
- Click: "click"
8
- };
9
-
10
- // src/index.ts
11
- var PLANS = {
12
- starter: {
13
- id: "starter",
14
- name: "Starter",
15
- price: 0,
16
- limits: {
17
- pageviewsPerMonth: 25e3,
18
- websites: 2,
19
- retentionDays: 30,
20
- seats: 1
21
- },
22
- features: {
23
- funnels: false,
24
- attribution: false,
25
- revenue: false,
26
- customDashboards: false,
27
- apiAccess: false,
28
- weeklyReports: true,
29
- support: "community"
30
- }
31
- },
32
- pro: {
33
- id: "pro",
34
- name: "Pro",
35
- price: 29,
36
- limits: {
37
- pageviewsPerMonth: 25e4,
38
- websites: 10,
39
- retentionDays: 365,
40
- seats: 5
41
- },
42
- features: {
43
- funnels: true,
44
- attribution: true,
45
- revenue: true,
46
- customDashboards: false,
47
- apiAccess: true,
48
- weeklyReports: true,
49
- support: "email"
50
- }
51
- },
52
- business: {
53
- id: "business",
54
- name: "Business",
55
- price: 99,
56
- limits: {
57
- pageviewsPerMonth: 1e6,
58
- websites: -1,
59
- // unlimited
60
- retentionDays: 730,
61
- // 2 years
62
- seats: -1
63
- // unlimited
64
- },
65
- features: {
66
- funnels: true,
67
- attribution: true,
68
- revenue: true,
69
- customDashboards: true,
70
- apiAccess: true,
71
- weeklyReports: true,
72
- support: "priority"
73
- }
74
- },
75
- enterprise: {
76
- id: "enterprise",
77
- name: "Enterprise",
78
- price: -1,
79
- // custom
80
- limits: {
81
- pageviewsPerMonth: -1,
82
- // custom
83
- websites: -1,
84
- retentionDays: -1,
85
- // custom
86
- seats: -1
87
- },
88
- features: {
89
- funnels: true,
90
- attribution: true,
91
- revenue: true,
92
- customDashboards: true,
93
- apiAccess: true,
94
- weeklyReports: true,
95
- support: "dedicated",
96
- sso: true,
97
- auditLogs: true,
98
- customRetention: true
99
- }
100
- }
101
- };
102
- var PLAN_FEATURES = {
103
- funnels: "Funnel Analytics",
104
- attribution: "Attribution Reports",
105
- revenue: "Revenue Tracking",
106
- customDashboards: "Custom Dashboards",
107
- apiAccess: "API Access",
108
- weeklyReports: "Weekly Email Reports",
109
- sso: "SSO/SAML",
110
- auditLogs: "Audit Logs",
111
- customRetention: "Custom Data Retention"
112
- };
113
- var USAGE_THRESHOLDS = {
114
- warning: 90,
115
- critical: 95
116
- };
117
- var BILLING_ERRORS = {
118
- quotaExceeded: "QUOTA_EXCEEDED",
119
- planRequired: "PLAN_REQUIRED",
120
- featureNotAvailable: "FEATURE_NOT_AVAILABLE",
121
- subscriptionInactive: "SUBSCRIPTION_INACTIVE",
122
- paymentFailed: "PAYMENT_FAILED"
123
- };
124
- var API_ENDPOINTS = {
125
- production: "https://entrolytics.click",
126
- development: "http://localhost:3000"
127
- };
128
- var DEFAULT_API_HOST = process.env.NODE_ENV === "production" ? API_ENDPOINTS.production : API_ENDPOINTS.development;
129
- var ENV_VAR_NAMES = {
130
- nextjs: {
131
- websiteId: "NEXT_PUBLIC_ENTROLYTICS_WEBSITE_ID",
132
- host: "NEXT_PUBLIC_ENTROLYTICS_HOST",
133
- envFile: ".env.local"
134
- },
135
- react: {
136
- websiteId: "VITE_ENTROLYTICS_WEBSITE_ID",
137
- host: "VITE_ENTROLYTICS_HOST",
138
- envFile: ".env",
139
- fallback: {
140
- // CRA fallback
141
- websiteId: "REACT_APP_ENTROLYTICS_WEBSITE_ID",
142
- host: "REACT_APP_ENTROLYTICS_HOST"
143
- }
144
- },
145
- vue: {
146
- websiteId: "VITE_ENTROLYTICS_WEBSITE_ID",
147
- host: "VITE_ENTROLYTICS_HOST",
148
- envFile: ".env"
149
- },
150
- svelte: {
151
- websiteId: "PUBLIC_ENTROLYTICS_WEBSITE_ID",
152
- host: "PUBLIC_ENTROLYTICS_HOST",
153
- envFile: ".env"
154
- },
155
- astro: {
156
- websiteId: "PUBLIC_ENTROLYTICS_WEBSITE_ID",
157
- host: "PUBLIC_ENTROLYTICS_HOST",
158
- envFile: ".env"
159
- },
160
- html: {
161
- websiteId: "ENTROLYTICS_WEBSITE_ID",
162
- host: "ENTROLYTICS_HOST",
163
- envFile: ".env"
164
- },
165
- node: {
166
- websiteId: "ENTROLYTICS_WEBSITE_ID",
167
- host: "ENTROLYTICS_HOST",
168
- envFile: ".env"
169
- },
170
- php: {
171
- websiteId: "ENTROLYTICS_WEBSITE_ID",
172
- host: "ENTROLYTICS_HOST",
173
- envFile: ".env"
174
- },
175
- python: {
176
- websiteId: "ENTROLYTICS_WEBSITE_ID",
177
- host: "ENTROLYTICS_HOST",
178
- envFile: ".env"
179
- },
180
- go: {
181
- websiteId: "ENTROLYTICS_WEBSITE_ID",
182
- host: "ENTROLYTICS_HOST",
183
- envFile: ".env"
184
- }
185
- };
186
- var CLI_CONFIG = {
187
- tokenExpiryMinutes: 15,
188
- maxTokensPerUser: 10,
189
- pollIntervalMs: 2e3,
190
- setupTimeoutMs: 3e5,
191
- // 5 minutes
192
- minCliVersion: "1.0.0"
193
- };
194
- var EVENT_TYPES = {
195
- pageView: "pageview",
196
- custom: "custom_event",
197
- click: "click"
198
- };
199
- var SDK_EVENT_TYPES = {
200
- pageView: "pageview",
201
- click: "click",
202
- formSubmit: "form_submit",
203
- custom: "custom_event",
204
- error: "error",
205
- performance: "performance"
206
- };
207
- var VITAL_TYPES = {
208
- LCP: "LCP",
209
- // Largest Contentful Paint
210
- INP: "INP",
211
- // Interaction to Next Paint (replaced FID)
212
- CLS: "CLS",
213
- // Cumulative Layout Shift
214
- TTFB: "TTFB",
215
- // Time to First Byte
216
- FCP: "FCP"
217
- // First Contentful Paint
218
- };
219
- var VITAL_RATINGS = {
220
- good: "good",
221
- needsImprovement: "needs-improvement",
222
- poor: "poor"
223
- };
224
- var VITAL_THRESHOLDS = {
225
- LCP: { good: 2500, poor: 4e3 },
226
- INP: { good: 200, poor: 500 },
227
- CLS: { good: 0.1, poor: 0.25 },
228
- TTFB: { good: 800, poor: 1800 },
229
- FCP: { good: 1800, poor: 3e3 }
230
- };
231
- var NAVIGATION_TYPES = {
232
- navigate: "navigate",
233
- reload: "reload",
234
- backForward: "back-forward",
235
- backForwardCache: "back-forward-cache",
236
- prerender: "prerender",
237
- restore: "restore"
238
- };
239
- var FORM_EVENT_TYPES = {
240
- start: "start",
241
- // Form interaction started
242
- fieldFocus: "field_focus",
243
- // Field received focus
244
- fieldBlur: "field_blur",
245
- // Field lost focus
246
- fieldError: "field_error",
247
- // Field validation error
248
- submit: "submit",
249
- // Form submitted
250
- abandon: "abandon"
251
- // Form abandoned (left page)
252
- };
253
- var FORM_FIELD_TYPES = {
254
- text: "text",
255
- email: "email",
256
- password: "password",
257
- tel: "tel",
258
- number: "number",
259
- url: "url",
260
- textarea: "textarea",
261
- select: "select",
262
- checkbox: "checkbox",
263
- radio: "radio",
264
- date: "date",
265
- file: "file",
266
- hidden: "hidden",
267
- submit: "submit",
268
- other: "other"
269
- };
270
- var DEPLOYMENT_SOURCES = {
271
- vercel: "vercel",
272
- netlify: "netlify",
273
- cloudflare: "cloudflare",
274
- railway: "railway",
275
- render: "render",
276
- fly: "fly",
277
- heroku: "heroku",
278
- aws: "aws",
279
- gcp: "gcp",
280
- azure: "azure",
281
- custom: "custom"
282
- };
283
- var DEPLOYMENT_ENV_VARS = {
284
- vercel: {
285
- deployId: "VERCEL_DEPLOYMENT_ID",
286
- gitSha: "VERCEL_GIT_COMMIT_SHA",
287
- gitBranch: "VERCEL_GIT_COMMIT_REF",
288
- url: "VERCEL_URL"
289
- },
290
- netlify: {
291
- deployId: "DEPLOY_ID",
292
- gitSha: "COMMIT_REF",
293
- gitBranch: "BRANCH",
294
- url: "DEPLOY_URL"
295
- },
296
- cloudflare: {
297
- deployId: "CF_PAGES_COMMIT_SHA",
298
- gitSha: "CF_PAGES_COMMIT_SHA",
299
- gitBranch: "CF_PAGES_BRANCH",
300
- url: "CF_PAGES_URL"
301
- }
302
- };
303
- var HTTP_STATUS = {
304
- ok: 200,
305
- created: 201,
306
- accepted: 202,
307
- noContent: 204,
308
- badRequest: 400,
309
- unauthorized: 401,
310
- forbidden: 403,
311
- notFound: 404,
312
- conflict: 409,
313
- tooManyRequests: 429,
314
- internalServerError: 500,
315
- serviceUnavailable: 503
316
- };
317
- var API_ROUTES = {
318
- // CLI Auth routes
319
- cliAuthToken: "/api/auth/cli/token",
320
- cliAuthTokens: "/api/auth/cli/tokens",
321
- cliToken: "/api/cli/token",
322
- // Legacy - deprecated
323
- cliValidate: "/api/cli/validate",
324
- // Share routes
325
- shareToken: (shareId) => `/api/share/${shareId}`,
326
- // Links routes
327
- links: "/api/links",
328
- linkRedirect: (slug) => `/q/${slug}`,
329
- // Website routes
330
- websites: "/api/websites",
331
- websiteById: (id) => `/api/websites/${id}`,
332
- websiteEvents: (id) => `/api/websites/${id}/events`,
333
- websiteRecentEvents: (id) => `/api/websites/${id}/recent-events`,
334
- // User routes
335
- userOnboarding: "/api/user/onboarding",
336
- userProfile: "/api/user/profile",
337
- userEmailPreferences: "/api/me/email-preferences",
338
- // Billing routes
339
- billingUsage: "/api/billing/usage",
340
- billingCheckout: "/api/billing/checkout",
341
- billingPortal: "/api/billing/portal",
342
- billingWebhook: "/api/billing/webhook",
343
- // Event collection
344
- collect: "/api/collect",
345
- send: "/api/send",
346
- // Phase 2: Web Vitals, Forms, Deployments (NG only)
347
- collectVitals: "/api/collect/vitals",
348
- collectForms: "/api/collect/forms",
349
- websiteVitals: (id) => `/api/websites/${id}/vitals`,
350
- websiteForms: (id) => `/api/websites/${id}/forms`,
351
- websiteDeployments: (id) => `/api/websites/${id}/deployments`,
352
- // Health checks
353
- health: "/api/health",
354
- healthIntegrations: "/api/health/integrations"
355
- };
356
- var ONBOARDING_STEPS = {
357
- welcome: "welcome",
358
- createWebsite: "create-website",
359
- installTracking: "install-tracking",
360
- verify: "verify",
361
- complete: "complete",
362
- skipped: "skipped"
363
- };
364
- var CLI_TOKEN_STATUS = {
365
- pending: "pending",
366
- used: "used",
367
- expired: "expired",
368
- revoked: "revoked"
369
- };
370
- var USER_ROLES = {
371
- admin: "admin",
372
- user: "user",
373
- viewer: "viewer"
374
- };
375
- var FRAMEWORK_PACKAGES = {
376
- nextjs: "@entrolytics/nextjs-sdk",
377
- react: "@entrolytics/react-sdk",
378
- vue: "@entrolytics/vue-sdk",
379
- svelte: "@entrolytics/svelte-sdk",
380
- astro: "@entrolytics/astro-sdk",
381
- node: "@entrolytics/node-sdk"
382
- };
383
- var FRAMEWORK_PATTERNS = {
384
- nextjs: {
385
- files: ["next.config.js", "next.config.mjs", "next.config.ts"],
386
- dependencies: ["next"]
387
- },
388
- react: {
389
- files: ["vite.config.js", "vite.config.ts"],
390
- dependencies: ["react", "vite"]
391
- },
392
- vue: {
393
- files: ["vite.config.js", "vite.config.ts"],
394
- dependencies: ["vue", "vite"]
395
- },
396
- svelte: {
397
- files: ["svelte.config.js", "svelte.config.ts"],
398
- dependencies: ["svelte"]
399
- },
400
- astro: {
401
- files: ["astro.config.mjs", "astro.config.ts"],
402
- dependencies: ["astro"]
403
- }
404
- };
405
- var RATE_LIMITS = {
406
- cliTokenExchange: {
407
- windowSeconds: 60,
408
- // 1 minute
409
- maxRequests: 5
410
- },
411
- shareTokenGeneration: {
412
- windowSeconds: 60,
413
- // 1 minute
414
- maxRequests: 10
415
- },
416
- linkCreation: {
417
- windowSeconds: 60,
418
- // 1 minute
419
- maxRequests: 20
420
- },
421
- linkRedirect: {
422
- windowSeconds: 60,
423
- // 1 minute
424
- maxRequests: 100
425
- },
426
- apiGeneral: {
427
- windowSeconds: 60,
428
- // 1 minute
429
- maxRequests: 100
430
- },
431
- // Legacy (deprecated but kept for backwards compatibility)
432
- cliTokenGeneration: {
433
- windowMs: 36e5,
434
- // 1 hour
435
- maxRequests: 10
436
- },
437
- cliValidation: {
438
- windowMs: 36e5,
439
- // 1 hour
440
- maxRequests: 100
441
- },
442
- eventCollection: {
443
- windowMs: 6e4,
444
- // 1 minute
445
- maxRequests: 1e3
446
- }
447
- };
448
- var ERROR_MESSAGES = {
449
- // Authentication
450
- unauthorized: "Unauthorized access",
451
- forbidden: "Access forbidden",
452
- tokenExpired: "Token has expired",
453
- tokenInvalid: "Invalid token",
454
- tokenNotFound: "Token not found",
455
- tokenAlreadyUsed: "Token has already been used",
456
- tokenRevoked: "Token has been revoked",
457
- tokenMissingJti: "Token missing JTI - please re-authenticate",
458
- userBanned: "User account has been banned",
459
- userDeleted: "User account has been deleted",
460
- // Share tokens
461
- shareTokenExpired: "Share token has expired",
462
- shareTokenRevoked: "Share has been revoked",
463
- shareTokenInvalid: "Invalid share token",
464
- // URL Validation
465
- invalidUrl: "Invalid URL provided",
466
- invalidUrlProtocol: "URL must use http or https protocol",
467
- openRedirectBlocked: "Open redirect attempt blocked",
468
- // Validation
469
- invalidInput: "Invalid input provided",
470
- missingRequired: "Missing required fields",
471
- invalidFormat: "Invalid format",
472
- // Resources
473
- notFound: "Resource not found",
474
- websiteNotFound: "Website not found",
475
- userNotFound: "User not found",
476
- linkNotFound: "Link not found",
477
- // Rate limiting
478
- tooManyRequests: "Too many requests. Please try again later.",
479
- rateLimitExceeded: "Rate limit exceeded",
480
- // Server
481
- internalError: "Internal server error",
482
- serviceUnavailable: "Service temporarily unavailable"
483
- };
484
- var SUCCESS_MESSAGES = {
485
- tokenGenerated: "Setup token generated successfully",
486
- tokenValidated: "Token validated successfully",
487
- tokenRevoked: "Token revoked successfully",
488
- allTokensRevoked: "All tokens revoked successfully",
489
- websiteCreated: "Website created successfully",
490
- linkCreated: "Link created successfully",
491
- shareCreated: "Share created successfully",
492
- onboardingComplete: "Onboarding completed successfully",
493
- setupComplete: "Setup completed successfully"
494
- };
495
- function getEnvVarNames(framework) {
496
- return ENV_VAR_NAMES[framework];
497
- }
498
- function getFrameworkPackage(framework) {
499
- return FRAMEWORK_PACKAGES[framework] || null;
500
- }
501
- function isValidFramework(framework) {
502
- return framework in ENV_VAR_NAMES;
503
- }
504
- function getApiRoute(route, ...args) {
505
- const routeFn = API_ROUTES[route];
506
- if (typeof routeFn === "function") {
507
- return routeFn(...args);
508
- }
509
- return routeFn;
510
- }
511
- function getPlan(planId) {
512
- return PLANS[planId];
513
- }
514
- function isPlanFeatureEnabled(planId, feature) {
515
- const plan = PLANS[planId];
516
- return plan?.features?.[feature] === true;
517
- }
518
- function getPlanLimit(planId, limit) {
519
- return PLANS[planId]?.limits?.[limit] ?? 0;
520
- }
521
- function isUsageWarning(current, limit) {
522
- if (limit <= 0) return false;
523
- return current / limit * 100 >= USAGE_THRESHOLDS.warning;
524
- }
525
- function isUsageCritical(current, limit) {
526
- if (limit <= 0) return false;
527
- return current / limit * 100 >= USAGE_THRESHOLDS.critical;
528
- }
529
- function getVitalRating(metric, value) {
530
- const thresholds = VITAL_THRESHOLDS[metric];
531
- if (value <= thresholds.good) return "good";
532
- if (value <= thresholds.poor) return "needs-improvement";
533
- return "poor";
534
- }
535
- function detectDeploymentContext() {
536
- const env = getEnv();
537
- if (!env) return null;
538
- if (env.VERCEL_DEPLOYMENT_ID) {
539
- return {
540
- deployId: env.VERCEL_DEPLOYMENT_ID,
541
- gitSha: env.VERCEL_GIT_COMMIT_SHA,
542
- gitBranch: env.VERCEL_GIT_COMMIT_REF,
543
- deployUrl: env.VERCEL_URL ? `https://${env.VERCEL_URL}` : void 0,
544
- source: "vercel"
545
- };
546
- }
547
- if (env.DEPLOY_ID) {
548
- return {
549
- deployId: env.DEPLOY_ID,
550
- gitSha: env.COMMIT_REF,
551
- gitBranch: env.BRANCH,
552
- deployUrl: env.DEPLOY_URL,
553
- source: "netlify"
554
- };
555
- }
556
- if (env.CF_PAGES_COMMIT_SHA) {
557
- return {
558
- deployId: env.CF_PAGES_COMMIT_SHA,
559
- gitSha: env.CF_PAGES_COMMIT_SHA,
560
- gitBranch: env.CF_PAGES_BRANCH,
561
- deployUrl: env.CF_PAGES_URL,
562
- source: "cloudflare"
563
- };
564
- }
565
- return null;
566
- }
567
- function getEnv() {
568
- try {
569
- if (typeof globalThis !== "undefined" && "process" in globalThis) {
570
- const proc = globalThis.process;
571
- return proc?.env ?? null;
572
- }
573
- return null;
574
- } catch {
575
- return null;
576
- }
577
- }
578
-
579
- exports.API_ENDPOINTS = API_ENDPOINTS;
580
- exports.API_ROUTES = API_ROUTES;
581
- exports.BILLING_ERRORS = BILLING_ERRORS;
582
- exports.CLI_CONFIG = CLI_CONFIG;
583
- exports.CLI_TOKEN_STATUS = CLI_TOKEN_STATUS;
584
- exports.DEFAULT_API_HOST = DEFAULT_API_HOST;
585
- exports.DEPLOYMENT_ENV_VARS = DEPLOYMENT_ENV_VARS;
586
- exports.DEPLOYMENT_SOURCES = DEPLOYMENT_SOURCES;
587
- exports.ENV_VAR_NAMES = ENV_VAR_NAMES;
588
- exports.ERROR_MESSAGES = ERROR_MESSAGES;
589
- exports.EVENT_TYPES = EVENT_TYPES;
590
- exports.EventType = EventType;
591
- exports.FORM_EVENT_TYPES = FORM_EVENT_TYPES;
592
- exports.FORM_FIELD_TYPES = FORM_FIELD_TYPES;
593
- exports.FRAMEWORK_PACKAGES = FRAMEWORK_PACKAGES;
594
- exports.FRAMEWORK_PATTERNS = FRAMEWORK_PATTERNS;
595
- exports.HTTP_STATUS = HTTP_STATUS;
596
- exports.NAVIGATION_TYPES = NAVIGATION_TYPES;
597
- exports.ONBOARDING_STEPS = ONBOARDING_STEPS;
598
- exports.PLANS = PLANS;
599
- exports.PLAN_FEATURES = PLAN_FEATURES;
600
- exports.RATE_LIMITS = RATE_LIMITS;
601
- exports.SDK_EVENT_TYPES = SDK_EVENT_TYPES;
602
- exports.SUCCESS_MESSAGES = SUCCESS_MESSAGES;
603
- exports.USAGE_THRESHOLDS = USAGE_THRESHOLDS;
604
- exports.USER_ROLES = USER_ROLES;
605
- exports.VITAL_RATINGS = VITAL_RATINGS;
606
- exports.VITAL_THRESHOLDS = VITAL_THRESHOLDS;
607
- exports.VITAL_TYPES = VITAL_TYPES;
608
- exports.detectDeploymentContext = detectDeploymentContext;
609
- exports.getApiRoute = getApiRoute;
610
- exports.getEnvVarNames = getEnvVarNames;
611
- exports.getFrameworkPackage = getFrameworkPackage;
612
- exports.getPlan = getPlan;
613
- exports.getPlanLimit = getPlanLimit;
614
- exports.getVitalRating = getVitalRating;
615
- exports.isPlanFeatureEnabled = isPlanFeatureEnabled;
616
- exports.isUsageCritical = isUsageCritical;
617
- exports.isUsageWarning = isUsageWarning;
618
- exports.isValidFramework = isValidFramework;
619
- //# sourceMappingURL=index.cjs.map
620
- //# sourceMappingURL=index.cjs.map