UNPKG

graphdb-workbench

Version:
2 lines 6.63 kB
export const __webpack_id__=38412;export const __webpack_ids__=[38412,73779];export const __webpack_modules__={38412:(e,a,t)=>{t.r(a);var n=t(69289),i=t(73779);angular.module("graphdb.framework.rest.graphql.service",[]).factory("GraphqlRestService",o),o.$inject=["$http","Upload"];const s=!1;function o(e,a){const t=new i.GraphqlRestServiceMock;return{getEndpoints:a=>s?t.getEndpointsMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/endpoints`),getEndpointsInfo:(a,i)=>s?t.getEndpointsInfoMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/list`),getGraphqlSchemaShapes:a=>s?t.getGraphqlSchemaShapesMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/graphql_shapes`),getPrefixes:a=>s?t.getPrefixesMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/prefixes`),getShaclShapeGraphs:a=>s?t.getShaclGraphsMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/shacl_graphs`),getGraphqlGenerationSettings:()=>s?t.getGraphqlGenerationSettingsMock():e.get(`${n.REPOSITORIES_ENDPOINT}/graphql/manage/generate/config`),getGraphqlEndpointConfigurationSettings:(a,i)=>s?t.getEndpointConfigurationMock():e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${i}/config`),getEndpointConfiguration:(a,i)=>s?t.getEndpointConfiguration():e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${i}`),editEndpointConfiguration:(a,i,o)=>s?t.saveEndpointConfigurationMock():e.post(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${i}`,o),deleteEndpoint:(a,i)=>s?t.deleteEndpointMock(a,i):e.delete(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${i}`),generateEndpointFromGraphqlShapes:(a,i)=>s?t.generateEndpointFromGraphqlShapesMock(i):e.post(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/generate/graphql_shapes`,i),generateEndpointFromOwl:(a,i)=>s?t.generateEndpointFromOwl(i):e.post(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/generate/owl_shacl`,i),exportEndpointDefinition:(a,t)=>e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${t}/export`,{responseType:"blob"}),importEndpointDefinition:(e,t)=>a.http({url:`${n.REPOSITORIES_ENDPOINT}/${e}/graphql/manage/endpoints/import`,data:t,headers:{"Content-Type":void 0}}),deleteEndpointGenerationReport:(a,t)=>e.patch(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${t}/messages`)}}},73779:(e,a,t)=>{t.r(a),t.d(a,{GraphqlRestServiceMock:()=>i});var n=t(98980);class i{getEndpointsMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(s)}),200)})}getEndpointsInfoMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(o)}),200)})}getGraphqlSchemaShapesMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(r)}),200)})}getEndpointConfigurationMock(){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(l)}),200)})}}const s={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:""}]},r={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}]},l={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}]}}}; //# sourceMappingURL=38412.85b4c12f5ed5ffb6e4dd.bundle.js.map