UNPKG

graphdb-workbench

Version:
2 lines 2.26 kB
export const __webpack_id__=10153;export const __webpack_ids__=[10153,32534];export const __webpack_modules__={32534:(e,E,n)=>{n.r(E),n.d(E,{GraphqlEventName:()=>_});var t=n(98980),o=n(10406);function N(e){let E,n,N;const r=()=>E,i=()=>N,T=(E,n)=>{e.emitSync(E,(0,t.cloneDeep)(n))},p=(E,n)=>e.subscribeSync(E,e=>n(e));return{resetContext:()=>{n=void 0,N=void 0},updateSourceRepository:e=>{E=e,T(_.SOURCE_REPOSITORY_UPDATED,r())},getSourceRepository:r,setSelectedEndpoint:e=>{n=e},getSelectedEndpoint:()=>(0,t.cloneDeep)(n),getNewEndpoint:i,createEndpointConfig:()=>{N=new o.GraphqlEndpointConfiguration,e.emitSync(_.ENDPOINT_CONFIG_CREATED,N)},onEndpointConfigCreated:e=>(N&&angular.isFunction(e)&&e(N),p(_.ENDPOINT_CONFIG_CREATED,E=>e(E))),startCreateEndpointWizard:()=>{T(_.START_CREATE_ENDPOINT_WIZARD,null)},generateEndpoint:()=>{T(_.GENERATE_ENDPOINT,i())},endpointGenerated:e=>{T(_.ENDPOINT_GENERATED,e)},exploreEndpointInPlayground:e=>{T(_.EXPLORE_ENDPOINT_IN_PLAYGROUND,e)},openEndpointGenerationReport:e=>{T(_.OPEN_ENDPOINT_GENERATION_REPORT,e)},deleteEndpointGenerationReport:e=>{T(_.DELETE_ENDPOINT_REPORT,e)},cancelEndpointCreation:()=>{T(_.CANCEL_ENDPOINT_CREATION,{})},finishGenerationWorkflow:()=>{T(_.FINISH_GENERATION_WORKFLOW,{})},nextEndpointCreationStep:()=>{T(_.NEXT_ENDPOINT_CREATION_STEP,{})},previousEndpointCreationStep:()=>{T(_.PREVIOUS_ENDPOINT_CREATION_STEP,{})},subscribe:p}}angular.module("graphdb.framework.graphql.services.graphql-context",[]).factory("GraphqlContextService",N),N.$inject=["EventEmitterService","GraphqlService"];const _={SOURCE_REPOSITORY_UPDATED:"sourceRepositoryUpdated",START_CREATE_ENDPOINT_WIZARD:"startCreateEndpointWizard",ENDPOINT_CONFIG_CREATED:"updateConfigCreated",GENERATE_ENDPOINT:"generateEndpoint",ENDPOINT_GENERATED:"endpointGenerated",CANCEL_ENDPOINT_CREATION:"cancelEndpointCreation",FINISH_GENERATION_WORKFLOW:"finishGenerationWorkflow",EXPLORE_ENDPOINT_IN_PLAYGROUND:"exploreEndpointInPlayground",OPEN_ENDPOINT_GENERATION_REPORT:"openEndpointGenerationReport",DELETE_ENDPOINT_REPORT:"deleteEndpointReport",NEXT_ENDPOINT_CREATION_STEP:"nextEndpointCreationStep",PREVIOUS_ENDPOINT_CREATION_STEP:"previousEndpointCreationStep"}}}; //# sourceMappingURL=10153.1532fddd43604bf408c3.bundle.js.map