69115: post master merge changes to workflow-action

This commit is contained in:
Kristof De Langhe
2020-02-26 16:32:12 +01:00
parent 568b8ee1a7
commit 9e31b61d42
4 changed files with 20 additions and 27 deletions

View File

@@ -1,23 +0,0 @@
import { autoserialize, inheritSerialization } from 'cerialize';
import { mapsTo } from '../../cache/builders/build-decorators';
import { WorkflowAction } from './workflow-action-object.model';
import { NormalizedDSpaceObject } from '../../cache/models/normalized-dspace-object.model';
/**
* A normalized model class for a WorkflowAction
*/
@mapsTo(WorkflowAction)
@inheritSerialization(NormalizedDSpaceObject)
export class NormalizedWorkflowAction extends NormalizedDSpaceObject<WorkflowAction> {
/**
* The workflow action's identifier
*/
@autoserialize
id: string;
/**
* The options available for this workflow action
*/
@autoserialize
options: string[];
}

View File

@@ -1,19 +1,25 @@
import { ResourceType } from '../../shared/resource-type';
import { inheritSerialization, autoserialize } from 'cerialize';
import { typedObject } from '../../cache/builders/build-decorators';
import { DSpaceObject } from '../../shared/dspace-object.model';
import { WORKFLOW_ACTION } from './workflow-action-object.resource-type';
/**
* A model class for a WorkflowAction
*/
@typedObject
@inheritSerialization(DSpaceObject)
export class WorkflowAction extends DSpaceObject {
static type = new ResourceType('workflowaction');
static type = WORKFLOW_ACTION;
/**
* The workflow action's identifier
*/
@autoserialize
id: string;
/**
* The options available for this workflow action
*/
@autoserialize
options: string[];
}

View File

@@ -0,0 +1,9 @@
import { ResourceType } from '../../shared/resource-type';
/**
* The resource type for WorkflowAction
*
* Needs to be in a separate file to prevent circular
* dependencies in webpack.
*/
export const WORKFLOW_ACTION = new ResourceType('workflowaction');