@evergis/api 5.0.34 → 5.0.35

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.esm.js CHANGED
@@ -1183,6 +1183,103 @@ class BulkOperationsService extends Service {
1183
1183
  class BulkOperations extends BulkOperationsService {
1184
1184
  }
1185
1185
 
1186
+ /* eslint-disable */
1187
+ /* tslint:disable */
1188
+ /*
1189
+ * ---------------------------------------------------------------
1190
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1191
+ * ## ##
1192
+ * ## AUTHOR: acacode ##
1193
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1194
+ * ---------------------------------------------------------------
1195
+ */
1196
+ // @ts-nocheck
1197
+ /**
1198
+ * @title Spatial Processing Gateway API
1199
+ * @version 1.5.1.0
1200
+ * @baseUrl /sp
1201
+ */
1202
+ class CatalogShareService extends Service {
1203
+ /**
1204
+ * No description
1205
+ *
1206
+ * @tags CatalogShare
1207
+ * @name ListInvitations
1208
+ * @operationId CatalogShareController_ListInvitations
1209
+ * @summary Returns the current user's invitations filtered by the requested statuses
1210
+ (defaults to `Pending` when none are supplied).
1211
+ * @request POST:/resources/share-invitations/list
1212
+ * @secure
1213
+ * @response `200` OK
1214
+ */
1215
+ listInvitations(data) {
1216
+ return this.http.post(`/resources/share-invitations/list`, data).json();
1217
+ }
1218
+ /**
1219
+ * No description
1220
+ *
1221
+ * @tags CatalogShare
1222
+ * @name ProposeInvitation
1223
+ * @operationId CatalogShareController_ProposeInvitation
1224
+ * @summary Proposes a share invitation for a resource to another user. No access is
1225
+ granted and no alias is created until the grantee accepts.
1226
+ * @request POST:/resources/share-invitations/propose
1227
+ * @secure
1228
+ * @response `200` OK
1229
+ */
1230
+ proposeInvitation(data) {
1231
+ return this.http.post(`/resources/share-invitations/propose`, data).text();
1232
+ }
1233
+ /**
1234
+ * No description
1235
+ *
1236
+ * @tags CatalogShare
1237
+ * @name AcceptInvitation
1238
+ * @operationId CatalogShareController_AcceptInvitation
1239
+ * @summary Accepts a pending invitation addressed to the current user: issues the grant
1240
+ and creates the alias in the recipient's tree.
1241
+ * @request POST:/resources/share-invitations/accept
1242
+ * @secure
1243
+ * @response `200` OK
1244
+ */
1245
+ acceptInvitation(data) {
1246
+ return this.http.post(`/resources/share-invitations/accept`, data).then(() => { });
1247
+ }
1248
+ /**
1249
+ * No description
1250
+ *
1251
+ * @tags CatalogShare
1252
+ * @name DeclineInvitation
1253
+ * @operationId CatalogShareController_DeclineInvitation
1254
+ * @summary Declines a pending invitation addressed to the current user. Leaves no
1255
+ grants or nodes behind.
1256
+ * @request POST:/resources/share-invitations/decline
1257
+ * @secure
1258
+ * @response `200` OK
1259
+ */
1260
+ declineInvitation(data) {
1261
+ return this.http.post(`/resources/share-invitations/decline`, data).then(() => { });
1262
+ }
1263
+ /**
1264
+ * No description
1265
+ *
1266
+ * @tags CatalogShare
1267
+ * @name RevokeInvitation
1268
+ * @operationId CatalogShareController_RevokeInvitation
1269
+ * @summary Revokes an invitation created by the current user. If it was already accepted,
1270
+ the grant is removed and the created alias is deleted.
1271
+ * @request POST:/resources/share-invitations/revoke
1272
+ * @secure
1273
+ * @response `200` OK
1274
+ */
1275
+ revokeInvitation(data) {
1276
+ return this.http.post(`/resources/share-invitations/revoke`, data).then(() => { });
1277
+ }
1278
+ }
1279
+
1280
+ class CatalogShare extends CatalogShareService {
1281
+ }
1282
+
1186
1283
  /* eslint-disable */
1187
1284
  /* tslint:disable */
1188
1285
  /*
@@ -1701,6 +1798,22 @@ class CatalogService extends Service {
1701
1798
  deleteResource({ resourceId, ...query }) {
1702
1799
  return this.http.delete(`/resources/${resourceId}`, null, query).then(() => { });
1703
1800
  }
1801
+ /**
1802
+ * No description
1803
+ *
1804
+ * @tags Catalog
1805
+ * @name PostListConfigurations
1806
+ * @operationId CatalogController_PostListConfigurations
1807
+ * @summary Get configurations for resources.
1808
+ * @request POST:/resources/configurations
1809
+ * @secure
1810
+ * @response `200` OK
1811
+ */
1812
+ postListConfigurations(data) {
1813
+ return this.http
1814
+ .post(`/resources/configurations`, data)
1815
+ .json();
1816
+ }
1704
1817
  /**
1705
1818
  * No description
1706
1819
  *
@@ -1799,20 +1912,6 @@ class CatalogService extends Service {
1799
1912
  setPermissions1(resourceId, data) {
1800
1913
  return this.http.put(`/resources/${resourceId}/permissions`, data).then(() => { });
1801
1914
  }
1802
- /**
1803
- * No description
1804
- *
1805
- * @tags Catalog
1806
- * @name GetPermissionsV2
1807
- * @operationId CatalogController_GetPermissionsV2
1808
- * @summary Set permissions to the resource.
1809
- * @request GET:/resources/permissions/{resourceId}
1810
- * @secure
1811
- * @response `200` OK
1812
- */
1813
- getPermissionsV2(resourceId) {
1814
- return this.http.get(`/resources/permissions/${resourceId}`).json();
1815
- }
1816
1915
  /**
1817
1916
  * No description
1818
1917
  *
@@ -1827,6 +1926,21 @@ class CatalogService extends Service {
1827
1926
  setPermissions(data) {
1828
1927
  return this.http.put(`/resources/permissions`, data).then(() => { });
1829
1928
  }
1929
+ /**
1930
+ * No description
1931
+ *
1932
+ * @tags Catalog
1933
+ * @name BreakPermissionInheritance
1934
+ * @operationId CatalogController_BreakPermissionInheritance
1935
+ * @summary Breaks ACL inheritance for the resource: it stops inheriting permissions
1936
+ from its parent and keeps its own explicit access control list.
1937
+ * @request POST:/resources/permissions/break-inheritance/{resourceId}
1938
+ * @secure
1939
+ * @response `200` OK
1940
+ */
1941
+ breakPermissionInheritance(resourceId) {
1942
+ return this.http.post(`/resources/permissions/break-inheritance/${resourceId}`, null).then(() => { });
1943
+ }
1830
1944
  /**
1831
1945
  * No description
1832
1946
  *
@@ -2042,6 +2156,42 @@ class Geocode extends GeocodeService {
2042
2156
  }
2043
2157
  }
2044
2158
 
2159
+ /* eslint-disable */
2160
+ /* tslint:disable */
2161
+ /*
2162
+ * ---------------------------------------------------------------
2163
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2164
+ * ## ##
2165
+ * ## AUTHOR: acacode ##
2166
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2167
+ * ---------------------------------------------------------------
2168
+ */
2169
+ // @ts-nocheck
2170
+ /**
2171
+ * @title Spatial Processing Gateway API
2172
+ * @version 1.5.1.0
2173
+ * @baseUrl /sp
2174
+ */
2175
+ class HistoryService extends Service {
2176
+ /**
2177
+ * No description
2178
+ *
2179
+ * @tags History
2180
+ * @name Initialize
2181
+ * @operationId HistoryController_Initialize
2182
+ * @summary Initialize history module on user namespace schema.
2183
+ * @request POST:/history/initialize
2184
+ * @secure
2185
+ * @response `200` OK
2186
+ */
2187
+ initialize(query) {
2188
+ return this.http.post(`/history/initialize`, null, query).then(() => { });
2189
+ }
2190
+ }
2191
+
2192
+ class History extends HistoryService {
2193
+ }
2194
+
2045
2195
  /* eslint-disable */
2046
2196
  /* tslint:disable */
2047
2197
  /*
@@ -2766,6 +2916,8 @@ class Api extends EventEmitter {
2766
2916
  queryToken;
2767
2917
  dataSource;
2768
2918
  remoteTaskManager;
2919
+ catalogShare;
2920
+ history;
2769
2921
  http;
2770
2922
  urlPath;
2771
2923
  refreshingToken = false;
@@ -2862,6 +3014,8 @@ class Api extends EventEmitter {
2862
3014
  this.queryToken = new QueryTokenAccessService(this.http);
2863
3015
  this.dataSource = new DataSourceService(this.http);
2864
3016
  this.remoteTaskManager = new RemoteTaskManager(this.http);
3017
+ this.catalogShare = new CatalogShare(this.http);
3018
+ this.history = new History(this.http);
2865
3019
  this.names = new Names({
2866
3020
  account: this.account,
2867
3021
  });
@@ -3023,6 +3177,8 @@ var AttributeType;
3023
3177
  AttributeType["Json"] = "Json";
3024
3178
  AttributeType["MultiPolygon"] = "MultiPolygon";
3025
3179
  AttributeType["GeometryCollection"] = "GeometryCollection";
3180
+ AttributeType["Geometry"] = "Geometry";
3181
+ AttributeType["PrimaryKey"] = "PrimaryKey";
3026
3182
  })(AttributeType || (AttributeType = {}));
3027
3183
  var AuthorizationGrant;
3028
3184
  (function (AuthorizationGrant) {
@@ -3154,6 +3310,9 @@ var PolicyType;
3154
3310
  PolicyType["MaxObjectsToExport"] = "MaxObjectsToExport";
3155
3311
  PolicyType["MaxUploadContentSize"] = "MaxUploadContentSize";
3156
3312
  PolicyType["MaxEqlQueryParametersValues"] = "MaxEqlQueryParametersValues";
3313
+ PolicyType["MaxPythonSandboxMemorySize"] = "MaxPythonSandboxMemorySize";
3314
+ PolicyType["MaxPythonSandboxCpu"] = "MaxPythonSandboxCpu";
3315
+ PolicyType["MaxPythonSandboxCount"] = "MaxPythonSandboxCount";
3157
3316
  })(PolicyType || (PolicyType = {}));
3158
3317
  var RemoteTaskStatus;
3159
3318
  (function (RemoteTaskStatus) {
@@ -3209,6 +3368,14 @@ var ResponseType;
3209
3368
  ResponseType["Code"] = "code";
3210
3369
  ResponseType["Token"] = "token";
3211
3370
  })(ResponseType || (ResponseType = {}));
3371
+ var ShareInvitationStatus;
3372
+ (function (ShareInvitationStatus) {
3373
+ ShareInvitationStatus["Unspecified"] = "Unspecified";
3374
+ ShareInvitationStatus["Pending"] = "Pending";
3375
+ ShareInvitationStatus["Accepted"] = "Accepted";
3376
+ ShareInvitationStatus["Declined"] = "Declined";
3377
+ ShareInvitationStatus["Revoked"] = "Revoked";
3378
+ })(ShareInvitationStatus || (ShareInvitationStatus = {}));
3212
3379
  var SimplifyType;
3213
3380
  (function (SimplifyType) {
3214
3381
  SimplifyType["Basic"] = "Basic";
@@ -4803,6 +4970,62 @@ class TablesService extends Service {
4803
4970
  unmapTable(name) {
4804
4971
  return this.http.delete(`/tables/map-table/${name}`, null).then(() => { });
4805
4972
  }
4973
+ /**
4974
+ * No description
4975
+ *
4976
+ * @tags Tables
4977
+ * @name Enable
4978
+ * @operationId TablesController_EnableAsync
4979
+ * @summary Enable table history.
4980
+ * @request POST:/tables/{tableName}/history/enable
4981
+ * @secure
4982
+ * @response `200` OK
4983
+ */
4984
+ enable({ tableName, ...query }) {
4985
+ return this.http.post(`/tables/${tableName}/history/enable`, null, query).then(() => { });
4986
+ }
4987
+ /**
4988
+ * No description
4989
+ *
4990
+ * @tags Tables
4991
+ * @name Disable
4992
+ * @operationId TablesController_DisableAsync
4993
+ * @summary Disable table history.
4994
+ * @request DELETE:/tables/{tableName}/history/disable
4995
+ * @secure
4996
+ * @response `200` OK
4997
+ */
4998
+ disable({ tableName, ...query }) {
4999
+ return this.http.delete(`/tables/${tableName}/history/disable`, null, query).then(() => { });
5000
+ }
5001
+ /**
5002
+ * No description
5003
+ *
5004
+ * @tags Tables
5005
+ * @name Clean
5006
+ * @operationId TablesController_CleanAsync
5007
+ * @summary Clean table history.
5008
+ * @request DELETE:/tables/{tableName}/history/clean
5009
+ * @secure
5010
+ * @response `200` OK
5011
+ */
5012
+ clean({ tableName, ...query }) {
5013
+ return this.http.delete(`/tables/${tableName}/history/clean`, null, query).then(() => { });
5014
+ }
5015
+ /**
5016
+ * No description
5017
+ *
5018
+ * @tags Tables
5019
+ * @name Get
5020
+ * @operationId TablesController_GetAsync
5021
+ * @summary Get history data.
5022
+ * @request POST:/tables/{tableName}/history
5023
+ * @secure
5024
+ * @response `200` OK
5025
+ */
5026
+ get(tableName, data) {
5027
+ return this.http.post(`/tables/${tableName}/history`, data).json();
5028
+ }
4806
5029
  /**
4807
5030
  * No description
4808
5031
  *
@@ -4948,5 +5171,5 @@ class VectorTileService extends Service {
4948
5171
  class VectorTiles extends VectorTileService {
4949
5172
  }
4950
5173
 
4951
- export { AccessMode, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeConfigurationType, AttributeIconType, AttributeSelectorType, AttributeType, AuthorizationGrant, BulkOperations, CatalogResourceType, ClassificationType, ClassifyAttributeType, ClientSettings, ConflictResolutionStrategy, DataSourceConnectionType, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, External, Feedback, FileUpload, Filters, GEOCODE_PROVIDER, Geocode, HttpClient, Import, LayerServiceType, Layers, Names, OgcGeometryType, PbfSchema, Permissions, PolicyType, PortalSettings, Projects, RemoteTaskManager, RemoteTaskStatus, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, 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 };
5174
+ export { AccessMode, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeConfigurationType, AttributeIconType, AttributeSelectorType, AttributeType, AuthorizationGrant, BulkOperations, CatalogResourceType, CatalogShare, ClassificationType, ClassifyAttributeType, ClientSettings, ConflictResolutionStrategy, DataSourceConnectionType, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, External, Feedback, FileUpload, Filters, GEOCODE_PROVIDER, Geocode, History, HttpClient, Import, LayerServiceType, Layers, Names, OgcGeometryType, PbfSchema, Permissions, PolicyType, PortalSettings, Projects, RemoteTaskManager, RemoteTaskStatus, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, Resources, ResponseType, STORAGE_REFRESH_TOKEN_KEY, STORAGE_TOKEN_KEY, Security, ShareInvitationStatus, 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 };
4952
5175
  //# sourceMappingURL=api.esm.js.map