@plyaz/types 1.27.16 → 1.27.17
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
|
/**
|
package/package.json
CHANGED