@evergis/api 5.0.50 → 5.0.52

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,5 +1,5 @@
1
1
  import { Service } from './Service';
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';
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, ResourceLocationNodeDc, ResourceParentDc, SetPermissionsPayload, SucceedCatalogConfigurationDc, ZipExtractRequestDc } from './data-contracts';
3
3
  /**
4
4
  * @title Spatial Processing Gateway API
5
5
  * @version 1.5.1.0
@@ -102,6 +102,19 @@ export declare class CatalogService extends Service {
102
102
  * @response `200` OK
103
103
  */
104
104
  deleteResource({ resourceId, ...query }: DeleteResourceParams): Promise<void>;
105
+ /**
106
+ * No description
107
+ *
108
+ * @tags Catalog
109
+ * @name ResourceLocation
110
+ * @operationId CatalogController_ResourceLocation
111
+ * @summary Locate a resource in the tree: the chain of nodes from the root down to the resource itself,
112
+ each with its position among its siblings.
113
+ * @request GET:/resources/location/{resourceId}
114
+ * @secure
115
+ * @response `200` OK
116
+ */
117
+ resourceLocation(resourceId: string): Promise<ResourceLocationNodeDc[]>;
105
118
  /**
106
119
  * No description
107
120
  *
@@ -1,5 +1,5 @@
1
1
  import { Service } from './Service';
2
- import { SrInfo } from './data-contracts';
2
+ import { GetWktRepresentationParams, SrInfo } from './data-contracts';
3
3
  /**
4
4
  * @title Spatial Processing Gateway API
5
5
  * @version 1.5.1.0
@@ -41,5 +41,5 @@ export declare class SpatialReferencesService extends Service {
41
41
  * @secure
42
42
  * @response `200` OK
43
43
  */
44
- getWktRepresentation(name: string): Promise<string>;
44
+ getWktRepresentation({ name, ...query }: GetWktRepresentationParams): Promise<string>;
45
45
  }
@@ -759,7 +759,10 @@ export interface CreateDirectoryDc {
759
759
  isSystem?: boolean;
760
760
  /** Resource icon. */
761
761
  icon?: string;
762
- /** Rewrite if exists. */
762
+ /**
763
+ * Rewrite if exists.
764
+ * @deprecated
765
+ */
763
766
  rewrite?: boolean;
764
767
  }
765
768
  /**
@@ -2924,6 +2927,18 @@ export interface ResourceInfoDc {
2924
2927
  */
2925
2928
  deletedAt?: string;
2926
2929
  }
2930
+ /**
2931
+ * A single node of the resource location chain.
2932
+ */
2933
+ export interface ResourceLocationNodeDc {
2934
+ /** Resource id. */
2935
+ resourceId?: string;
2936
+ /**
2937
+ * Zero based position of the resource among the siblings visible to the caller, ordered by name ascending.
2938
+ * @format int32
2939
+ */
2940
+ offset?: number;
2941
+ }
2927
2942
  /**
2928
2943
  * Resource parent.
2929
2944
  */
@@ -3691,6 +3706,8 @@ resource updates.
3691
3706
  export interface TaskResourceUpdateDto {
3692
3707
  /** Configurations. */
3693
3708
  configuration?: any;
3709
+ /** Import method. */
3710
+ importMethod?: string;
3694
3711
  /** User ui configuration. */
3695
3712
  uiConfiguration?: any;
3696
3713
  }
@@ -4966,6 +4983,8 @@ export interface GetProjectsInfoParams {
4966
4983
  export interface GetAllScriptMethodsParams {
4967
4984
  /** ResourceId. */
4968
4985
  resourceId?: string;
4986
+ /** Import method. */
4987
+ importMethod?: string;
4969
4988
  }
4970
4989
  export type RunScriptPayload = any;
4971
4990
  export interface RunScriptParams {
@@ -5073,6 +5092,12 @@ export interface RemovePolicyParams {
5073
5092
  /** Use role the policy is applied to. */
5074
5093
  role?: string;
5075
5094
  }
5095
+ export interface GetWktRepresentationParams {
5096
+ /** Pretty print WKT. */
5097
+ prettyPrint?: boolean;
5098
+ /** Spatial reference name. */
5099
+ name: string;
5100
+ }
5076
5101
  export interface RemoveSymbolCategoryParams {
5077
5102
  /**
5078
5103
  * Remove symbols in category.
package/dist/api.esm.js CHANGED
@@ -1946,6 +1946,21 @@ class CatalogService extends Service {
1946
1946
  deleteResource({ resourceId, ...query }) {
1947
1947
  return this.http.delete(`/resources/${resourceId}`, null, query).then(() => { });
1948
1948
  }
1949
+ /**
1950
+ * No description
1951
+ *
1952
+ * @tags Catalog
1953
+ * @name ResourceLocation
1954
+ * @operationId CatalogController_ResourceLocation
1955
+ * @summary Locate a resource in the tree: the chain of nodes from the root down to the resource itself,
1956
+ each with its position among its siblings.
1957
+ * @request GET:/resources/location/{resourceId}
1958
+ * @secure
1959
+ * @response `200` OK
1960
+ */
1961
+ resourceLocation(resourceId) {
1962
+ return this.http.get(`/resources/location/${resourceId}`).json();
1963
+ }
1949
1964
  /**
1950
1965
  * No description
1951
1966
  *
@@ -4810,8 +4825,8 @@ class SpatialReferencesService extends Service {
4810
4825
  * @secure
4811
4826
  * @response `200` OK
4812
4827
  */
4813
- getWktRepresentation(name) {
4814
- return this.http.get(`/srs/${name}/wkt`).text();
4828
+ getWktRepresentation({ name, ...query }) {
4829
+ return this.http.get(`/srs/${name}/wkt`, query).text();
4815
4830
  }
4816
4831
  }
4817
4832