UNPKG

@grafana/alerting

Version:

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

1 lines 1.07 kB
{"version":3,"file":"api.mjs","sources":["../../../../../../src/grafana/api/rules/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,aAAA,CAAc,KAAA,EAAO,OAAO,CAAA;AAC5C,MAAM,WAAA,GAAc,iBAAA,CAAkB,KAAA,EAAO,OAAO,CAAA;AAE7C,MAAM,MAAM,SAAA,CAAU;AAAA,EAC3B,WAAA;AAAA,EACA,WAAW,cAAA,CAAe;AAAA;AAAA;AAAA,IAGxB,SAAS,IAAI,GAAA,CAAI,SAAS,UAAA,CAAW,QAAA,CAAS,MAAM,CAAA,CAAE;AAAA,GACvD,CAAA;AAAA,EACD,SAAA,EAAW,OAAO,EAAC;AACrB,CAAC;;;;"}