@evergis/api 5.0.48 → 5.0.49
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 +0 -4
- package/dist/__generated__/CatalogService.d.ts +20 -2
- package/dist/__generated__/data-contracts.d.ts +36 -0
- package/dist/api.esm.js +1559 -1564
- package/dist/api.esm.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1560 -1568
- package/dist/index.js.map +1 -1
- package/dist/services/Account.d.ts +1 -1
- package/dist/services/FileUpload.d.ts +1 -1
- package/dist/services/Geocode.d.ts +1 -1
- package/dist/services/Layers.d.ts +1 -1
- package/dist/services/Projects.d.ts +1 -1
- package/dist/services/Tables.d.ts +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/utils/index.d.ts +2 -5
- package/package.json +2 -2
- package/dist/ApiEvent.d.ts +0 -5
- package/dist/__generated__/ImportService.d.ts +0 -118
- package/dist/services/Import.d.ts +0 -3
- package/dist/utils/formDataFromFile.d.ts +0 -1
- package/dist/utils/isString.d.ts +0 -1
- package/dist/utils/location.d.ts +0 -2
- package/dist/utils/stripUselessSlashes.d.ts +0 -1
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__`!
|
package/dist/Api.d.ts
CHANGED
|
@@ -15,8 +15,6 @@ export type ApiParams = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare enum UrlPath {
|
|
17
17
|
Base = "/map",
|
|
18
|
-
Shared = "/shared",
|
|
19
|
-
Presentation = "/presentation",
|
|
20
18
|
Portal = "/portal"
|
|
21
19
|
}
|
|
22
20
|
export type SocAuthNetwork = "vk" | "facebook" | "google" | "yandex";
|
|
@@ -53,8 +51,6 @@ export declare class Api extends EventEmitter {
|
|
|
53
51
|
private readonly urlPath;
|
|
54
52
|
private refreshingToken;
|
|
55
53
|
constructor({ url, http, urlPath, httpOptions, }: ApiParams);
|
|
56
|
-
get isShared(): boolean;
|
|
57
|
-
get isPresentation(): boolean;
|
|
58
54
|
init({ authParams, authQueryParams, fetchSettings, fetchUser, useJwt, }: {
|
|
59
55
|
authParams?: LoginDc;
|
|
60
56
|
authQueryParams?: AuthenticateParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Service } from './Service';
|
|
2
|
-
import { AccessControlListDc, CopyResourceResultDc, CopyResourcesPayload, CreateDirectoryDc, CreateFile1Payload, CreateFilePayload, CreateSymlinkDc, CustomResourceDc, DeleteResourceParams, ExtendedCatalogResourceDc, FailedCatalogConfigurationDc, GetTagsParams, ListConfigurationsDc, ListResourcesDc, MoveResourceDc, PagedResourcesListDc, PagedTagsListDc, PatchConfigurationDc, PatchResourceDc, PostGetAllParams, PutTagsPayload, ResourceParentDc, SetPermissionsPayload, SucceedCatalogConfigurationDc, ZipExtractRequestDc } from './data-contracts';
|
|
2
|
+
import { AccessControlListDc, CopyResourceResultDc, CopyResourcesPayload, CreateDirectoryDc, CreateFile1Payload, CreateFilePayload, CreateSymlinkDc, CustomResourceDc, DeleteResourceParams, ExtendedCatalogResourceDc, FailedCatalogConfigurationDc, GetFileParams, GetTagsParams, HeadFileParams, ListConfigurationsDc, ListResourcesDc, MoveResourceDc, PagedResourcesListDc, PagedTagsListDc, PatchConfigurationDc, PatchResourceDc, PostGetAllParams, PutTagsPayload, ResourceParentDc, SetPermissionsPayload, SucceedCatalogConfigurationDc, ZipExtractRequestDc } from './data-contracts';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Gateway API
|
|
5
5
|
* @version 1.5.1.0
|
|
@@ -258,9 +258,27 @@ export declare class CatalogService extends Service {
|
|
|
258
258
|
* @secure
|
|
259
259
|
* @response `200` OK
|
|
260
260
|
* @response `206` Partial Content
|
|
261
|
+
* @response `304` Not Modified
|
|
262
|
+
* @response `412` Precondition Failed
|
|
261
263
|
* @response `416` Range Not Satisfiable
|
|
262
264
|
*/
|
|
263
|
-
getFile(resourceId:
|
|
265
|
+
getFile({ resourceId, ...query }: GetFileParams): Promise<Blob>;
|
|
266
|
+
/**
|
|
267
|
+
* No description
|
|
268
|
+
*
|
|
269
|
+
* @tags Catalog
|
|
270
|
+
* @name HeadFile
|
|
271
|
+
* @operationId CatalogController_HeadFile
|
|
272
|
+
* @summary Report the headers a download would carry, without transferring anything.
|
|
273
|
+
* @request HEAD:/resources/file/{resourceId}
|
|
274
|
+
* @secure
|
|
275
|
+
* @response `200` OK
|
|
276
|
+
* @response `206` Partial Content
|
|
277
|
+
* @response `304` Not Modified
|
|
278
|
+
* @response `412` Precondition Failed
|
|
279
|
+
* @response `416` Range Not Satisfiable
|
|
280
|
+
*/
|
|
281
|
+
headFile({ resourceId, ...query }: HeadFileParams): any;
|
|
264
282
|
/**
|
|
265
283
|
* No description
|
|
266
284
|
*
|
|
@@ -1995,6 +1995,11 @@ export type MultiPolygonDc = GeometryDc & {
|
|
|
1995
1995
|
coordinates: PositionDc[][][];
|
|
1996
1996
|
type?: OgcGeometryType;
|
|
1997
1997
|
};
|
|
1998
|
+
export declare enum NameConflictBehavior {
|
|
1999
|
+
Fail = "Fail",
|
|
2000
|
+
Rewrite = "Rewrite",
|
|
2001
|
+
MakeUnique = "MakeUnique"
|
|
2002
|
+
}
|
|
1998
2003
|
/**
|
|
1999
2004
|
* Information about a namespace .
|
|
2000
2005
|
*/
|
|
@@ -2201,6 +2206,19 @@ export type PagedResourcesListDc = PagedListCatalogResourceDc & object;
|
|
|
2201
2206
|
* Paged resources list.
|
|
2202
2207
|
*/
|
|
2203
2208
|
export type PagedTagsListDc = PagedListString & object;
|
|
2209
|
+
/**
|
|
2210
|
+
* ParameterBindingDto.
|
|
2211
|
+
*/
|
|
2212
|
+
export interface ParameterBindingDto {
|
|
2213
|
+
/** Target. */
|
|
2214
|
+
target: string;
|
|
2215
|
+
/** Source. */
|
|
2216
|
+
source: string;
|
|
2217
|
+
/** Required. */
|
|
2218
|
+
required?: boolean;
|
|
2219
|
+
/** DefaultValue. */
|
|
2220
|
+
defaultValue?: any;
|
|
2221
|
+
}
|
|
2204
2222
|
/**
|
|
2205
2223
|
* Request for partial update of a resource configuration.
|
|
2206
2224
|
*/
|
|
@@ -3328,10 +3346,14 @@ export interface SubTaskSettingsDto {
|
|
|
3328
3346
|
order?: number;
|
|
3329
3347
|
/** Type. */
|
|
3330
3348
|
type?: string;
|
|
3349
|
+
/** Key. */
|
|
3350
|
+
key?: string;
|
|
3331
3351
|
/** Description. */
|
|
3332
3352
|
description?: string;
|
|
3333
3353
|
/** StartParameters. */
|
|
3334
3354
|
startParameters?: any;
|
|
3355
|
+
/** ParameterBindings. */
|
|
3356
|
+
parameterBindings?: ParameterBindingDto[];
|
|
3335
3357
|
}
|
|
3336
3358
|
/**
|
|
3337
3359
|
* SubTasksDto.
|
|
@@ -4380,6 +4402,7 @@ export interface CreateFile1Payload {
|
|
|
4380
4402
|
/**
|
|
4381
4403
|
* Rewrite flag
|
|
4382
4404
|
* If true - rewrite file if exists. If false - return error.
|
|
4405
|
+
* @deprecated
|
|
4383
4406
|
* @default false
|
|
4384
4407
|
*/
|
|
4385
4408
|
rewrite?: boolean;
|
|
@@ -4397,8 +4420,21 @@ export interface CreateFile1Payload {
|
|
|
4397
4420
|
icon?: string;
|
|
4398
4421
|
/** Check if resource is system. */
|
|
4399
4422
|
isSystem?: boolean;
|
|
4423
|
+
ConflictBehavior?: NameConflictBehavior;
|
|
4400
4424
|
}
|
|
4401
4425
|
export type SetPermissionsPayload = ResourceAclDc[];
|
|
4426
|
+
export interface GetFileParams {
|
|
4427
|
+
/** `true` to ask the browser to save the file instead of rendering it. */
|
|
4428
|
+
download?: boolean;
|
|
4429
|
+
/** Resource id. */
|
|
4430
|
+
resourceId: string;
|
|
4431
|
+
}
|
|
4432
|
+
export interface HeadFileParams {
|
|
4433
|
+
/** `true` to ask the browser to save the file instead of rendering it. */
|
|
4434
|
+
download?: boolean;
|
|
4435
|
+
/** Resource id. */
|
|
4436
|
+
resourceId: string;
|
|
4437
|
+
}
|
|
4402
4438
|
export type CopyResourcesPayload = CopyResourceDc[];
|
|
4403
4439
|
export interface GitVersionsParams {
|
|
4404
4440
|
/**
|