UNPKG

@grafana/alerting

Version:

Grafana Alerting Library – Build vertical integrations on top of the industry-leading alerting solution

1 lines 1.06 kB
{"version":3,"file":"api.mjs","sources":["../../../../../src/grafana/api/v0alpha1/api.ts"],"sourcesContent":["import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';\n\nimport { getAPIBaseURL, getAPIReducerPath } from '../util';\n\nimport { GROUP, VERSION } from './const';\n\nconst baseUrl = getAPIBaseURL(GROUP, VERSION);\nconst reducerPath = getAPIReducerPath(GROUP, VERSION);\n\nexport const api = createApi({\n reducerPath,\n baseQuery: fetchBaseQuery({\n // Set URL correctly so MSW can intercept requests\n // https://mswjs.io/docs/runbook#rtk-query-requests-are-not-intercepted\n baseUrl: new URL(baseUrl, globalThis.location.origin).href,\n }),\n endpoints: () => ({}),\n});\n"],"names":[],"mappings":";;;;AAMA,MAAM,OAAA,GAAU,aAAc,CAAA,KAAA,EAAO,OAAO,CAAA;AAC5C,MAAM,WAAA,GAAc,iBAAkB,CAAA,KAAA,EAAO,OAAO,CAAA;AAE7C,MAAM,MAAM,SAAU,CAAA;AAAA,EAC3B,WAAA;AAAA,EACA,WAAW,cAAe,CAAA;AAAA;AAAA;AAAA,IAGxB,SAAS,IAAI,GAAA,CAAI,SAAS,UAAW,CAAA,QAAA,CAAS,MAAM,CAAE,CAAA;AAAA,GACvD,CAAA;AAAA,EACD,SAAA,EAAW,OAAO,EAAC;AACrB,CAAC;;;;"}