@evergis/api 5.0.46 → 5.0.47
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 +1 -2
- package/dist/__generated__/CatalogService.d.ts +3 -1
- package/dist/__generated__/EqlService.d.ts +18 -6
- package/dist/__generated__/LayersService.d.ts +1 -13
- package/dist/__generated__/data-contracts.d.ts +155 -300
- package/dist/api.esm.js +71 -176
- package/dist/api.esm.js.map +1 -1
- package/dist/index.js +70 -176
- package/dist/index.js.map +1 -1
- package/dist/services/index.d.ts +0 -1
- package/package.json +2 -2
- package/dist/__generated__/ImportService.d.ts +0 -118
- package/dist/services/Import.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -1533,15 +1533,15 @@ class EqlService extends Service {
|
|
|
1533
1533
|
* No description
|
|
1534
1534
|
*
|
|
1535
1535
|
* @tags Eql
|
|
1536
|
-
* @name
|
|
1537
|
-
* @operationId
|
|
1538
|
-
* @summary
|
|
1539
|
-
* @request
|
|
1536
|
+
* @name ExplainQuery
|
|
1537
|
+
* @operationId EqlController_ExplainQuery
|
|
1538
|
+
* @summary Explain a query.
|
|
1539
|
+
* @request POST:/eql/query/explain
|
|
1540
1540
|
* @secure
|
|
1541
1541
|
* @response `200` OK
|
|
1542
1542
|
*/
|
|
1543
|
-
|
|
1544
|
-
return this.http.
|
|
1543
|
+
explainQuery(data) {
|
|
1544
|
+
return this.http.post(`/eql/query/explain`, data).json();
|
|
1545
1545
|
}
|
|
1546
1546
|
/**
|
|
1547
1547
|
* No description
|
|
@@ -1669,6 +1669,20 @@ class EqlService extends Service {
|
|
|
1669
1669
|
create(data) {
|
|
1670
1670
|
return this.http.post(`/eql/query/save`, data).text();
|
|
1671
1671
|
}
|
|
1672
|
+
/**
|
|
1673
|
+
* No description
|
|
1674
|
+
*
|
|
1675
|
+
* @tags Eql
|
|
1676
|
+
* @name GetQueryHistory
|
|
1677
|
+
* @operationId EqlController_GetQueryHistory
|
|
1678
|
+
* @summary Get EQL requests history.
|
|
1679
|
+
* @request GET:/eql/query/history
|
|
1680
|
+
* @secure
|
|
1681
|
+
* @response `200` OK
|
|
1682
|
+
*/
|
|
1683
|
+
getQueryHistory(query) {
|
|
1684
|
+
return this.http.get(`/eql/query/history`, query).json();
|
|
1685
|
+
}
|
|
1672
1686
|
}
|
|
1673
1687
|
|
|
1674
1688
|
class Eql extends EqlService {
|
|
@@ -2044,10 +2058,12 @@ class CatalogService extends Service {
|
|
|
2044
2058
|
* @tags Catalog
|
|
2045
2059
|
* @name GetFile
|
|
2046
2060
|
* @operationId CatalogController_GetFile
|
|
2047
|
-
* @summary Download file.
|
|
2061
|
+
* @summary Download file or a part of it when the `Range` header is set.
|
|
2048
2062
|
* @request GET:/resources/file/{resourceId}
|
|
2049
2063
|
* @secure
|
|
2050
2064
|
* @response `200` OK
|
|
2065
|
+
* @response `206` Partial Content
|
|
2066
|
+
* @response `416` Range Not Satisfiable
|
|
2051
2067
|
*/
|
|
2052
2068
|
getFile(resourceId) {
|
|
2053
2069
|
return this.http.get(`/resources/file/${resourceId}`).blob();
|
|
@@ -2275,155 +2291,6 @@ class HistoryService extends Service {
|
|
|
2275
2291
|
class History extends HistoryService {
|
|
2276
2292
|
}
|
|
2277
2293
|
|
|
2278
|
-
/* eslint-disable */
|
|
2279
|
-
/* tslint:disable */
|
|
2280
|
-
/*
|
|
2281
|
-
* ---------------------------------------------------------------
|
|
2282
|
-
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
2283
|
-
* ## ##
|
|
2284
|
-
* ## AUTHOR: acacode ##
|
|
2285
|
-
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
2286
|
-
* ---------------------------------------------------------------
|
|
2287
|
-
*/
|
|
2288
|
-
// @ts-nocheck
|
|
2289
|
-
/**
|
|
2290
|
-
* @title Spatial Processing Gateway API
|
|
2291
|
-
* @version 1.5.1.0
|
|
2292
|
-
* @baseUrl /sp
|
|
2293
|
-
*/
|
|
2294
|
-
class ImportService extends Service {
|
|
2295
|
-
/**
|
|
2296
|
-
* No description
|
|
2297
|
-
*
|
|
2298
|
-
* @tags ImportService
|
|
2299
|
-
* @name GetDataSchema
|
|
2300
|
-
* @operationId ImportServiceController_GetDataSchema
|
|
2301
|
-
* @summary Using a file uploaded to the file upload service, reads the headers of the file and returns the information about data schema of all layers in that file,
|
|
2302
|
-
available for import.
|
|
2303
|
-
* @request GET:/import/dataSchema
|
|
2304
|
-
* @secure
|
|
2305
|
-
* @response `200` OK
|
|
2306
|
-
*/
|
|
2307
|
-
getDataSchema(query) {
|
|
2308
|
-
return this.http.get(`/import/dataSchema`, query).json();
|
|
2309
|
-
}
|
|
2310
|
-
/**
|
|
2311
|
-
* No description
|
|
2312
|
-
*
|
|
2313
|
-
* @tags ImportService
|
|
2314
|
-
* @name GetFeaturesCount
|
|
2315
|
-
* @operationId ImportServiceController_GetFeaturesCount
|
|
2316
|
-
* @summary Returns the features count of the given file in temporary static storage.
|
|
2317
|
-
* @request POST:/import/count
|
|
2318
|
-
* @secure
|
|
2319
|
-
* @response `200` OK
|
|
2320
|
-
*/
|
|
2321
|
-
getFeaturesCount(data) {
|
|
2322
|
-
return this.http.post(`/import/count`, data).json();
|
|
2323
|
-
}
|
|
2324
|
-
/**
|
|
2325
|
-
* No description
|
|
2326
|
-
*
|
|
2327
|
-
* @tags ImportService
|
|
2328
|
-
* @name ReadPart
|
|
2329
|
-
* @operationId ImportServiceController_ReadPart
|
|
2330
|
-
* @summary Returns the features of the given file in temporary static storage.
|
|
2331
|
-
* @request GET:/import/read
|
|
2332
|
-
* @secure
|
|
2333
|
-
* @response `200` OK
|
|
2334
|
-
*/
|
|
2335
|
-
readPart(query) {
|
|
2336
|
-
return this.http.get(`/import/read`, query).json();
|
|
2337
|
-
}
|
|
2338
|
-
/**
|
|
2339
|
-
* No description
|
|
2340
|
-
*
|
|
2341
|
-
* @tags ImportService
|
|
2342
|
-
* @name GetExternalPbfLayers
|
|
2343
|
-
* @operationId ImportServiceController_GetExternalPbfLayers
|
|
2344
|
-
* @summary Get list of external PBF layers.
|
|
2345
|
-
* @request GET:/import/pbf
|
|
2346
|
-
* @secure
|
|
2347
|
-
* @response `200` OK
|
|
2348
|
-
*/
|
|
2349
|
-
getExternalPbfLayers(query) {
|
|
2350
|
-
return this.http.get(`/import/pbf`, query).json();
|
|
2351
|
-
}
|
|
2352
|
-
/**
|
|
2353
|
-
* No description
|
|
2354
|
-
*
|
|
2355
|
-
* @tags ImportService
|
|
2356
|
-
* @name GetExternalPbfFeatures
|
|
2357
|
-
* @operationId ImportServiceController_GetExternalPbfFeatures
|
|
2358
|
-
* @summary Get features list in external PBF layer.
|
|
2359
|
-
* @request GET:/import/pbf/features
|
|
2360
|
-
* @secure
|
|
2361
|
-
* @response `200` OK
|
|
2362
|
-
*/
|
|
2363
|
-
getExternalPbfFeatures(query) {
|
|
2364
|
-
return this.http.get(`/import/pbf/features`, query).json();
|
|
2365
|
-
}
|
|
2366
|
-
/**
|
|
2367
|
-
* No description
|
|
2368
|
-
*
|
|
2369
|
-
* @tags ImportService
|
|
2370
|
-
* @name GetExternalArcgisFsLayers
|
|
2371
|
-
* @operationId ImportServiceController_GetExternalArcgisFSLayers
|
|
2372
|
-
* @summary Get list of external ArcGis FeatureServer layers.
|
|
2373
|
-
* @request GET:/import/arcgisfeatureservice
|
|
2374
|
-
* @secure
|
|
2375
|
-
* @response `200` OK
|
|
2376
|
-
*/
|
|
2377
|
-
getExternalArcgisFsLayers(query) {
|
|
2378
|
-
return this.http.get(`/import/arcgisfeatureservice`, query).json();
|
|
2379
|
-
}
|
|
2380
|
-
/**
|
|
2381
|
-
* No description
|
|
2382
|
-
*
|
|
2383
|
-
* @tags ImportService
|
|
2384
|
-
* @name GetExternalArcGisLayers
|
|
2385
|
-
* @operationId ImportServiceController_GetExternalArcGisLayers
|
|
2386
|
-
* @summary Get list of external ArcGis MapServer layers.
|
|
2387
|
-
* @request GET:/import/arcgismapservice
|
|
2388
|
-
* @secure
|
|
2389
|
-
* @response `200` OK
|
|
2390
|
-
*/
|
|
2391
|
-
getExternalArcGisLayers(query) {
|
|
2392
|
-
return this.http.get(`/import/arcgismapservice`, query).json();
|
|
2393
|
-
}
|
|
2394
|
-
/**
|
|
2395
|
-
* No description
|
|
2396
|
-
*
|
|
2397
|
-
* @tags ImportService
|
|
2398
|
-
* @name GetRasterAttributes
|
|
2399
|
-
* @operationId ImportServiceController_GetRasterAttributes
|
|
2400
|
-
* @summary Parse raster attributes from file name.
|
|
2401
|
-
* @request GET:/import/rasterAttributes
|
|
2402
|
-
* @secure
|
|
2403
|
-
* @response `200` OK
|
|
2404
|
-
*/
|
|
2405
|
-
getRasterAttributes(query) {
|
|
2406
|
-
return this.http.get(`/import/rasterAttributes`, query).json();
|
|
2407
|
-
}
|
|
2408
|
-
/**
|
|
2409
|
-
* No description
|
|
2410
|
-
*
|
|
2411
|
-
* @tags ImportService
|
|
2412
|
-
* @name GetRasterMeta
|
|
2413
|
-
* @operationId ImportServiceController_GetRasterMeta
|
|
2414
|
-
* @summary Get raster meta data.
|
|
2415
|
-
* @request GET:/import/rasterMeta
|
|
2416
|
-
* @secure
|
|
2417
|
-
* @response `200` OK
|
|
2418
|
-
*/
|
|
2419
|
-
getRasterMeta(query) {
|
|
2420
|
-
return this.http.get(`/import/rasterMeta`, query).json();
|
|
2421
|
-
}
|
|
2422
|
-
}
|
|
2423
|
-
|
|
2424
|
-
class Import extends ImportService {
|
|
2425
|
-
}
|
|
2426
|
-
|
|
2427
2294
|
exports.ErrorReason = void 0;
|
|
2428
2295
|
(function (ErrorReason) {
|
|
2429
2296
|
/** When request has status code less than 400 */
|
|
@@ -2937,7 +2804,6 @@ class Api extends EventEmitter {
|
|
|
2937
2804
|
security;
|
|
2938
2805
|
file;
|
|
2939
2806
|
filters;
|
|
2940
|
-
import;
|
|
2941
2807
|
resources;
|
|
2942
2808
|
geocode;
|
|
2943
2809
|
tools;
|
|
@@ -3041,7 +2907,6 @@ class Api extends EventEmitter {
|
|
|
3041
2907
|
this.security = new Security(this.http, this.account);
|
|
3042
2908
|
this.file = new FileUpload(this.http);
|
|
3043
2909
|
this.filters = new Filters(this.http);
|
|
3044
|
-
this.import = new Import(this.http);
|
|
3045
2910
|
this.geocode = new Geocode(this.http);
|
|
3046
2911
|
this.tools = new Tools(this.http);
|
|
3047
2912
|
this.clientSettings = new ClientSettings(this.http);
|
|
@@ -3289,6 +3154,52 @@ exports.ErrorDetailsType = void 0;
|
|
|
3289
3154
|
ErrorDetailsType["BadRequest"] = "BadRequest";
|
|
3290
3155
|
ErrorDetailsType["DuplicateContent"] = "DuplicateContent";
|
|
3291
3156
|
})(exports.ErrorDetailsType || (exports.ErrorDetailsType = {}));
|
|
3157
|
+
/**
|
|
3158
|
+
* Specify the output format, which can be TEXT, XML, JSON, or YAML.
|
|
3159
|
+
Non-text output contains the same information as the text output format, but is easier for programs to parse.
|
|
3160
|
+
*/
|
|
3161
|
+
exports.ExplainFormatOptions = void 0;
|
|
3162
|
+
(function (ExplainFormatOptions) {
|
|
3163
|
+
ExplainFormatOptions["Text"] = "Text";
|
|
3164
|
+
ExplainFormatOptions["XML"] = "XML";
|
|
3165
|
+
ExplainFormatOptions["JSON"] = "JSON";
|
|
3166
|
+
ExplainFormatOptions["YAML"] = "YAML";
|
|
3167
|
+
})(exports.ExplainFormatOptions || (exports.ExplainFormatOptions = {}));
|
|
3168
|
+
/**
|
|
3169
|
+
* Explain options.
|
|
3170
|
+
*/
|
|
3171
|
+
exports.ExplainOptions = void 0;
|
|
3172
|
+
(function (ExplainOptions) {
|
|
3173
|
+
ExplainOptions["ANALYZE"] = "ANALYZE";
|
|
3174
|
+
ExplainOptions["VERBOSE"] = "VERBOSE";
|
|
3175
|
+
ExplainOptions["COSTS"] = "COSTS";
|
|
3176
|
+
ExplainOptions["SETTINGS"] = "SETTINGS";
|
|
3177
|
+
ExplainOptions["GENERIC_PLAN"] = "GENERIC_PLAN";
|
|
3178
|
+
ExplainOptions["BUFFERS"] = "BUFFERS";
|
|
3179
|
+
ExplainOptions["WAL"] = "WAL";
|
|
3180
|
+
ExplainOptions["TIMING"] = "TIMING";
|
|
3181
|
+
ExplainOptions["SUMMARY"] = "SUMMARY";
|
|
3182
|
+
ExplainOptions["MEMORY"] = "MEMORY";
|
|
3183
|
+
})(exports.ExplainOptions || (exports.ExplainOptions = {}));
|
|
3184
|
+
/**
|
|
3185
|
+
* Include information on the cost of serializing the query's output data, that is converting it to text or binary format to send to the client.
|
|
3186
|
+
This can be a significant part of the time required for regular execution of the query,
|
|
3187
|
+
if the datatype output functions are expensive or if TOASTed values must be fetched from out-of-line storage.
|
|
3188
|
+
EXPLAIN's default behavior, SERIALIZE NONE, does not perform these conversions.
|
|
3189
|
+
If SERIALIZE TEXT or SERIALIZE BINARY is specified, the appropriate conversions are performed,
|
|
3190
|
+
and the time spent doing so is measured (unless TIMING OFF is specified).
|
|
3191
|
+
If the BUFFERS option is also specified, then any buffer accesses involved in the conversions are counted too.
|
|
3192
|
+
In no case, however, will EXPLAIN actually send the resulting data to the client;
|
|
3193
|
+
hence network transmission costs cannot be investigated this way.
|
|
3194
|
+
Serialization may only be enabled when ANALYZE is also enabled.
|
|
3195
|
+
If SERIALIZE is written without an argument, TEXT is assumed.
|
|
3196
|
+
*/
|
|
3197
|
+
exports.ExplainSerializeOptions = void 0;
|
|
3198
|
+
(function (ExplainSerializeOptions) {
|
|
3199
|
+
ExplainSerializeOptions["NONE"] = "NONE";
|
|
3200
|
+
ExplainSerializeOptions["TEXT"] = "TEXT";
|
|
3201
|
+
ExplainSerializeOptions["BINARY"] = "BINARY";
|
|
3202
|
+
})(exports.ExplainSerializeOptions || (exports.ExplainSerializeOptions = {}));
|
|
3292
3203
|
/**
|
|
3293
3204
|
* Specifies the available types of layer services that can be used within the application.
|
|
3294
3205
|
*/
|
|
@@ -3323,9 +3234,6 @@ exports.OgcGeometryType = void 0;
|
|
|
3323
3234
|
OgcGeometryType["PolyhedralSurface"] = "PolyhedralSurface";
|
|
3324
3235
|
OgcGeometryType["TIN"] = "TIN";
|
|
3325
3236
|
})(exports.OgcGeometryType || (exports.OgcGeometryType = {}));
|
|
3326
|
-
/**
|
|
3327
|
-
* Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed.
|
|
3328
|
-
*/
|
|
3329
3237
|
exports.PbfSchema = void 0;
|
|
3330
3238
|
(function (PbfSchema) {
|
|
3331
3239
|
PbfSchema["XYZ"] = "xyz";
|
|
@@ -3381,6 +3289,7 @@ exports.ResourceSubTypeFilter = void 0;
|
|
|
3381
3289
|
ResourceSubTypeFilter["TileCatalogTable"] = "TileCatalogTable";
|
|
3382
3290
|
ResourceSubTypeFilter["Story"] = "Story";
|
|
3383
3291
|
ResourceSubTypeFilter["Basemap"] = "Basemap";
|
|
3292
|
+
ResourceSubTypeFilter["Style"] = "Style";
|
|
3384
3293
|
})(exports.ResourceSubTypeFilter || (exports.ResourceSubTypeFilter = {}));
|
|
3385
3294
|
exports.ResourceType = void 0;
|
|
3386
3295
|
(function (ResourceType) {
|
|
@@ -3907,20 +3816,6 @@ class LayersService extends Service {
|
|
|
3907
3816
|
validateExpression({ layerName, ...query }) {
|
|
3908
3817
|
return this.http.get(`/layers/${layerName}/validateExpression`, query).json();
|
|
3909
3818
|
}
|
|
3910
|
-
/**
|
|
3911
|
-
* No description
|
|
3912
|
-
*
|
|
3913
|
-
* @tags Layers
|
|
3914
|
-
* @name GetRasterMeta
|
|
3915
|
-
* @operationId LayersController_GetRasterMeta
|
|
3916
|
-
* @summary Get raster metadata.
|
|
3917
|
-
* @request GET:/layers/{name}/{id}/metadata
|
|
3918
|
-
* @secure
|
|
3919
|
-
* @response `200` OK
|
|
3920
|
-
*/
|
|
3921
|
-
getRasterMeta({ name, id, ...query }) {
|
|
3922
|
-
return this.http.get(`/layers/${name}/${id}/metadata`, query).json();
|
|
3923
|
-
}
|
|
3924
3819
|
/**
|
|
3925
3820
|
* No description
|
|
3926
3821
|
*
|
|
@@ -5167,7 +5062,6 @@ exports.GEOCODE_PROVIDER = GEOCODE_PROVIDER;
|
|
|
5167
5062
|
exports.Geocode = Geocode;
|
|
5168
5063
|
exports.History = History;
|
|
5169
5064
|
exports.HttpClient = HttpClient;
|
|
5170
|
-
exports.Import = Import;
|
|
5171
5065
|
exports.Layers = Layers;
|
|
5172
5066
|
exports.Names = Names;
|
|
5173
5067
|
exports.PortalSettings = PortalSettings;
|