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