api-core-lib 12.0.92 → 12.0.94

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.
@@ -205,6 +205,8 @@ interface ActionConfigModule<TInput = unknown, TOutput = unknown> {
205
205
  autoFetch?: boolean;
206
206
  cacheResponse?: boolean;
207
207
  invalidates?: string[];
208
+ requiresAuth?: boolean;
209
+ pathParams?: string[];
208
210
  _input?: TInput;
209
211
  _output?: TOutput;
210
212
  }
@@ -253,20 +255,24 @@ type ModuleActions<TActions extends Record<string, ActionConfigModule<any, any>>
253
255
  type ModuleStates<TActions extends Record<string, ActionConfigModule<any, any>>> = {
254
256
  [K in keyof TActions]: ActionState<OutputOf<TActions[K]>>;
255
257
  };
256
- /**
257
- /** @description The complete, fully-typed return object of the `useApiModule` hook.
258
- */
259
- type ActionsWithQuery<TActions extends Record<string, any>> = {
258
+ type ActionsWithQuery<TActions extends Record<string, ActionConfigModule<any, any>>> = {
260
259
  [K in keyof TActions]: TActions[K] extends {
261
260
  hasQuery: true;
262
261
  } ? K : never;
263
262
  }[keyof TActions];
264
- type UseApiModuleReturn<TActions extends Record<string, any>, TExtra = {}> = {
263
+ /**
264
+ * يُنشئ نوعًا لكائن `queries` يكون آمنًا ومحددًا.
265
+ */
266
+ type ModuleQueries<TActions extends Record<string, ActionConfigModule<any, any>>> = {
267
+ [K in keyof TActions]: K extends ActionsWithQuery<TActions> ? UseApiQuery : never;
268
+ };
269
+ /**
270
+ * @description The complete, fully-typed return object of the `useApiModule` hook.
271
+ */
272
+ type UseApiModuleReturn<TActions extends Record<string, ActionConfigModule<any, any>>, TExtra extends object = {}> = {
265
273
  states: ModuleStates<TActions>;
266
274
  actions: ModuleActions<TActions>;
267
- queries: {
268
- [K in ActionsWithQuery<TActions>]: UseApiQuery;
269
- };
275
+ queries: ModuleQueries<TActions>;
270
276
  dehydrate: () => string;
271
277
  } & TExtra;
272
278
  /**
@@ -287,4 +293,4 @@ type ActionMethods<TAction extends ActionConfigModule<any, any>> = {
287
293
  }) => void;
288
294
  };
289
295
 
290
- export type { ActionConfigModule as A, ExecutableAction as E, InputOf as I, LogLevel as L, ModuleStates as M, OutputOf as O, PaginationMeta as P, QueryOptions as Q, RequestConfig as R, StandardResponse as S, Tokens as T, UseApiConfig as U, ValidationError as V, ApiModuleConfig as a, UseApiModuleOptions as b, UseApiModuleReturn as c, ModuleActions as d, UseApiQuery as e, ActionsWithQuery as f, ApiClientConfig as g, ActionOptions as h, ActionStateModule as i, ApiError as j, TokenManager as k, MiddlewareContext as l, Middleware as m, RefreshTokenConfig as n, ActionConfig as o, UseApiState as p, ActionState as q, ExecuteOptions as r, ActionMethods as s, t };
296
+ export type { ActionConfigModule as A, ExecutableAction as E, InputOf as I, LogLevel as L, ModuleStates as M, OutputOf as O, PaginationMeta as P, QueryOptions as Q, RequestConfig as R, StandardResponse as S, Tokens as T, UseApiConfig as U, ValidationError as V, ApiModuleConfig as a, UseApiModuleOptions as b, UseApiModuleReturn as c, ModuleActions as d, ModuleQueries as e, ApiClientConfig as f, ActionOptions as g, ActionStateModule as h, UseApiQuery as i, ApiError as j, TokenManager as k, MiddlewareContext as l, Middleware as m, RefreshTokenConfig as n, ActionConfig as o, UseApiState as p, ActionState as q, ExecuteOptions as r, ActionsWithQuery as s, t, ActionMethods as u };
@@ -205,6 +205,8 @@ interface ActionConfigModule<TInput = unknown, TOutput = unknown> {
205
205
  autoFetch?: boolean;
206
206
  cacheResponse?: boolean;
207
207
  invalidates?: string[];
208
+ requiresAuth?: boolean;
209
+ pathParams?: string[];
208
210
  _input?: TInput;
209
211
  _output?: TOutput;
210
212
  }
@@ -253,20 +255,24 @@ type ModuleActions<TActions extends Record<string, ActionConfigModule<any, any>>
253
255
  type ModuleStates<TActions extends Record<string, ActionConfigModule<any, any>>> = {
254
256
  [K in keyof TActions]: ActionState<OutputOf<TActions[K]>>;
255
257
  };
256
- /**
257
- /** @description The complete, fully-typed return object of the `useApiModule` hook.
258
- */
259
- type ActionsWithQuery<TActions extends Record<string, any>> = {
258
+ type ActionsWithQuery<TActions extends Record<string, ActionConfigModule<any, any>>> = {
260
259
  [K in keyof TActions]: TActions[K] extends {
261
260
  hasQuery: true;
262
261
  } ? K : never;
263
262
  }[keyof TActions];
264
- type UseApiModuleReturn<TActions extends Record<string, any>, TExtra = {}> = {
263
+ /**
264
+ * يُنشئ نوعًا لكائن `queries` يكون آمنًا ومحددًا.
265
+ */
266
+ type ModuleQueries<TActions extends Record<string, ActionConfigModule<any, any>>> = {
267
+ [K in keyof TActions]: K extends ActionsWithQuery<TActions> ? UseApiQuery : never;
268
+ };
269
+ /**
270
+ * @description The complete, fully-typed return object of the `useApiModule` hook.
271
+ */
272
+ type UseApiModuleReturn<TActions extends Record<string, ActionConfigModule<any, any>>, TExtra extends object = {}> = {
265
273
  states: ModuleStates<TActions>;
266
274
  actions: ModuleActions<TActions>;
267
- queries: {
268
- [K in ActionsWithQuery<TActions>]: UseApiQuery;
269
- };
275
+ queries: ModuleQueries<TActions>;
270
276
  dehydrate: () => string;
271
277
  } & TExtra;
272
278
  /**
@@ -287,4 +293,4 @@ type ActionMethods<TAction extends ActionConfigModule<any, any>> = {
287
293
  }) => void;
288
294
  };
289
295
 
290
- export type { ActionConfigModule as A, ExecutableAction as E, InputOf as I, LogLevel as L, ModuleStates as M, OutputOf as O, PaginationMeta as P, QueryOptions as Q, RequestConfig as R, StandardResponse as S, Tokens as T, UseApiConfig as U, ValidationError as V, ApiModuleConfig as a, UseApiModuleOptions as b, UseApiModuleReturn as c, ModuleActions as d, UseApiQuery as e, ActionsWithQuery as f, ApiClientConfig as g, ActionOptions as h, ActionStateModule as i, ApiError as j, TokenManager as k, MiddlewareContext as l, Middleware as m, RefreshTokenConfig as n, ActionConfig as o, UseApiState as p, ActionState as q, ExecuteOptions as r, ActionMethods as s, t };
296
+ export type { ActionConfigModule as A, ExecutableAction as E, InputOf as I, LogLevel as L, ModuleStates as M, OutputOf as O, PaginationMeta as P, QueryOptions as Q, RequestConfig as R, StandardResponse as S, Tokens as T, UseApiConfig as U, ValidationError as V, ApiModuleConfig as a, UseApiModuleOptions as b, UseApiModuleReturn as c, ModuleActions as d, ModuleQueries as e, ApiClientConfig as f, ActionOptions as g, ActionStateModule as h, UseApiQuery as i, ApiError as j, TokenManager as k, MiddlewareContext as l, Middleware as m, RefreshTokenConfig as n, ActionConfig as o, UseApiState as p, ActionState as q, ExecuteOptions as r, ActionsWithQuery as s, t, ActionMethods as u };
package/dist/client.cjs CHANGED
@@ -317,13 +317,6 @@ function useApiActionState(actionConfig, cacheKey, execute, input, enabled) {
317
317
  }, [cacheKey, enabled, state.isStale, state.loading, state.called, actionConfig.autoFetch, refetch]);
318
318
  return state;
319
319
  }
320
- function useModuleContext() {
321
- const context = _react.useContext.call(void 0, ApiModuleContext);
322
- if (!context) {
323
- throw new Error("useModuleContext must be used within an ApiModuleProvider");
324
- }
325
- return context;
326
- }
327
320
  function useApiModule(axiosInstance, moduleConfig, options = {}) {
328
321
  const {
329
322
  refetchOnWindowFocus = true,
@@ -527,6 +520,7 @@ function useApiModule(axiosInstance, moduleConfig, options = {}) {
527
520
 
528
521
  function createApiModuleContext() {
529
522
  const Context = _react.createContext.call(void 0, null);
523
+ Context.displayName = "ApiModuleContext";
530
524
  const Provider = ({ value, children }) => {
531
525
  return _react.createElement.call(void 0, Context.Provider, { value }, children);
532
526
  };
@@ -550,5 +544,4 @@ function createApiModuleContext() {
550
544
 
551
545
 
552
546
 
553
-
554
- exports.ApiModuleProvider = ApiModuleProvider; exports.createApiModuleContext = createApiModuleContext; exports.useApi = useApi; exports.useApiModule = useApiModule; exports.useApiRecord = useApiRecord; exports.useDeepCompareEffect = useDeepCompareEffect; exports.useModuleContext = useModuleContext;
547
+ exports.ApiModuleProvider = ApiModuleProvider; exports.createApiModuleContext = createApiModuleContext; exports.useApi = useApi; exports.useApiModule = useApiModule; exports.useApiRecord = useApiRecord; exports.useDeepCompareEffect = useDeepCompareEffect;
package/dist/client.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import { U as UseApiConfig, A as ActionConfigModule, a as ApiModuleConfig, b as UseApiModuleOptions, c as UseApiModuleReturn, M as ModuleStates, d as ModuleActions, e as UseApiQuery, f as ActionsWithQuery } from './apiModule.types-CZX-M2Ub.cjs';
3
- import { U as UseApiRecordConfig, a as UseApiRecordReturn } from './useApiRecord.types-Cq9AlZX2.cjs';
2
+ import { U as UseApiConfig, A as ActionConfigModule, a as ApiModuleConfig, b as UseApiModuleOptions, c as UseApiModuleReturn, M as ModuleStates, d as ModuleActions, e as ModuleQueries } from './apiModule.types-DNSvFUla.cjs';
3
+ import { U as UseApiRecordConfig, a as UseApiRecordReturn } from './useApiRecord.types-vHAh2k4p.cjs';
4
4
  import * as react from 'react';
5
5
  import { ReactNode } from 'react';
6
6
 
@@ -25,12 +25,9 @@ declare function useDeepCompareEffect(callback: EffectCallback, dependencies: De
25
25
  declare const ApiModuleProvider: react.Provider<{
26
26
  states: ModuleStates<any>;
27
27
  actions: ModuleActions<any>;
28
- queries: {
29
- [x: string]: UseApiQuery;
30
- };
28
+ queries: ModuleQueries<any>;
31
29
  dehydrate: () => string;
32
30
  } | null>;
33
- declare function useModuleContext<TModule extends ApiModuleConfig<any>, TExtra = {}>(): UseApiModuleReturn<TModule['actions'], TExtra>;
34
31
  declare function useApiModule<TActions extends Record<string, ActionConfigModule<any, any>>, TExtra extends object = {}>(axiosInstance: AxiosInstance, moduleConfig: ApiModuleConfig<TActions>, options?: UseApiModuleOptions<TExtra>): UseApiModuleReturn<TActions, TExtra>;
35
32
 
36
33
  /**
@@ -38,25 +35,16 @@ declare function useApiModule<TActions extends Record<string, ActionConfigModule
38
35
  * This pattern avoids the need for manual type assertions in consuming components.
39
36
  *
40
37
  * @template TActions - The shape of the actions in the API module.
38
+ * @template TExtra - The shape of any extra data passed via `extraContextData`.
41
39
  * @returns An object containing the typed Context, Provider, and a `useContext` hook.
42
40
  */
43
- declare function createApiModuleContext<TActions extends Record<string, any>>(): {
44
- Context: react.Context<{
45
- states: ModuleStates<TActions>;
46
- actions: ModuleActions<TActions>;
47
- queries: { [K in ActionsWithQuery<TActions>]: UseApiQuery; };
48
- dehydrate: () => string;
49
- } | null>;
41
+ declare function createApiModuleContext<TActions extends Record<string, any>, TExtra extends object = {}>(): {
42
+ Context: react.Context<UseApiModuleReturn<TActions, TExtra> | null>;
50
43
  Provider: ({ value, children }: {
51
- value: UseApiModuleReturn<TActions>;
44
+ value: UseApiModuleReturn<TActions, TExtra>;
52
45
  children: ReactNode;
53
- }) => react.FunctionComponentElement<react.ProviderProps<{
54
- states: ModuleStates<TActions>;
55
- actions: ModuleActions<TActions>;
56
- queries: { [K in ActionsWithQuery<TActions>]: UseApiQuery; };
57
- dehydrate: () => string;
58
- } | null>>;
59
- useContext: () => UseApiModuleReturn<TActions>;
46
+ }) => react.FunctionComponentElement<react.ProviderProps<UseApiModuleReturn<TActions, TExtra> | null>>;
47
+ useContext: () => UseApiModuleReturn<TActions, TExtra>;
60
48
  };
61
49
 
62
- export { ApiModuleProvider, createApiModuleContext, useApi, useApiModule, useApiRecord, useDeepCompareEffect, useModuleContext };
50
+ export { ApiModuleProvider, createApiModuleContext, useApi, useApiModule, useApiRecord, useDeepCompareEffect };
package/dist/client.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import { U as UseApiConfig, A as ActionConfigModule, a as ApiModuleConfig, b as UseApiModuleOptions, c as UseApiModuleReturn, M as ModuleStates, d as ModuleActions, e as UseApiQuery, f as ActionsWithQuery } from './apiModule.types-CZX-M2Ub.js';
3
- import { U as UseApiRecordConfig, a as UseApiRecordReturn } from './useApiRecord.types-Cye9a7zh.js';
2
+ import { U as UseApiConfig, A as ActionConfigModule, a as ApiModuleConfig, b as UseApiModuleOptions, c as UseApiModuleReturn, M as ModuleStates, d as ModuleActions, e as ModuleQueries } from './apiModule.types-DNSvFUla.js';
3
+ import { U as UseApiRecordConfig, a as UseApiRecordReturn } from './useApiRecord.types-kAcLy9LB.js';
4
4
  import * as react from 'react';
5
5
  import { ReactNode } from 'react';
6
6
 
@@ -25,12 +25,9 @@ declare function useDeepCompareEffect(callback: EffectCallback, dependencies: De
25
25
  declare const ApiModuleProvider: react.Provider<{
26
26
  states: ModuleStates<any>;
27
27
  actions: ModuleActions<any>;
28
- queries: {
29
- [x: string]: UseApiQuery;
30
- };
28
+ queries: ModuleQueries<any>;
31
29
  dehydrate: () => string;
32
30
  } | null>;
33
- declare function useModuleContext<TModule extends ApiModuleConfig<any>, TExtra = {}>(): UseApiModuleReturn<TModule['actions'], TExtra>;
34
31
  declare function useApiModule<TActions extends Record<string, ActionConfigModule<any, any>>, TExtra extends object = {}>(axiosInstance: AxiosInstance, moduleConfig: ApiModuleConfig<TActions>, options?: UseApiModuleOptions<TExtra>): UseApiModuleReturn<TActions, TExtra>;
35
32
 
36
33
  /**
@@ -38,25 +35,16 @@ declare function useApiModule<TActions extends Record<string, ActionConfigModule
38
35
  * This pattern avoids the need for manual type assertions in consuming components.
39
36
  *
40
37
  * @template TActions - The shape of the actions in the API module.
38
+ * @template TExtra - The shape of any extra data passed via `extraContextData`.
41
39
  * @returns An object containing the typed Context, Provider, and a `useContext` hook.
42
40
  */
43
- declare function createApiModuleContext<TActions extends Record<string, any>>(): {
44
- Context: react.Context<{
45
- states: ModuleStates<TActions>;
46
- actions: ModuleActions<TActions>;
47
- queries: { [K in ActionsWithQuery<TActions>]: UseApiQuery; };
48
- dehydrate: () => string;
49
- } | null>;
41
+ declare function createApiModuleContext<TActions extends Record<string, any>, TExtra extends object = {}>(): {
42
+ Context: react.Context<UseApiModuleReturn<TActions, TExtra> | null>;
50
43
  Provider: ({ value, children }: {
51
- value: UseApiModuleReturn<TActions>;
44
+ value: UseApiModuleReturn<TActions, TExtra>;
52
45
  children: ReactNode;
53
- }) => react.FunctionComponentElement<react.ProviderProps<{
54
- states: ModuleStates<TActions>;
55
- actions: ModuleActions<TActions>;
56
- queries: { [K in ActionsWithQuery<TActions>]: UseApiQuery; };
57
- dehydrate: () => string;
58
- } | null>>;
59
- useContext: () => UseApiModuleReturn<TActions>;
46
+ }) => react.FunctionComponentElement<react.ProviderProps<UseApiModuleReturn<TActions, TExtra> | null>>;
47
+ useContext: () => UseApiModuleReturn<TActions, TExtra>;
60
48
  };
61
49
 
62
- export { ApiModuleProvider, createApiModuleContext, useApi, useApiModule, useApiRecord, useDeepCompareEffect, useModuleContext };
50
+ export { ApiModuleProvider, createApiModuleContext, useApi, useApiModule, useApiRecord, useDeepCompareEffect };
package/dist/client.js CHANGED
@@ -271,7 +271,7 @@ function useDeepCompareEffect(callback, dependencies) {
271
271
  }
272
272
 
273
273
  // src/hooks/useApiModule/useApiModule.ts
274
- import { createContext, useCallback as useCallback3, useContext, useEffect as useEffect4, useMemo as useMemo3, useRef as useRef4, useState as useState3, useSyncExternalStore } from "react";
274
+ import { createContext, useCallback as useCallback3, useEffect as useEffect4, useMemo as useMemo3, useRef as useRef4, useState as useState3, useSyncExternalStore } from "react";
275
275
  var ApiModuleContext = createContext(null);
276
276
  var ApiModuleProvider = ApiModuleContext.Provider;
277
277
  var createInitialState = () => ({
@@ -317,13 +317,6 @@ function useApiActionState(actionConfig, cacheKey, execute, input, enabled) {
317
317
  }, [cacheKey, enabled, state.isStale, state.loading, state.called, actionConfig.autoFetch, refetch]);
318
318
  return state;
319
319
  }
320
- function useModuleContext() {
321
- const context = useContext(ApiModuleContext);
322
- if (!context) {
323
- throw new Error("useModuleContext must be used within an ApiModuleProvider");
324
- }
325
- return context;
326
- }
327
320
  function useApiModule(axiosInstance, moduleConfig, options = {}) {
328
321
  const {
329
322
  refetchOnWindowFocus = true,
@@ -527,6 +520,7 @@ function useApiModule(axiosInstance, moduleConfig, options = {}) {
527
520
  import { createContext as createContext2, useContext as useContext2, createElement } from "react";
528
521
  function createApiModuleContext() {
529
522
  const Context = createContext2(null);
523
+ Context.displayName = "ApiModuleContext";
530
524
  const Provider = ({ value, children }) => {
531
525
  return createElement(Context.Provider, { value }, children);
532
526
  };
@@ -549,6 +543,5 @@ export {
549
543
  useApi,
550
544
  useApiModule,
551
545
  useApiRecord,
552
- useDeepCompareEffect,
553
- useModuleContext
546
+ useDeepCompareEffect
554
547
  };
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AxiosInstance, AxiosRequestConfig, Method, AxiosResponse, AxiosError } from 'axios';
2
- import { g as ApiClientConfig, A as ActionConfigModule, S as StandardResponse, h as ActionOptions, R as RequestConfig, i as ActionStateModule, Q as QueryOptions, e as UseApiQuery, j as ApiError, L as LogLevel } from './apiModule.types-CZX-M2Ub.cjs';
3
- export { o as ActionConfig, s as ActionMethods, q as ActionState, f as ActionsWithQuery, a as ApiModuleConfig, E as ExecutableAction, r as ExecuteOptions, I as InputOf, m as Middleware, l as MiddlewareContext, d as ModuleActions, M as ModuleStates, O as OutputOf, P as PaginationMeta, n as RefreshTokenConfig, k as TokenManager, T as Tokens, U as UseApiConfig, b as UseApiModuleOptions, c as UseApiModuleReturn, p as UseApiState, V as ValidationError, t } from './apiModule.types-CZX-M2Ub.cjs';
4
- export { c as UseApiRecordActions, U as UseApiRecordConfig, a as UseApiRecordReturn, b as UseApiRecordState } from './useApiRecord.types-Cq9AlZX2.cjs';
2
+ import { f as ApiClientConfig, A as ActionConfigModule, S as StandardResponse, g as ActionOptions, R as RequestConfig, h as ActionStateModule, Q as QueryOptions, i as UseApiQuery, j as ApiError, L as LogLevel } from './apiModule.types-DNSvFUla.cjs';
3
+ export { o as ActionConfig, u as ActionMethods, q as ActionState, s as ActionsWithQuery, a as ApiModuleConfig, E as ExecutableAction, r as ExecuteOptions, I as InputOf, m as Middleware, l as MiddlewareContext, d as ModuleActions, e as ModuleQueries, M as ModuleStates, O as OutputOf, P as PaginationMeta, n as RefreshTokenConfig, k as TokenManager, T as Tokens, U as UseApiConfig, b as UseApiModuleOptions, c as UseApiModuleReturn, p as UseApiState, V as ValidationError, t } from './apiModule.types-DNSvFUla.cjs';
4
+ export { c as UseApiRecordActions, U as UseApiRecordConfig, a as UseApiRecordReturn, b as UseApiRecordState } from './useApiRecord.types-vHAh2k4p.cjs';
5
5
  import 'react';
6
6
 
7
7
  declare function createApiClient(config: ApiClientConfig): AxiosInstance;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AxiosInstance, AxiosRequestConfig, Method, AxiosResponse, AxiosError } from 'axios';
2
- import { g as ApiClientConfig, A as ActionConfigModule, S as StandardResponse, h as ActionOptions, R as RequestConfig, i as ActionStateModule, Q as QueryOptions, e as UseApiQuery, j as ApiError, L as LogLevel } from './apiModule.types-CZX-M2Ub.js';
3
- export { o as ActionConfig, s as ActionMethods, q as ActionState, f as ActionsWithQuery, a as ApiModuleConfig, E as ExecutableAction, r as ExecuteOptions, I as InputOf, m as Middleware, l as MiddlewareContext, d as ModuleActions, M as ModuleStates, O as OutputOf, P as PaginationMeta, n as RefreshTokenConfig, k as TokenManager, T as Tokens, U as UseApiConfig, b as UseApiModuleOptions, c as UseApiModuleReturn, p as UseApiState, V as ValidationError, t } from './apiModule.types-CZX-M2Ub.js';
4
- export { c as UseApiRecordActions, U as UseApiRecordConfig, a as UseApiRecordReturn, b as UseApiRecordState } from './useApiRecord.types-Cye9a7zh.js';
2
+ import { f as ApiClientConfig, A as ActionConfigModule, S as StandardResponse, g as ActionOptions, R as RequestConfig, h as ActionStateModule, Q as QueryOptions, i as UseApiQuery, j as ApiError, L as LogLevel } from './apiModule.types-DNSvFUla.js';
3
+ export { o as ActionConfig, u as ActionMethods, q as ActionState, s as ActionsWithQuery, a as ApiModuleConfig, E as ExecutableAction, r as ExecuteOptions, I as InputOf, m as Middleware, l as MiddlewareContext, d as ModuleActions, e as ModuleQueries, M as ModuleStates, O as OutputOf, P as PaginationMeta, n as RefreshTokenConfig, k as TokenManager, T as Tokens, U as UseApiConfig, b as UseApiModuleOptions, c as UseApiModuleReturn, p as UseApiState, V as ValidationError, t } from './apiModule.types-DNSvFUla.js';
4
+ export { c as UseApiRecordActions, U as UseApiRecordConfig, a as UseApiRecordReturn, b as UseApiRecordState } from './useApiRecord.types-kAcLy9LB.js';
5
5
  import 'react';
6
6
 
7
7
  declare function createApiClient(config: ApiClientConfig): AxiosInstance;
package/dist/server.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import { A as ActionConfigModule, a as ApiModuleConfig, I as InputOf } from './apiModule.types-CZX-M2Ub.cjs';
2
+ import { A as ActionConfigModule, a as ApiModuleConfig, I as InputOf } from './apiModule.types-DNSvFUla.cjs';
3
3
  import 'react';
4
4
 
5
5
  /**
package/dist/server.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import { A as ActionConfigModule, a as ApiModuleConfig, I as InputOf } from './apiModule.types-CZX-M2Ub.js';
2
+ import { A as ActionConfigModule, a as ApiModuleConfig, I as InputOf } from './apiModule.types-DNSvFUla.js';
3
3
  import 'react';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
- import { R as RequestConfig, j as ApiError, S as StandardResponse, h as ActionOptions } from './apiModule.types-CZX-M2Ub.js';
2
+ import { R as RequestConfig, j as ApiError, S as StandardResponse, g as ActionOptions } from './apiModule.types-DNSvFUla.js';
3
3
 
4
4
  /**
5
5
  * Represents the internal state of the `useApiRecord` hook.
@@ -1,5 +1,5 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
- import { R as RequestConfig, j as ApiError, S as StandardResponse, h as ActionOptions } from './apiModule.types-CZX-M2Ub.cjs';
2
+ import { R as RequestConfig, j as ApiError, S as StandardResponse, g as ActionOptions } from './apiModule.types-DNSvFUla.cjs';
3
3
 
4
4
  /**
5
5
  * Represents the internal state of the `useApiRecord` hook.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-core-lib",
3
- "version": "12.0.92",
3
+ "version": "12.0.94",
4
4
  "description": "A flexible and powerful API client library for modern web applications.",
5
5
  "type": "module",
6
6
  "exports": {