|
| 1 | +import { HttpHeaders } from '@angular/common/http'; |
1 | 2 | import { Injectable } from '@angular/core'; |
2 | 3 | import { Store } from '@ngrx/store'; |
3 | | -import { Observable, map } from 'rxjs'; |
| 4 | +import { |
| 5 | + map, |
| 6 | + Observable, |
| 7 | +} from 'rxjs'; |
| 8 | +import { |
| 9 | + distinctUntilChanged, |
| 10 | + take, |
| 11 | + takeWhile, |
| 12 | +} from 'rxjs/operators'; |
4 | 13 |
|
| 14 | +import { |
| 15 | + hasValue, |
| 16 | + isNotEmptyOperator, |
| 17 | +} from '../../shared/empty.util'; |
| 18 | +import { NotificationOptions } from '../../shared/notifications/models/notification-options.model'; |
5 | 19 | import { NotificationsService } from '../../shared/notifications/notifications.service'; |
| 20 | +import { getClassForType } from '../cache/builders/build-decorators'; |
6 | 21 | import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service'; |
7 | 22 | import { RequestParam } from '../cache/models/request-param.model'; |
8 | 23 | import { ObjectCacheService } from '../cache/object-cache.service'; |
9 | | -import { CreateData, CreateDataImpl } from '../data/base/create-data'; |
| 24 | +import { |
| 25 | + CreateData, |
| 26 | + CreateDataImpl, |
| 27 | +} from '../data/base/create-data'; |
10 | 28 | import { IdentifiableDataService } from '../data/base/identifiable-data.service'; |
11 | 29 | import { RemoteData } from '../data/remote-data'; |
| 30 | +import { CreateRequest } from '../data/request.models'; |
12 | 31 | import { RequestService } from '../data/request.service'; |
| 32 | +import { DSpaceSerializer } from '../dspace-rest/dspace.serializer'; |
| 33 | +import { HttpOptions } from '../dspace-rest/dspace-rest.service'; |
13 | 34 | import { HALEndpointService } from '../shared/hal-endpoint.service'; |
14 | 35 | import { |
15 | 36 | getFirstSucceededRemoteData, |
16 | 37 | getRemoteDataPayload, |
17 | 38 | } from '../shared/operators'; |
18 | 39 | import { Feedback } from './models/feedback.model'; |
19 | | -import { HttpHeaders } from '@angular/common/http'; |
20 | | -import { distinctUntilChanged, take, takeWhile } from 'rxjs/operators'; |
21 | | -import { hasValue, isNotEmptyOperator } from '../../shared/empty.util'; |
22 | | -import { NotificationOptions } from '../../shared/notifications/models/notification-options.model'; |
23 | | -import { getClassForType } from '../cache/builders/build-decorators'; |
24 | | -import { CreateRequest } from '../data/request.models'; |
25 | | -import { DSpaceSerializer } from '../dspace-rest/dspace.serializer'; |
26 | | -import { HttpOptions } from '../dspace-rest/dspace-rest.service'; |
27 | 40 |
|
28 | 41 | /** |
29 | 42 | * Service for checking and managing the feedback |
30 | 43 | */ |
31 | 44 | @Injectable({ providedIn: 'root' }) |
32 | 45 | export class FeedbackDataService |
33 | 46 | extends IdentifiableDataService<Feedback> |
34 | | - implements CreateData<Feedback> |
35 | | -{ |
| 47 | + implements CreateData<Feedback> { |
36 | 48 | private createData: CreateDataImpl<Feedback>; |
37 | 49 |
|
38 | 50 | constructor( |
|
0 commit comments