@kuzntsv/uikit 1.0.67 → 1.0.68

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.
@@ -3129,6 +3129,7 @@ function cleanFilterParams(filters) {
3129
3129
  return cleanParams;
3130
3130
  }
3131
3131
  var BaseSignalServiceClass = class BaseSignalServiceClass {
3132
+ schemaDTO;
3132
3133
  countRoute = "count";
3133
3134
  pageIndexParam = "page";
3134
3135
  pageSizeParam = "limit";
@@ -3242,10 +3243,12 @@ var BaseSignalServiceClass = class BaseSignalServiceClass {
3242
3243
  return queryParams;
3243
3244
  }
3244
3245
  newObject(entity) {
3245
- return this.http.post(this.baseRoute, entity, this.getHttpContext());
3246
+ const payload = this.schemaDTO ? this.schemaDTO.parse(entity) : entity;
3247
+ return this.http.post(this.baseRoute, payload, this.getHttpContext());
3246
3248
  }
3247
3249
  editObject(entity) {
3248
- return this.http.put(this.baseRoute + entity.id, entity, this.getHttpContext());
3250
+ const payload = this.schemaDTO ? this.schemaDTO.parse(entity) : entity;
3251
+ return this.http.put(this.baseRoute + entity.id, payload, this.getHttpContext());
3249
3252
  }
3250
3253
  deleteObject(entity) {
3251
3254
  return this.http.delete(this.baseRoute + entity.id, this.getHttpContext()).pipe(tap(() => this.refresh()));