@plyaz/types 1.27.16 → 1.27.18

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.
@@ -723,6 +723,24 @@ export interface CoreBaseFrontendServiceConfig<TData = Record<string, unknown>,
723
723
  readStores?: (keyof RootStoreSlice)[];
724
724
  /** API base path for endpoints (e.g., '/api/examples') */
725
725
  apiBasePath?: string;
726
+ /**
727
+ * Response data key for unwrapping API responses.
728
+ *
729
+ * When API returns wrapped responses (e.g., SuccessResponseStandard),
730
+ * this specifies which property contains the actual data.
731
+ *
732
+ * @example
733
+ * ```typescript
734
+ * // API returns: { success: true, message: '...', data: [...], codeStatus: 200 }
735
+ * // Set responseDataKey to extract the inner 'data' property:
736
+ * responseDataKey: 'data'
737
+ *
738
+ * // Result: response.data becomes the array instead of the wrapper object
739
+ * ```
740
+ *
741
+ * @default undefined (no unwrapping, response.data used as-is)
742
+ */
743
+ responseDataKey?: string;
726
744
  /** Fetcher functions for API operations (replaces direct apiClient usage) */
727
745
  fetchers?: CoreServiceFetchers<unknown, unknown, unknown, unknown, unknown, unknown, unknown>;
728
746
  /**
@@ -772,6 +772,18 @@ export interface CoreInitOptionsBase<TDb = unknown, TApi = unknown, TStorage = u
772
772
  skipNotifications?: boolean;
773
773
  /** Enable verbose logging */
774
774
  verbose?: boolean;
775
+ /**
776
+ * Logger configuration for Core's internal PackageLogger.
777
+ * Controls how initialization and service logs are output.
778
+ */
779
+ logger?: {
780
+ /**
781
+ * Logger transport type.
782
+ * - 'pino': JSON structured logs (default, good for production/log aggregators)
783
+ * - 'console': Human-readable console output (good for development)
784
+ */
785
+ transport?: 'pino' | 'console';
786
+ };
775
787
  /** Error handler configuration */
776
788
  errorHandler?: CoreErrorHandlerInitConfig;
777
789
  /** Feature flags configuration */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/types",
3
- "version": "1.27.16",
3
+ "version": "1.27.18",
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.",