@evergis/api 5.0.29 → 5.0.30
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 +21 -21
- package/README.md +12 -12
- package/dist/Api.d.ts +3 -14
- package/dist/__generated__/DataSourceService.d.ts +45 -9
- package/dist/__generated__/data-contracts.d.ts +1 -52
- package/dist/api.esm.js +54 -279
- package/dist/api.esm.js.map +1 -1
- package/dist/customDataContracts.d.ts +15 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +53 -280
- package/dist/index.js.map +1 -1
- package/dist/services/index.d.ts +0 -1
- package/package.json +2 -2
- package/dist/__generated__/NotificationService.d.ts +0 -69
- package/dist/services/Notification.d.ts +0 -48
package/dist/services/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.0.
|
|
2
|
+
"version": "5.0.30",
|
|
3
3
|
"name": "@evergis/api",
|
|
4
4
|
"author": "Everpoint",
|
|
5
5
|
"license": "MIT",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"query-string": "^6.7.0",
|
|
27
27
|
"swagger-typescript-api": "13.0.23"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "c8c15aff8a8aeb80808b4c630e6f1702d9d7a8c6"
|
|
30
30
|
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { Service } from './Service';
|
|
2
|
-
import { SubscribeListOperationPayload, SubscribeOperationParams, UnsubscribeListOperationPayload, UnsubscribeOperationParams } from './data-contracts';
|
|
3
|
-
/**
|
|
4
|
-
* @title Spatial Processing Gateway API
|
|
5
|
-
* @version 1.5.1.0
|
|
6
|
-
* @baseUrl /sp
|
|
7
|
-
*/
|
|
8
|
-
export declare class NotificationService extends Service {
|
|
9
|
-
/**
|
|
10
|
-
* No description
|
|
11
|
-
*
|
|
12
|
-
* @tags NotificationService
|
|
13
|
-
* @name GetSubscriptionList
|
|
14
|
-
* @operationId NotificationServiceController_GetSubscriptionList
|
|
15
|
-
* @summary Returns a list of notification tags that the current session is subscribed to.
|
|
16
|
-
* @request GET:/notifications/subscribes
|
|
17
|
-
* @secure
|
|
18
|
-
* @response `200` OK
|
|
19
|
-
*/
|
|
20
|
-
getSubscriptionList(): Promise<string[]>;
|
|
21
|
-
/**
|
|
22
|
-
* No description
|
|
23
|
-
*
|
|
24
|
-
* @tags NotificationService
|
|
25
|
-
* @name SubscribeOperation
|
|
26
|
-
* @operationId NotificationServiceController_SubscribeOperation
|
|
27
|
-
* @summary Subscribe current session by subscribe tag. A subscribed session will receive all notifications added for the specified tag.
|
|
28
|
-
* @request POST:/notifications/subscribes
|
|
29
|
-
* @secure
|
|
30
|
-
* @response `200` OK
|
|
31
|
-
*/
|
|
32
|
-
subscribeOperation(query: SubscribeOperationParams): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* No description
|
|
35
|
-
*
|
|
36
|
-
* @tags NotificationService
|
|
37
|
-
* @name UnsubscribeOperation
|
|
38
|
-
* @operationId NotificationServiceController_UnsubscribeOperation
|
|
39
|
-
* @summary Unsubscribe from receiving notifications that come for the specified tag.
|
|
40
|
-
* @request DELETE:/notifications/subscribes
|
|
41
|
-
* @secure
|
|
42
|
-
* @response `200` OK
|
|
43
|
-
*/
|
|
44
|
-
unsubscribeOperation(query: UnsubscribeOperationParams): Promise<void>;
|
|
45
|
-
/**
|
|
46
|
-
* No description
|
|
47
|
-
*
|
|
48
|
-
* @tags NotificationService
|
|
49
|
-
* @name SubscribeListOperation
|
|
50
|
-
* @operationId NotificationServiceController_SubscribeListOperation
|
|
51
|
-
* @summary Subscribe current session by subscribe tags. A subscribed session will receive all notifications added for the specified tags.
|
|
52
|
-
* @request POST:/notifications/subscribe-list
|
|
53
|
-
* @secure
|
|
54
|
-
* @response `200` OK
|
|
55
|
-
*/
|
|
56
|
-
subscribeListOperation(data: SubscribeListOperationPayload): Promise<void>;
|
|
57
|
-
/**
|
|
58
|
-
* No description
|
|
59
|
-
*
|
|
60
|
-
* @tags NotificationService
|
|
61
|
-
* @name UnsubscribeListOperation
|
|
62
|
-
* @operationId NotificationServiceController_UnsubscribeListOperation
|
|
63
|
-
* @summary Unsubscribe from receiving notifications that come for the specified tags.
|
|
64
|
-
* @request POST:/notifications/unsubscribe-list
|
|
65
|
-
* @secure
|
|
66
|
-
* @response `200` OK
|
|
67
|
-
*/
|
|
68
|
-
unsubscribeListOperation(data: UnsubscribeListOperationPayload): Promise<void>;
|
|
69
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { NotificationService } from '../__generated__/NotificationService';
|
|
2
|
-
import { Api } from '../Api';
|
|
3
|
-
import { IHttpClient } from '../__generated__/HttpClient';
|
|
4
|
-
type NotificationHandler<Data, Result> = (event: NotificationEvent<Data>) => Result;
|
|
5
|
-
export declare enum ConnectionStatus {
|
|
6
|
-
Initialized = "Initialized",
|
|
7
|
-
Connected = "Connected",
|
|
8
|
-
Break = "Break",
|
|
9
|
-
Lost = "Lost",
|
|
10
|
-
SessionClosed = "SessionClosed"
|
|
11
|
-
}
|
|
12
|
-
export declare const enum NotificationTag {
|
|
13
|
-
ConnectionStatus = "ConnectionStatus"
|
|
14
|
-
}
|
|
15
|
-
export declare const enum SubscriptionTag {
|
|
16
|
-
ServerTask = "server_task",
|
|
17
|
-
ServiceUpdate = "service_update"
|
|
18
|
-
}
|
|
19
|
-
export declare class Notification extends NotificationService {
|
|
20
|
-
private api;
|
|
21
|
-
private readonly MAX_WS_RECONNECT_TRIES;
|
|
22
|
-
private readonly emitter;
|
|
23
|
-
private readonly keepAlive;
|
|
24
|
-
private ws?;
|
|
25
|
-
private wsUrl?;
|
|
26
|
-
private reconnectTries;
|
|
27
|
-
private subscriptions;
|
|
28
|
-
private keepAliveTimeout?;
|
|
29
|
-
private _connectStatus;
|
|
30
|
-
get connectStatus(): ConnectionStatus;
|
|
31
|
-
set connectStatus(connectStatus: ConnectionStatus);
|
|
32
|
-
get currentWs(): WebSocket | undefined;
|
|
33
|
-
constructor(http: IHttpClient, api: Api, keepAlive?: boolean);
|
|
34
|
-
on<Data, Result>(tag: string, handler: NotificationHandler<Data, Result>): void;
|
|
35
|
-
off<Data, Result>(tag: string, handler: NotificationHandler<Data, Result>): void;
|
|
36
|
-
subscribe(tag: string): Promise<void>;
|
|
37
|
-
unsubscribe(tag: string): Promise<void>;
|
|
38
|
-
connectWs(url: string): void;
|
|
39
|
-
private connect;
|
|
40
|
-
private onWsConnected;
|
|
41
|
-
private onWsClosed;
|
|
42
|
-
private onWsMessage;
|
|
43
|
-
}
|
|
44
|
-
export declare class NotificationEvent<Data> {
|
|
45
|
-
data: Data;
|
|
46
|
-
constructor(data: Data);
|
|
47
|
-
}
|
|
48
|
-
export {};
|