@evergis/api 3.0.50 → 3.0.51
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 +2 -1
- package/dist/api.cjs.development.js +70 -0
- 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 +70 -1
- package/dist/api.esm.js.map +1 -1
- package/dist/services/IceRouter.d.ts +3 -0
- package/dist/services/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/Api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Options as KyOptions } from 'ky';
|
|
2
2
|
import { EventEmitter } from '@evergis/event-emitter';
|
|
3
|
-
import { Account, External, ClientSettings, FileUpload, General, Geocode, Import, Layers, Names, Namespace, Notification, Projects, ResourceCatalog, Resources, Scheduler, Security, Styles, Tables, Tools, AccountPreview, BulkOperations } from './services';
|
|
3
|
+
import { Account, External, ClientSettings, FileUpload, General, Geocode, Import, Layers, Names, Namespace, Notification, Projects, ResourceCatalog, Resources, Scheduler, Security, Styles, Tables, Tools, AccountPreview, BulkOperations, IceRouter } from './services';
|
|
4
4
|
import { Print } from './services/Print';
|
|
5
5
|
import { HttpClient } from './__generated__/HttpClient';
|
|
6
6
|
import { LoginDc } from './__generated__/data-contracts';
|
|
@@ -44,6 +44,7 @@ export declare class Api extends EventEmitter {
|
|
|
44
44
|
readonly clientSettings: ClientSettings;
|
|
45
45
|
readonly names: Names;
|
|
46
46
|
readonly bulk: BulkOperations;
|
|
47
|
+
readonly iceRouter: IceRouter;
|
|
47
48
|
constructor({ url, wsUrl, http, urlPath, httpOptions }: ApiParams);
|
|
48
49
|
init({ authParams, connectWs, initScheduler, fetchSettings, fetchUser, }: {
|
|
49
50
|
authParams?: LoginDc;
|
|
@@ -6131,6 +6131,74 @@ let Names = /*#__PURE__*/function () {
|
|
|
6131
6131
|
return Names;
|
|
6132
6132
|
}();
|
|
6133
6133
|
|
|
6134
|
+
/**
|
|
6135
|
+
* @title Spatial Processing Core API
|
|
6136
|
+
* @version v0.6.0
|
|
6137
|
+
* @baseUrl /sp
|
|
6138
|
+
*/
|
|
6139
|
+
|
|
6140
|
+
let IceRouterService = /*#__PURE__*/function (_Service) {
|
|
6141
|
+
_inherits(IceRouterService, _Service);
|
|
6142
|
+
|
|
6143
|
+
var _super = /*#__PURE__*/_createSuper(IceRouterService);
|
|
6144
|
+
|
|
6145
|
+
function IceRouterService() {
|
|
6146
|
+
_classCallCheck(this, IceRouterService);
|
|
6147
|
+
|
|
6148
|
+
return _super.apply(this, arguments);
|
|
6149
|
+
}
|
|
6150
|
+
|
|
6151
|
+
_createClass(IceRouterService, [{
|
|
6152
|
+
key: "startTask",
|
|
6153
|
+
|
|
6154
|
+
/**
|
|
6155
|
+
* No description
|
|
6156
|
+
*
|
|
6157
|
+
* @tags IceRouter
|
|
6158
|
+
* @name StartTask
|
|
6159
|
+
* @operationId IceRouterController_StartTask
|
|
6160
|
+
* @summary Start route build between start and end points.
|
|
6161
|
+
* @request POST:/ice-router/tasks
|
|
6162
|
+
* @response `200` Success
|
|
6163
|
+
*/
|
|
6164
|
+
value: function startTask(data) {
|
|
6165
|
+
return this.http.post("/ice-router/tasks", data).text();
|
|
6166
|
+
}
|
|
6167
|
+
/**
|
|
6168
|
+
* No description
|
|
6169
|
+
*
|
|
6170
|
+
* @tags IceRouter
|
|
6171
|
+
* @name GetResult
|
|
6172
|
+
* @operationId IceRouterController_GetResult
|
|
6173
|
+
* @summary Get task result.
|
|
6174
|
+
* @request GET:/ice-router/tasks/{id}
|
|
6175
|
+
* @response `200` Success
|
|
6176
|
+
*/
|
|
6177
|
+
|
|
6178
|
+
}, {
|
|
6179
|
+
key: "getResult",
|
|
6180
|
+
value: function getResult(id) {
|
|
6181
|
+
return this.http.get("/ice-router/tasks/" + id).json();
|
|
6182
|
+
}
|
|
6183
|
+
}]);
|
|
6184
|
+
|
|
6185
|
+
return IceRouterService;
|
|
6186
|
+
}(Service);
|
|
6187
|
+
|
|
6188
|
+
let IceRouter = /*#__PURE__*/function (_IceRouterService) {
|
|
6189
|
+
_inherits(IceRouter, _IceRouterService);
|
|
6190
|
+
|
|
6191
|
+
var _super = /*#__PURE__*/_createSuper(IceRouter);
|
|
6192
|
+
|
|
6193
|
+
function IceRouter() {
|
|
6194
|
+
_classCallCheck(this, IceRouter);
|
|
6195
|
+
|
|
6196
|
+
return _super.apply(this, arguments);
|
|
6197
|
+
}
|
|
6198
|
+
|
|
6199
|
+
return IceRouter;
|
|
6200
|
+
}(IceRouterService);
|
|
6201
|
+
|
|
6134
6202
|
/**
|
|
6135
6203
|
* @title Spatial Processing Core API
|
|
6136
6204
|
* @version v0.6.0
|
|
@@ -6342,6 +6410,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
6342
6410
|
_this.namespace = new Namespace(_this.http);
|
|
6343
6411
|
_this.external = new External(_this.http);
|
|
6344
6412
|
_this.clientSettings = new ClientSettings(_this.http);
|
|
6413
|
+
_this.iceRouter = new IceRouter(_this.http);
|
|
6345
6414
|
_this.names = new Names({
|
|
6346
6415
|
account: _this.account
|
|
6347
6416
|
});
|
|
@@ -7119,6 +7188,7 @@ exports.GEOCODE_PROVIDER = GEOCODE_PROVIDER;
|
|
|
7119
7188
|
exports.General = General;
|
|
7120
7189
|
exports.Geocode = Geocode;
|
|
7121
7190
|
exports.HttpClient = HttpClient;
|
|
7191
|
+
exports.IceRouter = IceRouter;
|
|
7122
7192
|
exports.Import = Import;
|
|
7123
7193
|
exports.Layers = Layers;
|
|
7124
7194
|
exports.LayersManager = LayersManager;
|