UNPKG

@crnk/angular-ngrx

Version:

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

49 lines 2.2 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, StringPath } from '../expression/'; import { MetaElement, QMetaElement } from './meta.element'; import { MetaRepositoryActionType } from './meta.repository.action.type'; import { ManyQueryResult, OneQueryResult } from 'ngrx-json-api'; var QMetaResourceAction = /** @class */ (function (_super) { __extends(QMetaResourceAction, _super); function QMetaResourceAction() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.metaId = 'resources.meta.resourceAction'; _this.id = _this.createString('id'); _this.type = _this.createString('type'); _this.attributes = new QMetaResourceAction.QAttributes(_this, 'attributes'); _this.relationships = new QMetaElement.QRelationships(_this, 'relationships'); return _this; } return QMetaResourceAction; }(BeanPath)); export { QMetaResourceAction }; (function (QMetaResourceAction) { var QAttributes = /** @class */ (function (_super) { __extends(QAttributes, _super); function QAttributes() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.actionType = _this.createString('actionType'); _this.name = _this.createString('name'); return _this; } return QAttributes; }(BeanPath)); QMetaResourceAction.QAttributes = QAttributes; })(QMetaResourceAction || (QMetaResourceAction = {})); export var createEmptyMetaResourceAction = function (id) { return { id: id, type: 'meta/resourceAction', attributes: {}, }; }; //# sourceMappingURL=meta.resource.action.js.map