@crnk/angular-ngrx
Version:
Angular helper library for ngrx-json-api and crnk:
35 lines • 1.56 kB
JavaScript
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, StringPath } from '../expression/';
import { QMetaElement } from './meta.element';
import { MetaType, QMetaType } from './meta.type';
import { ManyQueryResult, OneQueryResult } from 'ngrx-json-api';
var QMetaPrimitiveType = /** @class */ (function (_super) {
__extends(QMetaPrimitiveType, _super);
function QMetaPrimitiveType() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.metaId = 'resources.meta.primitiveType';
_this.id = _this.createString('id');
_this.type = _this.createString('type');
_this.relationships = new QMetaType.QRelationships(_this, 'relationships');
_this.attributes = new QMetaElement.QAttributes(_this, 'attributes');
return _this;
}
return QMetaPrimitiveType;
}(BeanPath));
export { QMetaPrimitiveType };
export var createEmptyMetaPrimitiveType = function (id) {
return {
id: id,
type: 'meta/primitiveType',
};
};
//# sourceMappingURL=meta.primitive.type.js.map