@evergis/api 4.1.49 → 4.1.50-4.1.50-alpha.1.0

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 CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Everpoint
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Everpoint
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # @evergis/api
2
-
3
- Библиотека API.
4
-
5
- ### Генерирование API
6
-
7
- ```shell
8
- $ yarn generate
9
- ```
10
-
11
- ***ВАЖНО!!!***: Никогда и ни при каких обстоятельствах нельзя вручную править файлы,
12
- размещенные в директории `src/__generated__`!
1
+ # @evergis/api
2
+
3
+ Библиотека API.
4
+
5
+ ### Генерирование API
6
+
7
+ ```shell
8
+ $ yarn generate
9
+ ```
10
+
11
+ ***ВАЖНО!!!***: Никогда и ни при каких обстоятельствах нельзя вручную править файлы,
12
+ размещенные в директории `src/__generated__`!
@@ -113,7 +113,7 @@ export declare class EqlService extends Service {
113
113
  * @secure
114
114
  * @response `200` OK
115
115
  */
116
- getLayerParameters(query: GetLayerParametersParams): Promise<string>;
116
+ getLayerParameters(query: GetLayerParametersParams): Promise<void>;
117
117
  /**
118
118
  * No description
119
119
  *
@@ -125,7 +125,7 @@ export declare class EqlService extends Service {
125
125
  * @secure
126
126
  * @response `200` OK
127
127
  */
128
- getLayerParameters1(query: GetLayerParameters1Params): Promise<Record<string, string>>;
128
+ getLayerParameters1(query: GetLayerParameters1Params): Promise<Record<string, any>>;
129
129
  /**
130
130
  * No description
131
131
  *
@@ -1,5 +1,5 @@
1
1
  import { Service } from './Service';
2
- import { BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc, DeleteResourcesParams4, DeleteTableDataParams, DetailedTableInfoDc, GetTableDataParams, GetTablesInfoParams, MapTableInfoDc, MapTableParams, PagedBulkFeaturesListDc, PagedFeaturesListDc, PagedListFeatureDc, ResourceDependenciesDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
2
+ import { BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc, DeleteResourcesParams4, DeleteTableDataParams, DetailedTableInfoDc, GetTableDataParams, GetTablesInfoParams, MapTableInfoDc, MapTableParams, PagedListFeatureDc, ResourceDependenciesDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
3
3
  /**
4
4
  * @title Spatial Processing Core API
5
5
  * @version 1.5.1.0
@@ -89,7 +89,7 @@ export declare class TablesService extends Service {
89
89
  * @secure
90
90
  * @response `200` OK
91
91
  */
92
- getTableData({ name, ...query }: GetTableDataParams): Promise<PagedListFeatureDc | PagedFeaturesListDc | PagedBulkFeaturesListDc>;
92
+ getTableData({ name, ...query }: GetTableDataParams): Promise<PagedListFeatureDc>;
93
93
  /**
94
94
  * No description
95
95
  *
@@ -2033,10 +2033,12 @@ export type FailedServiceInfoDc = ServiceInfoDc & {
2033
2033
  * Feature object definition.
2034
2034
  */
2035
2035
  export interface FeatureDc {
2036
+ /** Type. */
2037
+ type?: string;
2036
2038
  /** Feature geometry definition. */
2037
2039
  geometry?: GeometryCollectionDc | LineStringDc | MultiPointDc | MultiPolygonDc | PointDc | PolygonDc | PolylineDc;
2038
2040
  /** Feature attributes collection. */
2039
- attributes: Record<string, any>;
2041
+ properties: Record<string, any>;
2040
2042
  /** Feature unique identifier. */
2041
2043
  id?: string;
2042
2044
  /** Values for all bands of feature by pixel point. */
@@ -2103,6 +2105,38 @@ export interface FilterResponseDc {
2103
2105
  /** Id of the filter. */
2104
2106
  id?: string;
2105
2107
  }
2108
+ /**
2109
+ *
2110
+
2111
+ Point
2112
+
2113
+ MultiPoint
2114
+
2115
+ LineString
2116
+
2117
+ MultiLineString
2118
+
2119
+ Polygon
2120
+
2121
+ MultiPolygon
2122
+
2123
+ GeometryCollection
2124
+
2125
+ Feature
2126
+
2127
+ FeatureCollection
2128
+ */
2129
+ export declare enum GeoJsonObjectType {
2130
+ Point = "Point",
2131
+ MultiPoint = "MultiPoint",
2132
+ LineString = "LineString",
2133
+ MultiLineString = "MultiLineString",
2134
+ Polygon = "Polygon",
2135
+ MultiPolygon = "MultiPolygon",
2136
+ GeometryCollection = "GeometryCollection",
2137
+ Feature = "Feature",
2138
+ FeatureCollection = "FeatureCollection"
2139
+ }
2106
2140
  /**
2107
2141
  * Geocode result.
2108
2142
  */
@@ -2144,27 +2178,25 @@ export type GeometryCollectionDc = GeometryDc & {
2144
2178
  /**
2145
2179
  *
2146
2180
  *
2147
- * unknown
2148
- *
2149
- * point
2181
+ * Point
2150
2182
  *
2151
- * polyline
2183
+ * MultiPoint
2152
2184
  *
2153
- * polygon
2185
+ * LineString
2154
2186
  *
2155
- * envelope
2187
+ * MultiLineString
2156
2188
  *
2157
- * multipoint
2189
+ * Polygon
2158
2190
  *
2159
- * line
2191
+ * MultiPolygon
2160
2192
  *
2161
- * ring
2193
+ * GeometryCollection
2162
2194
  *
2163
- * multipolygon
2195
+ * Feature
2164
2196
  *
2165
- * collection
2197
+ * FeatureCollection
2166
2198
  */
2167
- type?: GeometryType;
2199
+ type?: GeoJsonObjectType;
2168
2200
  };
2169
2201
  /**
2170
2202
  * Geometry data contract.
@@ -2173,27 +2205,25 @@ export interface GeometryDc {
2173
2205
  /**
2174
2206
  *
2175
2207
  *
2176
- * unknown
2177
- *
2178
- * point
2208
+ * Point
2179
2209
  *
2180
- * polyline
2210
+ * MultiPoint
2181
2211
  *
2182
- * polygon
2212
+ * LineString
2183
2213
  *
2184
- * envelope
2214
+ * MultiLineString
2185
2215
  *
2186
- * multipoint
2216
+ * Polygon
2187
2217
  *
2188
- * line
2218
+ * MultiPolygon
2189
2219
  *
2190
- * ring
2220
+ * GeometryCollection
2191
2221
  *
2192
- * multipolygon
2222
+ * Feature
2193
2223
  *
2194
- * collection
2224
+ * FeatureCollection
2195
2225
  */
2196
- type: GeometryType;
2226
+ type: GeoJsonObjectType;
2197
2227
  /**
2198
2228
  * Spatial reference id.
2199
2229
  * @format int32
@@ -2661,27 +2691,25 @@ export type LineStringDc = GeometryDc & {
2661
2691
  /**
2662
2692
  *
2663
2693
  *
2664
- * unknown
2665
- *
2666
- * point
2694
+ * Point
2667
2695
  *
2668
- * polyline
2696
+ * MultiPoint
2669
2697
  *
2670
- * polygon
2698
+ * LineString
2671
2699
  *
2672
- * envelope
2700
+ * MultiLineString
2673
2701
  *
2674
- * multipoint
2702
+ * Polygon
2675
2703
  *
2676
- * line
2704
+ * MultiPolygon
2677
2705
  *
2678
- * ring
2706
+ * GeometryCollection
2679
2707
  *
2680
- * multipolygon
2708
+ * Feature
2681
2709
  *
2682
- * collection
2710
+ * FeatureCollection
2683
2711
  */
2684
- type?: GeometryType;
2712
+ type?: GeoJsonObjectType;
2685
2713
  /** Poly coordinates. */
2686
2714
  coordinates: PositionDc[];
2687
2715
  };
@@ -2875,27 +2903,25 @@ export type MultiPointDc = GeometryDc & {
2875
2903
  /**
2876
2904
  *
2877
2905
  *
2878
- * unknown
2879
- *
2880
- * point
2906
+ * Point
2881
2907
  *
2882
- * polyline
2908
+ * MultiPoint
2883
2909
  *
2884
- * polygon
2910
+ * LineString
2885
2911
  *
2886
- * envelope
2912
+ * MultiLineString
2887
2913
  *
2888
- * multipoint
2914
+ * Polygon
2889
2915
  *
2890
- * line
2916
+ * MultiPolygon
2891
2917
  *
2892
- * ring
2918
+ * GeometryCollection
2893
2919
  *
2894
- * multipolygon
2920
+ * Feature
2895
2921
  *
2896
- * collection
2922
+ * FeatureCollection
2897
2923
  */
2898
- type?: GeometryType;
2924
+ type?: GeoJsonObjectType;
2899
2925
  };
2900
2926
  /**
2901
2927
  * Multipoint geometry object definition.
@@ -2906,27 +2932,25 @@ export type MultiPolygonDc = GeometryDc & {
2906
2932
  /**
2907
2933
  *
2908
2934
  *
2909
- * unknown
2910
- *
2911
- * point
2935
+ * Point
2912
2936
  *
2913
- * polyline
2937
+ * MultiPoint
2914
2938
  *
2915
- * polygon
2939
+ * LineString
2916
2940
  *
2917
- * envelope
2941
+ * MultiLineString
2918
2942
  *
2919
- * multipoint
2943
+ * Polygon
2920
2944
  *
2921
- * line
2945
+ * MultiPolygon
2922
2946
  *
2923
- * ring
2947
+ * GeometryCollection
2924
2948
  *
2925
- * multipolygon
2949
+ * Feature
2926
2950
  *
2927
- * collection
2951
+ * FeatureCollection
2928
2952
  */
2929
- type?: GeometryType;
2953
+ type?: GeoJsonObjectType;
2930
2954
  };
