UNPKG

graphdb-workbench

Version:
2 lines 1.44 kB
export const __webpack_id__=11201;export const __webpack_ids__=[11201,29646];export const __webpack_modules__={11201:(e,s,t)=>{t.r(s),t.d(s,{graphqlSchemaShapesMapper:()=>h,shapeModelMapper:()=>a});var i=t(29646);const h=e=>{if(!e||!e.shapes)return new i.GraphqlSchemaShapes([]);const s=e.shapes.map(e=>a(e));return new i.GraphqlSchemaShapes(s)},a=e=>{if(e)return new i.GraphqlSchemaShape({id:e.id,name:e.name,label:e.label,description:e.description})}},29646:(e,s,t)=>{t.r(s),t.d(s,{GraphqlSchemaShape:()=>h,GraphqlSchemaShapes:()=>i});class i{_shapes;_size;_isEmpty;constructor(e){this._shapes=e||[],this._size=this.shapes.length,this._isEmpty=0===this.shapes.length}processShapes(e){return this.shapes.map(e)}getShapeIds(){return this.shapes.map(e=>e.id)}get isEmpty(){return this._isEmpty}get size(){return this._size}get shapes(){return this._shapes}set shapes(e){this._shapes=e,this._size=this.shapes.length,this._isEmpty=0===this.shapes.length}toJSON(){return this.shapes.map(e=>e.id)}}class h{_id;_name;_label;_description;constructor(e){this._id=e.id,this._name=e.name,this._label=e.label,this._description=e.description}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this._name=e}get label(){return this._label}set label(e){this._label=e}get description(){return this._description}set description(e){this._description=e}}}}; //# sourceMappingURL=11201.16e2f0442cd59f830a71.bundle.js.map