@backstage-community/plugin-ilert 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/ILertIcon.esm.js.map +1 -1
- package/dist/api/client.esm.js.map +1 -1
- package/dist/components/Alert/AlertActionsMenu.esm.js.map +1 -1
- package/dist/components/Alert/AlertAssignModal.esm.js.map +1 -1
- package/dist/components/Alert/AlertLink.esm.js.map +1 -1
- package/dist/components/Alert/AlertNewModal.esm.js.map +1 -1
- package/dist/components/AlertSource/AlertSourceLink.esm.js.map +1 -1
- package/dist/components/AlertsPage/AlertsPage.esm.js.map +1 -1
- package/dist/components/AlertsPage/AlertsTable.esm.js.map +1 -1
- package/dist/components/AlertsPage/StatusChip.esm.js +1 -1
- package/dist/components/AlertsPage/StatusChip.esm.js.map +1 -1
- package/dist/components/AlertsPage/TableTitle.esm.js.map +1 -1
- package/dist/components/Errors/MissingAuthorizationHeaderError.esm.js.map +1 -1
- package/dist/components/ILertCard/ILertCard.esm.js.map +1 -1
- package/dist/components/ILertCard/ILertCardActionsHeader.esm.js +1 -1
- package/dist/components/ILertCard/ILertCardActionsHeader.esm.js.map +1 -1
- package/dist/components/ILertCard/ILertCardEmptyState.esm.js.map +1 -1
- package/dist/components/ILertCard/ILertCardHeaderStatus.esm.js.map +1 -1
- package/dist/components/ILertCard/ILertCardMaintenanceModal.esm.js.map +1 -1
- package/dist/components/ILertCard/ILertCardOnCall.esm.js +1 -1
- package/dist/components/ILertCard/ILertCardOnCall.esm.js.map +1 -1
- package/dist/components/ILertCard/ILertCardOnCallEmptyState.esm.js.map +1 -1
- package/dist/components/ILertCard/ILertCardOnCallItem.esm.js.map +1 -1
- package/dist/components/ILertCard/index.esm.js +6 -1
- package/dist/components/ILertCard/index.esm.js.map +1 -1
- package/dist/components/ILertPage/ILertPage.esm.js +1 -1
- package/dist/components/ILertPage/ILertPage.esm.js.map +1 -1
- package/dist/components/OnCallSchedulesPage/OnCallSchedulesGrid.esm.js.map +1 -1
- package/dist/components/OnCallSchedulesPage/OnCallSchedulesPage.esm.js.map +1 -1
- package/dist/components/OnCallSchedulesPage/OnCallShiftItem.esm.js.map +1 -1
- package/dist/components/Service/ServiceActionsMenu.esm.js.map +1 -1
- package/dist/components/Service/ServiceLink.esm.js.map +1 -1
- package/dist/components/ServicesPage/ServicesPage.esm.js.map +1 -1
- package/dist/components/ServicesPage/ServicesTable.esm.js.map +1 -1
- package/dist/components/ServicesPage/StatusChip.esm.js.map +1 -1
- package/dist/components/Shift/ShiftOverrideModal.esm.js.map +1 -1
- package/dist/components/StatusPage/StatusPageActionsMenu.esm.js.map +1 -1
- package/dist/components/StatusPage/StatusPageLink.esm.js.map +1 -1
- package/dist/components/StatusPage/StatusPageURL.esm.js.map +1 -1
- package/dist/components/StatusPagePage/StatusChip.esm.js.map +1 -1
- package/dist/components/StatusPagePage/StatusPagesPage.esm.js.map +1 -1
- package/dist/components/StatusPagePage/StatusPagesTable.esm.js.map +1 -1
- package/dist/components/StatusPagePage/VisibilityChip.esm.js.map +1 -1
- package/dist/components/index.esm.js +5 -1
- package/dist/components/index.esm.js.map +1 -1
- package/dist/constants.esm.js.map +1 -1
- package/dist/hooks/index.esm.js.map +1 -1
- package/dist/hooks/useAlertActions.esm.js.map +1 -1
- package/dist/hooks/useAlertSource.esm.js.map +1 -1
- package/dist/hooks/useAlertSourceOnCalls.esm.js.map +1 -1
- package/dist/hooks/useAlerts.esm.js.map +1 -1
- package/dist/hooks/useAssignAlert.esm.js.map +1 -1
- package/dist/hooks/useNewAlert.esm.js.map +1 -1
- package/dist/hooks/useOnCallSchedules.esm.js.map +1 -1
- package/dist/hooks/useServices.esm.js.map +1 -1
- package/dist/hooks/useShiftOverride.esm.js.map +1 -1
- package/dist/hooks/useStatusPages.esm.js.map +1 -1
- package/dist/plugin.esm.js +1 -1
- package/dist/plugin.esm.js.map +1 -1
- package/dist/route-refs.esm.js.map +1 -1
- package/dist/types.esm.js.map +1 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useShiftOverride.esm.js","sources":["../../src/hooks/useShiftOverride.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { useState } from 'react';\nimport { ilertApiRef } from '../api';\nimport { AuthenticationError } from '@backstage/errors';\nimport useAsyncRetry from 'react-use/esm/useAsyncRetry';\nimport { User, Shift } from '../types';\nimport { useApi, errorApiRef } from '@backstage/core-plugin-api';\n\nexport const useShiftOverride = (s: Shift, isModalOpened: boolean) => {\n const ilertApi = useApi(ilertApiRef);\n const errorApi = useApi(errorApiRef);\n\n const [shift, setShift] = useState<Shift>(s);\n const [usersList, setUsersList] = useState<User[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n\n const { error, retry } = useAsyncRetry(async () => {\n try {\n if (!isModalOpened) {\n return;\n }\n setIsLoading(true);\n const data = await ilertApi.fetchUsers();\n setUsersList(data || []);\n setIsLoading(false);\n } catch (e) {\n setIsLoading(false);\n if (!(e instanceof AuthenticationError)) {\n errorApi.post(e);\n }\n throw e;\n }\n }, [isModalOpened]);\n\n const setUser = (user: User) => {\n setShift({ ...shift, user });\n };\n\n const setStart = (start: string) => {\n setShift({ ...shift, start });\n };\n\n const setEnd = (end: string) => {\n setShift({ ...shift, end });\n };\n\n return [\n {\n shift,\n users: usersList,\n user: shift.user,\n start: shift.start,\n end: shift.end,\n error,\n isLoading,\n },\n {\n retry,\n setIsLoading,\n setUser,\n setStart,\n setEnd,\n },\n ] as const;\n};\n"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"useShiftOverride.esm.js","sources":["../../src/hooks/useShiftOverride.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { useState } from 'react';\nimport { ilertApiRef } from '../api';\nimport { AuthenticationError } from '@backstage/errors';\nimport useAsyncRetry from 'react-use/esm/useAsyncRetry';\nimport { User, Shift } from '../types';\nimport { useApi, errorApiRef } from '@backstage/core-plugin-api';\n\nexport const useShiftOverride = (s: Shift, isModalOpened: boolean) => {\n const ilertApi = useApi(ilertApiRef);\n const errorApi = useApi(errorApiRef);\n\n const [shift, setShift] = useState<Shift>(s);\n const [usersList, setUsersList] = useState<User[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n\n const { error, retry } = useAsyncRetry(async () => {\n try {\n if (!isModalOpened) {\n return;\n }\n setIsLoading(true);\n const data = await ilertApi.fetchUsers();\n setUsersList(data || []);\n setIsLoading(false);\n } catch (e) {\n setIsLoading(false);\n if (!(e instanceof AuthenticationError)) {\n errorApi.post(e);\n }\n throw e;\n }\n }, [isModalOpened]);\n\n const setUser = (user: User) => {\n setShift({ ...shift, user });\n };\n\n const setStart = (start: string) => {\n setShift({ ...shift, start });\n };\n\n const setEnd = (end: string) => {\n setShift({ ...shift, end });\n };\n\n return [\n {\n shift,\n users: usersList,\n user: shift.user,\n start: shift.start,\n end: shift.end,\n error,\n isLoading,\n },\n {\n retry,\n setIsLoading,\n setUser,\n setStart,\n setEnd,\n },\n ] as const;\n};\n"],"names":[],"mappings":";;;;;;AAsBO,MAAM,gBAAA,GAAmB,CAAC,CAAA,EAAU,aAAA,KAA2B;AACpE,EAAA,MAAM,QAAA,GAAW,OAAO,WAAW,CAAA;AACnC,EAAA,MAAM,QAAA,GAAW,OAAO,WAAW,CAAA;AAEnC,EAAA,MAAM,CAAC,KAAA,EAAO,QAAQ,CAAA,GAAI,SAAgB,CAAC,CAAA;AAC3C,EAAA,MAAM,CAAC,SAAA,EAAW,YAAY,CAAA,GAAI,QAAA,CAAiB,EAAE,CAAA;AACrD,EAAA,MAAM,CAAC,SAAA,EAAW,YAAY,CAAA,GAAI,SAAS,KAAK,CAAA;AAEhD,EAAA,MAAM,EAAE,KAAA,EAAO,KAAA,EAAM,GAAI,cAAc,YAAY;AACjD,IAAA,IAAI;AACF,MAAA,IAAI,CAAC,aAAA,EAAe;AAClB,QAAA;AAAA,MACF;AACA,MAAA,YAAA,CAAa,IAAI,CAAA;AACjB,MAAA,MAAM,IAAA,GAAO,MAAM,QAAA,CAAS,UAAA,EAAW;AACvC,MAAA,YAAA,CAAa,IAAA,IAAQ,EAAE,CAAA;AACvB,MAAA,YAAA,CAAa,KAAK,CAAA;AAAA,IACpB,SAAS,CAAA,EAAG;AACV,MAAA,YAAA,CAAa,KAAK,CAAA;AAClB,MAAA,IAAI,EAAE,aAAa,mBAAA,CAAA,EAAsB;AACvC,QAAA,QAAA,CAAS,KAAK,CAAC,CAAA;AAAA,MACjB;AACA,MAAA,MAAM,CAAA;AAAA,IACR;AAAA,EACF,CAAA,EAAG,CAAC,aAAa,CAAC,CAAA;AAElB,EAAA,MAAM,OAAA,GAAU,CAAC,IAAA,KAAe;AAC9B,IAAA,QAAA,CAAS,EAAE,GAAG,KAAA,EAAO,IAAA,EAAM,CAAA;AAAA,EAC7B,CAAA;AAEA,EAAA,MAAM,QAAA,GAAW,CAAC,KAAA,KAAkB;AAClC,IAAA,QAAA,CAAS,EAAE,GAAG,KAAA,EAAO,KAAA,EAAO,CAAA;AAAA,EAC9B,CAAA;AAEA,EAAA,MAAM,MAAA,GAAS,CAAC,GAAA,KAAgB;AAC9B,IAAA,QAAA,CAAS,EAAE,GAAG,KAAA,EAAO,GAAA,EAAK,CAAA;AAAA,EAC5B,CAAA;AAEA,EAAA,OAAO;AAAA,IACL;AAAA,MACE,KAAA;AAAA,MACA,KAAA,EAAO,SAAA;AAAA,MACP,MAAM,KAAA,CAAM,IAAA;AAAA,MACZ,OAAO,KAAA,CAAM,KAAA;AAAA,MACb,KAAK,KAAA,CAAM,GAAA;AAAA,MACX,KAAA;AAAA,MACA;AAAA,KACF;AAAA,IACA;AAAA,MACE,KAAA;AAAA,MACA,YAAA;AAAA,MACA,OAAA;AAAA,MACA,QAAA;AAAA,MACA;AAAA;AACF,GACF;AACF;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStatusPages.esm.js","sources":["../../src/hooks/useStatusPages.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { errorApiRef, useApi } from '@backstage/core-plugin-api';\nimport { AuthenticationError } from '@backstage/errors';\nimport { useState } from 'react';\nimport useAsyncRetry from 'react-use/esm/useAsyncRetry';\nimport { GetStatusPagesOpts, ilertApiRef, TableState } from '../api';\nimport { StatusPage } from '../types';\n\nexport const useStatusPages = (paging: boolean) => {\n const ilertApi = useApi(ilertApiRef);\n const errorApi = useApi(errorApiRef);\n\n const [tableState, setTableState] = useState<TableState>({\n page: 0,\n pageSize: 10,\n });\n\n const [statusPagesList, setStatusPagesList] = useState<StatusPage[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n\n const fetchStatusPagesCall = async () => {\n try {\n setIsLoading(true);\n const opts: GetStatusPagesOpts = {};\n if (paging) {\n opts.maxResults = tableState.pageSize;\n opts.startIndex = tableState.page * tableState.pageSize;\n }\n const data = await ilertApi.fetchStatusPages(opts);\n setStatusPagesList(data || []);\n setIsLoading(false);\n } catch (e) {\n if (!(e instanceof AuthenticationError)) {\n errorApi.post(e);\n }\n setIsLoading(false);\n throw e;\n }\n };\n\n const fetchStatusPages = useAsyncRetry(fetchStatusPagesCall, [tableState]);\n\n const refetchStatusPages = () => {\n setTableState({ ...tableState, page: 0 });\n Promise.all([fetchStatusPagesCall()]);\n };\n\n const error = fetchStatusPages.error;\n const retry = () => {\n fetchStatusPages.retry();\n };\n\n const onChangePage = (page: number) => {\n setTableState({ ...tableState, page });\n };\n const onChangeRowsPerPage = (p: number) => {\n setTableState({ ...tableState, pageSize: p });\n };\n\n return [\n {\n tableState,\n statusPages: statusPagesList,\n isLoading,\n error,\n },\n {\n setTableState,\n setStatusPagesList,\n setIsLoading,\n retry,\n refetchStatusPages,\n onChangePage,\n onChangeRowsPerPage,\n },\n ] as const;\n};\n"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"useStatusPages.esm.js","sources":["../../src/hooks/useStatusPages.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { errorApiRef, useApi } from '@backstage/core-plugin-api';\nimport { AuthenticationError } from '@backstage/errors';\nimport { useState } from 'react';\nimport useAsyncRetry from 'react-use/esm/useAsyncRetry';\nimport { GetStatusPagesOpts, ilertApiRef, TableState } from '../api';\nimport { StatusPage } from '../types';\n\nexport const useStatusPages = (paging: boolean) => {\n const ilertApi = useApi(ilertApiRef);\n const errorApi = useApi(errorApiRef);\n\n const [tableState, setTableState] = useState<TableState>({\n page: 0,\n pageSize: 10,\n });\n\n const [statusPagesList, setStatusPagesList] = useState<StatusPage[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n\n const fetchStatusPagesCall = async () => {\n try {\n setIsLoading(true);\n const opts: GetStatusPagesOpts = {};\n if (paging) {\n opts.maxResults = tableState.pageSize;\n opts.startIndex = tableState.page * tableState.pageSize;\n }\n const data = await ilertApi.fetchStatusPages(opts);\n setStatusPagesList(data || []);\n setIsLoading(false);\n } catch (e) {\n if (!(e instanceof AuthenticationError)) {\n errorApi.post(e);\n }\n setIsLoading(false);\n throw e;\n }\n };\n\n const fetchStatusPages = useAsyncRetry(fetchStatusPagesCall, [tableState]);\n\n const refetchStatusPages = () => {\n setTableState({ ...tableState, page: 0 });\n Promise.all([fetchStatusPagesCall()]);\n };\n\n const error = fetchStatusPages.error;\n const retry = () => {\n fetchStatusPages.retry();\n };\n\n const onChangePage = (page: number) => {\n setTableState({ ...tableState, page });\n };\n const onChangeRowsPerPage = (p: number) => {\n setTableState({ ...tableState, pageSize: p });\n };\n\n return [\n {\n tableState,\n statusPages: statusPagesList,\n isLoading,\n error,\n },\n {\n setTableState,\n setStatusPagesList,\n setIsLoading,\n retry,\n refetchStatusPages,\n onChangePage,\n onChangeRowsPerPage,\n },\n ] as const;\n};\n"],"names":[],"mappings":";;;;;;AAsBO,MAAM,cAAA,GAAiB,CAAC,MAAA,KAAoB;AACjD,EAAA,MAAM,QAAA,GAAW,OAAO,WAAW,CAAA;AACnC,EAAA,MAAM,QAAA,GAAW,OAAO,WAAW,CAAA;AAEnC,EAAA,MAAM,CAAC,UAAA,EAAY,aAAa,CAAA,GAAI,QAAA,CAAqB;AAAA,IACvD,IAAA,EAAM,CAAA;AAAA,IACN,QAAA,EAAU;AAAA,GACX,CAAA;AAED,EAAA,MAAM,CAAC,eAAA,EAAiB,kBAAkB,CAAA,GAAI,QAAA,CAAuB,EAAE,CAAA;AACvE,EAAA,MAAM,CAAC,SAAA,EAAW,YAAY,CAAA,GAAI,SAAS,KAAK,CAAA;AAEhD,EAAA,MAAM,uBAAuB,YAAY;AACvC,IAAA,IAAI;AACF,MAAA,YAAA,CAAa,IAAI,CAAA;AACjB,MAAA,MAAM,OAA2B,EAAC;AAClC,MAAA,IAAI,MAAA,EAAQ;AACV,QAAA,IAAA,CAAK,aAAa,UAAA,CAAW,QAAA;AAC7B,QAAA,IAAA,CAAK,UAAA,GAAa,UAAA,CAAW,IAAA,GAAO,UAAA,CAAW,QAAA;AAAA,MACjD;AACA,MAAA,MAAM,IAAA,GAAO,MAAM,QAAA,CAAS,gBAAA,CAAiB,IAAI,CAAA;AACjD,MAAA,kBAAA,CAAmB,IAAA,IAAQ,EAAE,CAAA;AAC7B,MAAA,YAAA,CAAa,KAAK,CAAA;AAAA,IACpB,SAAS,CAAA,EAAG;AACV,MAAA,IAAI,EAAE,aAAa,mBAAA,CAAA,EAAsB;AACvC,QAAA,QAAA,CAAS,KAAK,CAAC,CAAA;AAAA,MACjB;AACA,MAAA,YAAA,CAAa,KAAK,CAAA;AAClB,MAAA,MAAM,CAAA;AAAA,IACR;AAAA,EACF,CAAA;AAEA,EAAA,MAAM,gBAAA,GAAmB,aAAA,CAAc,oBAAA,EAAsB,CAAC,UAAU,CAAC,CAAA;AAEzE,EAAA,MAAM,qBAAqB,MAAM;AAC/B,IAAA,aAAA,CAAc,EAAE,GAAG,UAAA,EAAY,IAAA,EAAM,GAAG,CAAA;AACxC,IAAA,OAAA,CAAQ,GAAA,CAAI,CAAC,oBAAA,EAAsB,CAAC,CAAA;AAAA,EACtC,CAAA;AAEA,EAAA,MAAM,QAAQ,gBAAA,CAAiB,KAAA;AAC/B,EAAA,MAAM,QAAQ,MAAM;AAClB,IAAA,gBAAA,CAAiB,KAAA,EAAM;AAAA,EACzB,CAAA;AAEA,EAAA,MAAM,YAAA,GAAe,CAAC,IAAA,KAAiB;AACrC,IAAA,aAAA,CAAc,EAAE,GAAG,UAAA,EAAY,IAAA,EAAM,CAAA;AAAA,EACvC,CAAA;AACA,EAAA,MAAM,mBAAA,GAAsB,CAAC,CAAA,KAAc;AACzC,IAAA,aAAA,CAAc,EAAE,GAAG,UAAA,EAAY,QAAA,EAAU,GAAG,CAAA;AAAA,EAC9C,CAAA;AAEA,EAAA,OAAO;AAAA,IACL;AAAA,MACE,UAAA;AAAA,MACA,WAAA,EAAa,eAAA;AAAA,MACb,SAAA;AAAA,MACA;AAAA,KACF;AAAA,IACA;AAAA,MACE,aAAA;AAAA,MACA,kBAAA;AAAA,MACA,YAAA;AAAA,MACA,KAAA;AAAA,MACA,kBAAA;AAAA,MACA,YAAA;AAAA,MACA;AAAA;AACF,GACF;AACF;;;;"}
|
package/dist/plugin.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ilertApiRef, ILertClient } from './api/client.esm.js';
|
|
2
2
|
import { iLertRouteRef } from './route-refs.esm.js';
|
|
3
|
-
import { createPlugin, createApiFactory,
|
|
3
|
+
import { createPlugin, createApiFactory, fetchApiRef, configApiRef, discoveryApiRef, createRoutableExtension, createComponentExtension } from '@backstage/core-plugin-api';
|
|
4
4
|
|
|
5
5
|
const ilertPlugin = createPlugin({
|
|
6
6
|
id: "ilert",
|
package/dist/plugin.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ILertClient, ilertApiRef } from './api';\nimport { iLertRouteRef } from './route-refs';\nimport {\n configApiRef,\n createApiFactory,\n createPlugin,\n discoveryApiRef,\n createRoutableExtension,\n createComponentExtension,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\n\n/** @public */\nexport const ilertPlugin = createPlugin({\n id: 'ilert',\n apis: [\n createApiFactory({\n api: ilertApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n configApi: configApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, configApi, fetchApi }) =>\n ILertClient.fromConfig(configApi, discoveryApi, fetchApi),\n }),\n ],\n routes: {\n root: iLertRouteRef,\n },\n});\n\n/** @public */\nexport const ILertPage = ilertPlugin.provide(\n createRoutableExtension({\n name: 'ILertPage',\n component: () => import('./components').then(m => m.ILertPage),\n mountPoint: iLertRouteRef,\n }),\n);\n\n/** @public */\nexport const EntityILertCard = ilertPlugin.provide(\n createComponentExtension({\n name: 'EntityILertCard',\n component: {\n lazy: () => import('./components/ILertCard').then(m => m.ILertCard),\n },\n }),\n);\n"],"names":[],"mappings":";;;;AA6BO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ILertClient, ilertApiRef } from './api';\nimport { iLertRouteRef } from './route-refs';\nimport {\n configApiRef,\n createApiFactory,\n createPlugin,\n discoveryApiRef,\n createRoutableExtension,\n createComponentExtension,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\n\n/** @public */\nexport const ilertPlugin = createPlugin({\n id: 'ilert',\n apis: [\n createApiFactory({\n api: ilertApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n configApi: configApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, configApi, fetchApi }) =>\n ILertClient.fromConfig(configApi, discoveryApi, fetchApi),\n }),\n ],\n routes: {\n root: iLertRouteRef,\n },\n});\n\n/** @public */\nexport const ILertPage = ilertPlugin.provide(\n createRoutableExtension({\n name: 'ILertPage',\n component: () => import('./components').then(m => m.ILertPage),\n mountPoint: iLertRouteRef,\n }),\n);\n\n/** @public */\nexport const EntityILertCard = ilertPlugin.provide(\n createComponentExtension({\n name: 'EntityILertCard',\n component: {\n lazy: () => import('./components/ILertCard').then(m => m.ILertCard),\n },\n }),\n);\n"],"names":[],"mappings":";;;;AA6BO,MAAM,cAAc,YAAA,CAAa;AAAA,EACtC,EAAA,EAAI,OAAA;AAAA,EACJ,IAAA,EAAM;AAAA,IACJ,gBAAA,CAAiB;AAAA,MACf,GAAA,EAAK,WAAA;AAAA,MACL,IAAA,EAAM;AAAA,QACJ,YAAA,EAAc,eAAA;AAAA,QACd,SAAA,EAAW,YAAA;AAAA,QACX,QAAA,EAAU;AAAA,OACZ;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,SAAA,EAAW,QAAA,EAAS,KAC5C,WAAA,CAAY,UAAA,CAAW,SAAA,EAAW,YAAA,EAAc,QAAQ;AAAA,KAC3D;AAAA,GACH;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA;AAEV,CAAC;AAGM,MAAM,YAAY,WAAA,CAAY,OAAA;AAAA,EACnC,uBAAA,CAAwB;AAAA,IACtB,IAAA,EAAM,WAAA;AAAA,IACN,SAAA,EAAW,MAAM,OAAO,2BAAc,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,SAAS,CAAA;AAAA,IAC7D,UAAA,EAAY;AAAA,GACb;AACH;AAGO,MAAM,kBAAkB,WAAA,CAAY,OAAA;AAAA,EACzC,wBAAA,CAAyB;AAAA,IACvB,IAAA,EAAM,iBAAA;AAAA,IACN,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,MAAM,OAAO,qCAAwB,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,SAAS;AAAA;AACpE,GACD;AACH;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-refs.esm.js","sources":["../src/route-refs.tsx"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createRouteRef } from '@backstage/core-plugin-api';\n\n/** @public */\nexport const iLertRouteRef = createRouteRef({\n id: 'ilert',\n});\n"],"names":[],"mappings":";;AAmBO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"route-refs.esm.js","sources":["../src/route-refs.tsx"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createRouteRef } from '@backstage/core-plugin-api';\n\n/** @public */\nexport const iLertRouteRef = createRouteRef({\n id: 'ilert',\n});\n"],"names":[],"mappings":";;AAmBO,MAAM,gBAAgB,cAAA,CAAe;AAAA,EAC1C,EAAA,EAAI;AACN,CAAC;;;;"}
|
package/dist/types.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.esm.js","sources":["../src/types.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/** @public */\nexport interface Alert {\n id: number;\n summary: string;\n details: string;\n reportTime: string;\n resolvedOn: string;\n status: AlertStatus;\n priority: AlertPriority;\n alertKey: string;\n alertSource: AlertSource | null;\n assignedTo: User | null;\n responders: Responder[];\n logEntries: LogEntry[];\n links: Link[];\n images: Image[];\n subscribers: Subscriber[];\n commentText: string;\n commentPublishToSubscribers: boolean;\n}\n\n/** @public */\nexport const PENDING = 'PENDING';\n/** @public */\nexport const ACCEPTED = 'ACCEPTED';\n/** @public */\nexport const RESOLVED = 'RESOLVED';\n\n/** @public */\nexport type AlertStatus = typeof PENDING | typeof ACCEPTED | typeof RESOLVED;\n\n/** @public */\nexport type AlertPriority = 'HIGH' | 'LOW';\n\n/** @public */\nexport interface Link {\n href: string;\n text: string;\n}\n\n/** @public */\nexport interface Image {\n src: string;\n href: string;\n alt: string;\n}\n\n/** @public */\nexport type SubscriberType = 'TEAM' | 'USER';\n\n/** @public */\nexport interface Subscriber {\n id: number;\n name: string;\n type: SubscriberType;\n}\n\n/** @public */\nexport interface LogEntry {\n id: number;\n timestamp: string;\n logEntryType: string;\n text: string;\n alertId?: number;\n iconName?: string;\n iconClass?: string;\n filterTypes?: string[];\n}\n\n/** @public */\nexport interface User {\n id: number;\n username: string;\n firstName: string;\n lastName: string;\n email: string;\n mobile: Phone;\n landline: Phone;\n timezone?: string;\n language?: Language;\n role?: UserRole;\n notificationPreferences?: any[];\n position: string;\n department: string;\n}\n\n/** @public */\nexport interface Responder {\n acceptedAt?: string;\n status: string;\n user: User;\n}\n\n/** @public */\nexport type UserRole =\n | 'USER'\n | 'ADMIN'\n | 'STAKEHOLDER'\n | 'ACCOUNT_OWNER'\n | 'RESPONDER';\n/** @public */\nexport type Language = 'de' | 'en';\n/** @public */\nexport interface Phone {\n regionCode: string;\n number: string;\n}\n\n/** @public */\nexport interface AlertSource {\n id: number;\n name: string;\n status: AlertSourceStatus;\n escalationPolicy: EscalationPolicy;\n integrationType: AlertSourceIntegrationType;\n integrationKey?: string;\n iconUrl?: string;\n lightIconUrl?: string;\n darkIconUrl?: string;\n alertCreation?: AlertSourceAlertCreation;\n alertPriorityRule?: AlertSourceAlertPriorityRule;\n emailFiltered?: boolean;\n emailResolveFiltered?: boolean;\n active?: boolean;\n emailPredicates?: AlertSourceEmailPredicate[];\n emailResolvePredicates?: AlertSourceEmailPredicate[];\n filterOperator?: AlertSourceFilterOperator;\n resolveFilterOperator?: AlertSourceFilterOperator;\n supportHours?: AlertSourceSupportHours;\n heartbeat?: AlertSourceHeartbeat;\n autotaskMetadata?: AlertSourceAutotaskMetadata;\n autoResolutionTimeout?: string;\n teams: TeamShort[];\n}\n\n/** @public */\nexport interface TeamShort {\n id: number;\n name: string;\n}\n\n/** @public */\nexport interface TeamMember {\n user: User;\n role: 'STAKEHOLDER' | 'RESPONDER' | 'USER' | 'ADMIN';\n}\n\n/** @public */\nexport type AlertSourceStatus =\n | 'PENDING'\n | 'ALL_ACCEPTED'\n | 'ALL_RESOLVED'\n | 'IN_MAINTENANCE'\n | 'DISABLED';\n/** @public */\nexport type AlertSourceIntegrationType =\n | 'NAGIOS'\n | 'ICINGA'\n | 'EMAIL'\n | 'SMS'\n | 'API'\n | 'CRN'\n | 'HEARTBEAT'\n | 'PRTG'\n | 'PINGDOM'\n | 'CLOUDWATCH'\n | 'AWSPHD'\n | 'STACKDRIVER'\n | 'INSTANA'\n | 'ZABBIX'\n | 'SOLARWINDS'\n | 'PROMETHEUS'\n | 'NEWRELIC'\n | 'GRAFANA'\n | 'GITHUB'\n | 'DATADOG'\n | 'UPTIMEROBOT'\n | 'APPDYNAMICS'\n | 'DYNATRACE'\n | 'TOPDESK'\n | 'STATUSCAKE'\n | 'MONITOR'\n | 'TOOL'\n | 'CHECKMK'\n | 'AUTOTASK'\n | 'AWSBUDGET'\n | 'KENTIXAM'\n | 'CONSUL'\n | 'ZAMMAD'\n | 'SIGNALFX'\n | 'SPLUNK'\n | 'KUBERNETES'\n | 'SEMATEXT'\n | 'SENTRY'\n | 'SUMOLOGIC'\n | 'RAYGUN'\n | 'MXTOOLBOX'\n | 'ESWATCHER'\n | 'AMAZONSNS'\n | 'KAPACITOR'\n | 'CORTEXXSOAR'\n | string;\n/** @public */\nexport type AlertSourceAlertCreation =\n | 'ONE_ALERT_PER_EMAIL'\n | 'ONE_ALERT_PER_EMAIL_SUBJECT'\n | 'ONE_PENDING_ALERT_ALLOWED'\n | 'ONE_OPEN_ALERT_ALLOWED'\n | 'OPEN_RESOLVE_ON_EXTRACTION';\n/** @public */\nexport type AlertSourceFilterOperator = 'AND' | 'OR';\n/** @public */\nexport type AlertSourceAlertPriorityRule =\n | 'HIGH'\n | 'LOW'\n | 'HIGH_DURING_SUPPORT_HOURS'\n | 'LOW_DURING_SUPPORT_HOURS';\n\n/** @public */\nexport const OPERATIONAL = 'OPERATIONAL';\n/** @public */\nexport const UNDER_MAINTENANCE = 'UNDER_MAINTENANCE';\n/** @public */\nexport const DEGRADED = 'DEGRADED';\n/** @public */\nexport const PARTIAL_OUTAGE = 'PARTIAL_OUTAGE';\n/** @public */\nexport const MAJOR_OUTAGE = 'MAJOR_OUTAGE';\n\n/** @public */\nexport type ServiceStatus =\n | typeof OPERATIONAL\n | typeof UNDER_MAINTENANCE\n | typeof DEGRADED\n | typeof PARTIAL_OUTAGE\n | typeof MAJOR_OUTAGE;\n\n/** @public */\nexport const PRIVATE = 'PRIVATE';\n/** @public */\nexport const PUBLIC = 'PUBLIC';\n\n/** @public */\nexport type StatusPageVisibility = typeof PRIVATE | typeof PUBLIC;\n\n/** @public */\nexport interface AlertSourceEmailPredicate {\n field: 'EMAIL_FROM' | 'EMAIL_SUBJECT' | 'EMAIL_BODY';\n criteria:\n | 'CONTAINS_ANY_WORDS'\n | 'CONTAINS_NOT_WORDS'\n | 'CONTAINS_STRING'\n | 'CONTAINS_NOT_STRING'\n | 'IS_STRING'\n | 'IS_NOT_STRING'\n | 'MATCHES_REGEX'\n | 'MATCHES_NOT_REGEX';\n value: string;\n}\n/** @public */\nexport type AlertSourceTimeZone =\n | 'Europe/Berlin'\n | 'America/New_York'\n | 'America/Los_Angeles'\n | 'Asia/Istanbul';\n/** @public */\nexport interface AlertSourceSupportDay {\n start: string;\n end: string;\n}\n/** @public */\nexport interface AlertSourceSupportHours {\n timezone: AlertSourceTimeZone;\n autoRaiseAlerts: boolean;\n supportDays: {\n MONDAY: AlertSourceSupportDay;\n TUESDAY: AlertSourceSupportDay;\n WEDNESDAY: AlertSourceSupportDay;\n THURSDAY: AlertSourceSupportDay;\n FRIDAY: AlertSourceSupportDay;\n SATURDAY: AlertSourceSupportDay;\n SUNDAY: AlertSourceSupportDay;\n };\n}\n/** @public */\nexport interface AlertSourceHeartbeat {\n summary: string;\n intervalSec: number;\n status: 'OVERDUE' | 'ON_TIME' | 'NEVER_RECEIVED';\n}\n\n/** @public */\nexport interface AlertSourceAutotaskMetadata {\n userName: string;\n secret: string;\n apiIntegrationCode: string;\n webServer: string;\n}\n\n/** @public */\nexport interface EscalationPolicy {\n id: number;\n name: string;\n escalationRules: EscalationRule[];\n newEscalationRule: EscalationRule;\n repeating?: boolean;\n frequency?: number;\n teams: TeamShort[];\n}\n\n/** @public */\nexport interface EscalationRule {\n user: User | null;\n schedule: Schedule | null;\n escalationTimeout: number;\n}\n\n/** @public */\nexport interface Schedule {\n id: number;\n name: string;\n timezone: string;\n startsOn: string;\n currentShift: Shift;\n nextShift: Shift;\n shifts: Shift[];\n overrides: Shift[];\n teams: TeamShort[];\n}\n\n/** @public */\nexport interface Shift {\n user: User;\n start: string;\n end: string;\n}\n\n/** @public */\nexport interface AlertResponder {\n group: 'SUGGESTED' | 'USER' | 'ESCALATION_POLICY' | 'ON_CALL_SCHEDULE';\n id: number;\n name: string;\n disabled: boolean;\n}\n\n/** @public */\nexport interface AlertAction {\n name: string;\n type: string;\n webhookId: string;\n extensionId?: string;\n history?: AlertActionHistory[];\n}\n\n/** @public */\nexport interface AlertActionHistory {\n id: string;\n webhookId: string;\n alertId: number;\n actor: User;\n success: boolean;\n}\n\n/** @public */\nexport interface OnCall {\n user: User;\n escalationPolicy: EscalationPolicy;\n schedule?: Schedule;\n start: string;\n end: string;\n escalationLevel: number;\n}\n\n/** @public */\nexport interface Service {\n id: number;\n name: string;\n status: ServiceStatus;\n uptime: Uptime;\n}\n\n/** @public */\nexport interface Uptime {\n uptimePercentage: UptimePercentage;\n}\n\n/** @public */\nexport interface UptimePercentage {\n p90: number;\n}\n\n/** @public */\nexport interface StatusPage {\n id: number;\n name: string;\n domain: string;\n subdomain: string;\n visibility: StatusPageVisibility;\n status: ServiceStatus;\n}\n"],"names":[],"mappings":"AAsCO,MAAM,
|
|
1
|
+
{"version":3,"file":"types.esm.js","sources":["../src/types.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/** @public */\nexport interface Alert {\n id: number;\n summary: string;\n details: string;\n reportTime: string;\n resolvedOn: string;\n status: AlertStatus;\n priority: AlertPriority;\n alertKey: string;\n alertSource: AlertSource | null;\n assignedTo: User | null;\n responders: Responder[];\n logEntries: LogEntry[];\n links: Link[];\n images: Image[];\n subscribers: Subscriber[];\n commentText: string;\n commentPublishToSubscribers: boolean;\n}\n\n/** @public */\nexport const PENDING = 'PENDING';\n/** @public */\nexport const ACCEPTED = 'ACCEPTED';\n/** @public */\nexport const RESOLVED = 'RESOLVED';\n\n/** @public */\nexport type AlertStatus = typeof PENDING | typeof ACCEPTED | typeof RESOLVED;\n\n/** @public */\nexport type AlertPriority = 'HIGH' | 'LOW';\n\n/** @public */\nexport interface Link {\n href: string;\n text: string;\n}\n\n/** @public */\nexport interface Image {\n src: string;\n href: string;\n alt: string;\n}\n\n/** @public */\nexport type SubscriberType = 'TEAM' | 'USER';\n\n/** @public */\nexport interface Subscriber {\n id: number;\n name: string;\n type: SubscriberType;\n}\n\n/** @public */\nexport interface LogEntry {\n id: number;\n timestamp: string;\n logEntryType: string;\n text: string;\n alertId?: number;\n iconName?: string;\n iconClass?: string;\n filterTypes?: string[];\n}\n\n/** @public */\nexport interface User {\n id: number;\n username: string;\n firstName: string;\n lastName: string;\n email: string;\n mobile: Phone;\n landline: Phone;\n timezone?: string;\n language?: Language;\n role?: UserRole;\n notificationPreferences?: any[];\n position: string;\n department: string;\n}\n\n/** @public */\nexport interface Responder {\n acceptedAt?: string;\n status: string;\n user: User;\n}\n\n/** @public */\nexport type UserRole =\n | 'USER'\n | 'ADMIN'\n | 'STAKEHOLDER'\n | 'ACCOUNT_OWNER'\n | 'RESPONDER';\n/** @public */\nexport type Language = 'de' | 'en';\n/** @public */\nexport interface Phone {\n regionCode: string;\n number: string;\n}\n\n/** @public */\nexport interface AlertSource {\n id: number;\n name: string;\n status: AlertSourceStatus;\n escalationPolicy: EscalationPolicy;\n integrationType: AlertSourceIntegrationType;\n integrationKey?: string;\n iconUrl?: string;\n lightIconUrl?: string;\n darkIconUrl?: string;\n alertCreation?: AlertSourceAlertCreation;\n alertPriorityRule?: AlertSourceAlertPriorityRule;\n emailFiltered?: boolean;\n emailResolveFiltered?: boolean;\n active?: boolean;\n emailPredicates?: AlertSourceEmailPredicate[];\n emailResolvePredicates?: AlertSourceEmailPredicate[];\n filterOperator?: AlertSourceFilterOperator;\n resolveFilterOperator?: AlertSourceFilterOperator;\n supportHours?: AlertSourceSupportHours;\n heartbeat?: AlertSourceHeartbeat;\n autotaskMetadata?: AlertSourceAutotaskMetadata;\n autoResolutionTimeout?: string;\n teams: TeamShort[];\n}\n\n/** @public */\nexport interface TeamShort {\n id: number;\n name: string;\n}\n\n/** @public */\nexport interface TeamMember {\n user: User;\n role: 'STAKEHOLDER' | 'RESPONDER' | 'USER' | 'ADMIN';\n}\n\n/** @public */\nexport type AlertSourceStatus =\n | 'PENDING'\n | 'ALL_ACCEPTED'\n | 'ALL_RESOLVED'\n | 'IN_MAINTENANCE'\n | 'DISABLED';\n/** @public */\nexport type AlertSourceIntegrationType =\n | 'NAGIOS'\n | 'ICINGA'\n | 'EMAIL'\n | 'SMS'\n | 'API'\n | 'CRN'\n | 'HEARTBEAT'\n | 'PRTG'\n | 'PINGDOM'\n | 'CLOUDWATCH'\n | 'AWSPHD'\n | 'STACKDRIVER'\n | 'INSTANA'\n | 'ZABBIX'\n | 'SOLARWINDS'\n | 'PROMETHEUS'\n | 'NEWRELIC'\n | 'GRAFANA'\n | 'GITHUB'\n | 'DATADOG'\n | 'UPTIMEROBOT'\n | 'APPDYNAMICS'\n | 'DYNATRACE'\n | 'TOPDESK'\n | 'STATUSCAKE'\n | 'MONITOR'\n | 'TOOL'\n | 'CHECKMK'\n | 'AUTOTASK'\n | 'AWSBUDGET'\n | 'KENTIXAM'\n | 'CONSUL'\n | 'ZAMMAD'\n | 'SIGNALFX'\n | 'SPLUNK'\n | 'KUBERNETES'\n | 'SEMATEXT'\n | 'SENTRY'\n | 'SUMOLOGIC'\n | 'RAYGUN'\n | 'MXTOOLBOX'\n | 'ESWATCHER'\n | 'AMAZONSNS'\n | 'KAPACITOR'\n | 'CORTEXXSOAR'\n | string;\n/** @public */\nexport type AlertSourceAlertCreation =\n | 'ONE_ALERT_PER_EMAIL'\n | 'ONE_ALERT_PER_EMAIL_SUBJECT'\n | 'ONE_PENDING_ALERT_ALLOWED'\n | 'ONE_OPEN_ALERT_ALLOWED'\n | 'OPEN_RESOLVE_ON_EXTRACTION';\n/** @public */\nexport type AlertSourceFilterOperator = 'AND' | 'OR';\n/** @public */\nexport type AlertSourceAlertPriorityRule =\n | 'HIGH'\n | 'LOW'\n | 'HIGH_DURING_SUPPORT_HOURS'\n | 'LOW_DURING_SUPPORT_HOURS';\n\n/** @public */\nexport const OPERATIONAL = 'OPERATIONAL';\n/** @public */\nexport const UNDER_MAINTENANCE = 'UNDER_MAINTENANCE';\n/** @public */\nexport const DEGRADED = 'DEGRADED';\n/** @public */\nexport const PARTIAL_OUTAGE = 'PARTIAL_OUTAGE';\n/** @public */\nexport const MAJOR_OUTAGE = 'MAJOR_OUTAGE';\n\n/** @public */\nexport type ServiceStatus =\n | typeof OPERATIONAL\n | typeof UNDER_MAINTENANCE\n | typeof DEGRADED\n | typeof PARTIAL_OUTAGE\n | typeof MAJOR_OUTAGE;\n\n/** @public */\nexport const PRIVATE = 'PRIVATE';\n/** @public */\nexport const PUBLIC = 'PUBLIC';\n\n/** @public */\nexport type StatusPageVisibility = typeof PRIVATE | typeof PUBLIC;\n\n/** @public */\nexport interface AlertSourceEmailPredicate {\n field: 'EMAIL_FROM' | 'EMAIL_SUBJECT' | 'EMAIL_BODY';\n criteria:\n | 'CONTAINS_ANY_WORDS'\n | 'CONTAINS_NOT_WORDS'\n | 'CONTAINS_STRING'\n | 'CONTAINS_NOT_STRING'\n | 'IS_STRING'\n | 'IS_NOT_STRING'\n | 'MATCHES_REGEX'\n | 'MATCHES_NOT_REGEX';\n value: string;\n}\n/** @public */\nexport type AlertSourceTimeZone =\n | 'Europe/Berlin'\n | 'America/New_York'\n | 'America/Los_Angeles'\n | 'Asia/Istanbul';\n/** @public */\nexport interface AlertSourceSupportDay {\n start: string;\n end: string;\n}\n/** @public */\nexport interface AlertSourceSupportHours {\n timezone: AlertSourceTimeZone;\n autoRaiseAlerts: boolean;\n supportDays: {\n MONDAY: AlertSourceSupportDay;\n TUESDAY: AlertSourceSupportDay;\n WEDNESDAY: AlertSourceSupportDay;\n THURSDAY: AlertSourceSupportDay;\n FRIDAY: AlertSourceSupportDay;\n SATURDAY: AlertSourceSupportDay;\n SUNDAY: AlertSourceSupportDay;\n };\n}\n/** @public */\nexport interface AlertSourceHeartbeat {\n summary: string;\n intervalSec: number;\n status: 'OVERDUE' | 'ON_TIME' | 'NEVER_RECEIVED';\n}\n\n/** @public */\nexport interface AlertSourceAutotaskMetadata {\n userName: string;\n secret: string;\n apiIntegrationCode: string;\n webServer: string;\n}\n\n/** @public */\nexport interface EscalationPolicy {\n id: number;\n name: string;\n escalationRules: EscalationRule[];\n newEscalationRule: EscalationRule;\n repeating?: boolean;\n frequency?: number;\n teams: TeamShort[];\n}\n\n/** @public */\nexport interface EscalationRule {\n user: User | null;\n schedule: Schedule | null;\n escalationTimeout: number;\n}\n\n/** @public */\nexport interface Schedule {\n id: number;\n name: string;\n timezone: string;\n startsOn: string;\n currentShift: Shift;\n nextShift: Shift;\n shifts: Shift[];\n overrides: Shift[];\n teams: TeamShort[];\n}\n\n/** @public */\nexport interface Shift {\n user: User;\n start: string;\n end: string;\n}\n\n/** @public */\nexport interface AlertResponder {\n group: 'SUGGESTED' | 'USER' | 'ESCALATION_POLICY' | 'ON_CALL_SCHEDULE';\n id: number;\n name: string;\n disabled: boolean;\n}\n\n/** @public */\nexport interface AlertAction {\n name: string;\n type: string;\n webhookId: string;\n extensionId?: string;\n history?: AlertActionHistory[];\n}\n\n/** @public */\nexport interface AlertActionHistory {\n id: string;\n webhookId: string;\n alertId: number;\n actor: User;\n success: boolean;\n}\n\n/** @public */\nexport interface OnCall {\n user: User;\n escalationPolicy: EscalationPolicy;\n schedule?: Schedule;\n start: string;\n end: string;\n escalationLevel: number;\n}\n\n/** @public */\nexport interface Service {\n id: number;\n name: string;\n status: ServiceStatus;\n uptime: Uptime;\n}\n\n/** @public */\nexport interface Uptime {\n uptimePercentage: UptimePercentage;\n}\n\n/** @public */\nexport interface UptimePercentage {\n p90: number;\n}\n\n/** @public */\nexport interface StatusPage {\n id: number;\n name: string;\n domain: string;\n subdomain: string;\n visibility: StatusPageVisibility;\n status: ServiceStatus;\n}\n"],"names":[],"mappings":"AAsCO,MAAM,OAAA,GAAU;AAEhB,MAAM,QAAA,GAAW;AAEjB,MAAM,QAAA,GAAW;AAiMjB,MAAM,WAAA,GAAc;AAEpB,MAAM,iBAAA,GAAoB;AAE1B,MAAM,QAAA,GAAW;AAEjB,MAAM,cAAA,GAAiB;AAEvB,MAAM,YAAA,GAAe;AAWrB,MAAM,OAAA,GAAU;AAEhB,MAAM,MAAA,GAAS;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-ilert",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "A Backstage plugin that integrates towards iLert",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"test": "backstage-cli package test"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@backstage/catalog-model": "^1.
|
|
42
|
-
"@backstage/core-components": "^0.18.
|
|
43
|
-
"@backstage/core-plugin-api": "^1.12.
|
|
44
|
-
"@backstage/errors": "^1.
|
|
45
|
-
"@backstage/frontend-plugin-api": "^0.
|
|
46
|
-
"@backstage/plugin-catalog-react": "^2.1.
|
|
41
|
+
"@backstage/catalog-model": "^1.8.0",
|
|
42
|
+
"@backstage/core-components": "^0.18.9",
|
|
43
|
+
"@backstage/core-plugin-api": "^1.12.5",
|
|
44
|
+
"@backstage/errors": "^1.3.0",
|
|
45
|
+
"@backstage/frontend-plugin-api": "^0.16.2",
|
|
46
|
+
"@backstage/plugin-catalog-react": "^2.1.4",
|
|
47
47
|
"@date-io/luxon": "1.x",
|
|
48
48
|
"@material-ui/core": "^4.12.2",
|
|
49
49
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"react-use": "^17.2.4"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@backstage/cli": "^0.36.
|
|
59
|
-
"@backstage/dev-utils": "^1.1.
|
|
58
|
+
"@backstage/cli": "^0.36.1",
|
|
59
|
+
"@backstage/dev-utils": "^1.1.22",
|
|
60
60
|
"@testing-library/jest-dom": "^6.0.0",
|
|
61
61
|
"@types/humanize-duration": "^3.18.1",
|
|
62
62
|
"@types/react-dom": "^18.2.19",
|