@plyaz/types 1.33.0 → 1.34.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.
@@ -5,12 +5,12 @@
5
5
  */
6
6
  import type { ReactNode } from 'react';
7
7
  import type { CoreBaseDomainServiceInterface } from '../domain';
8
- import type { CoreAppEnvironment, CoreAppContext } from '../modules';
8
+ import type { CoreAppEnvironment, CoreAppContext, CoreRuntimeEnvironment } from '../modules';
9
9
  import type { FeatureFlagValue, FeatureFlagContext } from '../../features';
10
10
  import type { RootStoreSlice } from '../../store';
11
11
  import type { CoreBaseDomainServiceConfig } from '../domain';
12
12
  import type { CoreBaseServiceConfig, CoreBaseMapperInstance, CoreBaseValidatorInstance } from '../domain';
13
- import type { CoreDomainServiceInstance, CoreServiceEntry } from '../init';
13
+ import type { CoreDomainServiceInstance, CoreObservabilityConfig, CoreServiceEntry } from '../init';
14
14
  /**
15
15
  * Base store interface for frontend services.
16
16
  *
@@ -989,6 +989,12 @@ export interface CorePlyazConfig {
989
989
  store?: CorePlyazStoreConfig;
990
990
  /** App context (webapp, backoffice, mobile) */
991
991
  appContext?: CoreAppContext;
992
+ /** Environment (production, staging, development, test) */
993
+ environment?: CoreAppEnvironment;
994
+ /** Runtime environment (browser, nextjs, nuxt, react-native, etc.) - auto-detected if not provided */
995
+ runtime?: CoreRuntimeEnvironment;
996
+ /** Observability configuration (metrics, tracing, logging) */
997
+ observability?: CoreObservabilityConfig;
992
998
  /** Enable verbose logging */
993
999
  verbose?: boolean;
994
1000
  }
@@ -2,7 +2,7 @@
2
2
  * Core Services Types
3
3
  * Type definitions for @plyaz/core services
4
4
  */
5
- import type { DrizzleConfig, SupabaseConfig, SqlConfig, SoftDeleteConfig, DBCacheConfig, AuditConfig, DBEncryptionConfig } from '../../db';
5
+ import type { DrizzleConfig, SupabaseConfig, SqlConfig, SoftDeleteConfig, DBCacheConfig, AuditConfig, DBEncryptionConfig, DatabaseEvents } from '../../db';
6
6
  import type { ReactNode } from 'react';
7
7
  import type { ApiClientOptions } from '../../api/client';
8
8
  import type { StorageServiceConfig, StorageServiceInstance } from '../../storage';
@@ -532,6 +532,11 @@ export interface CoreDbServiceConfig {
532
532
  * ```
533
533
  */
534
534
  encryption?: DBEncryptionConfig;
535
+ /**
536
+ * Database event handlers for lifecycle hooks
537
+ * Core will merge user handlers with internal Core handlers
538
+ */
539
+ events?: DatabaseEvents;
535
540
  }
536
541
  /**
537
542
  * Core's DbService instance interface
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/types",
3
- "version": "1.33.0",
3
+ "version": "1.34.1",
4
4
  "author": "Redeemer Pace",
5
5
  "license": "ISC",
6
6
  "description": "Provides shared TypeScript types and schema utilities for validation and parsing in the @playz ecosystem.",