mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-7600] fix Hold interface and documentation
This commit is contained in:
committed by
Darya Blavanovich
parent
6d6ef29c73
commit
8a91945d0a
@@ -43,10 +43,7 @@ export class NodesApiService {
|
||||
return this._nodesApi;
|
||||
}
|
||||
|
||||
constructor(
|
||||
private apiService: AlfrescoApiService,
|
||||
private preferences: UserPreferencesService
|
||||
) {}
|
||||
constructor(private apiService: AlfrescoApiService, private preferences: UserPreferencesService) {}
|
||||
|
||||
private getEntryFromEntity(entity: NodeEntry): Node {
|
||||
return entity.entry;
|
||||
@@ -190,10 +187,13 @@ export class NodesApiService {
|
||||
|
||||
return from(this.nodesApi.listParents(nodeId, queryOptions)).pipe(
|
||||
map(({ list }) =>
|
||||
list.entries?.map(({ entry }) => ({
|
||||
id: entry.id,
|
||||
name: entry.name
|
||||
}))
|
||||
list.entries?.map(
|
||||
({ entry }) =>
|
||||
({
|
||||
id: entry.id,
|
||||
name: entry.name
|
||||
} as Hold)
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@@ -41,14 +41,7 @@ export class LegalHoldService {
|
||||
* @returns List of holds Observable<Hold[]>
|
||||
*/
|
||||
getHolds(filePlanId: string, options?: ContentPagingQuery): Observable<Hold[]> {
|
||||
return from(this.legalHoldApi.getHolds(filePlanId, options)).pipe(
|
||||
map(({ list }) =>
|
||||
list.entries?.map(({ entry }) => ({
|
||||
id: entry.id,
|
||||
name: entry.name
|
||||
}))
|
||||
)
|
||||
);
|
||||
return from(this.legalHoldApi.getHolds(filePlanId, options)).pipe(map(({ list }) => list.entries?.map(({ entry }) => entry)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user