graphdb-workbench
Version:
The web application for GraphDB APIs
2 lines • 23.5 kB
JavaScript
export const __webpack_esm_id__=14874;export const __webpack_esm_ids__=[19,868,3588,5783,6018,11201,14874,16014,17268,22037,28379,29646,34894,38412,40780,45149,60260,69091,73779,74081,77512,90275,95683];export const __webpack_esm_modules__={19(e,t,i){i.d(t,{Y:()=>s});class s{_id;_label;_description;_active;_default;_options;constructor(e){this._id=e.id,this._label=e.label,this._description=e.description,this._active=e.active,this._default=e.default,this._options=e.options}getUpdateDefaultEndpointRequest(){return{default:this.default}}getUpdateEndpointActiveStateRequest(){return{active:!this.active}}getUpdateEndpointSettingsRequest(){return{options:this.options?this.options.toFlatJSON():null}}set id(e){this._id=e}get id(){return this._id}set label(e){this._label=e}get label(){return this._label}set description(e){this._description=e}get description(){return this._description}set active(e){this._active=e}get active(){return this._active}set default(e){this._default=e}get default(){return this._default}set options(e){this._options=e}get options(){return this._options}}},868(e,t,i){i.d(t,{C:()=>s});class s{_key="";_label="";_type="";_collection=!1;_value;_values;_regex;_required=!1;_group;hidden=!1;constructor(e){this._key=e.key,this._label=e.label,this._type=e.type,this._collection=e.collection,this._value=e.value,this._values=e.values,this._regex="string"==typeof e.regex?new RegExp(e.regex):e.regex,this._required=e.required,this._group=e.group,this.hidden=e.hidden}get key(){return this._key}set key(e){this._key=e}get label(){return this._label}set label(e){this._label=e}get type(){return this._type}set type(e){this._type=e}get collection(){return this._collection}set collection(e){this._collection=e}get value(){return this._value}set value(e){this._value=e}get values(){return this._values}set values(e){this._values=e}get regex(){return this._regex}set regex(e){this._regex="string"==typeof e?new RegExp(e):e}get required(){return this._required}set required(e){this._required=e}get group(){return this._group}set group(e){this._group=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}}},3588(e,t,i){i.d(t,{w:()=>s});const s={STRING:"string",TEXT:"text",BOOLEAN:"boolean",JSON:"json",SELECT:"select",MULTI_SELECT:"multi_select"}},5783(e,t,i){i.d(t,{S:()=>n,_:()=>s});class s{_reports;constructor(e){this._reports=e||[]}getReport(e){return this._reports.find(t=>t.endpointId===e)}get reports(){return this._reports}set reports(e){this._reports=e}}class n{_endpointId;_endpointURI;_active;_default;_label;_description;_lastModified;_objectsCount;_propertiesCount;_warnings;_errors;_messages;_createdSuccessfully;constructor(e){this._endpointId=e.endpointId||"",this._endpointURI=e.endpointURI||"",this._active=e.active||!1,this._default=e.default||!1,this._label=e.label||"",this._description=e.description||"",this._lastModified=e.lastModified||"",this._objectsCount=e.objectsCount||0,this._propertiesCount=e.propertiesCount||0,this._warnings=e.warnings||0,this._errors=e.errors||0,this._messages=e.messages||[],this._createdSuccessfully=this._active&&0===this._errors}toJSON(){return{id:this._endpointId,active:this._active,default:this._default,label:this._label,description:this._description,lastModified:this._lastModified,objectsCount:this._objectsCount,propertiesCount:this._propertiesCount,warnings:this._warnings,errors:this._errors,messages:this._messages}}get endpointId(){return this._endpointId}set endpointId(e){this._endpointId=e}get endpointURI(){return this._endpointURI}set endpointURI(e){this._endpointURI=e}get active(){return this._active}set active(e){this._active=e}get default(){return this._default}set default(e){this._default=e}get label(){return this._label}set label(e){this._label=e}get description(){return this._description}set description(e){this._description=e}get lastModified(){return this._lastModified}set lastModified(e){this._lastModified=e}get objectsCount(){return this._objectsCount}set objectsCount(e){this._objectsCount=e}get propertiesCount(){return this._propertiesCount}set propertiesCount(e){this._propertiesCount=e}get warnings(){return this._warnings}set warnings(e){this._warnings=e}get errors(){return this._errors}set errors(e){this._errors=e}get messages(){return this._messages}set messages(e){this._messages=e}get createdSuccessfully(){return this._createdSuccessfully}set createdSuccessfully(e){this._createdSuccessfully=e}}},6018(e,t,i){i.d(t,{I:()=>r,s:()=>a});var s=i(74081),n=i(90275);const r=(e,t)=>{if(!e||!e.endpoints)return new s.Q;const i=e.endpoints.map(e=>a(e,t));return new s.Q(i)},a=(e,t)=>{if(e)return new s.v({endpointId:e.id,endpointURI:(0,n.r)(t,e.id),label:e.label,description:e.description,default:e.default,active:e.active,lastModified:e.lastModified,objectsCount:e.objectsCount,propertiesCount:e.propertiesCount,warnings:e.warnings,errors:e.errors})}},11201(e,t,i){i.d(t,{i:()=>n});var s=i(29646);const n=e=>{if(!e||!e.shapes)return new s.v([]);const t=e.shapes.map(e=>r(e));return new s.v(t)},r=e=>{if(e)return new s.G({id:e.id,name:e.name,label:e.label,description:e.description})}},14874(e,t,i){i(38412);var s=i(69091),n=i(6018),r=i(11201),a=i(40780),o=i(95683),l=i(17268),d=i(28379),p=i(16014),h=i(34894);function u(e){return{getEndpointsCountToGenerate:e=>{let t=0;return e||(t=0),e.generateFromGraphqlSchemaShapes()&&(t=e.getSelectedGraphqlSchemaShapesCount()),e.generateFromShaclShapes()&&(t=1),t},getGenerateEndpointsOverview:e=>{if(!e)return new p.wV;const t=e.getSelectedGraphqlSchemaShapesOverview();return new p.wV(t)},getEndpoints:t=>e.getEndpoints(t).then(e=>(0,s.XN)(e.data)),getEndpointsAsSelectMenuOptions:t=>e.getEndpoints(t).then(e=>(0,s.ez)(e.data,t)),getEndpointsInfo:t=>e.getEndpointsInfo(t).then(e=>(0,n.I)(e.data,t)),getGraphqlSchemaShapes:t=>e.getGraphqlSchemaShapes(t).then(e=>(0,r.i)(e.data)),getPrefixListAsSelectOptions:t=>e.getPrefixes(t).then(e=>(0,a.t)(e.data)),getShaclShapeGraphs:t=>e.getShaclShapeGraphs(t).then(e=>(0,o.k)(e.data)),getGraphqlGenerationSettings:t=>e.getGraphqlGenerationSettings(t).then(e=>{const t=(0,l.O)(e.data);return new d.y(t)}),getGraphqlEndpointConfigurationSettings:(t,i)=>e.getGraphqlEndpointConfigurationSettings(t,i).then(e=>{const t=(0,l.O)(e.data);return new d.y(t)}),getEndpointConfiguration:(t,i)=>e.getEndpointConfiguration(t,i),getEndpointConfigurationReport:(t,i)=>e.getEndpointConfiguration(t,i).then(e=>(0,h.FK)([e.data],t)),editEndpointConfiguration:(t,i,s)=>e.editEndpointConfiguration(t,i,s).then(e=>(0,n.s)(e.data,t)),deleteEndpoint:(t,i)=>e.deleteEndpoint(t,i),generateEndpointFromGraphqlShapes:(t,i)=>e.generateEndpointFromGraphqlShapes(t,i.toJSON()).then(e=>(0,h.FK)(e.data,t)),generateEndpointFromOwl:(t,i)=>e.generateEndpointFromOwl(t,i.toJSON()).then(e=>(0,h.FK)([e.data],t)),exportEndpointDefinition:(t,i)=>e.exportEndpointDefinition(t,i).then(e=>{const t=e.data,s=e.headers()["content-disposition"];let n=`endpoint-${i}-definition`;return s&&(n=s.split("filename=")[1],n=n.replace(/"/g,"")),{data:t,filename:n}}),importEndpointDefinition:(t,i)=>e.importEndpointDefinition(t,i),deleteEndpointGenerationReport:(t,i)=>e.deleteEndpointGenerationReport(t,i)}}angular.module("graphdb.framework.core.services.graphql-service",["graphdb.framework.rest.graphql.service"]).factory("GraphqlService",u),u.$inject=["GraphqlRestService"]},16014(e,t,i){i.d(t,{qK:()=>n,wV:()=>s});class s{_endpointList=[];constructor(e){this._endpointList=e||[]}get endpointList(){return this._endpointList}set endpointList(e){this._endpointList=e}}class n{_label;_uri;_status;constructor(e){this._label=e.label||"",this._uri=e.uri||"",this._status=e.status||"NONE"}get label(){return this._label}set label(e){this._label=e}get uri(){return this._uri}set uri(e){this._uri=e}get status(){return this._status}set status(e){this._status=e}}},17268(e,t,i){i.d(t,{O:()=>l});var s=i(38940),n=i(868),r=i(28379),a=i(22037),o=i(3588);const l=e=>{if(!e||!e.configs)return new a.t;const t=p(e.configs);return d(t)},d=e=>{const t=[];return e.forEach(e=>{if(!e.group)return void t.push(e);let i=t.find(t=>t.groupId===e.group);i||(i=new a.D({groupId:e.group}),t.push(i)),(e.hidden?i.hiddenFields:i.fields).push(e)}),new a.t(t)},p=e=>e.map(e=>{let t=u(e),i=e.values,n=[];return t!==o.w.MULTI_SELECT&&t!==o.w.SELECT||(i=i.map(t=>{const i=Array.isArray(e.value)&&e.value.indexOf(t)>-1||"string"==typeof e.value&&e.value===t,r=new s.rx({label:t,value:t,selected:i});return i&&n.push(r),r}),t===o.w.SELECT?e.value=n[0]?n[0]:[]:t===o.w.MULTI_SELECT&&(e.value=n)),h(e,t,i)}),h=(e,t,i)=>new n.C({key:e.key,label:e.label,description:e.description,type:t,collection:e.collection||!1,value:e.value,values:i,regex:e.regex,required:e.required||!1,group:e.group,hidden:e.hidden}),u=e=>{let t;return e.type===r.O.TEXT?t=o.w.TEXT:e.type===r.O.BOOLEAN?t=o.w.BOOLEAN:e.type===r.O.JSON?t=o.w.JSON:e.type===r.O.STRING&&(t=e.values&&e.values.length>0?e.collection?o.w.MULTI_SELECT:o.w.SELECT:o.w.STRING),t}},22037(e,t,i){i.d(t,{D:()=>n,t:()=>s});class s{_models=[];constructor(e){this._models=e||[]}get models(){return this._models}set models(e){this._models=e}}class n{_groupId="";_fields=[];_hiddenFields=[];constructor(e){this._fields=e.fields||[],this._hiddenFields=e.hiddenFields||[],this._groupId=e.groupId||""}get fields(){return this._fields}set fields(e){this._fields=e}get hiddenFields(){return this._hiddenFields}set hiddenFields(e){this._hiddenFields=e}get groupId(){return this._groupId}set groupId(e){this._groupId=e}}},28379(e,t,i){i.d(t,{O:()=>n,y:()=>r});var s=i(868);const n={STRING:"string",TEXT:"text",BOOLEAN:"boolean",JSON:"json"};class r{_settings;_hasSettings;constructor(e){this._settings=e,this._hasSettings=!!this._settings&&this._settings.models.length>0}toFlatJSON(){const e={},t=t=>{t.collection?e[t.key]=t.value:"select"===t.type?e[t.key]=t.value.value:e[t.key]=t.value};return this._settings.models.forEach(e=>{e instanceof s.C?t(e):[...e.fields,...e.hiddenFields].forEach(t)}),e}get hasSettings(){return this._hasSettings}get settings(){return this._settings}set settings(e){this._settings=e,this._hasSettings=this._settings.models.length>0}}},29646(e,t,i){i.d(t,{G:()=>n,v:()=>s});class s{_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 n{_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}}},34894(e,t,i){i.d(t,{FK:()=>r,Zv:()=>o});var s=i(5783),n=i(90275);const r=(e,t)=>{if(!e)return new s._;const i=e.map(e=>a(e,t));return new s._(i)},a=(e,t)=>new s.S({endpointId:e.id,endpointURI:(0,n.r)(t,e.id),active:e.active,default:e.default,label:e.label,description:e.description,lastModified:e.lastModified,objectsCount:e.objectsCount,propertiesCount:e.propertiesCount,warnings:e.warnings,errors:e.errors,messages:e.messages}),o=(e,t,i)=>{const r=e.messages?e.messages.errors?.length:0,a=e.messages?e.messages.warnings?.length:0;return new s.S({endpointId:e.id,endpointURI:(0,n.r)(i,e.id),warnings:a,errors:r,messages:e.messages})}},38412(e,t,i){var s=i(69289),n=i(73779);function r(e,t){return new n.T,{getEndpoints:t=>e.get(`${s.h}/${t}/graphql/endpoints`),getEndpointsInfo:(t,i)=>e.get(`${s.h}/${t}/graphql/manage/list`),getGraphqlSchemaShapes:t=>e.get(`${s.h}/${t}/graphql/manage/graphql_shapes`),getPrefixes:t=>e.get(`${s.h}/${t}/graphql/manage/prefixes`),getShaclShapeGraphs:t=>e.get(`${s.h}/${t}/graphql/manage/shacl_graphs`),getGraphqlGenerationSettings:t=>e.get(`${s.h}/${t}/graphql/manage/generate/config`),getGraphqlEndpointConfigurationSettings:(t,i)=>e.get(`${s.h}/${t}/graphql/manage/endpoints/${i}/config`),getEndpointConfiguration:(t,i)=>e.get(`${s.h}/${t}/graphql/manage/endpoints/${i}`),editEndpointConfiguration:(t,i,n)=>e.post(`${s.h}/${t}/graphql/manage/endpoints/${i}`,n),deleteEndpoint:(t,i)=>e.delete(`${s.h}/${t}/graphql/manage/endpoints/${i}`),generateEndpointFromGraphqlShapes:(t,i)=>e.post(`${s.h}/${t}/graphql/manage/generate/graphql_shapes`,i),generateEndpointFromOwl:(t,i)=>e.post(`${s.h}/${t}/graphql/manage/generate/owl_shacl`,i),exportEndpointDefinition:(t,i)=>e.get(`${s.h}/${t}/graphql/manage/endpoints/${i}/export`,{responseType:"blob"}),importEndpointDefinition:(e,i)=>t.http({url:`${s.h}/${e}/graphql/manage/endpoints/import`,data:i,headers:{"Content-Type":void 0}}),deleteEndpointGenerationReport:(t,i)=>e.patch(`${s.h}/${t}/graphql/manage/endpoints/${i}/messages`)}}angular.module("graphdb.framework.rest.graphql.service",[]).factory("GraphqlRestService",r),r.$inject=["$http","Upload"]},40780(e,t,i){i.d(t,{t:()=>n});var s=i(38940);const n=e=>e&&e.prefixes?e.prefixes.map(e=>new s.rx({value:e.prefix,label:e.prefix,selected:!1})):[]},60260(e,t,i){i.d(t,{$:()=>s,D:()=>n});class s{constructor(e){this._endpointId=e.endpointId,this._endpointURI=e.endpointURI,this._active=e.active,this._default=e.default}get endpointId(){return this._endpointId}set endpointId(e){this._endpointId=e}get endpointURI(){return this._endpointURI}set endpointURI(e){this._endpointURI=e}get default(){return this._default}set default(e){this._default=e}get active(){return this._active}set active(e){this._active=e}}class n{constructor(e){this._endpoints=e||[]}get endpoints(){return this._endpoints}set endpoints(e){this._endpoints=e}}},69091(e,t,i){i.d(t,{XN:()=>a,ez:()=>l});var s=i(60260),n=i(38940),r=i(90275);const a=e=>{if(!e||!e.endpoints)return new s.D;const t=e.endpoints.map(e=>o(e));return new s.D(t)},o=e=>{if(e)return new s.$({endpointId:e.endpointId,endpointURI:e.endpointURI,active:e.active,default:e.default})},l=(e,t)=>e&&e.length?e.map(e=>new n.rx({value:(0,r.r)(t,e.id),label:e.id,selected:e.default,data:{active:e.active,default:e.default}})):[]},73779(e,t,i){i.d(t,{T:()=>r});var s=i(98980);const n=200;class r{getEndpointsMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,s.cloneDeep)(a)}),200)})}getEndpointsInfoMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,s.cloneDeep)(o)}),n)})}getGraphqlSchemaShapesMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,s.cloneDeep)(l)}),n)})}getEndpointConfigurationMock(){return new Promise(e=>{setTimeout(()=>e({data:(0,s.cloneDeep)(d)}),n)})}getGraphqlGenerationSettingsMock(){return new Promise(e=>{setTimeout(()=>e({data:(0,s.cloneDeep)(p)}),n)})}}const a={repository:"swapi",endpoints:[{id:"swapi",graphQL:"/rest/repositories/swapi/graphql/swapi",active:!0,default:!0},{id:"film-restricted",graphQL:"/rest/repositories/swapi/graphql/film-restricted",active:!0,default:!1},{id:"swapi-charcters",graphQL:"/rest/repositories/swapi/graphql/swapi-charcters",active:!1,default:!1}]},o={endpoints:[{id:"gqlendpoint1",endpointId:"swapi",endpointURI:"/rest/repositories/swapi/graphql/swapi",label:"SWAPI GraphQL endpoint",description:"SWAPI GraphQL endpoint description",default:!1,active:!0,lastModified:"2025-01-28",objects_count:10,properties_count:120,warnings:0,errors:0,status:""},{id:"gqlendpoint2",endpointId:"film-restricted",endpointURI:"/rest/repositories/swapi/graphql/film-restricted",label:"SWAPI GraphQL endpoint with restricted film relations",description:"SWAPI GraphQL endpoint with restricted film relations description",default:!0,active:!0,lastModified:"2025-01-28",objects_count:13,properties_count:133,warnings:0,errors:0,status:""},{id:"gqlendpoint3",endpointId:"swapi-characters",endpointURI:"/rest/repositories/swapi/graphql/swapi-characters",label:"SWAPI GraphQL endpoint for swapi characters",description:"SWAPI GraphQL endpoint for swapi characters description",default:!1,active:!1,lastModified:"2025-01-28",objects_count:3,properties_count:20,warnings:0,errors:0,status:""}]},l={shapes:[{id:"https://schema.ubs.net/schema/AIModelSchema",name:"AI Model Schema",label:"AI Model Schema",description:null},{id:"https://schema.ubs.net/schema/AIProductSchema",name:"AI Product Schema",label:"AI Product Schema",description:null},{id:"https://schema.ubs.net/schema/DatabaseSchema",name:null,label:"Database Schema",description:null},{id:"https://schema.ubs.net/schema/BbsPermissionSchema",name:null,label:"BBS Permissions",description:null},{id:"https://schema.ubs.net/schema/DataProductBasicSchema",name:null,label:"Data Product Basic Schema No Policy and No Provenance",description:null},{id:"https://schema.ubs.net/schema/DataQualityMetricSchema",name:null,label:"Data Quality Metric Schema",description:"This is the basic schema for DQV initiated from Metric class"},{id:"https://schema.ubs.net/schema/DataQualityObservationSchema",name:null,label:"Data Quality Observation Schema",description:null},{id:"https://schema.ubs.net/schema/DatasetSchema",name:null,label:"Dataset Schema",description:null},{id:"https://schema.ubs.net/schema/ApplicationSchema",name:null,label:"Application Schema",description:null},{id:"https://schema.ubs.net/schema/PolicyBasicSchema",name:null,label:"Policy Basic Schema",description:null},{id:"https://schema.ubs.net/schema/DataQualityMeasurementSchema",name:null,label:"Data Quality Measurement Schema",description:null},{id:"https://schema.ubs.net/schema/DataProductFullSchema",name:null,label:"Data Product Schema where datasets can also be defined",description:null},{id:"https://schema.ubs.net/schema/ValidationSchema",name:null,label:"Validation Schema",description:null},{id:"https://schema.ubs.net/schema/WMAAccountSchema",name:null,label:"WMA Account Schema",description:null}]},d={configs:[{key:"str",label:"String",type:"string",collection:!1,value:"strValue",values:[],regex:"^(?:ALL:?)?(?:(?:-?[\\w]{2}(?:-[\\w]*)?~?|-?NONE|ANY|BROWSER)?(?:,(?:-?[\\w]{2}(?:-[\\w]*)?~?|-?NONE|ANY|BROWSER))*)$"},{key:"bool",label:"Boolean value",description:"",type:"boolean",collection:!1,value:!1,values:[]},{key:"select",label:"Select",type:"",collection:!1,value:"Two",values:["One","Two","Three"]},{key:"multiselect",label:"Multiselect",type:"",collection:!0,value:["Angular","JavaScript"],values:["Angular","JavaScript","WebDevelopment"]},{key:"json",label:"JSON",type:"json",collection:!1,value:'{"foo": "bar"}',values:[],required:!0}]},p={configs:[{key:"stringMode",value:"stringOrLangString",label:"stringMode",description:"Specifies the default string mode for data properties without a range definition",type:"string",collection:!1,values:["string","langString","stringOrLangString"],required:!0,regex:null,group:"generic",hidden:!1},{key:"useUnions",value:!0,label:"useUnions",description:"Should GraphQL Unions be used in the result model",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"generic",hidden:!1},{key:"forceInterfaceTypes",value:!1,label:"forceInterfaceTypes",description:"Decide if parent types are always interfaces or split with interface and subclass",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"generic",hidden:!1},{key:"defaultMaxCardinality",value:"inf",label:"defaultMaxCardinality",description:"The default maximum cardinality for all values. This defines if properties without explicit cardinality configuration are by default multi or single valued.",type:"string",collection:!1,values:null,required:!1,regex:"^\\d+|inf$",group:"generic",hidden:!1},{key:"readShaclPropertyLabels",value:!0,label:"readShaclPropertyLabels",description:"If the labels and description for the sh:PropertyShape should be used over the sh:path label and description",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"generic",hidden:!0},{key:"removeUnknownRanges",value:!0,label:"removeUnknownRanges",description:"Should remove the invalid and undefined ranges ",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"dataCleanup",hidden:!0},{key:"cleanInvalidInverseOf",value:!0,label:"cleanInvalidInverseOf",description:"Try to fix invalid owl:inverseOf relations",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"dataCleanup",hidden:!0},{key:"includeDeactivatedShapes",value:!1,label:"includeDeactivatedShapes",description:"Include the sh:deactivated shapes in the model",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"dataCleanup",hidden:!0},{key:"readRBACRules",value:!0,label:"readRBACRules",description:"Read RBAC rules from the models",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"enterprise",hidden:!0}]}},74081(e,t,i){i.d(t,{Q:()=>r,v:()=>n});var s=i(19);class n{_endpointId;_endpointURI;_label;_description;_default;_active;_lastModified;_objectsCount;_propertiesCount;_warnings;_errors;_createdSuccessfully;constructor(e={}){this._endpointId=e.endpointId,this._endpointURI=e.endpointURI,this._label=e.label,this._description=e.description,this._default=e.default,this._active=e.active,this._lastModified=e.lastModified,this._objectsCount=e.objectsCount,this._propertiesCount=e.propertiesCount,this._warnings=e.warnings,this._errors=e.errors,this._createdSuccessfully=0===this._errors}toUpdateEndpointRequest(e){return new s.Y({id:this.endpointId,label:this.label,description:this.description,active:this.active,default:this.default,options:e})}get createdSuccessfully(){return this._createdSuccessfully}get endpointId(){return this._endpointId}set endpointId(e){this._endpointId=e}get endpointURI(){return this._endpointURI}set endpointURI(e){this._endpointURI=e}get label(){return this._label}set label(e){this._label=e}get description(){return this._description}set description(e){this._description=e}get default(){return this._default}set default(e){this._default=e}get active(){return this._active}set active(e){this._active=e}get lastModified(){return this._lastModified}set lastModified(e){this._lastModified=e}get objectsCount(){return this._objectsCount}set objectsCount(e){this._objectsCount=e}get propertiesCount(){return this._propertiesCount}set propertiesCount(e){this._propertiesCount=e}get warnings(){return this._warnings}set warnings(e){this._warnings=e}get errors(){return this._errors}set errors(e){this._errors=e}}class r{_originalEndpointsList;_endpoints;constructor(e){this._originalEndpointsList=e||[],this._endpoints=e||[]}updateEndpoint(e){const t=this._endpoints.findIndex(t=>t.endpointId===e.endpointId);-1!==t&&(this._endpoints[t]=e)}filter(e){this._endpoints=this._originalEndpointsList.filter(t=>t.endpointId.toLowerCase().includes(e.toLowerCase())||t.label?.toLowerCase().includes(e.toLowerCase()))}findDefaultEndpoint(){return this._endpoints.find(e=>e.default)}get endpoints(){return this._endpoints}set endpoints(e){this._endpoints=e}}},77512(e,t,i){i.d(t,{P:()=>s});const s={PLAYGROUND:"graphql/playground",CREATE_ENDPOINT:"graphql/endpoint/create",ENDPOINT_MANAGEMENT:"graphql/endpoints"}},90275(e,t,i){i.d(t,{I:()=>a,r:()=>r});var s=i(77512),n=i(69289);const r=(e,t)=>`${n.h}/${e}/graphql/${t}`,a=e=>`${s.P.PLAYGROUND}?endpointId=${e}`},95683(e,t,i){i.d(t,{k:()=>n});var s=i(82854);const n=e=>{if(!e||!e.shacl_graphs)return new s.P;const t=e.shacl_graphs.map(e=>new s.C({uri:e,label:e,id:e}));return new s.P(t)}}};
//# sourceMappingURL=14874.0ea8919cc24860f24cd0.bundle.js.map