graphdb-workbench
Version:
The web application for GraphDB APIs
2 lines • 3.7 kB
JavaScript
export const __webpack_id__=34894;export const __webpack_ids__=[5783,34894,77512,90275];export const __webpack_modules__={5783:(e,t,s)=>{s.r(t),s.d(t,{EndpointGenerationReport:()=>r,EndpointGenerationReportList:()=>i});class i{_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 r{_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}}},34894:(e,t,s)=>{s.r(t),s.d(t,{endpointGenerationReportListMapper:()=>n,endpointGenerationReportMapper:()=>o,importEndpointDefinitionReportMapper:()=>d});var i=s(5783),r=s(90275);const n=(e,t)=>{if(!e)return new i.EndpointGenerationReportList;const s=e.map(e=>o(e,t));return new i.EndpointGenerationReportList(s)},o=(e,t)=>new i.EndpointGenerationReport({endpointId:e.id,endpointURI:(0,r.resolveGraphqlEndpoint)(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}),d=(e,t,s)=>{const n=e.messages?e.messages.errors?.length:0,o=e.messages?e.messages.warnings?.length:0;return new i.EndpointGenerationReport({endpointId:e.id,endpointURI:(0,r.resolveGraphqlEndpoint)(s,e.id),warnings:o,errors:n,messages:e.messages})}},77512:(e,t,s)=>{s.r(t),s.d(t,{endpointUrl:()=>i});const i={PLAYGROUND:"graphql/playground",CREATE_ENDPOINT:"graphql/endpoint/create",ENDPOINT_MANAGEMENT:"graphql/endpoints"}},90275:(e,t,s)=>{s.r(t),s.d(t,{resolveGraphqlEndpoint:()=>n,resolvePlaygroundUrlWithEndpoint:()=>o});var i=s(77512),r=s(69289);const n=(e,t)=>`${r.REPOSITORIES_ENDPOINT}/${e}/graphql/${t}`,o=e=>`${i.endpointUrl.PLAYGROUND}?endpointId=${e}`}};
//# sourceMappingURL=34894.475f49a9e446fcacf2b3.bundle.js.map