@evergis/api 3.0.80 → 3.0.83

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/Api.d.ts CHANGED
@@ -1,10 +1,10 @@
1
+ import { EventEmitter } from '@evergis/event-emitter';
1
2
  import { HubConnection } from '@microsoft/signalr';
2
3
  import { Options as KyOptions } from 'ky';
3
- import { EventEmitter } from '@evergis/event-emitter';
4
- import { Account, External, ClientSettings, PortalSettings, FileUpload, General, Geocode, Import, Layers, Names, Namespace, Notification, Projects, ResourceCatalog, Resources, Scheduler, Security, Styles, Tables, Tools, AccountPreview, BulkOperations, IceRouter, Statistic, Feedback } from './services';
5
- import { Print } from './services/Print';
6
- import { HttpClient } from './__generated__/HttpClient';
7
4
  import { LoginDc } from './__generated__/data-contracts';
5
+ import { HttpClient } from './__generated__/HttpClient';
6
+ import { Account, AccountPreview, BulkOperations, ClientSettings, External, Feedback, FileUpload, General, Geocode, IceRouter, Import, Layers, Names, Namespace, Notification, PortalSettings, Projects, ResourceCatalog, Resources, Scheduler, Security, Statistic, Styles, Tables, Tools } from './services';
7
+ import { Print } from './services/Print';
8
8
  export declare type ApiParams = {
9
9
  url: string;
10
10
  wsUrl?: string;
@@ -53,7 +53,7 @@ export declare class Api extends EventEmitter {
53
53
  readonly feedback: Feedback;
54
54
  readonly snappingHub: HubConnection | null;
55
55
  constructor({ url, wsUrl, snappingHubUrl, http, urlPath, httpOptions }: ApiParams);
56
- init({ authParams, connectWs, connectSignalR, initScheduler, fetchSettings, fetchUser, }: {
56
+ init({ authParams, connectWs, initScheduler, fetchSettings, fetchUser, }: {
57
57
  authParams?: LoginDc;
58
58
  connectWs?: boolean;
59
59
  connectSignalR?: boolean;
@@ -27,7 +27,7 @@ export declare class AccountPreviewService extends Service {
27
27
  * @request POST:/account/user/{username}/preview
28
28
  * @response `200` Success
29
29
  */
30
- uploadPreview(username: string, data: UploadPreviewPayload): Promise<FileUploadResponse>;
30
+ uploadPreview(username: string, data: UploadPreviewPayload | FormData): Promise<FileUploadResponse>;
31
31
  /**
32
32
  * No description
33
33
  *
@@ -137,7 +137,7 @@ export declare class AccountService extends Service {
137
137
  * @request POST:/account/setEmail
138
138
  * @response `200` Success
139
139
  */
140
- setEmail(data: SetEmailPayload): Promise<void>;
140
+ setEmail(data: SetEmailPayload | FormData): Promise<void>;
141
141
  /**
142
142
  * No description
143
143
  *
@@ -192,7 +192,7 @@ export declare class AccountService extends Service {
192
192
  * @request PATCH:/account/password/change
193
193
  * @response `200` Success
194
194
  */
195
- changePassword(data: ChangePasswordPayload): Promise<void>;
195
+ changePassword(data: ChangePasswordPayload | FormData): Promise<void>;
196
196
  /**
197
197
  * No description
198
198
  *
@@ -214,7 +214,7 @@ export declare class AccountService extends Service {
214
214
  * @request POST:/account/password/reset/confirm
215
215
  * @response `200` Success
216
216
  */
217
- resetPasswordCallback(data: ResetPasswordCallbackPayload): Promise<void>;
217
+ resetPasswordCallback(data: ResetPasswordCallbackPayload | FormData): Promise<void>;
218
218
  /**
219
219
  * No description
220
220
  *
@@ -38,5 +38,5 @@ export declare class FeedbackService extends Service {
38
38
  * @request POST:/feedback
39
39
  * @response `200` Success
40
40
  */
41
- feedback(query: FeedbackParams, data: FeedbackPayload): Promise<string[]>;
41
+ feedback(query: FeedbackParams, data: FeedbackPayload | FormData): Promise<string[]>;
42
42
  }
@@ -490,7 +490,7 @@ export declare class LayersService extends Service {
490
490
  * @request POST:/layers/{name}/preview
491
491
  * @response `200` Success
492
492
  */
493
- setPreview(name: string, data: SetPreviewPayload): Promise<FileUploadResponse>;
493
+ setPreview(name: string, data: SetPreviewPayload | FormData): Promise<FileUploadResponse>;
494
494
  /**
495
495
  * No description
496
496
  *
@@ -38,7 +38,7 @@ export declare class PrintService extends Service {
38
38
  * @request POST:/print/templates
39
39
  * @response `200` Success
40
40
  */
41
- uploadTemplate(query: UploadTemplateParams, data: UploadTemplatePayload): Promise<void>;
41
+ uploadTemplate(query: UploadTemplateParams, data: UploadTemplatePayload | FormData): Promise<void>;
42
42
  /**
43
43
  * No description
44
44
  *
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, AddPermissionsBody, BulkOperationResultDc, CreateProjectPayload, DeleteResourcesParams4, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsListParams, IListResponse, ListResponseProjectInfoDc, ResourceDependenciesDc, SetPermissionsBatchBody, SetPermissionsBody, SetPreviewBody, UpdateProjectPayload } from './data-contracts';
1
+ import { AccessControlListDc, AddPermissionsBody, BulkOperationResultDc, CreateProjectPayload, DeleteResourcesParams5, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsListParams, IListResponse, ListResponseProjectInfoDc, ResourceDependenciesDc, SetPermissionsBatchBody, SetPermissionsBody, SetPreviewBody, UpdateProjectPayload } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -49,7 +49,7 @@ export declare class ProjectsService extends Service {
49
49
  * @request DELETE:/projects
50
50
  * @response `200` Success
51
51
  */
52
- deleteResources(query: DeleteResourcesParams4): Promise<BulkOperationResultDc[]>;
52
+ deleteResources(query: DeleteResourcesParams5): Promise<BulkOperationResultDc[]>;
53
53
  /**
54
54
  * No description
55
55
  *
@@ -115,7 +115,7 @@ export declare class ProjectsService extends Service {
115
115
  * @request POST:/projects/{name}/preview
116
116
  * @response `200` Success
117
117
  */
118
- setPreview(name: string, data: SetPreviewBody): Promise<FileUploadResponse>;
118
+ setPreview(name: string, data: SetPreviewBody | FormData): Promise<FileUploadResponse>;
119
119
  /**
120
120
  * No description
121
121
  *
@@ -27,7 +27,7 @@ export declare class S3Service extends Service {
27
27
  * @request POST:/storages/{storageName}/objects
28
28
  * @response `200` Success
29
29
  */
30
- createResource(storageName: string, data: CreateResourcePayload): Promise<void>;
30
+ createResource(storageName: string, data: CreateResourcePayload | FormData): Promise<void>;
31
31
  /**
32
32
  * No description
33
33
  *
@@ -27,7 +27,7 @@ export declare class StaticContentService extends Service {
27
27
  * @request POST:/upload/file
28
28
  * @response `200` Success
29
29
  */
30
- uploadFile(data: UploadFilePayload): Promise<FileUploadResponse>;
30
+ uploadFile(data: UploadFilePayload | FormData): Promise<FileUploadResponse>;
31
31
  /**
32
32
  * No description
33
33
  *
@@ -1,4 +1,4 @@
1
- import { ClassifyDc, ClassifyParams2, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
1
+ import { ClassifyDc, ClassifyParams7, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -27,7 +27,7 @@ export declare class StatisticService extends Service {
27
27
  * @request GET:/statistics/classify
28
28
  * @response `200` Success
29
29
  */
30
- classify(query: ClassifyParams2): Promise<ClassifyDc>;
30
+ classify(query: ClassifyParams7): Promise<ClassifyDc>;
31
31
  /**
32
32
  * No description
33
33
  *
@@ -60,7 +60,7 @@ export declare class StyleService extends Service {
60
60
  * @request POST:/styles/fonts
61
61
  * @response `200` Success
62
62
  */
63
- addFont(data: AddFontPayload): Promise<void>;
63
+ addFont(data: AddFontPayload | FormData): Promise<void>;
64
64
  /**
65
65
  * No description
66
66
  *
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, AddPermissionsInput, BulkOperationResultDc, CreateTablePayload, DeleteResourcesParams10, DeleteTableDataParams, FileUploadResponse, GetTableDataParams, GetTableListParams, GetUniqueDataRowsParams, IListResponse, ListResponseIEnumerable1, MapRemoteTableParams, MapRemoteTablePayload, MapTableParams, MapTablePayload, MapViewParams, MapViewPayload, ResourceDependenciesDc, SetPermissionsBatchInput, SetPermissionsInput, SetPreviewInput, TableListDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTablePayload, WriteTableDataPayload } from './data-contracts';
1
+ import { AccessControlListDc, AddPermissionsInput, BulkOperationResultDc, CreateTablePayload, DeleteResourcesParams6, DeleteTableDataParams, FileUploadResponse, GetTableDataParams, GetTableListParams, GetUniqueDataRowsParams, IListResponse, ListResponseIEnumerable1, MapRemoteTableParams, MapRemoteTablePayload, MapTableParams, MapTablePayload, MapViewParams, MapViewPayload, ResourceDependenciesDc, SetPermissionsBatchInput, SetPermissionsInput, SetPreviewInput, TableListDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTablePayload, WriteTableDataPayload } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -49,7 +49,7 @@ export declare class TablesService extends Service {
49
49
  * @request DELETE:/tables
50
50
  * @response `200` Success
51
51
  */
52
- deleteResources(query: DeleteResourcesParams10): Promise<BulkOperationResultDc[]>;
52
+ deleteResources(query: DeleteResourcesParams6): Promise<BulkOperationResultDc[]>;
53
53
  /**
54
54
  * No description
55
55
  *
@@ -203,7 +203,7 @@ export declare class TablesService extends Service {
203
203
  * @request POST:/tables/{name}/preview
204
204
  * @response `200` Success
205
205
  */
206
- setPreview(name: string, data: SetPreviewInput): Promise<FileUploadResponse>;
206
+ setPreview(name: string, data: SetPreviewInput | FormData): Promise<FileUploadResponse>;
207
207
  /**
208
208
  * No description
209
209
  *
@@ -1,4 +1,4 @@
1
- import { GetCapabilities1Params, GetCapabilitiesParams2, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } from './data-contracts';
1
+ import { GetCapabilities1Params, GetCapabilitiesParams5, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -16,7 +16,7 @@ export declare class WmsServerService extends Service {
16
16
  * @request GET:/wms#REQUEST=GetCapabilities
17
17
  * @response `200` Success
18
18
  */
19
- getCapabilities(query: GetCapabilitiesParams2): Promise<void>;
19
+ getCapabilities(query: GetCapabilitiesParams5): Promise<void>;
20
20
  /**
21
21
  * No description
22
22
  *
@@ -1933,6 +1933,7 @@ export interface GeocodeResultDc {
1933
1933
  * @format double
1934
1934
  */
1935
1935
  score?: number;
1936
+ center?: IVector;
1936
1937
  geometry?: IGeometry;
1937
1938
  }
1938
1939
  /**
@@ -2786,6 +2787,8 @@ export interface MapRemoteTableInfoDc {
2786
2787
  dataProvider: string;
2787
2788
  /** Name of the table, materialized view or view. */
2788
2789
  name: string;
2790
+ /** Owner of the table. */
2791
+ owner: string;
2789
2792
  /** Create datasource alias. */
2790
2793
  alias?: string;
2791
2794
  /** Create datasource description. */
@@ -2798,6 +2801,8 @@ export interface MapRemoteTableInfoDc {
2798
2801
  export interface MapTableInfoDc {
2799
2802
  /** Name of the table, materialized view or view. */
2800
2803
  name: string;
2804
+ /** Owner of the table. */
2805
+ owner: string;
2801
2806
  /** Create datasource alias. */
2802
2807
  alias?: string;
2803
2808
  /** Create datasource description. */
@@ -2809,6 +2814,8 @@ export interface MapTableInfoDc {
2809
2814
  export interface MapViewInfoDc {
2810
2815
  /** Name of the table, materialized view or view. */
2811
2816
  name: string;
2817
+ /** Owner of the table. */
2818
+ owner: string;
2812
2819
  /** Create datasource alias. */
2813
2820
  alias?: string;
2814
2821
  /** Create datasource description. */
@@ -6042,7 +6049,7 @@ export interface GetLayerImageParams {
6042
6049
  }
6043
6050
  export interface GetLayerExtentParams {
6044
6051
  /** If set, only the features that satisfy the condition will be considered when calculating the extent. */
6045
- filterCondition?: string;
6052
+ condition?: string;
6046
6053
  /**
6047
6054
  * Spatial reference to return the extent in.
6048
6055
  * @format int32
@@ -6372,7 +6379,7 @@ export interface GetProjectsListParams {
6372
6379
  */
6373
6380
  export declare type CreateProjectPayload = ExtendedProjectInfoDc | ResourceInfoDc | ProjectInfoDc;
6374
6381
  export declare type SetPermissionsBatchBody = ResourceAclDc[];
6375
- export interface DeleteResourcesParams4 {
6382
+ export interface DeleteResourcesParams5 {
6376
6383
  /** Resource names. */
6377
6384
  names?: string[];
6378
6385
  }
@@ -6564,7 +6571,7 @@ export interface StatisticsDbParams {
6564
6571
  /** Type of required statistic function. */
6565
6572
  types?: AggregationFunction[];
6566
6573
  }
6567
- export interface ClassifyParams2 {
6574
+ export interface ClassifyParams7 {
6568
6575
  /** Layer name. */
6569
6576
  name?: string;
6570
6577
  /** Attribute name. */
@@ -6669,7 +6676,7 @@ export interface GetTableListParams {
6669
6676
  */
6670
6677
  export declare type CreateTablePayload = DetailedTableInfoDc | ResourceInfoDc | TableInfoDc;
6671
6678
  export declare type SetPermissionsBatchInput = ResourceAclDc[];
6672
- export interface DeleteResourcesParams10 {
6679
+ export interface DeleteResourcesParams6 {
6673
6680
  /** Resource names. */
6674
6681
  names?: string[];
6675
6682
  }
@@ -6774,7 +6781,7 @@ export interface GetCapabilitiesParams {
6774
6781
  /** When omitted or not supported by server, server shall return service metadata document using the MIME type "text/xml". */
6775
6782
  AcceptFormats?: string[];
6776
6783
  }
6777
- export interface GetCapabilitiesParams2 {
6784
+ export interface GetCapabilitiesParams5 {
6778
6785
  /** Output format of service metadata. */
6779
6786
  Format?: string;
6780
6787
  /** Must be WMS. */
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
6
 
7
+ var eventEmitter = require('@evergis/event-emitter');
7
8
  var signalr = require('@microsoft/signalr');
8
9
  var ky = require('ky');
9
10
  var ky__default = _interopDefault(ky);
10
- var eventEmitter = require('@evergis/event-emitter');
11
11
  var queryString = require('query-string');
12
12
  var nanoid = require('nanoid');
13
13
  var DomPainter = require('@evergis/sgis/es/painters/DomPainter/DomPainter');
@@ -180,6 +180,124 @@ function _get(target, property, receiver) {
180
180
  return _get(target, property, receiver || target);
181
181
  }
182
182
 
183
+ let HttpClient = /*#__PURE__*/function () {
184
+ function HttpClient(options) {
185
+ var _options$prefixUrl;
186
+
187
+ if (options === void 0) {
188
+ options = {};
189
+ }
190
+
191
+ _classCallCheck(this, HttpClient);
192
+
193
+ this.ky = ky__default.extend(options);
194
+ this.prefixUrl = ((_options$prefixUrl = options.prefixUrl) == null ? void 0 : _options$prefixUrl.toString()) || '';
195
+ }
196
+
197
+ _createClass(HttpClient, [{
198
+ key: "extend",
199
+ value: function extend(options) {
200
+ var _options$prefixUrl2;
201
+
202
+ this.ky = ky__default.extend(options);
203
+ this.prefixUrl = ((_options$prefixUrl2 = options.prefixUrl) == null ? void 0 : _options$prefixUrl2.toString()) || '';
204
+ }
205
+ }, {
206
+ key: "get",
207
+ value: function get(url, params) {
208
+ return this.ky.get(this.stripSlashes(url), {
209
+ searchParams: qs(params)
210
+ });
211
+ }
212
+ }, {
213
+ key: "post",
214
+ value: function post(url, body, params) {
215
+ const options = kyOptions(params, body);
216
+ return this.ky.post(this.stripSlashes(url), options);
217
+ }
218
+ }, {
219
+ key: "put",
220
+ value: function put(url, body, params) {
221
+ const options = kyOptions(params, body);
222
+ return this.ky.put(this.stripSlashes(url), options);
223
+ }
224
+ }, {
225
+ key: "patch",
226
+ value: function patch(url, body, params) {
227
+ const options = kyOptions(params, body);
228
+ return this.ky.patch(this.stripSlashes(url), options);
229
+ }
230
+ }, {
231
+ key: "delete",
232
+ value: function _delete(url, body, params) {
233
+ const options = kyOptions(params, body);
234
+ return this.ky.delete(this.stripSlashes(url), options);
235
+ }
236
+ }, {
237
+ key: "createUrl",
238
+ value: function createUrl(url, params) {
239
+ const queryString = params ? "?" + qs(params) : '';
240
+ return this.prefixUrl + this.stripSlashes(url) + queryString;
241
+ }
242
+ }, {
243
+ key: "stripSlashes",
244
+ value: function stripSlashes(url) {
245
+ if (this.prefixUrl) {
246
+ return url.replace(/^\//g, '');
247
+ }
248
+
249
+ return url;
250
+ }
251
+ }]);
252
+
253
+ return HttpClient;
254
+ }();
255
+
256
+ function kyOptions(params, body) {
257
+ const options = {
258
+ searchParams: qs(params)
259
+ };
260
+
261
+ if (!isNotObject(body) || Array.isArray(body)) {
262
+ options.json = body;
263
+ } else {
264
+ options.body = body;
265
+ }
266
+
267
+ return options;
268
+ }
269
+
270
+ function isNotObject(value) {
271
+ return !(value !== void 0 && typeof value === 'object' && value !== null && value.constructor === Object);
272
+ }
273
+
274
+ function qs(params) {
275
+ if (params === void 0) {
276
+ params = {};
277
+ }
278
+
279
+ return queryString.stringify(params, {
280
+ arrayFormat: 'comma'
281
+ });
282
+ }
283
+
284
+ function toFormData(input) {
285
+ if (input instanceof FormData) {
286
+ return input;
287
+ }
288
+
289
+ return Object.keys(input).reduce((data, key) => {
290
+ data.append(key, input[key]);
291
+ return data;
292
+ }, new FormData());
293
+ }
294
+
295
+ (function (ApiEvent) {
296
+ ApiEvent["ConnectionLost"] = "ConnectionLost";
297
+ ApiEvent["Unauthorized"] = "Unauthorized";
298
+ ApiEvent["SessionClosed"] = "SessionClosed";
299
+ })(exports.ApiEvent || (exports.ApiEvent = {}));
300
+
183
301
  /* eslint-disable */
184
302
 
185
303
  /* tslint:disable */
@@ -402,114 +520,6 @@ let Security = /*#__PURE__*/function (_SecurityService) {
402
520
  return Security;
403
521
  }(SecurityService);
404
522
 
405
- let HttpClient = /*#__PURE__*/function () {
406
- function HttpClient(options) {
407
- var _options$prefixUrl;
408
-
409
- if (options === void 0) {
410
- options = {};
411
- }
412
-
413
- _classCallCheck(this, HttpClient);
414
-
415
- this.ky = ky__default.extend(options);
416
- this.prefixUrl = ((_options$prefixUrl = options.prefixUrl) == null ? void 0 : _options$prefixUrl.toString()) || '';
417
- }
418
-
419
- _createClass(HttpClient, [{
420
- key: "extend",
421
- value: function extend(options) {
422
- var _options$prefixUrl2;
423
-
424
- this.ky = ky__default.extend(options);
425
- this.prefixUrl = ((_options$prefixUrl2 = options.prefixUrl) == null ? void 0 : _options$prefixUrl2.toString()) || '';
426
- }
427
- }, {
428
- key: "get",
429
- value: function get(url, params) {
430
- return this.ky.get(this.stripSlashes(url), {
431
- searchParams: qs(params)
432
- });
433
- }
434
- }, {
435
- key: "post",
436
- value: function post(url, body, params) {
437
- const options = kyOptions(params, body);
438
- return this.ky.post(this.stripSlashes(url), options);
439
- }
440
- }, {
441
- key: "put",
442
- value: function put(url, body, params) {
443
- const options = kyOptions(params, body);
444
- return this.ky.put(this.stripSlashes(url), options);
445
- }
446
- }, {
447
- key: "patch",
448
- value: function patch(url, body, params) {
449
- const options = kyOptions(params, body);
450
- return this.ky.patch(this.stripSlashes(url), options);
451
- }
452
- }, {
453
- key: "delete",
454
- value: function _delete(url, body, params) {
455
- const options = kyOptions(params, body);
456
- return this.ky.delete(this.stripSlashes(url), options);
457
- }
458
- }, {
459
- key: "createUrl",
460
- value: function createUrl(url, params) {
461
- const queryString = params ? "?" + qs(params) : '';
462
- return this.prefixUrl + this.stripSlashes(url) + queryString;
463
- }
464
- }, {
465
- key: "stripSlashes",
466
- value: function stripSlashes(url) {
467
- if (this.prefixUrl) {
468
- return url.replace(/^\//g, '');
469
- }
470
-
471
- return url;
472
- }
473
- }]);
474
-
475
- return HttpClient;
476
- }();
477
-
478
- function kyOptions(params, body) {
479
- const options = {
480
- searchParams: qs(params)
481
- };
482
-
483
- if (!isNotObject(body) || Array.isArray(body)) {
484
- options.json = body;
485
- } else {
486
- options.body = body;
487
- }
488
-
489
- return options;
490
- }
491
-
492
- function isNotObject(value) {
493
- return !(value !== void 0 && typeof value === 'object' && value !== null && value.constructor === Object);
494
- }
495
-
496
- function qs(params) {
497
- if (params === void 0) {
498
- params = {};
499
- }
500
-
501
- return queryString.stringify(params, {
502
- arrayFormat: 'comma'
503
- });
504
- }
505
-
506
- function toFormData(input) {
507
- return Object.keys(input).reduce((data, key) => {
508
- data.append(key, input[key]);
509
- return data;
510
- }, new FormData());
511
- }
512
-
513
523
  /**
514
524
  * @title Spatial Processing Core API
515
525
  * @version v0.6.0
@@ -5756,12 +5766,6 @@ let Print = /*#__PURE__*/function (_PrintService) {
5756
5766
  return _createClass(Print);
5757
5767
  }(PrintService);
5758
5768
 
5759
- (function (ApiEvent) {
5760
- ApiEvent["ConnectionLost"] = "ConnectionLost";
5761
- ApiEvent["Unauthorized"] = "Unauthorized";
5762
- ApiEvent["SessionClosed"] = "SessionClosed";
5763
- })(exports.ApiEvent || (exports.ApiEvent = {}));
5764
-
5765
5769
  (function (UrlPath) {
5766
5770
  UrlPath["Base"] = "/map";
5767
5771
  UrlPath["Shared"] = "/shared";
@@ -5856,7 +5860,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
5856
5860
  let {
5857
5861
  authParams,
5858
5862
  connectWs,
5859
- connectSignalR,
5860
5863
  initScheduler,
5861
5864
  fetchSettings,
5862
5865
  fetchUser
@@ -5873,10 +5876,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
5873
5876
  await this.connectWs();
5874
5877
  }
5875
5878
 
5876
- if (connectSignalR) {
5877
- await this.connectSignalR();
5878
- }
5879
-
5880
5879
  if (initScheduler) {
5881
5880
  await this.initScheduler();
5882
5881
  }
@@ -5927,7 +5926,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
5927
5926
  }, {
5928
5927
  key: "connectSignalR",
5929
5928
  value: async function connectSignalR() {
5930
- if (this.account.isAuth && this.snappingHub) {
5929
+ if (this.account.isAuth && this.snappingHub && this.snappingHub.state !== signalr.HubConnectionState.Connected) {
5931
5930
  await this.snappingHub.start();
5932
5931
  }
5933
5932
  }