@open-kingdom/shared-frontend-data-access-api-client 0.0.2-8 → 0.0.2-9
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.ts +0 -1
- package/dist/lib/adapters/custom-header-adapter.d.ts +1 -1
- package/dist/lib/auth.listener.d.ts +1 -1
- package/dist/lib/auth.slice.d.ts +5 -5
- package/dist/lib/baseApi.d.ts +3 -3
- package/dist/lib/demo-scaffold-backend/api.d.ts +146 -146
- package/dist/lib/persistence/storage.persistence.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface AuthConfig {
|
|
|
5
5
|
onLogout?: () => void;
|
|
6
6
|
}
|
|
7
7
|
export declare function configureAuth(config: AuthConfig): void;
|
|
8
|
-
export declare function createAuthListenerMiddleware(): import(
|
|
8
|
+
export declare function createAuthListenerMiddleware(): import('@reduxjs/toolkit').ListenerMiddleware<unknown, import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>, unknown>;
|
|
9
9
|
export declare function createAuthHydrationMiddleware(): Middleware;
|
|
10
10
|
export {};
|
|
11
11
|
//# sourceMappingURL=auth.listener.d.ts.map
|
package/dist/lib/auth.slice.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import
|
|
2
|
+
import { AuthAdapter } from './adapters/adapters.types';
|
|
3
3
|
export declare const AuthKey = "auth";
|
|
4
4
|
export declare function getAuthAdapter(): AuthAdapter | null;
|
|
5
5
|
export declare function setAuthAdapter(adapter: AuthAdapter | null): void;
|
|
@@ -10,16 +10,16 @@ export interface AuthPersistence {
|
|
|
10
10
|
getToken: () => string | null;
|
|
11
11
|
setToken: (token: string | null) => void;
|
|
12
12
|
}
|
|
13
|
-
export declare const authSlice: import(
|
|
13
|
+
export declare const authSlice: import('@reduxjs/toolkit').Slice<AuthState, {
|
|
14
14
|
setToken: (state: {
|
|
15
15
|
token: string | null;
|
|
16
16
|
}, action: PayloadAction<string | null>) => void;
|
|
17
17
|
logout: (state: {
|
|
18
18
|
token: string | null;
|
|
19
19
|
}) => void;
|
|
20
|
-
}, "auth", "auth", import(
|
|
21
|
-
export declare const setToken: import(
|
|
22
|
-
export declare const authReducer: import(
|
|
20
|
+
}, "auth", "auth", import('@reduxjs/toolkit').SliceSelectors<AuthState>>;
|
|
21
|
+
export declare const setToken: import('@reduxjs/toolkit').ActionCreatorWithPayload<string | null, "auth/setToken">, logout: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"auth/logout">;
|
|
22
|
+
export declare const authReducer: import('redux').Reducer<AuthState>;
|
|
23
23
|
type StateWithAuth = {
|
|
24
24
|
[AuthKey]: AuthState;
|
|
25
25
|
};
|
package/dist/lib/baseApi.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const ApiKey = "api";
|
|
2
|
-
export declare const baseApi: import(
|
|
3
|
-
export declare const apiReducer: import(
|
|
4
|
-
export declare const apiMiddleware: import(
|
|
2
|
+
export declare const baseApi: import('@reduxjs/toolkit/query').Api<import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, {}, "api", never, typeof import('@reduxjs/toolkit/query').coreModuleName | typeof import('@reduxjs/toolkit/query/react').reactHooksModuleName>;
|
|
3
|
+
export declare const apiReducer: import('redux').Reducer<import('@reduxjs/toolkit/query').CombinedState<{}, never, "api">, import('redux').UnknownAction>;
|
|
4
|
+
export declare const apiMiddleware: import('redux').Middleware<{}, import('@reduxjs/toolkit/query').RootState<{}, string, "api">, import('redux-thunk').ThunkDispatch<any, any, import('redux').UnknownAction>>;
|
|
5
5
|
//# sourceMappingURL=baseApi.d.ts.map
|