@overmap-ai/core 1.0.78-session-auth.1 → 1.0.78-session-auth.3
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/overmap-core.js +1063 -1050
- package/dist/overmap-core.umd.cjs +6 -6
- package/dist/sdk/services/BaseService.d.ts +1 -1
- package/dist/sdk/services/FileService.d.ts +1 -1
- package/dist/sdk/services/JWTAuthService.d.ts +2 -2
- package/dist/sdk/services/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export declare const CLASS_NAME_TO_SERVICE: Record<string, BaseService<BaseState
|
|
|
9
9
|
*/
|
|
10
10
|
export declare abstract class BaseService<TStore extends BaseState, TSDK extends BaseSDK<TStore>> {
|
|
11
11
|
protected readonly client: TSDK;
|
|
12
|
-
abstract readonly host: string;
|
|
12
|
+
protected abstract readonly host: string;
|
|
13
13
|
protected constructor(sdk: TSDK);
|
|
14
14
|
protected enqueueRequest<TResult>(requestDetails: SDKRequest): Promise<TResult>;
|
|
15
15
|
protected dispatch(action: UnknownAction | ResultAction | ActionCreatorWithPayload<any, any>): void;
|
|
@@ -18,7 +18,7 @@ interface DatabaseFileProperties {
|
|
|
18
18
|
file: string;
|
|
19
19
|
}
|
|
20
20
|
export declare abstract class FileService<TState extends BaseState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
21
|
-
host: string;
|
|
21
|
+
protected readonly host: string;
|
|
22
22
|
private _dbPromise;
|
|
23
23
|
private renewUploadUrl;
|
|
24
24
|
/**
|
|
@@ -6,7 +6,7 @@ import { BaseAuthService } from './BaseAuthService';
|
|
|
6
6
|
/**
|
|
7
7
|
* Handles login, logout and renewing tokens
|
|
8
8
|
*/
|
|
9
|
-
export declare abstract class
|
|
9
|
+
export declare abstract class JWTAuthService<TState extends BaseState, TSDK extends BaseSDK<TState>> extends BaseAuthService<TState, TSDK> {
|
|
10
10
|
protected abstract initTokensUrl: string;
|
|
11
11
|
protected abstract refreshTokensUrl: string;
|
|
12
12
|
protected abstract setTokens: (tokens: TokenPair) => void;
|
|
@@ -28,7 +28,7 @@ export declare abstract class JWTService<TState extends BaseState, TSDK extends
|
|
|
28
28
|
* Attempts to renew tokens
|
|
29
29
|
*/
|
|
30
30
|
renewTokens(): Promise<undefined>;
|
|
31
|
-
tokenIsExpiringSoon(): boolean;
|
|
31
|
+
protected tokenIsExpiringSoon(): boolean;
|
|
32
32
|
prepareAuth(): Promise<undefined>;
|
|
33
33
|
private getAuthHeader;
|
|
34
34
|
prepareRequest(request: SuperAgentRequest): SuperAgentRequest;
|
|
@@ -54,5 +54,6 @@ export * from './ProjectAccessService';
|
|
|
54
54
|
export * from './ProjectAttachmentService';
|
|
55
55
|
export * from './ProjectFileService';
|
|
56
56
|
export * from './ProjectService';
|
|
57
|
+
export * from './SessionAuthService';
|
|
57
58
|
export * from './TeamService';
|
|
58
59
|
export * from './UserService';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Core functionality for Overmap",
|
|
4
4
|
"author": "Wôrdn Inc.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
|
-
"version": "1.0.78-session-auth.
|
|
6
|
+
"version": "1.0.78-session-auth.3",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|