Commits

Mykhaylo authored 752cb4d4b04
[CST-11178] show allowed correction types
No tags

src/app/core/submission/models/correction-type-mode.model.ts

Added
1 +import { autoserialize, deserialize } from 'cerialize';
2 +import { typedObject } from '../../cache/builders/build-decorators';
3 +import { CacheableObject } from '../../cache/cacheable-object.model';
4 +import { ResourceType } from '../../shared/resource-type';
5 +import { excludeFromEquals } from '../../utilities/equals.decorators';
6 +import { HALLink } from '../../shared/hal-link.model';
7 +
8 +@typedObject
9 +export class CorrectionTypeMode extends CacheableObject {
10 + static type = new ResourceType('correctiontype');
11 +
12 + /**
13 + * The object type
14 + */
15 + @excludeFromEquals
16 + @autoserialize
17 + type: ResourceType;
18 +
19 + @autoserialize
20 + id: string;
21 +
22 + @autoserialize
23 + topic: string;
24 +
25 + @autoserialize
26 + discoveryConfiguration: string;
27 +
28 + @autoserialize
29 + creationForm: string;
30 +
31 + @deserialize
32 + _links: {
33 + self: HALLink;
34 + };
35 +}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut