@evergis/api 3.0.60 → 3.0.63

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.
@@ -0,0 +1,75 @@
1
+ import { CreateResourcePayload, CreateStorageParams, GetResourceParams, GetUrlParams, RemoveObjectFromStorageParams } from './data-contracts';
2
+ import { Service } from './Service';
3
+ /**
4
+ * @title Spatial Processing Core API
5
+ * @version v0.6.0
6
+ * @baseUrl /sp
7
+ */
8
+ export declare class S3Service extends Service {
9
+ /**
10
+ * No description
11
+ *
12
+ * @tags S3
13
+ * @name GetResource
14
+ * @operationId S3Controller_GetResource
15
+ * @summary Get objects from s3 storage.
16
+ * @request GET:/storages/{storageName}/objects
17
+ * @response `200` Success
18
+ */
19
+ getResource({ storageName, ...query }: GetResourceParams): Promise<Blob>;
20
+ /**
21
+ * No description
22
+ *
23
+ * @tags S3
24
+ * @name CreateResource
25
+ * @operationId S3Controller_CreateResource
26
+ * @summary Create or update objects.
27
+ * @request POST:/storages/{storageName}/objects
28
+ * @response `200` Success
29
+ */
30
+ createResource(storageName: string, data: CreateResourcePayload): Promise<void>;
31
+ /**
32
+ * No description
33
+ *
34
+ * @tags S3
35
+ * @name RemoveObjectFromStorage
36
+ * @operationId S3Controller_RemoveObjectFromStorage
37
+ * @summary Delete objects from s3 storage.
38
+ * @request DELETE:/storages/{storageName}/objects
39
+ * @response `200` Success
40
+ */
41
+ removeObjectFromStorage({ storageName, ...query }: RemoveObjectFromStorageParams): Promise<void>;
42
+ /**
43
+ * No description
44
+ *
45
+ * @tags S3
46
+ * @name GetUrl
47
+ * @operationId S3Controller_GetUrl
48
+ * @summary Get url to object.
49
+ * @request GET:/storages/{storageName}/objects/url
50
+ * @response `200` Success
51
+ */
52
+ getUrl({ storageName, ...query }: GetUrlParams): Promise<void>;
53
+ /**
54
+ * No description
55
+ *
56
+ * @tags S3
57
+ * @name CreateStorage
58
+ * @operationId S3Controller_CreateStorage
59
+ * @summary Create a new storage.
60
+ * @request POST:/storages
61
+ * @response `200` Success
62
+ */
63
+ createStorage(query: CreateStorageParams): Promise<void>;
64
+ /**
65
+ * No description
66
+ *
67
+ * @tags S3
68
+ * @name DeleteStorage
69
+ * @operationId S3Controller_DeleteStorage
70
+ * @summary Delete storage.
71
+ * @request DELETE:/storages/{storageName}
72
+ * @response `200` Success
73
+ */
74
+ deleteStorage(storageName: string): Promise<void>;
75
+ }
@@ -1,4 +1,4 @@
1
- import { GetCapabilitiesParams1, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } from './data-contracts';
1
+ import { GetCapabilitiesParams1, GetCapabilitiesParams2, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -16,14 +16,14 @@ export declare class WmsServerService extends Service {
16
16
  * @request GET:/wms#REQUEST=GetCapabilities
17
17
  * @response `200` Success
18
18
  */
19
- getCapabilities(query: GetCapabilitiesParams1): Promise<void>;
19
+ getCapabilities(query: GetCapabilitiesParams2): Promise<void>;
20
20
  /**
21
21
  * No description
22
22
  *
23
23
  * @tags WmsServer
24
24
  * @name GetMap
25
25
  * @operationId WmsServerController_GetMap
26
- * @summary WMS GetCapabilities endpoint.
26
+ * @summary WMS GetMap endpoint.
27
27
  * @request GET:/wms#REQUEST=GetMap
28
28
  * @response `200` Success
29
29
  */
@@ -34,7 +34,7 @@ export declare class WmsServerService extends Service {
34
34
  * @tags WmsServer
35
35
  * @name GetFeatureInfo
36
36
  * @operationId WmsServerController_GetFeatureInfo
37
- * @summary WMS entrypoint.
37
+ * @summary WMS GetFeatureInfo entrypoint.
38
38
  * @request GET:/wms#REQUEST=GetFeatureInfo
39
39
  * @response `200` Success
40
40
  */
@@ -45,9 +45,20 @@ export declare class WmsServerService extends Service {
45
45
  * @tags WmsServer
46
46
  * @name GetLegendGraphic
47
47
  * @operationId WmsServerController_GetLegendGraphic
48
- * @summary WMS entrypoint.
48
+ * @summary WMS GetLegend entrypoint.
49
49
  * @request GET:/wms#REQUEST=GetLegendGraphic
50
50
  * @response `200` Success
51
51
  */
52
52
  getLegendGraphic(query: GetLegendGraphicParams): Promise<void>;
53
+ /**
54
+ * No description
55
+ *
56
+ * @tags WmsServer
57
+ * @name GetCapabilities1
58
+ * @operationId WmsServerController_GetCapabilities_1
59
+ * @summary WMS GetCapabilities endpoint.
60
+ * @request GET:/wms/{name}
61
+ * @response `200` Success
62
+ */
63
+ getCapabilities1({ name, ...query }: GetCapabilitiesParams1): Promise<void>;
53
64
  }
@@ -1585,6 +1585,8 @@ export declare enum FeatureType {
1585
1585
  export interface FileUploadResponse {
1586
1586
  /** Id of the tile in the session static storage. */
1587
1587
  fileId?: string;
1588
+ /** Url to file. */
1589
+ url?: string;
1588
1590
  }
1589
1591
  /**
1590
1592
  * Defines the brush for the fill.
@@ -1736,6 +1738,23 @@ export declare type GridElementDc = ModelElementDc & {
1736
1738
  color?: string;
1737
1739
  gridThickness?: number;
1738
1740
  };
1741
+ /**
1742
+ * Resource group.
1743
+
1744
+ my
1745
+
1746
+ role
1747
+
1748
+ public
1749
+
1750
+ all
1751
+ */
1752
+ export declare enum Group {
1753
+ My = "my",
1754
+ Role = "role",
1755
+ Public = "public",
1756
+ All = "all"
1757
+ }
1739
1758
  /**
1740
1759
  * Defines the brush for the hatch fill.
1741
1760
  */
@@ -2442,6 +2461,7 @@ export interface ListResponseUserInfoDc {
2442
2461
  */
2443
2462
  export declare type LocalTileServiceConfigurationDc = ServiceConfigurationBaseDc & {
2444
2463
  tileInfo?: TileInfoDc;
2464
+ tileCacheLimit?: number;
2445
2465
  };
2446
2466
  /**
2447
2467
  * Tile LOD structure.
@@ -3102,6 +3122,10 @@ export declare type RemoteTileServiceConfigurationDc = ServiceConfigurationBaseD
3102
3122
  RequestTimeout?: number;
3103
3123
  };
3104
3124
  export interface RemoteTileServiceInfo {
3125
+ /** Description of a service in the Spatial Processor. */
3126
+ layerInfo?: ServiceInfo;
3127
+ /** Tile info structure. */
3128
+ tileInfo?: TileInfo;
3105
3129
  /** SourceBatch server address. */
3106
3130
  sourceUrl?: string;
3107
3131
  /** Mask for getting tiles in default form www.{s}.tiles.com/{z}/{x}/{y}.png. */
@@ -3110,10 +3134,6 @@ export interface RemoteTileServiceInfo {
3110
3134
  sourceServers?: string[];
3111
3135
  /** Copyright text. */
3112
3136
  copyrightText?: string;
3113
- /** Description of a service in the Spatial Processor. */
3114
- layerInfo?: ServiceInfo;
3115
- /** Tile info structure. */
3116
- tileInfo?: TileInfo;
3117
3137
  }
3118
3138
  /**
3119
3139
  * Service info for a tile service.
@@ -5182,6 +5202,18 @@ export interface GetLayersListParams {
5182
5202
  * @format int32
5183
5203
  */
5184
5204
  limit?: number;
5205
+ /**
5206
+ * Resource acl group.
5207
+ *
5208
+ * my
5209
+ *
5210
+ * role
5211
+ *
5212
+ * public
5213
+ *
5214
+ * all
5215
+ */
5216
+ group?: Group;
5185
5217
  /** Strict list of names of the resources to get. */
5186
5218
  names?: string[];
5187
5219
  /** A list of {ServiceInfoDc} fields for sorting. If a field starts with {-} ordering is by descending. */
@@ -5190,8 +5222,6 @@ export interface GetLayersListParams {
5190
5222
  geometryFilter?: string[];
5191
5223
  /** Filters layers list by users favorite. */
5192
5224
  isFavorite?: boolean;
5193
- /** If set, returns for superuser layers for all users. */
5194
- forAllUsers?: boolean;
5195
5225
  }
5196
5226
  export declare type SetPermissionsBatchPayload = ResourceAclDc[];
5197
5227
  export interface DeleteResourcesParams {
@@ -5615,12 +5645,22 @@ export interface GetProjectsListParams {
5615
5645
  * @format int32
5616
5646
  */
5617
5647
  limit?: number;
5648
+ /**
5649
+ * Resource acl group.
5650
+ *
5651
+ * my
5652
+ *
5653
+ * role
5654
+ *
5655
+ * public
5656
+ *
5657
+ * all
5658
+ */
5659
+ group?: Group;
5618
5660
  /** A list of {ProjectInfoDc} fields for sorting. If a field starts with {-} ordering is by descending. */
5619
5661
  orderByFields?: string[];
5620
5662
  /** Filters projects list by users favorite. */
5621
5663
  isFavorite?: boolean;
5622
- /** If set, returns for superuser projects for all users. */
5623
- forAllUsers?: boolean;
5624
5664
  }
5625
5665
  export declare type SetPermissionsBatchBody = ResourceAclDc[];
5626
5666
  export interface SetPreviewBody {
@@ -5727,6 +5767,37 @@ export interface RemoveResource1Params {
5727
5767
  resourceType: ResourceTypeLink;
5728
5768
  }
5729
5769
  export declare type CopyResourcesPayload = CopyResourceDc[];
5770
+ export interface GetResourceParams {
5771
+ /** Object name. */
5772
+ name?: string;
5773
+ /** S3 storage name. */
5774
+ storageName: string;
5775
+ }
5776
+ export interface CreateResourcePayload {
5777
+ /** @format binary */
5778
+ file?: File;
5779
+ }
5780
+ export interface RemoveObjectFromStorageParams {
5781
+ /** Object name. */
5782
+ name?: string;
5783
+ /** S3 storage name. */
5784
+ storageName: string;
5785
+ }
5786
+ export interface GetUrlParams {
5787
+ /** Object name. */
5788
+ fileName?: string;
5789
+ /**
5790
+ * Expiry in seconds. Default expiry is set to 1 days.
5791
+ * @format int32
5792
+ */
5793
+ expires?: number;
5794
+ /** S3 storage name. */
5795
+ storageName: string;
5796
+ }
5797
+ export interface CreateStorageParams {
5798
+ /** S3 storage name. */
5799
+ storageName?: string;
5800
+ }
5730
5801
  export interface GetTaskListParams {
5731
5802
  /** Filter the tasks by their owner names. */
5732
5803
  owners?: string[];
@@ -5828,14 +5899,24 @@ export interface GetTableListParams {
5828
5899
  * @format int32
5829
5900
  */
5830
5901
  limit?: number;
5902
+ /**
5903
+ * Resource acl group.
5904
+ *
5905
+ * my
5906
+ *
5907
+ * role
5908
+ *
5909
+ * public
5910
+ *
5911
+ * all
5912
+ */
5913
+ group?: Group;
5831
5914
  /** Strict list of names of the resources to get. */
5832
5915
  names?: string[];
5833
5916
  /** A list of {TableListDc} fields for sorting. If a field starts with {-} ordering is by descending. */
5834
5917
  orderByFields?: string[];
5835
5918
  /** Filters tables list by users favorite. */
5836
5919
  isFavorite?: boolean;
5837
- /** If set, returns for superuser tables for all users. */
5838
- forAllUsers?: boolean;
5839
5920
  /** Filters layers by geometry types. */
5840
5921
  geometryFilter?: string[];
5841
5922
  }
@@ -6006,7 +6087,7 @@ export interface GetCapabilitiesParams {
6006
6087
  /** When omitted or not supported by server, server shall return service metadata document using the MIME type "text/xml". */
6007
6088
  AcceptFormats?: string[];
6008
6089
  }
6009
- export interface GetCapabilitiesParams1 {
6090
+ export interface GetCapabilitiesParams2 {
6010
6091
  /** Output format of service metadata. */
6011
6092
  Format?: string;
6012
6093
  /** Must be WMS. */
@@ -6209,6 +6290,18 @@ export interface GetLegendGraphicParams {
6209
6290
  /** Request version. */
6210
6291
  Version?: string;
6211
6292
  }
6293
+ export interface GetCapabilitiesParams1 {
6294
+ /** Output format of service metadata. */
6295
+ Format?: string;
6296
+ /** Must be WMS. */
6297
+ Service?: string;
6298
+ /** Request name. */
6299
+ Request?: string;
6300
+ /** Request version. */
6301
+ Version?: string;
6302
+ /** Layer or project name. */
6303
+ name: string;
6304
+ }
6212
6305
  export interface ProcessRequestParams {
6213
6306
  /** Layer name. */
6214
6307
  layer?: string;
@@ -5899,16 +5899,7 @@ let PortalSettings = /*#__PURE__*/function (_ClientSettingsServic) {
5899
5899
  _createClass(PortalSettings, [{
5900
5900
  key: "fetchPortalSettings",
5901
5901
  value: async function fetchPortalSettings(query) {
5902
- var _config$settings, _config$settings2, _config$settings3;
5903
-
5904
- const config = JSON.parse(await this.getConfiguration(query));
5905
- this.config = _extends({}, config || {}, {
5906
- settings: {
5907
- withPortal: (config == null ? void 0 : (_config$settings = config.settings) == null ? void 0 : _config$settings.withPortal) === undefined || config.settings.withPortal,
5908
- allowRegistration: (config == null ? void 0 : (_config$settings2 = config.settings) == null ? void 0 : _config$settings2.allowRegistration) === undefined || config.settings.allowRegistration,
5909
- allowSNS: (config == null ? void 0 : (_config$settings3 = config.settings) == null ? void 0 : _config$settings3.allowSNS) === undefined || config.settings.allowSNS
5910
- }
5911
- });
5902
+ this.config = JSON.parse(await this.getConfiguration(query));
5912
5903
  return this.config;
5913
5904
  }
5914
5905
  }]);
@@ -6948,6 +6939,13 @@ function isFeatureLayer(layer) {
6948
6939
  GeometryType["Multipoint"] = "multipoint";
6949
6940
  })(exports.GeometryType || (exports.GeometryType = {}));
6950
6941
 
6942
+ (function (Group) {
6943
+ Group["My"] = "my";
6944
+ Group["Role"] = "role";
6945
+ Group["Public"] = "public";
6946
+ Group["All"] = "all";
6947
+ })(exports.Group || (exports.Group = {}));
6948
+
6951
6949
  (function (HttpStatusCode) {
6952
6950
  HttpStatusCode["Continue"] = "Continue";
6953
6951
  HttpStatusCode["SwitchingProtocols"] = "SwitchingProtocols";