@evergis/api 3.0.94 → 3.0.95

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.
@@ -1,4 +1,4 @@
1
- import { GetDataSchemaParams, GetExternalWmsLayersParams, GetRasterAttributesParams, ImportDataSchema, ImportFileFeaturesCountDc } from './data-contracts';
1
+ import { GetDataSchemaParams, GetExternalWmsLayersParams, GetRasterAttributesParams, ImportDataSchema, ImportFileFeaturesCountDc, ImportWmsExternalLayers } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -38,7 +38,7 @@ export declare class ImportService extends Service {
38
38
  * @request GET:/import/wms
39
39
  * @response `200` Success
40
40
  */
41
- getExternalWmsLayers(query: GetExternalWmsLayersParams): Promise<void>;
41
+ getExternalWmsLayers(query: GetExternalWmsLayersParams): Promise<ImportWmsExternalLayers[]>;
42
42
  /**
43
43
  * No description
44
44
  *
@@ -2096,6 +2096,19 @@ export declare type ImagePolygonSymbolDc = SymbolDc & {
2096
2096
  strokeColor?: ParameterDcColor;
2097
2097
  strokeWidth?: CalculatedParameterDc;
2098
2098
  };
2099
+ /**
2100
+ * Layers of WMS external service.
2101
+ */
2102
+ export interface ImportWmsExternalLayers {
2103
+ /** List of layers in the data-set. */
2104
+ layer: ImportWmsExternalLayers[] | null;
2105
+ /** abstract field of WMS external service. */
2106
+ abstract: string;
2107
+ /** name field of WMS external service. */
2108
+ name: string;
2109
+ /** title field of WMS external service. */
2110
+ title: string;
2111
+ }
2099
2112
  /**
2100
2113
  * Data schema of a file for import.
2101
2114
  */
@@ -4932,6 +4945,8 @@ export interface GetDataSchemaParams {
4932
4945
  export interface GetExternalWmsLayersParams {
4933
4946
  /** WMS service url. */
4934
4947
  wmsUrl?: string;
4948
+ /** must be WMS. */
4949
+ service?: string;
4935
4950
  }
4936
4951
  export interface GetRasterAttributesParams {
4937
4952
  /** File name in the temporary static storage. */
@@ -677,7 +677,7 @@ let ImportService = /*#__PURE__*/function (_Service) {
677
677
  }, {
678
678
  key: "getExternalWmsLayers",
679
679
  value: function getExternalWmsLayers(query) {
680
- return this.http.get("/import/wms", query).then(() => {});
680
+ return this.http.get("/import/wms", query).json();
681
681
  }
682
682
  /**
683
683
  * No description