UNPKG

@crnk/angular-ngrx

Version:

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

62 lines 3.02 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { BeanPath, BooleanPath, StringPath } from '../expression/'; import { MetaAttribute, QMetaAttribute } from './meta.attribute'; import { ManyQueryResult, OneQueryResult } from 'ngrx-json-api'; var QMetaResourceField = /** @class */ (function (_super) { __extends(QMetaResourceField, _super); function QMetaResourceField() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.metaId = 'resources.meta.resourceField'; _this.id = _this.createString('id'); _this.type = _this.createString('type'); _this.attributes = new QMetaResourceField.QAttributes(_this, 'attributes'); _this.relationships = new QMetaAttribute.QRelationships(_this, 'relationships'); return _this; } return QMetaResourceField; }(BeanPath)); export { QMetaResourceField }; (function (QMetaResourceField) { var QAttributes = /** @class */ (function (_super) { __extends(QAttributes, _super); function QAttributes() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.meta = _this.createBoolean('meta'); _this.links = _this.createBoolean('links'); _this.association = _this.createBoolean('association'); _this.derived = _this.createBoolean('derived'); _this.lazy = _this.createBoolean('lazy'); _this.version = _this.createBoolean('version'); _this.primaryKeyAttribute = _this.createBoolean('primaryKeyAttribute'); _this.sortable = _this.createBoolean('sortable'); _this.filterable = _this.createBoolean('filterable'); _this.insertable = _this.createBoolean('insertable'); _this.updatable = _this.createBoolean('updatable'); _this.lob = _this.createBoolean('lob'); _this.nullable = _this.createBoolean('nullable'); _this.cascaded = _this.createBoolean('cascaded'); _this.readable = _this.createBoolean('readable'); _this.name = _this.createString('name'); return _this; } return QAttributes; }(BeanPath)); QMetaResourceField.QAttributes = QAttributes; })(QMetaResourceField || (QMetaResourceField = {})); export var createEmptyMetaResourceField = function (id) { return { id: id, type: 'meta/resourceField', attributes: {}, }; }; //# sourceMappingURL=meta.resource.field.js.map