@evergis/api 4.1.47 → 4.1.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.esm.js CHANGED
@@ -972,7 +972,7 @@ class ExternalProvidersService extends Service {
972
972
  * @response `200` OK
973
973
  */
974
974
  loginCallback() {
975
- return this.http.get(`/account/external/login/callback`).then(() => { });
975
+ return this.http.get(`/account/external/login/callback`).json();
976
976
  }
977
977
  /**
978
978
  * No description
@@ -1535,8 +1535,8 @@ class FeedbackService extends Service {
1535
1535
  * @secure
1536
1536
  * @response `200` OK
1537
1537
  */
1538
- increaseResourcesLimit(query) {
1539
- return this.http.post(`/feedback/limits`, null, query).json();
1538
+ increaseResourcesLimit(data) {
1539
+ return this.http.post(`/feedback/limits`, data).json();
1540
1540
  }
1541
1541
  /**
1542
1542
  * No description
@@ -1550,7 +1550,7 @@ class FeedbackService extends Service {
1550
1550
  * @response `200` OK
1551
1551
  */
1552
1552
  requestFullAccess() {
1553
- return this.http.post(`/feedback/fullAccess`, null).then(() => { });
1553
+ return this.http.post(`/feedback/fullAccess`, null).json();
1554
1554
  }
1555
1555
  /**
1556
1556
  * No description
@@ -2744,9 +2744,9 @@ var UrlPath;
2744
2744
  UrlPath["Presentation"] = "/presentation";
2745
2745
  UrlPath["Portal"] = "/portal";
2746
2746
  })(UrlPath || (UrlPath = {}));
2747
- const apiEventsByResponseStatus = {
2748
- 401: ApiEvent.Unauthorized,
2749
- };
2747
+ /* const apiEventsByResponseStatus: Record<number, ApiEvent> = {
2748
+ 401: ApiEvent.Unauthorized,
2749
+ }; */
2750
2750
  const SHARED_PORT = "8082";
2751
2751
  const URL_PATHS = Object.values(UrlPath);
2752
2752
  const DEFAULT_URL_PATH = URL_PATHS[0];
@@ -2838,16 +2838,18 @@ class Api extends EventEmitter {
2838
2838
  }
2839
2839
  },
2840
2840
  ],
2841
- afterResponse: [
2842
- (request, options, response) => {
2843
- const apiEvent = apiEventsByResponseStatus[response?.status];
2844
- if (apiEvent) {
2845
- this.emit(apiEvent, errorHandler(new HTTPError(response, request, options)));
2846
- }
2847
- return response;
2848
- },
2849
- ...(hooks?.afterResponse || []),
2850
- ],
2841
+ /* afterResponse: [
2842
+ (request, options, response) => {
2843
+ const apiEvent = apiEventsByResponseStatus[response?.status];
2844
+
2845
+ if (apiEvent) {
2846
+ this.emit(apiEvent, errorHandler(new HTTPError(response, request, options)));
2847
+ }
2848
+
2849
+ return response;
2850
+ },
2851
+ ...(hooks?.afterResponse || []),
2852
+ ], */
2851
2853
  },
2852
2854
  });
2853
2855
  this.url = url;
