@evergis/api 5.0.5 → 5.0.7
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/__generated__/RemoteTaskManagerService.d.ts +9 -21
- package/dist/__generated__/data-contracts.d.ts +78 -33
- package/dist/api.esm.js +23 -25
- package/dist/api.esm.js.map +1 -1
- package/dist/index.js +22 -24
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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__`!
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Service } from './Service';
|
|
2
|
-
import { ActiveWorkerDc, CreatedTaskResultDto, GetTaskPrototypesParams, GetTaskResourceParams, GetTasksForPrototypeParams, SearchResultsDtoTaskDto, SearchResultsDtoTaskPrototypeDto, SubTasksDto, TaskConfigurationDc, TaskPrototypeDto,
|
|
2
|
+
import { ActiveWorkerDc, BaseTaskResourceUpdateDto, CreatedTaskResultDto, GetTaskPrototypesParams, GetTaskResourceParams, GetTasksForPrototypeParams, SearchResultsDtoTaskDto, SearchResultsDtoTaskPrototypeDto, SubTasksDto, TaskConfigurationDc, TaskPrototypeDto, TaskResourceCreateDto, UpdateTaskPrototypeDto, WorkerStartMethodDto } from './data-contracts';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
5
5
|
* @version 1.5.1.0
|
|
@@ -138,42 +138,30 @@ export declare class RemoteTaskManagerService extends Service {
|
|
|
138
138
|
* @response `200` OK
|
|
139
139
|
*/
|
|
140
140
|
getTaskResource({ id, ...query }: GetTaskResourceParams): Promise<TaskConfigurationDc>;
|
|
141
|
-
/**
|
|
142
|
-
* No description
|
|
143
|
-
*
|
|
144
|
-
* @tags RemoteTaskManager
|
|
145
|
-
* @name CreateTaskResource
|
|
146
|
-
* @operationId RemoteTaskManagerController_CreateTaskResource
|
|
147
|
-
* @summary Create task resource.
|
|
148
|
-
* @request POST:/scheduler/taskresource
|
|
149
|
-
* @secure
|
|
150
|
-
* @response `200` OK
|
|
151
|
-
*/
|
|
152
|
-
createTaskResource(data: TaskResourceCreateDto): Promise<string>;
|
|
153
141
|
/**
|
|
154
142
|
* No description
|
|
155
143
|
*
|
|
156
144
|
* @tags RemoteTaskManager
|
|
157
145
|
* @name UpdatePythonTaskResource
|
|
158
146
|
* @operationId RemoteTaskManagerController_UpdatePythonTaskResource
|
|
159
|
-
* @summary Update
|
|
160
|
-
* @request PATCH:/scheduler/taskresource/{id}
|
|
147
|
+
* @summary Update task resource.
|
|
148
|
+
* @request PATCH:/scheduler/taskresource/{id}
|
|
161
149
|
* @secure
|
|
162
150
|
* @response `200` OK
|
|
163
151
|
*/
|
|
164
|
-
updatePythonTaskResource(id: string, data:
|
|
152
|
+
updatePythonTaskResource(id: string, data: BaseTaskResourceUpdateDto): Promise<void>;
|
|
165
153
|
/**
|
|
166
154
|
* No description
|
|
167
155
|
*
|
|
168
156
|
* @tags RemoteTaskManager
|
|
169
|
-
* @name
|
|
170
|
-
* @operationId
|
|
171
|
-
* @summary
|
|
172
|
-
* @request
|
|
157
|
+
* @name CreateTaskResource
|
|
158
|
+
* @operationId RemoteTaskManagerController_CreateTaskResource
|
|
159
|
+
* @summary Create task resource.
|
|
160
|
+
* @request POST:/scheduler/taskresource
|
|
173
161
|
* @secure
|
|
174
162
|
* @response `200` OK
|
|
175
163
|
*/
|
|
176
|
-
|
|
164
|
+
createTaskResource(data: TaskResourceCreateDto): Promise<string>;
|
|
177
165
|
/**
|
|
178
166
|
* No description
|
|
179
167
|
*
|
|
@@ -707,6 +707,24 @@ export interface BaseResourceInfoDc {
|
|
|
707
707
|
*/
|
|
708
708
|
name: string;
|
|
709
709
|
}
|
|
710
|
+
/**
|
|
711
|
+
* Represents the base class for updating task resource configurations, providing essential properties for task
|
|
712
|
+
resource updates.
|
|
713
|
+
*/
|
|
714
|
+
export interface BaseTaskResourceUpdateDto {
|
|
715
|
+
/**
|
|
716
|
+
* Specifies the types of task resources that can be updated within the system.
|
|
717
|
+
*
|
|
718
|
+
* SpTask
|
|
719
|
+
*
|
|
720
|
+
* PythonTask
|
|
721
|
+
*/
|
|
722
|
+
type?: TaskResourceUpdateType;
|
|
723
|
+
/** Configurations. */
|
|
724
|
+
configurations?: TaskMethodConfiguration[];
|
|
725
|
+
/** User ui configuration. */
|
|
726
|
+
uiConfiguration?: any;
|
|
727
|
+
}
|
|
710
728
|
/**
|
|
711
729
|
* Provides resources with their acl.
|
|
712
730
|
*/
|
|
@@ -777,8 +795,44 @@ export interface CatalogResourceDc {
|
|
|
777
795
|
type?: CatalogResourceType;
|
|
778
796
|
/** Resource subtype. */
|
|
779
797
|
subtype?: string;
|
|
780
|
-
/**
|
|
781
|
-
|
|
798
|
+
/**
|
|
799
|
+
*
|
|
800
|
+
*
|
|
801
|
+
* Unknown
|
|
802
|
+
*
|
|
803
|
+
* Point
|
|
804
|
+
*
|
|
805
|
+
* LineString
|
|
806
|
+
*
|
|
807
|
+
* Polygon
|
|
808
|
+
*
|
|
809
|
+
* MultiPoint
|
|
810
|
+
*
|
|
811
|
+
* MultiLineString
|
|
812
|
+
*
|
|
813
|
+
* MultiPolygon
|
|
814
|
+
*
|
|
815
|
+
* GeometryCollection
|
|
816
|
+
*
|
|
817
|
+
* CircularString
|
|
818
|
+
*
|
|
819
|
+
* CompoundCurve
|
|
820
|
+
*
|
|
821
|
+
* CurvePolygon
|
|
822
|
+
*
|
|
823
|
+
* MultiCurve
|
|
824
|
+
*
|
|
825
|
+
* MultiSurface
|
|
826
|
+
*
|
|
827
|
+
* Curve
|
|
828
|
+
*
|
|
829
|
+
* Surface
|
|
830
|
+
*
|
|
831
|
+
* PolyhedralSurface
|
|
832
|
+
*
|
|
833
|
+
* TIN
|
|
834
|
+
*/
|
|
835
|
+
geometryType?: OgcGeometryType;
|
|
782
836
|
/** Path to the resource. */
|
|
783
837
|
name?: string;
|
|
784
838
|
/** Description of the resource. */
|
|
@@ -5159,19 +5213,6 @@ export interface SocialNetworkInfoDc {
|
|
|
5159
5213
|
/** External provider name. */
|
|
5160
5214
|
providerName?: string;
|
|
5161
5215
|
}
|
|
5162
|
-
/**
|
|
5163
|
-
* SpTaskMethodConfiguration.
|
|
5164
|
-
*/
|
|
5165
|
-
export interface SpTaskMethodConfiguration {
|
|
5166
|
-
/** Gets or sets method. */
|
|
5167
|
-
method?: string;
|
|
5168
|
-
/** Gets or sets description. */
|
|
5169
|
-
description?: string;
|
|
5170
|
-
/** Parameters. */
|
|
5171
|
-
parameters?: TaskParameter[];
|
|
5172
|
-
/** TaskReturnType. */
|
|
5173
|
-
return?: TaskReturnType;
|
|
5174
|
-
}
|
|
5175
5216
|
/**
|
|
5176
5217
|
* SpTaskMethodConfiguration.
|
|
5177
5218
|
*/
|
|
@@ -5646,6 +5687,17 @@ export interface TaskDto {
|
|
|
5646
5687
|
/** ForceExecution. */
|
|
5647
5688
|
forceExecution?: boolean;
|
|
5648
5689
|
}
|
|
5690
|
+
/**
|
|
5691
|
+
* TaskMethodConfiguration.
|
|
5692
|
+
*/
|
|
5693
|
+
export interface TaskMethodConfiguration {
|
|
5694
|
+
/** Gets or sets description. */
|
|
5695
|
+
description?: string;
|
|
5696
|
+
/** Parameters. */
|
|
5697
|
+
parameters?: TaskParameter[];
|
|
5698
|
+
/** TaskReturnType. */
|
|
5699
|
+
return?: TaskReturnType;
|
|
5700
|
+
}
|
|
5649
5701
|
/**
|
|
5650
5702
|
* TaskMethodConfiguration.
|
|
5651
5703
|
*/
|
|
@@ -5866,15 +5918,6 @@ export interface TaskPrototypeDto {
|
|
|
5866
5918
|
*/
|
|
5867
5919
|
lastTaskFinish?: string;
|
|
5868
5920
|
}
|
|
5869
|
-
/**
|
|
5870
|
-
* TaskPythonResourceUpdateDto.
|
|
5871
|
-
*/
|
|
5872
|
-
export interface TaskPythonResourceUpdateDto {
|
|
5873
|
-
/** Configurations. */
|
|
5874
|
-
configurations?: PythonTaskMethodConfiguration[];
|
|
5875
|
-
/** User ui configuration. */
|
|
5876
|
-
uiConfiguration?: any;
|
|
5877
|
-
}
|
|
5878
5921
|
/**
|
|
5879
5922
|
* TaskResourceCreateDto.
|
|
5880
5923
|
*/
|
|
@@ -5913,6 +5956,17 @@ export declare enum TaskResourceSubType {
|
|
|
5913
5956
|
SpTask = "SpTask",
|
|
5914
5957
|
PythonTask = "PythonTask"
|
|
5915
5958
|
}
|
|
5959
|
+
/**
|
|
5960
|
+
* Specifies the types of task resources that can be updated within the system.
|
|
5961
|
+
|
|
5962
|
+
SpTask
|
|
5963
|
+
|
|
5964
|
+
PythonTask
|
|
5965
|
+
*/
|
|
5966
|
+
export declare enum TaskResourceUpdateType {
|
|
5967
|
+
SpTask = "SpTask",
|
|
5968
|
+
PythonTask = "PythonTask"
|
|
5969
|
+
}
|
|
5916
5970
|
/**
|
|
5917
5971
|
* TaskReturnType.
|
|
5918
5972
|
*/
|
|
@@ -5972,15 +6026,6 @@ export interface TaskReturnType {
|
|
|
5972
6026
|
/** Name. */
|
|
5973
6027
|
nullable?: boolean;
|
|
5974
6028
|
}
|
|
5975
|
-
/**
|
|
5976
|
-
* TaskSpResourceUpdateDto.
|
|
5977
|
-
*/
|
|
5978
|
-
export interface TaskSpResourceUpdateDto {
|
|
5979
|
-
/** Configurations. */
|
|
5980
|
-
configurations?: SpTaskMethodConfiguration[];
|
|
5981
|
-
/** User ui configuration. */
|
|
5982
|
-
uiConfiguration?: any;
|
|
5983
|
-
}
|
|
5984
6029
|
/**
|
|
5985
6030
|
* Test connection data contract.
|
|
5986
6031
|
*/
|
package/dist/api.esm.js
CHANGED
|
@@ -2793,7 +2793,7 @@ class Api extends EventEmitter {
|
|
|
2793
2793
|
prefixUrl: url,
|
|
2794
2794
|
timeout: false,
|
|
2795
2795
|
retry: {
|
|
2796
|
-
methods: ["get", "post", "delete"],
|
|
2796
|
+
methods: ["get", "post", "patch", "delete"],
|
|
2797
2797
|
limit: 5,
|
|
2798
2798
|
statusCodes: [401],
|
|
2799
2799
|
},
|
|
@@ -4224,47 +4224,33 @@ class RemoteTaskManagerService extends Service {
|
|
|
4224
4224
|
getTaskResource({ id, ...query }) {
|
|
4225
4225
|
return this.http.get(`/scheduler/taskresource/${id}`, query).json();
|
|
4226
4226
|
}
|
|
4227
|
-
/**
|
|
4228
|
-
* No description
|
|
4229
|
-
*
|
|
4230
|
-
* @tags RemoteTaskManager
|
|
4231
|
-
* @name CreateTaskResource
|
|
4232
|
-
* @operationId RemoteTaskManagerController_CreateTaskResource
|
|
4233
|
-
* @summary Create task resource.
|
|
4234
|
-
* @request POST:/scheduler/taskresource
|
|
4235
|
-
* @secure
|
|
4236
|
-
* @response `200` OK
|
|
4237
|
-
*/
|
|
4238
|
-
createTaskResource(data) {
|
|
4239
|
-
return this.http.post(`/scheduler/taskresource`, data).text();
|
|
4240
|
-
}
|
|
4241
4227
|
/**
|
|
4242
4228
|
* No description
|
|
4243
4229
|
*
|
|
4244
4230
|
* @tags RemoteTaskManager
|
|
4245
4231
|
* @name UpdatePythonTaskResource
|
|
4246
4232
|
* @operationId RemoteTaskManagerController_UpdatePythonTaskResource
|
|
4247
|
-
* @summary Update
|
|
4248
|
-
* @request PATCH:/scheduler/taskresource/{id}
|
|
4233
|
+
* @summary Update task resource.
|
|
4234
|
+
* @request PATCH:/scheduler/taskresource/{id}
|
|
4249
4235
|
* @secure
|
|
4250
4236
|
* @response `200` OK
|
|
4251
4237
|
*/
|
|
4252
4238
|
updatePythonTaskResource(id, data) {
|
|
4253
|
-
return this.http.patch(`/scheduler/taskresource/${id}`, data
|
|
4239
|
+
return this.http.patch(`/scheduler/taskresource/${id}`, data).then(() => { });
|
|
4254
4240
|
}
|
|
4255
4241
|
/**
|
|
4256
4242
|
* No description
|
|
4257
4243
|
*
|
|
4258
4244
|
* @tags RemoteTaskManager
|
|
4259
|
-
* @name
|
|
4260
|
-
* @operationId
|
|
4261
|
-
* @summary
|
|
4262
|
-
* @request
|
|
4245
|
+
* @name CreateTaskResource
|
|
4246
|
+
* @operationId RemoteTaskManagerController_CreateTaskResource
|
|
4247
|
+
* @summary Create task resource.
|
|
4248
|
+
* @request POST:/scheduler/taskresource
|
|
4263
4249
|
* @secure
|
|
4264
4250
|
* @response `200` OK
|
|
4265
4251
|
*/
|
|
4266
|
-
|
|
4267
|
-
return this.http.
|
|
4252
|
+
createTaskResource(data) {
|
|
4253
|
+
return this.http.post(`/scheduler/taskresource`, data).text();
|
|
4268
4254
|
}
|
|
4269
4255
|
/**
|
|
4270
4256
|
* No description
|
|
@@ -5802,6 +5788,18 @@ var TaskResourceSubType;
|
|
|
5802
5788
|
TaskResourceSubType["PythonTask"] = "PythonTask";
|
|
5803
5789
|
})(TaskResourceSubType || (TaskResourceSubType = {}));
|
|
5804
5790
|
/**
|
|
5791
|
+
* Specifies the types of task resources that can be updated within the system.
|
|
5792
|
+
|
|
5793
|
+
SpTask
|
|
5794
|
+
|
|
5795
|
+
PythonTask
|
|
5796
|
+
*/
|
|
5797
|
+
var TaskResourceUpdateType;
|
|
5798
|
+
(function (TaskResourceUpdateType) {
|
|
5799
|
+
TaskResourceUpdateType["SpTask"] = "SpTask";
|
|
5800
|
+
TaskResourceUpdateType["PythonTask"] = "PythonTask";
|
|
5801
|
+
})(TaskResourceUpdateType || (TaskResourceUpdateType = {}));
|
|
5802
|
+
/**
|
|
5805
5803
|
*
|
|
5806
5804
|
|
|
5807
5805
|
Task
|
|
@@ -5889,5 +5887,5 @@ var WorkerSettingsFieldType;
|
|
|
5889
5887
|
WorkerSettingsFieldType["AttributeArray"] = "AttributeArray";
|
|
5890
5888
|
})(WorkerSettingsFieldType || (WorkerSettingsFieldType = {}));
|
|
5891
5889
|
|
|
5892
|
-
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, HttpClient, Import, LayerServiceType, Layers, Names, Notification, NotificationEvent, OgcGeometryType, 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, TableConfigurationType, Tables, TaskResourceSubType, Tools, UrlPath, VectorTiles, WorkerMethodType, WorkerSettingsFieldType, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isHTTPError, isHandledError, isProjectContentItems, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique, useToken };
|
|
5890
|
+
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, HttpClient, Import, LayerServiceType, Layers, Names, Notification, NotificationEvent, OgcGeometryType, 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, TableConfigurationType, Tables, TaskResourceSubType, TaskResourceUpdateType, Tools, UrlPath, VectorTiles, WorkerMethodType, WorkerSettingsFieldType, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isHTTPError, isHandledError, isProjectContentItems, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique, useToken };
|
|
5893
5891
|
//# sourceMappingURL=api.esm.js.map
|