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;
|
return this._nodesApi;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(
|
constructor(private apiService: AlfrescoApiService, private preferences: UserPreferencesService) {}
|
||||||
private apiService: AlfrescoApiService,
|
|
||||||
private preferences: UserPreferencesService
|
|
||||||
) {}
|
|
||||||
|
|
||||||
private getEntryFromEntity(entity: NodeEntry): Node {
|
private getEntryFromEntity(entity: NodeEntry): Node {
|
||||||
return entity.entry;
|
return entity.entry;
|
||||||
@@ -190,10 +187,13 @@ export class NodesApiService {
|
|||||||
|
|
||||||
return from(this.nodesApi.listParents(nodeId, queryOptions)).pipe(
|
return from(this.nodesApi.listParents(nodeId, queryOptions)).pipe(
|
||||||
map(({ list }) =>
|
map(({ list }) =>
|
||||||
list.entries?.map(({ entry }) => ({
|
list.entries?.map(
|
||||||
|
({ entry }) =>
|
||||||
|
({
|
||||||
id: entry.id,
|
id: entry.id,
|
||||||
name: entry.name
|
name: entry.name
|
||||||
}))
|
} as Hold)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@@ -41,14 +41,7 @@ export class LegalHoldService {
|
|||||||
* @returns List of holds Observable<Hold[]>
|
* @returns List of holds Observable<Hold[]>
|
||||||
*/
|
*/
|
||||||
getHolds(filePlanId: string, options?: ContentPagingQuery): Observable<Hold[]> {
|
getHolds(filePlanId: string, options?: ContentPagingQuery): Observable<Hold[]> {
|
||||||
return from(this.legalHoldApi.getHolds(filePlanId, options)).pipe(
|
return from(this.legalHoldApi.getHolds(filePlanId, options)).pipe(map(({ list }) => list.entries?.map(({ entry }) => entry)));
|
||||||
map(({ list }) =>
|
|
||||||
list.entries?.map(({ entry }) => ({
|
|
||||||
id: entry.id,
|
|
||||||
name: entry.name
|
|
||||||
}))
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
```ts
|
```ts
|
||||||
export interface Hold {
|
export interface Hold {
|
||||||
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
id?: string;
|
reason: string;
|
||||||
reason?: string;
|
|
||||||
description?: string;
|
description?: string;
|
||||||
selected?: string;
|
selected?: string;
|
||||||
}
|
}
|
||||||
@@ -14,9 +14,9 @@ export interface Hold {
|
|||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Default value | Description
|
| Name | Type | Default value | Description |
|
||||||
------------ | ------------- | ------------- | -------------
|
|-----------------|------------|---------------|-----------------------------------|
|
||||||
**id** | **string** | | Hold id
|
| **id** | **string** | | Hold id |
|
||||||
**name** | **string** | | Hold name
|
| **name** | **string** | | Hold name |
|
||||||
**reason** | **string** | | Hold reason
|
| **reason** | **string** | | Hold reason |
|
||||||
**description** | **string** | | Additional information for a hold
|
| **description** | **string** | | Additional information for a hold |
|
||||||
|
@@ -12,8 +12,8 @@ export interface HoldBody {
|
|||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Default value | Description
|
| Name | Type | Default value | Description |
|
||||||
--------------- | ------------- | ------------- | --------------------------------------------
|
|-----------------|------------|---------------|----------------------------------------------|
|
||||||
**name** | **string** | | Hold name
|
| **name** | **string** | | Hold name |
|
||||||
**reason** | **string** | | Hold reason
|
| **reason** | **string** | | Hold reason |
|
||||||
**description** | **string** | | (Optional) Additional information for a hold
|
| **description** | **string** | | (Optional) Additional information for a hold |
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# HoldEntry
|
# HoldEntry
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
| Name | Type | Description | Notes |
|
||||||
------------ | ------------- | ------------- | -------------
|
|-----------|---------------------|-------------|-------------------|
|
||||||
**entry** | [**Hold**](Hold.md) | | [default to null]
|
| **entry** | [**Hold**](Hold.md) | | [default to null] |
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
# HoldPaging
|
# HoldPaging
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
| Name | Type | Description | Notes |
|
||||||
------------ | ------------- | ------------- | -------------
|
|----------|-----------------------------------------|-------------|------------------------------|
|
||||||
**list** | [**HoldPagingList**](HoldPagingList.md) | | [optional] [default to null]
|
| **list** | [**HoldPagingList**](HoldPagingList.md) | | [optional] [default to null] |
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# HoldPagingList
|
# HoldPagingList
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
| Name | Type | Description | Notes |
|
||||||
------------ | ------------- | ------------- | -------------
|
|----------------|---------------------------------|-------------|------------------------------|
|
||||||
**pagination** | [**Pagination**](Pagination.md) | | [optional] [default to null]
|
| **pagination** | [**Pagination**](Pagination.md) | | [optional] [default to null] |
|
||||||
**entries** | [**HoldEntry[]**](HoldEntry.md) | | [optional] [default to null]
|
| **entries** | [**HoldEntry[]**](HoldEntry.md) | | [optional] [default to null] |
|
||||||
|
@@ -16,9 +16,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface Hold {
|
export interface Hold {
|
||||||
id?: string;
|
id: string;
|
||||||
name?: string;
|
name: string;
|
||||||
reason?: string;
|
reason: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
selected?: boolean;
|
selected?: boolean;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user