@plyaz/types 1.27.15 → 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.
- package/dist/core/frontend/types.d.ts +18 -0
- package/dist/globals.cjs +4 -0
- package/dist/globals.cjs.map +1 -0
- package/dist/globals.js +3 -0
- package/dist/globals.js.map +1 -0
- package/package.json +5 -2
|
@@ -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/dist/globals.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"globals.cjs"}
|
package/dist/globals.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"globals.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plyaz/types",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.17",
|
|
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.",
|
|
@@ -216,7 +216,10 @@
|
|
|
216
216
|
"require": "./dist/campaign/index.cjs"
|
|
217
217
|
},
|
|
218
218
|
"./globals": {
|
|
219
|
-
"types": "./dist/globals.d.ts"
|
|
219
|
+
"types": "./dist/globals.d.ts",
|
|
220
|
+
"import": "./dist/globals.js",
|
|
221
|
+
"require": "./dist/globals.cjs",
|
|
222
|
+
"default": "./dist/globals.js"
|
|
220
223
|
},
|
|
221
224
|
"./package.json": "./package.json"
|
|
222
225
|
},
|