UNPKG

@crnk/angular-ngrx

Version:

Angular helper library for ngrx-json-api and crnk:

74 lines (73 loc) 2.9 kB
import { BeanPath, BooleanPath, StringPath } from '../expression/'; import { QTypedManyResourceRelationship, QTypedOneResourceRelationship } from '../stub/'; import { MetaElement, QMetaElement } from './meta.element'; import { MetaType, QMetaType } from './meta.type'; import { ManyQueryResult, OneQueryResult, ResourceRelationship, TypedOneResourceRelationship } from 'ngrx-json-api'; export declare module MetaAttribute { interface Relationships extends MetaElement.Relationships { [key: string]: ResourceRelationship; type?: TypedOneResourceRelationship<MetaType>; oppositeAttribute?: TypedOneResourceRelationship<MetaAttribute>; } interface Attributes extends MetaElement.Attributes { association?: boolean; derived?: boolean; lazy?: boolean; version?: boolean; primaryKeyAttribute?: boolean; sortable?: boolean; filterable?: boolean; insertable?: boolean; updatable?: boolean; lob?: boolean; nullable?: boolean; cascaded?: boolean; readable?: boolean; } } export interface MetaAttribute extends MetaElement { relationships?: MetaAttribute.Relationships; attributes?: MetaAttribute.Attributes; } export interface MetaAttributeResult extends OneQueryResult { data?: MetaAttribute; } export interface MetaAttributeListResult extends ManyQueryResult { data?: Array<MetaAttribute>; } export declare class QMetaAttribute extends BeanPath<MetaAttribute> { metaId: string; id: StringPath; type: StringPath; relationships: QMetaAttribute.QRelationships; attributes: QMetaAttribute.QAttributes; } export declare module QMetaAttribute { class QRelationships extends BeanPath<MetaAttribute.Relationships> { private _type; readonly type: QTypedOneResourceRelationship<QMetaType, MetaType>; private _oppositeAttribute; readonly oppositeAttribute: QTypedOneResourceRelationship<QMetaAttribute, MetaAttribute>; private _parent; readonly parent: QTypedOneResourceRelationship<QMetaElement, MetaElement>; private _children; readonly children: QTypedManyResourceRelationship<QMetaElement, MetaElement>; } class QAttributes extends BeanPath<MetaAttribute.Attributes> { association: BooleanPath; derived: BooleanPath; lazy: BooleanPath; version: BooleanPath; primaryKeyAttribute: BooleanPath; sortable: BooleanPath; filterable: BooleanPath; insertable: BooleanPath; updatable: BooleanPath; lob: BooleanPath; nullable: BooleanPath; cascaded: BooleanPath; readable: BooleanPath; name: StringPath; } } export declare let createEmptyMetaAttribute: (id: string) => MetaAttribute;