@ngdux/data-model-common 5.1.0 → 5.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngdux/data-model-common",
3
- "version": "5.1.0",
3
+ "version": "5.2.1",
4
4
  "peerDependencies": {
5
5
  "@angular/forms": "",
6
6
  "rxjs": ""
@@ -59,7 +59,7 @@ interface FieldErrors {
59
59
  interface FormService<DTO, CREATE_DTO = DTO> {
60
60
  loadResource(id: string): Observable<DTO>;
61
61
  saveResource?(resource: DTO): Observable<DTO>;
62
- deleteResource?(id: string): Observable<DTO>;
62
+ deleteResource?(id: string): Observable<DTO | void>;
63
63
  createResource?(resource: CREATE_DTO): Observable<DTO>;
64
64
  }
65
65
  interface FormNotificationService<ERROR> {
@@ -114,7 +114,7 @@ interface BulkOperationSuccess {
114
114
  }
115
115
  interface ListService<T, S = T, Params = Record<string, string>> {
116
116
  loadResources(options: RequestOptions<Params>): Observable<S[]>;
117
- deleteResources?(resourceIds: string[]): Observable<Array<T | ErrorDto>>;
117
+ deleteResources?(resourceIds: string[]): Observable<Array<T | ErrorDto | void>>;
118
118
  patchResources?(resourceIds: string[], resource: Partial<T>): Observable<Array<T | ErrorDto>>;
119
119
  }
120
120
  interface ListNotificationService<E> {