2931
2955
  /**
2932
2956
  * Information about a namespace .
@@ -2963,18 +2987,40 @@ export interface Operation {
2963
2987
  /**
2964
2988
  * Features list definition.
2965
2989
  */
2966
- export type PagedBulkFeaturesListDc = PagedListFeatureDc & {
2990
+ export interface PagedBulkFeaturesListDc {
2967
2991
  /** Layer name. */
2968
- layerName?: string | null;
2992
+ layerName?: string;
2969
2993
  /** Has error. */
2970
2994
  hasError?: boolean;
2971
2995
  /** Error text. */
2972
- error?: string | null;
2973
- };
2996
+ error?: string;
2997
+ /** Features list definition. */
2998
+ featureCollection?: PagedFeaturesListDc;
2999
+ }
2974
3000
  /**
2975
3001
  * Features list definition.
2976
3002
  */
2977
- export type PagedFeaturesListDc = PagedListFeatureDc & object;
3003
+ export interface PagedFeaturesListDc {
3004
+ /** Type. */
3005
+ type?: string;
3006
+ /** Features. */
3007
+ features?: FeatureDc[];
3008
+ /**
3009
+ * Total number of items that the list contains, e.g. if the paging is not applied.
3010
+ * @format int64
3011
+ */
3012
+ totalCount?: number;
3013
+ /**
3014
+ * The first index of the item in the list that is returned in the Items parameter.
3015
+ * @format int32
3016
+ */
3017
+ offset?: number;
3018
+ /**
3019
+ * Maximum number of the items that the Items parameter may contain.
3020
+ * @format int32
3021
+ */
3022
+ limit?: number;
3023
+ }
2978
3024
  export interface PagedListConfigDc {
2979
3025
  /** @format int64 */
2980
3026
  totalCount?: number;
@@ -3174,27 +3220,25 @@ export type PointDc = GeometryDc & {
3174
3220
  /**
3175
3221
  *
3176
3222
  *
3177
- * unknown
3178
- *
3179
- * point
3223
+ * Point
3180
3224
  *
3181
- * polyline
3225
+ * MultiPoint
3182
3226
  *
3183
- * polygon
3227
+ * LineString
3184
3228
  *
3185
- * envelope
3229
+ * MultiLineString
3186
3230
  *
3187
- * multipoint
3231
+ * Polygon
3188
3232
  *
3189
- * line
3233
+ * MultiPolygon
3190
3234
  *
3191
- * ring
3235
+ * GeometryCollection
3192
3236
  *
3193
- * multipolygon
3237
+ * Feature
3194
3238
  *
3195
- * collection
3239
+ * FeatureCollection
3196
3240
  */
3197
- type?: GeometryType;
3241
+ type?: GeoJsonObjectType;
3198
3242
  };
3199
3243
  export interface PolicyDc {
3200
3244
  /**
@@ -3257,27 +3301,25 @@ export type PolygonDc = GeometryDc & {
3257
3301
  /**
3258
3302
  *
3259
3303
  *
3260
- * unknown
3261
- *
3262
- * point
3304
+ * Point
3263
3305
  *
3264
- * polyline
3306
+ * MultiPoint
3265
3307
  *
3266
- * polygon
3308
+ * LineString
3267
3309
  *
3268
- * envelope
3310
+ * MultiLineString
3269
3311
  *
3270
- * multipoint
3312
+ * Polygon
3271
3313
  *
3272
- * line
3314
+ * MultiPolygon
3273
3315
  *
3274
- * ring
3316
+ * GeometryCollection
3275
3317
  *
3276
- * multipolygon
3318
+ * Feature
3277
3319
  *
3278
- * collection
3320
+ * FeatureCollection
3279
3321
  */
3280
- type?: GeometryType;
3322
+ type?: GeoJsonObjectType;
3281
3323
  /** Polygon coordinates. */
3282
3324
  coordinates: PositionDc[][];
3283
3325
  };
@@ -3288,27 +3330,25 @@ export type PolylineDc = GeometryDc & {
3288
3330
  /**
3289
3331
  *
3290
3332
  *
3291
- * unknown
3333
+ * Point
3292
3334
  *
3293
- * point
3335
+ * MultiPoint
3294
3336
  *
3295
- * polyline
3296
- *
3297
- * polygon
3337
+ * LineString
3298
3338
  *
3299
- * envelope
3339
+ * MultiLineString
3300
3340
  *
3301
- * multipoint
3341
+ * Polygon
3302
3342
  *
3303
- * line
3343
+ * MultiPolygon
3304
3344
  *
3305
- * ring
3345
+ * GeometryCollection
3306
3346
  *
3307
- * multipolygon
3347
+ * Feature
3308
3348
  *
3309
- * collection
3349
+ * FeatureCollection
3310
3350
  */
3311
- type?: GeometryType;
3351
+ type?: GeoJsonObjectType;
3312
3352
  /** Poly coordinates. */
3313
3353
  coordinates: PositionDc[][];
3314
3354
  };
package/dist/api.esm.js CHANGED
@@ -1416,7 +1416,7 @@ class EqlService extends Service {
1416
1416
  * @response `200` OK
1417
1417
  */
1418
1418
  getLayerParameters(query) {
1419
- return this.http.get(`/eql/getParam`, query).text();
1419
+ return this.http.get(`/eql/getParam`, query).then(() => { });
1420
1420
  }
1421
1421
  /**
1422
1422
  * No description
@@ -4947,9 +4947,7 @@ class TablesService extends Service {
4947
4947
  * @response `200` OK
4948
4948
  */
4949
4949
  getTableData({ name, ...query }) {
4950
- return this.http
4951
- .get(`/tables/${name}/data`, query)
4952
- .json();
4950
+ return this.http.get(`/tables/${name}/data`, query).json();
4953
4951
  }
4954
4952
  /**
4955
4953
  * No description
@@ -5624,6 +5622,39 @@ var ErrorType;
5624
5622
  /**
5625
5623
  *
5626
5624
 
5625
+ Point
5626
+
5627
+ MultiPoint
5628
+
5629
+ LineString
5630
+
5631
+ MultiLineString
5632
+
5633
+ Polygon
5634
+
5635
+ MultiPolygon
5636
+
5637
+ GeometryCollection
5638
+
5639
+ Feature
5640
+
5641
+ FeatureCollection
5642
+ */
5643
+ var GeoJsonObjectType;
5644
+ (function (GeoJsonObjectType) {
5645
+ GeoJsonObjectType["Point"] = "Point";
5646
+ GeoJsonObjectType["MultiPoint"] = "MultiPoint";
5647
+ GeoJsonObjectType["LineString"] = "LineString";
5648
+ GeoJsonObjectType["MultiLineString"] = "MultiLineString";
5649
+ GeoJsonObjectType["Polygon"] = "Polygon";
5650
+ GeoJsonObjectType["MultiPolygon"] = "MultiPolygon";
5651
+ GeoJsonObjectType["GeometryCollection"] = "GeometryCollection";
5652
+ GeoJsonObjectType["Feature"] = "Feature";
5653
+ GeoJsonObjectType["FeatureCollection"] = "FeatureCollection";
5654
+ })(GeoJsonObjectType || (GeoJsonObjectType = {}));
5655
+ /**
5656
+ *
5657
+
5627
5658
  unknown
5628
5659
 
5629
5660
  point
@@ -5994,5 +6025,5 @@ var WorkerSettingsFieldType;
5994
6025
  WorkerSettingsFieldType["AttributeArray"] = "AttributeArray";
5995
6026
  })(WorkerSettingsFieldType || (WorkerSettingsFieldType = {}));
5996
6027
 
5997
- export { AccessMode, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeIconType, AttributeSelectorType, AttributeType, AuthorizationGrant, BulkOperations, CatalogResourceType, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigurationErrorEnum, ConflictResolutionStrategy, ConnectionStatus, DataSourceConnectionType, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, ErrorType, External, Feedback, FileUpload, Filters, GEOCODE_PROVIDER, Geocode, GeometryType, HttpClient, Import, Layers, Names, Notification, NotificationEvent, PbfSchema, Permissions, PolicyType, PortalSettings, Projects, RemoteTaskManager, RemoteTaskStatus, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, ResourceTypeLink, Resources, ResponseType, STORAGE_REFRESH_TOKEN_KEY, STORAGE_TOKEN_KEY, Security, SimplifyType, Statistic, StringSubType, Tables, TaskResourceSubType, Tools, UrlPath, VectorTiles, WorkerMethodType, WorkerSettingsFieldType, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isHTTPError, isHandledError, isProjectContentItems, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique, useToken };
6028
+ export { AccessMode, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeIconType, AttributeSelectorType, AttributeType, AuthorizationGrant, BulkOperations, CatalogResourceType, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigurationErrorEnum, ConflictResolutionStrategy, ConnectionStatus, DataSourceConnectionType, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, ErrorType, External, Feedback, FileUpload, Filters, GEOCODE_PROVIDER, GeoJsonObjectType, Geocode, GeometryType, HttpClient, Import, Layers, Names, Notification, NotificationEvent, PbfSchema, Permissions, PolicyType, PortalSettings, Projects, RemoteTaskManager, RemoteTaskStatus, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, ResourceTypeLink, Resources, ResponseType, STORAGE_REFRESH_TOKEN_KEY, STORAGE_TOKEN_KEY, Security, SimplifyType, Statistic, StringSubType, Tables, TaskResourceSubType, Tools, UrlPath, VectorTiles, WorkerMethodType, WorkerSettingsFieldType, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isHTTPError, isHandledError, isProjectContentItems, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique, useToken };
5998
6029
  //# sourceMappingURL=api.esm.js.map