remove normalized models part 1

This commit is contained in:
Art Lowel
2020-02-13 09:53:52 +01:00
parent bffae34fcc
commit 07998a8c08
137 changed files with 1323 additions and 1444 deletions

View File

@@ -1,33 +1,44 @@
import { autoserialize, deserialize, inheritSerialization } from 'cerialize';
import { resourceType } from '../cache/builders/build-decorators';
import { CacheableObject } from '../cache/object-cache.reducer';
import { excludeFromEquals } from '../utilities/equals.decorators';
import { EXTERNAL_SOURCE } from './external-source.resource-type';
import { HALLink } from './hal-link.model';
import { ResourceType } from './resource-type';
/**
* Model class for an external source
*/
@resourceType(ExternalSource.type)
export class ExternalSource extends CacheableObject {
static type = EXTERNAL_SOURCE;
/**
* The object type
*/
@excludeFromEquals
@autoserialize
type: ResourceType;
/**
* Unique identifier
*/
@autoserialize
id: string;
/**
* The name of this external source
*/
@autoserialize
name: string;
/**
* Is the source hierarchical?
*/
@autoserialize
hierarchical: boolean;
/**
* The link to the rest endpoint where this External Source can be found
*/
self: string;
@deserialize
_links: {
self: HALLink;
entries: HALLink;