diff --git a/lib/content-services/src/lib/common/services/nodes-api.service.ts b/lib/content-services/src/lib/common/services/nodes-api.service.ts index 9c28d4a624..08ae22b37e 100644 --- a/lib/content-services/src/lib/common/services/nodes-api.service.ts +++ b/lib/content-services/src/lib/common/services/nodes-api.service.ts @@ -245,7 +245,7 @@ export class NodesApiService { * * @param nodeId ID of the target node * @param options Optional parameters supported by JS-API - * @returns List of assigned holds + * @returns List of assigned holds Observable */ getNodeAssignHolds(nodeId: string, options?: any): Observable { const queryOptions = Object.assign({ where: `(assocType='rma:frozenContent')` }, options); diff --git a/lib/content-services/src/lib/legal-hold/services/legal-hold.service.ts b/lib/content-services/src/lib/legal-hold/services/legal-hold.service.ts index 8ade0c3fa9..06c6832c31 100644 --- a/lib/content-services/src/lib/legal-hold/services/legal-hold.service.ts +++ b/lib/content-services/src/lib/legal-hold/services/legal-hold.service.ts @@ -34,11 +34,11 @@ export class LegalHoldService { constructor(private apiService: AlfrescoApiService) {} /** - * Gets the list of holds assigned to the node. + * Gets the list of holds. * * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias. * @param options Optional parameters supported by JS-API - * @returns List of assigned holds Hold[] + * @returns List of holds Observable */ getHolds(filePlanId: string, options?: ContentPagingQuery): Observable { return from(this.legalHoldApi.getHolds(filePlanId, options)).pipe( diff --git a/lib/js-api/src/api/gs-core-rest-api/model/hold.ts b/lib/js-api/src/api/gs-core-rest-api/model/hold.ts index 8e89a7c0f0..fb6c891d16 100644 --- a/lib/js-api/src/api/gs-core-rest-api/model/hold.ts +++ b/lib/js-api/src/api/gs-core-rest-api/model/hold.ts @@ -16,8 +16,8 @@ */ export interface Hold { - id: string; name: string; + id?: string; reason?: string; description?: string; selected?: boolean;