api-core-lib 11.8.8 → 11.9.8
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/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -454,6 +454,11 @@ type ModuleActions<TModule extends ApiModuleConfig> = {
|
|
|
454
454
|
[K in keyof TModule['actions']]: TModule['actions'][K] extends ActionConfig<infer TInput, infer TOutput> ? ExecutableAction<TInput, TOutput> : never;
|
|
455
455
|
};
|
|
456
456
|
|
|
457
|
+
/**
|
|
458
|
+
* A factory function to create a reusable set of API services for a specific endpoint.
|
|
459
|
+
* It provides full CRUD operations plus advanced features like bulk deletion and file uploads,
|
|
460
|
+
* with intelligent, dynamic URL building.
|
|
461
|
+
*/
|
|
457
462
|
declare function createApiServices<T>(axiosInstance: AxiosInstance, baseEndpoint: string): {
|
|
458
463
|
get: (id?: string | number, config?: ActionOptions) => Promise<StandardResponse<T>>;
|
|
459
464
|
getWithQuery: (query: string, config?: RequestConfig) => Promise<StandardResponse<T>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -454,6 +454,11 @@ type ModuleActions<TModule extends ApiModuleConfig> = {
|
|
|
454
454
|
[K in keyof TModule['actions']]: TModule['actions'][K] extends ActionConfig<infer TInput, infer TOutput> ? ExecutableAction<TInput, TOutput> : never;
|
|
455
455
|
};
|
|
456
456
|
|
|
457
|
+
/**
|
|
458
|
+
* A factory function to create a reusable set of API services for a specific endpoint.
|
|
459
|
+
* It provides full CRUD operations plus advanced features like bulk deletion and file uploads,
|
|
460
|
+
* with intelligent, dynamic URL building.
|
|
461
|
+
*/
|
|
457
462
|
declare function createApiServices<T>(axiosInstance: AxiosInstance, baseEndpoint: string): {
|
|
458
463
|
get: (id?: string | number, config?: ActionOptions) => Promise<StandardResponse<T>>;
|
|
459
464
|
getWithQuery: (query: string, config?: RequestConfig) => Promise<StandardResponse<T>>;
|