[MIGRATION] - fixed build and lint

This commit is contained in:
VitoAlbano
2024-11-14 17:14:40 +00:00
committed by VitoAlbano
parent a218247690
commit f1bb66d984
59 changed files with 39 additions and 377 deletions

View File

@@ -114,7 +114,6 @@ export class AppsListComponent implements OnInit, AfterContentInit {
/**
* Pass the selected app as next
*
* @param app application model
*/
selectApp(app: AppDefinitionRepresentation) {
@@ -124,7 +123,6 @@ export class AppsListComponent implements OnInit, AfterContentInit {
/**
* Return true if the appId is the current app
*
* @param appId application id
* @returns `true` if application is selected, otherwise `false`
*/
@@ -134,7 +132,6 @@ export class AppsListComponent implements OnInit, AfterContentInit {
/**
* Check if the value of the layoutType property is an allowed value
*
* @returns `true` if layout type is valid, otherwise `false`
*/
isValidType(): boolean {
@@ -150,7 +147,6 @@ export class AppsListComponent implements OnInit, AfterContentInit {
/**
* Check if the layout type is LIST
*
* @returns `true` if current layout is in the list mode, otherwise `false`
*/
isList(): boolean {
@@ -159,7 +155,6 @@ export class AppsListComponent implements OnInit, AfterContentInit {
/**
* Check if the layout type is GRID
*
* @returns `true` if current layout is in the grid mode, otherwise `false`
*/
isGrid(): boolean {

View File

@@ -319,7 +319,6 @@ export class FormComponent extends FormBaseComponent implements OnInit, OnChange
/**
* Get custom set of outcomes for a Form Definition.
*
* @param form Form definition model.
* @returns list of form outcomes
*/
@@ -352,7 +351,6 @@ export class FormComponent extends FormBaseComponent implements OnInit, OnChange
/**
* Creates a Form with a field for each metadata property.
*
* @param formName Name of the new form
* @returns The new form
*/

View File

@@ -53,7 +53,6 @@ export class ActivitiContentService {
/**
* Returns a list of child nodes below the specified folder
*
* @param accountId account id
* @param folderId folder id
* @returns list of external content instances
@@ -68,7 +67,6 @@ export class ActivitiContentService {
/**
* Returns a list of all the repositories configured
*
* @param tenantId tenant id
* @param includeAccount include accounts
* @returns list of endpoints
@@ -86,7 +84,6 @@ export class ActivitiContentService {
/**
* Returns a list of child nodes below the specified folder
*
* @param accountId account id
* @param node node details
* @param siteId site id

View File

@@ -39,7 +39,6 @@ export class EditorService {
/**
* Saves a form.
*
* @param formId ID of the form to save
* @param formModel Model data for the form
* @returns Data for the saved form
@@ -50,7 +49,6 @@ export class EditorService {
/**
* Gets a form definition.
*
* @param formId ID of the target form
* @returns Form definition
*/
@@ -63,7 +61,6 @@ export class EditorService {
/**
* Creates a JSON representation of form data.
*
* @param res Object representing form data
* @returns JSON data
*/
@@ -76,7 +73,6 @@ export class EditorService {
/**
* Reports an error message.
*
* @param error Data object with optional `message` and `status` fields for the error
* @returns Error message
*/

View File

@@ -38,7 +38,6 @@ export class ModelService {
/**
* Create a Form.
*
* @param formName Name of the new form
* @returns The new form
*/
@@ -55,7 +54,6 @@ export class ModelService {
/**
* Gets all the forms.
*
* @returns List of form models
*/
getForms(): Observable<any> {
@@ -71,7 +69,6 @@ export class ModelService {
/**
* Creates a JSON array representation of form data.
*
* @param res Object representing form data
* @returns JSON data
*/
@@ -81,7 +78,6 @@ export class ModelService {
/**
* Searches for a form by name.
*
* @param name The form name to search for
* @returns Form model(s) matching the search name
*/
@@ -98,7 +94,6 @@ export class ModelService {
/**
* Gets the form definition with a given name.
*
* @param name The form name
* @returns Form definition
*/
@@ -117,7 +112,6 @@ export class ModelService {
/**
* Gets the ID of a form.
*
* @param form Object representing a form
* @returns ID string
*/
@@ -132,7 +126,6 @@ export class ModelService {
}
/**
* Reports an error message.
*
* @param error Data object with optional `message` and `status` fields for the error
* @returns Error message
*/

View File

@@ -43,7 +43,6 @@ export class ProcessContentService {
/**
* Create temporary related content from an uploaded file.
*
* @param file File to use for content
* @returns The created content data
*/
@@ -53,7 +52,6 @@ export class ProcessContentService {
/**
* Gets the metadata for a related content item.
*
* @param contentId ID of the content item
* @returns Metadata for the content
*/
@@ -63,7 +61,6 @@ export class ProcessContentService {
/**
* Gets raw binary content data for a related content file.
*
* @param contentId ID of the related content
* @returns Binary data of the related content
*/
@@ -73,7 +70,6 @@ export class ProcessContentService {
/**
* Gets the preview for a related content file.
*
* @param contentId ID of the related content
* @returns Binary data of the content preview
*/
@@ -102,7 +98,6 @@ export class ProcessContentService {
/**
* Gets a URL for direct access to a related content file.
*
* @param contentId ID of the related content
* @returns URL to access the content
*/
@@ -112,7 +107,6 @@ export class ProcessContentService {
/**
* Gets the thumbnail for a related content file.
*
* @param contentId ID of the related content
* @returns Binary data of the thumbnail image
*/
@@ -132,7 +126,6 @@ export class ProcessContentService {
/**
* Gets related content items for a task instance.
*
* @param taskId ID of the target task
* @param opts Options supported by JS-API
* @returns Metadata for the content
@@ -143,7 +136,6 @@ export class ProcessContentService {
/**
* Gets related content items for a process instance.
*
* @param processId ID of the target process
* @param opts Options supported by JS-API
* @returns Metadata for the content
@@ -154,7 +146,6 @@ export class ProcessContentService {
/**
* Deletes related content.
*
* @param contentId Identifier of the content to delete
* @returns Null response that notifies when the deletion is complete
*/
@@ -164,7 +155,6 @@ export class ProcessContentService {
/**
* Associates an uploaded file with a process instance.
*
* @param processInstanceId ID of the target process instance
* @param content File to associate
* @param opts Options supported by JS-API
@@ -178,7 +168,6 @@ export class ProcessContentService {
/**
* Associates an uploaded file with a task instance.
*
* @param taskId ID of the target task
* @param file File to associate
* @param opts Options supported by JS-API
@@ -190,7 +179,6 @@ export class ProcessContentService {
/**
* Lists processes and tasks on workflow started with provided document
*
* @param sourceId - id of the document that workflow or task has been started with
* @param source - source of the document that workflow or task has been started with
* @param size - size of the entries to get
@@ -208,7 +196,6 @@ export class ProcessContentService {
/**
* Creates a JSON representation of data.
*
* @param res Object representing data
* @returns JSON object
*/
@@ -221,7 +208,6 @@ export class ProcessContentService {
/**
* Creates a JSON array representation of data.
*
* @param res Object representing data
* @returns JSON array object
*/
@@ -234,7 +220,6 @@ export class ProcessContentService {
/**
* Reports an error message.
*
* @param error Data object with optional `message` and `status` fields for the error
* @returns Callback when an error occurs
*/

View File

@@ -40,7 +40,6 @@ export class ProcessDefinitionService {
/**
* Gets values of fields populated by a REST backend using a process ID.
*
* @param processDefinitionId Process identifier
* @param field Field identifier
* @returns Field values
@@ -51,7 +50,6 @@ export class ProcessDefinitionService {
/**
* Gets column values of fields populated by a REST backend using a process ID.
*
* @param processDefinitionId Process identifier
* @param field Field identifier
* @param column Column identifier
@@ -65,7 +63,6 @@ export class ProcessDefinitionService {
/**
* Creates a JSON representation of form data.
*
* @param res Object representing form data
* @returns JSON data
*/
@@ -78,7 +75,6 @@ export class ProcessDefinitionService {
/**
* Reports an error message.
*
* @param error Data object with optional `message` and `status` fields for the error
* @returns Error message
*/

View File

@@ -40,7 +40,6 @@ export class TaskFormService {
/**
* Saves a task form.
*
* @param taskId Task Id
* @param formValues Form Values
* @returns Null response when the operation is complete
@@ -53,7 +52,6 @@ export class TaskFormService {
/**
* Completes a Task Form.
*
* @param taskId Task Id
* @param formValues Form Values
* @param outcome Form Outcome
@@ -70,7 +68,6 @@ export class TaskFormService {
/**
* Gets a form related to a task.
*
* @param taskId ID of the target task
* @returns Form definition
*/
@@ -83,7 +80,6 @@ export class TaskFormService {
/**
* Gets values of fields populated by a REST backend.
*
* @param taskId Task identifier
* @param field Field identifier
* @returns Field values
@@ -94,7 +90,6 @@ export class TaskFormService {
/**
* Gets column values of fields populated by a REST backend.
*
* @param taskId Task identifier
* @param field Field identifier
* @param column Column identifier
@@ -113,7 +108,6 @@ export class TaskFormService {
/**
* Creates a JSON representation of form data.
*
* @param res Object representing form data
* @returns JSON data
*/
@@ -126,7 +120,6 @@ export class TaskFormService {
/**
* Reports an error message.
*
* @param error Data object with optional `message` and `status` fields for the error
* @returns Error message
*/

View File

@@ -38,7 +38,6 @@ export class TaskService {
/**
* Gets a task.
*
* @param taskId Task Id
* @returns Task info
*/
@@ -51,7 +50,6 @@ export class TaskService {
/**
* Creates a JSON representation of form data.
*
* @param res Object representing form data
* @returns JSON data
*/
@@ -64,7 +62,6 @@ export class TaskService {
/**
* Reports an error message.
*
* @param error Data object with optional `message` and `status` fields for the error
* @returns Error message
*/

View File

@@ -40,7 +40,6 @@ export class AttachFileWidgetDialogService {
/**
* Opens a dialog to choose a file to upload.
*
* @param repository Alfresco endpoint that represents the content service
* @param currentFolderId Upload file from specific folder
* @param accountIdentifier account identifier

View File

@@ -130,7 +130,6 @@ export class ContentWidgetComponent implements OnChanges {
/**
* Invoke content download.
*
* @param content content link model
*/
download(content: ContentLinkModel): void {

View File

@@ -37,7 +37,6 @@ export class CommentProcessService implements CommentsService {
/**
* Gets all comments that have been added to a process instance.
*
* @param id ID of the target process instance
* @returns Details for each comment
*/
@@ -59,7 +58,6 @@ export class CommentProcessService implements CommentsService {
/**
* Adds a comment to a process instance.
*
* @param id ID of the target process instance
* @param message Text for the comment
* @returns Details of the comment added

View File

@@ -125,7 +125,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
/**
* Return the filter list filtered by appId
*
* @param appId - optional
*/
getFiltersByAppId(appId?: number) {
@@ -158,7 +157,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
/**
* Return the filter list filtered by appName
*
* @param appName application name
*/
getFiltersByAppName(appName: string): void {
@@ -175,7 +173,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
/**
* Pass the selected filter as next
*
* @param filterModel filter model
*/
selectFilter(filterModel: ProcessInstanceFilterRepresentation) {
@@ -186,7 +183,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
/**
* Select the first filter of a list if present
*
* @param filterParam filter parameter
*/
selectProcessFilter(filterParam: UserProcessInstanceFilterRepresentation): void {
@@ -207,7 +203,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
/**
* Select the Running filter
*
* @deprecated in 3.9.0, Use the filterParam Input() with a running filter instance instead
*/
selectRunningFilter() {
@@ -216,7 +211,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
/**
* Get the current task
*
* @returns process instance filter
*/
getCurrentFilter(): ProcessInstanceFilterRepresentation {
@@ -225,7 +219,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
/**
* Check if the filter list is empty
*
* @returns `true` if filter list is empty, otherwise `false`
*/
isFilterListEmpty(): boolean {
@@ -234,7 +227,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
/**
* Get the material icons equivalent of the glyphicon icon
*
* @param icon glyphicon name
* @returns material icons equivalent of the icon
*/

View File

@@ -252,7 +252,6 @@ export class ProcessInstanceListComponent extends DataTableSchema implements OnC
/**
* Get the id of the current instance
*
* @returns instance id
*/
getCurrentId(): string {
@@ -261,7 +260,6 @@ export class ProcessInstanceListComponent extends DataTableSchema implements OnC
/**
* Check if the list is empty
*
* @returns `true` if list is empty, otherwise `false`
*/
isListEmpty(): boolean {
@@ -270,7 +268,6 @@ export class ProcessInstanceListComponent extends DataTableSchema implements OnC
/**
* Emit the event rowClick passing the current task id when the row is clicked
*
* @param event input event
*/
onRowClick(event: DataRowEvent) {
@@ -286,7 +283,6 @@ export class ProcessInstanceListComponent extends DataTableSchema implements OnC
/**
* Emit the event rowClick passing the current task id when pressed the Enter key on the selected row
*
* @param event keyboard event
*/
onRowKeyUp(event: CustomEvent<any>) {

View File

@@ -77,7 +77,6 @@ describe('StartProcessComponent', () => {
/**
* Change application id
*
* @param appId application id
*/
function changeAppId(appId: number) {

View File

@@ -39,7 +39,6 @@ export class ProcessFilterService {
/**
* Gets all filters defined for a Process App.
*
* @param appId ID of the target app
* @returns Array of filter details
*/
@@ -59,7 +58,6 @@ export class ProcessFilterService {
/**
* Retrieves the process filter by ID.
*
* @param filterId ID of the filter
* @param appId ID of the target app
* @returns Details of the filter
@@ -70,7 +68,6 @@ export class ProcessFilterService {
/**
* Retrieves the process filter by name.
*
* @param filterName Name of the filter
* @param appId ID of the target app
* @returns Details of the filter
@@ -81,7 +78,6 @@ export class ProcessFilterService {
/**
* Creates and returns the default filters for an app.
*
* @param appId ID of the target app
* @returns Default filters just created
*/
@@ -117,7 +113,6 @@ export class ProcessFilterService {
/**
* Checks if a filter with the given name already exists in the list of filters.
*
* @param filters - An array of objects representing the existing filters.
* @param filterName - The name of the filter to check for existence.
* @returns - True if a filter with the specified name already exists, false otherwise.
@@ -128,7 +123,6 @@ export class ProcessFilterService {
/**
* Creates and returns a filter that matches "running" process instances.
*
* @param appId ID of the target app
* @param index of the filter (optional)
* @returns Filter just created
@@ -146,7 +140,6 @@ export class ProcessFilterService {
/**
* Adds a filter.
*
* @param filter The filter to add
* @returns The filter just added
*/
@@ -156,7 +149,6 @@ export class ProcessFilterService {
/**
* Calls `getUserProcessInstanceFilters` from the Alfresco JS API.
*
* @param appId ID of the target app
* @returns List of filter details
*/

View File

@@ -64,7 +64,6 @@ export class ProcessService {
/**
* Gets process instances for a filter and optionally a process definition.
*
* @param requestNode Filter for instances
* @param processDefinitionKey Limits returned instances to a process definition
* @returns List of process instances
@@ -85,7 +84,6 @@ export class ProcessService {
/**
* Gets processes for a filter and optionally a process definition.
*
* @param requestNode Filter for instances
* @param processDefinitionKey Limits returned instances to a process definition
* @returns List of processes
@@ -107,7 +105,6 @@ export class ProcessService {
/**
* Fetches the Process Audit information as a PDF.
*
* @param processId ID of the target process
* @returns Binary PDF data
*/
@@ -117,7 +114,6 @@ export class ProcessService {
/**
* Fetches the Process Audit information in a JSON format.
*
* @param processId ID of the target process
* @returns JSON data
*/
@@ -127,7 +123,6 @@ export class ProcessService {
/**
* Gets Process Instance metadata.
*
* @param processInstanceId ID of the target process
* @returns Metadata for the instance
*/
@@ -137,7 +132,6 @@ export class ProcessService {
/**
* Gets the start form definition for a given process.
*
* @param processId Process definition ID
* @returns Form definition
*/
@@ -147,7 +141,6 @@ export class ProcessService {
/**
* Gets the start form instance for a given process.
*
* @param processId Process definition ID
* @returns Form definition
*/
@@ -157,7 +150,6 @@ export class ProcessService {
/**
* Creates a JSON representation of form data.
*
* @param res Object representing form data
* @returns JSON data
*/
@@ -170,7 +162,6 @@ export class ProcessService {
/**
* Gets task instances for a process instance.
*
* @param processInstanceId ID of the process instance
* @param state Task state filter (can be "active" or "completed")
* @returns Array of task instance details
@@ -197,7 +188,6 @@ export class ProcessService {
/**
* Gets process definitions associated with an app.
*
* @param appId ID of a target app
* @returns Array of process definitions
*/
@@ -215,7 +205,6 @@ export class ProcessService {
/**
* Starts a process based on a process definition, name, form values or variables.
*
* @param processDefinitionId Process definition ID
* @param name Process name
* @param outcome Process outcome
@@ -248,7 +237,6 @@ export class ProcessService {
/**
* Cancels a process instance.
*
* @param processInstanceId ID of process to cancel
* @returns Null response notifying when the operation is complete
*/
@@ -258,7 +246,6 @@ export class ProcessService {
/**
* Gets the variables for a process instance.
*
* @param processInstanceId ID of the target process
* @returns Array of instance variable info
*/
@@ -268,7 +255,6 @@ export class ProcessService {
/**
* Creates or updates variables for a process instance.
*
* @param processInstanceId ID of the target process
* @param variables Variables to update
* @returns Array of instance variable info
@@ -279,7 +265,6 @@ export class ProcessService {
/**
* Deletes a variable for a process instance.
*
* @param processInstanceId ID of the target process
* @param variableName Name of the variable to delete
* @returns Null response notifying when the operation is complete

View File

@@ -35,7 +35,6 @@ export class AppsProcessService {
/**
* Gets a list of deployed apps for this user.
*
* @returns The list of deployed apps
*/
getDeployedApplications(): Observable<AppDefinitionRepresentation[]> {
@@ -44,7 +43,6 @@ export class AppsProcessService {
/**
* Gets a list of deployed apps for this user, where the app name is `name`.
*
* @param name Name of the app
* @returns The list of deployed apps
*/

View File

@@ -54,7 +54,6 @@ export class PeopleProcessService {
/**
* Gets information about the current user.
*
* @returns User information object
*/
getCurrentUserInfo(): Observable<UserRepresentation> {
@@ -63,7 +62,6 @@ export class PeopleProcessService {
/**
* Gets the current user's profile image as a URL.
*
* @returns URL string
*/
getCurrentUserProfileImage(): string {
@@ -72,7 +70,6 @@ export class PeopleProcessService {
/**
* Gets a list of groups in a workflow.
*
* @param filter Filter to select specific groups
* @param groupId Group ID for the search
* @returns Array of groups
@@ -87,7 +84,6 @@ export class PeopleProcessService {
/**
* Gets information about users across all tasks.
*
* @param taskId ID of the task
* @param searchWord Filter text to search for
* @param groupId group id
@@ -100,7 +96,6 @@ export class PeopleProcessService {
}
/**
* Gets the profile picture URL for the specified user.
*
* @param userId The target user
* @returns Profile picture URL
*/
@@ -110,7 +105,6 @@ export class PeopleProcessService {
/**
* Sets a user to be involved with a task.
*
* @param taskId ID of the target task
* @param idToInvolve ID of the user to involve
* @returns Empty response when the update completes
@@ -121,7 +115,6 @@ export class PeopleProcessService {
/**
* Removes a user who is currently involved with a task.
*
* @param taskId ID of the target task
* @param idToRemove ID of the user to remove
* @returns Empty response when the update completes

View File

@@ -38,7 +38,6 @@ export class TaskCommentsService implements CommentsService {
/**
* Gets all comments that have been added to a task.
*
* @param id ID of the target task
* @returns Details for each comment
*/
@@ -48,7 +47,6 @@ export class TaskCommentsService implements CommentsService {
/**
* Adds a comment to a task.
*
* @param id ID of the target task
* @param message Text for the comment
* @returns Details about the comment

View File

@@ -128,7 +128,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
/**
* Return the filter list filtered by appId
*
* @param appId - optional
*/
getFiltersByAppId(appId?: number) {
@@ -155,7 +154,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
/**
* Return the filter list filtered by appName
*
* @param appName application name
*/
getFiltersByAppName(appName: string): void {
@@ -171,7 +169,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
/**
* Create default filters by appId
*
* @param appId application id
*/
private createFiltersByAppId(appId?: number): void {
@@ -187,7 +184,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
/**
* Pass the selected filter as next
*
* @param newFilter new filter model
*/
public selectFilter(newFilter: UserTaskFilterRepresentation): void {
@@ -208,7 +204,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
/**
* Selects and emits the clicked filter.
*
* @param filterParams filter parameters model
*/
onFilterClick(filterParams: UserTaskFilterRepresentation) {
@@ -218,7 +213,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
/**
* Select filter with task
*
* @param taskId task id
*/
selectFilterWithTask(taskId: string): void {
@@ -241,7 +235,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
/**
* Get the current filter
*
* @returns filter model
*/
getCurrentFilter(): UserTaskFilterRepresentation {
@@ -250,7 +243,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
/**
* Check if the filter list is empty
*
* @returns `true` if filter list is empty, otherwise `false`
*/
isFilterListEmpty(): boolean {
@@ -259,7 +251,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
/**
* Get the material icons equivalent of the glyphicon icon
*
* @param icon glyphicon name
* @returns material icons equivalent of the icon
*/

View File

@@ -176,7 +176,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
/**
* Get the process parent information
*
* @returns a map of process instance and definition
*/
private getParentInfo(): Map<string, string> {
@@ -188,7 +187,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
/**
* Check if the task has an assignee
*
* @returns `true` if the task has an assignee, otherwise `false`
*/
hasAssignee(): boolean {
@@ -197,7 +195,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
/**
* Check if the task is assigned to a user
*
* @param userId the id of the user to check
* @returns `true` if the task assigned to a user, otherwise `false`
*/
@@ -207,7 +204,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
/**
* Check if the task is assigned to the current user
*
* @returns `true` if the task assigned to current user, otherwise `false`
*/
isAssignedToCurrentUser(): boolean {
@@ -216,7 +212,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
/**
* Check if the user is a candidate member
*
* @returns `true` if user is a candidate member, otherwise false
*/
isCandidateMember(): boolean {
@@ -225,7 +220,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
/**
* Check if the task is claimable
*
* @returns `true` if task can be claimed, otherwise `false`
*/
isTaskClaimable(): boolean {
@@ -234,7 +228,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
/**
* Return true if the task claimed by candidate member.
*
* @returns `true` if the task is claimed, otherwise `false`
*/
isTaskClaimedByCandidateMember(): boolean {
@@ -243,7 +236,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
/**
* Get the status of the task
*
* @returns `Completed` or `Running`
*/
getTaskStatus(): 'Completed' | 'Running' {
@@ -252,7 +244,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
/**
* Emit the claim event
*
* @param taskId the id of the task to claim
*/
onClaimTask(taskId: string) {
@@ -261,7 +252,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
/**
* Emit the unclaim event
*
* @param taskId the id of the task to unclaim
*/
onUnclaimTask(taskId: string) {
@@ -270,7 +260,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
/**
* Returns the task completion state
*
* @returns `true` if the task is completed, otherwise `false`
*/
isCompleted(): boolean {
@@ -279,7 +268,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
/**
* Check if the form is clickable
*
* @returns `true` if the form is clickable, otherwise `false`
*/
isFormClickable(): boolean {
@@ -288,7 +276,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
/**
* Get the task duration
*
* @returns the task duration in milliseconds
*/
getTaskDuration(): string {

View File

@@ -287,7 +287,6 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
/**
* Select the task given in input if present
*
* @param taskIdSelected selected task id
*/
selectTask(taskIdSelected: string): void {
@@ -313,7 +312,6 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
/**
* Return the current instance id
*
* @returns the current instance id
*/
getCurrentId(): string {
@@ -322,7 +320,6 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
/**
* Check if the taskId is the same of the selected task
*
* @param taskId task id
* @returns `true` if current instance id is the same as task id, otherwise `false`
*/
@@ -332,7 +329,6 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
/**
* Check if the list is empty
*
* @returns `true` if list is empty, otherwise `false`
*/
isListEmpty(): boolean {
@@ -430,7 +426,6 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
/**
* Optimize name field
*
* @param instances task detail models
* @returns list of task detail models
*/

View File

@@ -64,7 +64,6 @@ export class TaskListService {
/**
* Gets all the filters in the list that belong to a task.
*
* @param taskId ID of the target task
* @param filterList List of filters to search through
* @returns Filters belonging to the task
@@ -78,7 +77,6 @@ export class TaskListService {
/**
* Checks if a taskId is filtered with the given filter.
*
* @param taskId ID of the target task
* @param filterModel The filter you want to check
* @returns The filter if it is related or null otherwise
@@ -97,7 +95,6 @@ export class TaskListService {
/**
* Gets all the tasks matching the supplied query.
*
* @param requestNode Query to search for tasks
* @returns List of tasks
*/
@@ -107,7 +104,6 @@ export class TaskListService {
/**
* Gets tasks matching a query and state value.
*
* @param requestNode Query to search for tasks
* @returns List of tasks
*/
@@ -117,7 +113,6 @@ export class TaskListService {
/**
* Gets details for a task.
*
* @param taskId ID of the target task.
* @returns Task details
*/
@@ -127,7 +122,6 @@ export class TaskListService {
/**
* Gets the checklist for a task.
*
* @param id ID of the target task
* @returns Array of checklist task details
*/
@@ -137,7 +131,6 @@ export class TaskListService {
/**
* Gets all available reusable forms.
*
* @returns Array of form details
*/
getFormList(): Observable<Form[]> {
@@ -152,7 +145,6 @@ export class TaskListService {
/**
* Attaches a form to a task.
*
* @param taskId ID of the target task
* @param formId ID of the form to add
* @returns Null response notifying when the operation is complete
@@ -163,7 +155,6 @@ export class TaskListService {
/**
* Adds a subtask (ie, a checklist task) to a parent task.
*
* @param task The task to add
* @returns The subtask that was added
*/
@@ -173,7 +164,6 @@ export class TaskListService {
/**
* Deletes a subtask (ie, a checklist task) from a parent task.
*
* @param taskId The task to delete
* @returns Null response notifying when the operation is complete
*/
@@ -183,7 +173,6 @@ export class TaskListService {
/**
* Deletes a form from a task.
*
* @param taskId Task id related to form
* @returns Null response notifying when the operation is complete
*/
@@ -193,7 +182,6 @@ export class TaskListService {
/**
* Gives completed status to a task.
*
* @param taskId ID of the target task
* @returns Null response notifying when the operation is complete
*/
@@ -203,7 +191,6 @@ export class TaskListService {
/**
* Creates a new standalone task.
*
* @param task Details of the new task
* @returns Details of the newly created task
*/
@@ -213,7 +200,6 @@ export class TaskListService {
/**
* Assigns a task to a user or group.
*
* @param taskId The task to assign
* @param requestNode User or group to assign the task to
* @returns Details of the assigned task
@@ -225,7 +211,6 @@ export class TaskListService {
/**
* Assigns a task to a user.
*
* @param taskId ID of the task to assign
* @param userId ID of the user to assign the task to
* @returns Details of the assigned task
@@ -238,7 +223,6 @@ export class TaskListService {
/**
* Claims a task for the current user.
*
* @param taskId ID of the task to claim
* @returns Details of the claimed task
*/
@@ -248,7 +232,6 @@ export class TaskListService {
/**
* Un-claims a task for the current user.
*
* @param taskId ID of the task to unclaim
* @returns Null response notifying when the operation is complete
*/
@@ -258,7 +241,6 @@ export class TaskListService {
/**
* Updates the details (name, description, due date) for a task.
*
* @param taskId ID of the task to update
* @param updated Data to update the task (as a `TaskUpdateRepresentation` instance).
* @returns Updated task details
@@ -269,7 +251,6 @@ export class TaskListService {
/**
* Fetches the Task Audit information in PDF format.
*
* @param taskId ID of the target task
* @returns Binary PDF data
*/
@@ -279,7 +260,6 @@ export class TaskListService {
/**
* Fetch the Task Audit information in JSON format
*
* @param taskId ID of the target task
* @returns JSON data
*/