@evergis/api 5.0.47 → 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/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: string): Promise<Blob>;
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
  /**