mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
ACS-7600 create separate type for hold creation
This commit is contained in:
committed by
Darya Blavanovich
parent
9336ce625f
commit
2890e4856c
@@ -18,7 +18,7 @@
|
||||
import { BaseApi } from './base.api';
|
||||
import { throwIfNotDefined } from '../../../assert';
|
||||
import { ContentPagingQuery } from '../../content-rest-api';
|
||||
import { Hold, HoldEntry, HoldPaging } from './../model';
|
||||
import { HoldBody, HoldEntry, HoldPaging } from './../model';
|
||||
|
||||
/**
|
||||
* Legal Holds service.
|
||||
@@ -115,7 +115,7 @@ export class LegalHoldApi extends BaseApi {
|
||||
* @param hold Hold to create
|
||||
* @returns Promise<HoldEntry>
|
||||
*/
|
||||
createHold(filePlanId: string, hold: Hold): Promise<HoldEntry> {
|
||||
createHold(filePlanId: string, hold: HoldBody): Promise<HoldEntry> {
|
||||
throwIfNotDefined(filePlanId, 'filePlanId');
|
||||
throwIfNotDefined(hold, 'hold');
|
||||
|
||||
@@ -138,7 +138,7 @@ export class LegalHoldApi extends BaseApi {
|
||||
* @param holds Array of holds
|
||||
* @returns Promise<HoldPaging>
|
||||
*/
|
||||
createHolds(filePlanId = '-filePlan-', holds: Hold[]): Promise<HoldPaging> {
|
||||
createHolds(filePlanId = '-filePlan-', holds: HoldBody[]): Promise<HoldPaging> {
|
||||
throwIfNotDefined(filePlanId, 'filePlanId');
|
||||
throwIfNotDefined(holds, 'holds');
|
||||
|
||||
|
19
lib/js-api/src/api/gs-core-rest-api/docs/HoldBody.md
Normal file
19
lib/js-api/src/api/gs-core-rest-api/docs/HoldBody.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# HoldBody
|
||||
|
||||
## Basic usage
|
||||
|
||||
```ts
|
||||
export interface HoldBody {
|
||||
name: string;
|
||||
reason: string;
|
||||
description?: string;
|
||||
}
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Default value | Description
|
||||
--------------- | ------------- | ------------- | --------------------------------------------
|
||||
**name** | **string** | | Hold name
|
||||
**reason** | **string** | | Hold reason
|
||||
**description** | **string** | | (Optional) Additional information for a hold
|
22
lib/js-api/src/api/gs-core-rest-api/model/holdBody.ts
Normal file
22
lib/js-api/src/api/gs-core-rest-api/model/holdBody.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export interface HoldBody {
|
||||
name: string;
|
||||
reason: string;
|
||||
description?: string;
|
||||
}
|
@@ -75,6 +75,7 @@ export * from './transferContainerChildAssociation';
|
||||
export * from './unfiledContainerChildAssociation';
|
||||
export * from './unfiledRecordFolderChildAssociation';
|
||||
export * from './hold';
|
||||
export * from './holdBody';
|
||||
export * from './holdEntry';
|
||||
export * from './holdPaging';
|
||||
export * from './holdPagingList';
|
||||
|
Reference in New Issue
Block a user