@evergis/api 3.0.76 → 3.0.79
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/LICENSE +20 -20
- package/README.md +21 -21
- package/dist/__generated__/LayersService.d.ts +22 -23
- package/dist/__generated__/ProjectsService.d.ts +13 -35
- package/dist/__generated__/StatisticService.d.ts +2 -2
- package/dist/__generated__/TablesService.d.ts +2 -2
- package/dist/__generated__/WmsServerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +331 -308
- package/dist/api.cjs.development.js +66 -104
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +156 -190
- package/dist/api.esm.js.map +1 -1
- package/dist/services/Notification.d.ts +3 -1
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IHttpClient } from '../__generated__/HttpClient';
|
|
2
2
|
import { NotificationService } from '../__generated__/NotificationService';
|
|
3
|
+
import { Api } from "../Api";
|
|
3
4
|
declare type NotificationHandler<Data, Result> = (event: NotificationEvent<Data>) => Result;
|
|
4
5
|
export declare enum ConnectionStatus {
|
|
5
6
|
Initialized = "Initialized",
|
|
@@ -15,6 +16,7 @@ export declare const enum SubscriptionTag {
|
|
|
15
16
|
ServerTask = "server_task"
|
|
16
17
|
}
|
|
17
18
|
export declare class Notification extends NotificationService {
|
|
19
|
+
private api;
|
|
18
20
|
private readonly MAX_WS_RECONNECT_TRIES;
|
|
19
21
|
private readonly emitter;
|
|
20
22
|
private ws?;
|
|
@@ -24,7 +26,7 @@ export declare class Notification extends NotificationService {
|
|
|
24
26
|
private _connectStatus;
|
|
25
27
|
get connectStatus(): ConnectionStatus;
|
|
26
28
|
set connectStatus(connectStatus: ConnectionStatus);
|
|
27
|
-
constructor(http: IHttpClient);
|
|
29
|
+
constructor(http: IHttpClient, api: Api);
|
|
28
30
|
on<Data, Result>(tag: string, handler: NotificationHandler<Data, Result>): void;
|
|
29
31
|
off<Data, Result>(tag: string, handler: NotificationHandler<Data, Result>): void;
|
|
30
32
|
subscribe(tag: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.0.
|
|
2
|
+
"version": "3.0.79",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"nanoid": "^3.1.23",
|
|
43
43
|
"query-string": "^6.7.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "e35d0a0b33e4c7a7fd687d678e5f8bded8663856"
|
|
46
46
|
}
|