@evergis/api 5.0.34 → 5.0.36

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