@@ -3294,6 +3296,20 @@ class LayersService extends Service {
3294
3296
  updateQueryLayerService(name, data) {
3295
3297
  return this.http.patch(`/layers/${name}`, data, { type: "QueryLayerService" }).json();
3296
3298
  }
3299
+ /**
3300
+ * No description
3301
+ *
3302
+ * @tags Layers
3303
+ * @name PatchQueryLayerService
3304
+ * @operationId LayersController_PatchQueryLayerService
3305
+ * @summary Patch EQL-based Query Layer Service.
3306
+ * @request PATCH:/layers/{name}/v2
3307
+ * @secure
3308
+ * @response `200` OK
3309
+ */
3310
+ patchQueryLayerService(name, data) {
3311
+ return this.http.patch(`/layers/${name}/v2`, data).json();
3312
+ }
3297
3313
  /**
3298
3314
  * No description
3299
3315
  *
@@ -4101,62 +4117,6 @@ class ProjectsService extends Service {
4101
4117
  getProjectLayersExtendedInfo(name) {
4102
4118
  return this.http.get(`/projects/${name}/extended-info`).json();
4103
4119
  }
4104
- /**
4105
- * No description
4106
- *
4107
- * @tags Projects
4108
- * @name PatchProjectConfiguration
4109
- * @operationId ProjectsController_PatchProjectConfiguration
4110
- * @summary Applies partial updates using JSON Patch.
4111
- * @request PATCH:/projects/{name}/devConfiguration
4112
- * @secure
4113
- * @response `200` OK
4114
- */
4115
- patchProjectConfiguration(name, data) {
4116
- return this.http.patch(`/projects/${name}/devConfiguration`, data).json();
4117
- }
4118
- /**
4119
- * No description
4120
- *
4121
- * @tags Projects
4122
- * @name PutProjectConfiguration
4123
- * @operationId ProjectsController_PutProjectConfiguration
4124
- * @summary Creates or updates configuration (full replacement).
4125
- * @request PUT:/projects/{name}/devConfiguration
4126
- * @secure
4127
- * @response `200` OK
4128
- */
4129
- putProjectConfiguration(name, data) {
4130
- return this.http.put(`/projects/${name}/devConfiguration`, data).json();
4131
- }
4132
- /**
4133
- * No description
4134
- *
4135
- * @tags Projects
4136
- * @name GetProjectConfiguration
4137
- * @operationId ProjectsController_GetProjectConfiguration
4138
- * @summary Gets configuration for a resource and type.
4139
- * @request GET:/projects/{name}/devConfiguration
4140
- * @secure
4141
- * @response `200` OK
4142
- */
4143
- getProjectConfiguration(name) {
4144
- return this.http.get(`/projects/${name}/devConfiguration`).json();
4145
- }
4146
- /**
4147
- * No description
4148
- *
4149
- * @tags Projects
4150
- * @name DeleteProjectConfiguration
4151
- * @operationId ProjectsController_DeleteProjectConfiguration
4152
- * @summary Creates or updates configuration (full replacement).
4153
- * @request DELETE:/projects/{name}/devConfiguration
4154
- * @secure
4155
- * @response `200` OK
4156
- */
4157
- deleteProjectConfiguration(name) {
4158
- return this.http.delete(`/projects/${name}/devConfiguration`, null).json();
4159
- }
4160
4120
  /**
4161
4121
  * No description
4162
4122
  *
@@ -5547,18 +5507,6 @@ var ConfigurationErrorEnum;
5547
5507
  /**
5548
5508
  *
5549
5509
 
5550
- Default
5551
-
5552
- DevConfiguration
5553
- */
5554
- var ConfigurationType;
5555
- (function (ConfigurationType) {
5556
- ConfigurationType["Default"] = "Default";
5557
- ConfigurationType["DevConfiguration"] = "DevConfiguration";
5558
- })(ConfigurationType || (ConfigurationType = {}));
5559
- /**
5560
- *
5561
-
5562
5510
  Skip
5563
5511
 
5564
5512
  Overwrite
@@ -5779,21 +5727,6 @@ var PolicyType;
5779
5727
  PolicyType["MaxEqlQueryParametersValues"] = "MaxEqlQueryParametersValues";
5780
5728
  })(PolicyType || (PolicyType = {}));
5781
5729
  /**
5782
- * Stream quality.
5783
-
5784
- Low
5785
-
5786
- Medium
5787
-
5788
- High
5789
- */
5790
- var Quality;
5791
- (function (Quality) {
5792
- Quality["Low"] = "Low";
5793
- Quality["Medium"] = "Medium";
5794
- Quality["High"] = "High";
5795
- })(Quality || (Quality = {}));
5796
- /**
5797
5730
  *
5798
5731
 
5799
5732
  Init
@@ -6061,5 +5994,5 @@ var WorkerSettingsFieldType;
6061
5994
  WorkerSettingsFieldType["AttributeArray"] = "AttributeArray";
6062
5995
  })(WorkerSettingsFieldType || (WorkerSettingsFieldType = {}));
6063
5996
 
6064
- export { AccessMode, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeIconType, AttributeSelectorType, AttributeType, AuthorizationGrant, BulkOperations, CatalogResourceType, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigurationErrorEnum, ConfigurationType, ConflictResolutionStrategy, ConnectionStatus, DataSourceConnectionType, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, ErrorType, External, Feedback, FileUpload, Filters, GEOCODE_PROVIDER, Geocode, GeometryType, HttpClient, Import, Layers, Names, Notification, NotificationEvent, PbfSchema, Permissions, PolicyType, PortalSettings, Projects, Quality, RemoteTaskManager, RemoteTaskStatus, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, ResourceTypeLink, Resources, ResponseType, STORAGE_REFRESH_TOKEN_KEY, STORAGE_TOKEN_KEY, Security, SimplifyType, Statistic, StringSubType, Tables, TaskResourceSubType, Tools, UrlPath, VectorTiles, WorkerMethodType, WorkerSettingsFieldType, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isHTTPError, isHandledError, isProjectContentItems, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique, useToken };
5997
+ export { AccessMode, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeIconType, AttributeSelectorType, AttributeType, AuthorizationGrant, BulkOperations, CatalogResourceType, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigurationErrorEnum, ConflictResolutionStrategy, ConnectionStatus, DataSourceConnectionType, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, ErrorType, External, Feedback, FileUpload, Filters, GEOCODE_PROVIDER, Geocode, GeometryType, HttpClient, Import, Layers, Names, Notification, NotificationEvent, PbfSchema, Permissions, PolicyType, PortalSettings, Projects, RemoteTaskManager, RemoteTaskStatus, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, ResourceTypeLink, Resources, ResponseType, STORAGE_REFRESH_TOKEN_KEY, STORAGE_TOKEN_KEY, Security, SimplifyType, Statistic, StringSubType, Tables, TaskResourceSubType, Tools, UrlPath, VectorTiles, WorkerMethodType, WorkerSettingsFieldType, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isHTTPError, isHandledError, isProjectContentItems, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique, useToken };
6065
5998
  //# sourceMappingURL=api.esm.js.map