parent
7d62d846a2
commit
568518d6a3
@ -1,10 +1,31 @@ |
||||
|
||||
import {HalResource} from '../api/api-v3/hal-resources/hal-resource.service'; |
||||
export const queryColumnTypes = { |
||||
PROPERTY: 'QueryColumn::Property', |
||||
RELATION_OF_TYPE: 'QueryColumn::RelationOfType', |
||||
RELATION_TO_TYPE: 'QueryColumn::RelationToType', |
||||
}; |
||||
|
||||
export class QueryColumn { |
||||
public name:string; |
||||
|
||||
/** |
||||
* A reference to a query column object as returned from the API. |
||||
*/ |
||||
export interface QueryColumn extends HalResource { |
||||
id:string; |
||||
name:string; |
||||
_links?: { |
||||
self:{ href:string, title:string }; |
||||
} |
||||
} |
||||
|
||||
export interface TypeRelationQueryColumn extends QueryColumn { |
||||
type:{ href: string }, |
||||
_links?: { |
||||
self:{ href:string, title:string }, |
||||
type:{ href:string } |
||||
} |
||||
} |
||||
|
||||
export interface RelationQueryColumn extends QueryColumn { |
||||
relationType: string; |
||||
} |
||||
|
Loading…
Reference in new issue