@plyaz/types 1.18.5 → 1.18.6

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.
@@ -24,3 +24,18 @@ export interface ReadReplicaConfig {
24
24
  /** Fallback to primary if all replicas unhealthy */
25
25
  fallbackToPrimary?: boolean;
26
26
  }
27
+ /**
28
+ * Health status tracking for a read replica
29
+ */
30
+ export interface ReplicaHealth {
31
+ /** The database adapter for this replica */
32
+ adapter: DatabaseAdapterType;
33
+ /** Whether the replica is currently healthy */
34
+ isHealthy: boolean;
35
+ /** Number of consecutive failures */
36
+ failureCount: number;
37
+ /** Timestamp of last health check */
38
+ lastChecked: number;
39
+ /** Average response time in milliseconds (EMA) */
40
+ avgResponseTime: number;
41
+ }
package/dist/index.cjs CHANGED
@@ -71,6 +71,13 @@ var UNIVERSAL_RUNTIMES = [
71
71
  "nuxt",
72
72
  "edge"
73
73
  ];
74
+ var APP_CONTEXTS = [
75
+ "webapp",
76
+ "backoffice",
77
+ "mobile",
78
+ "microapp",
79
+ "cli"
80
+ ];
74
81
 
75
82
  // src/core/tables/enum.ts
76
83
  var TABLES = /* @__PURE__ */ ((TABLES2) => {
@@ -8295,6 +8302,7 @@ exports.ALERT_SOURCE = ALERT_SOURCE;
8295
8302
  exports.ALERT_TYPES = ALERT_TYPES;
8296
8303
  exports.ALL_EVENTS = ALL_EVENTS;
8297
8304
  exports.API_ERROR_CODES = API_ERROR_CODES;
8305
+ exports.APP_CONTEXTS = APP_CONTEXTS;
8298
8306
  exports.ATHLETE_PROFILE_ERRORS = ATHLETE_PROFILE_ERRORS;
8299
8307
  exports.AUDIT_OPERATION = AUDIT_OPERATION;
8300
8308
  exports.AUTH_PROVIDER = AUTH_PROVIDER;