@pagerduty/backstage-plugin 0.15.9 → 0.15.10-next.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/README.md +36 -0
- package/package.json +32 -19
- package/assets/PD-Green.svg +0 -21
- package/assets/PD-Icon.svg +0 -13
- package/assets/PD-White.svg +0 -21
- package/assets/emptystate.svg +0 -6
- package/assets/forbiddenstate.svg +0 -25
- package/dist/api/client.esm.js +0 -225
- package/dist/api/client.esm.js.map +0 -1
- package/dist/assets/PD-Green.svg +0 -21
- package/dist/assets/PD-Icon.svg +0 -13
- package/dist/assets/PD-White.svg +0 -21
- package/dist/assets/emptystate.svg +0 -6
- package/dist/assets/forbiddenstate.svg +0 -25
- package/dist/components/ChangeEvents/ChangeEventEmptyState.esm.js +0 -29
- package/dist/components/ChangeEvents/ChangeEventEmptyState.esm.js.map +0 -1
- package/dist/components/ChangeEvents/ChangeEventForbiddenState.esm.js +0 -29
- package/dist/components/ChangeEvents/ChangeEventForbiddenState.esm.js.map +0 -1
- package/dist/components/ChangeEvents/ChangeEventListItem.esm.js +0 -82
- package/dist/components/ChangeEvents/ChangeEventListItem.esm.js.map +0 -1
- package/dist/components/ChangeEvents/ChangeEvents.esm.js +0 -52
- package/dist/components/ChangeEvents/ChangeEvents.esm.js.map +0 -1
- package/dist/components/EntityPagerDutyCard/index.esm.js +0 -26
- package/dist/components/EntityPagerDutyCard/index.esm.js.map +0 -1
- package/dist/components/EntityPagerDutySmallCard/index.esm.js +0 -26
- package/dist/components/EntityPagerDutySmallCard/index.esm.js.map +0 -1
- package/dist/components/Errors/ForbiddenError.esm.js +0 -24
- package/dist/components/Errors/ForbiddenError.esm.js.map +0 -1
- package/dist/components/Errors/MissingTokenError.esm.js +0 -24
- package/dist/components/Errors/MissingTokenError.esm.js.map +0 -1
- package/dist/components/Errors/ServiceNotFoundError.esm.js +0 -24
- package/dist/components/Errors/ServiceNotFoundError.esm.js.map +0 -1
- package/dist/components/Escalation/EscalationPolicy.esm.js +0 -61
- package/dist/components/Escalation/EscalationPolicy.esm.js.map +0 -1
- package/dist/components/Escalation/EscalationUser.esm.js +0 -107
- package/dist/components/Escalation/EscalationUser.esm.js.map +0 -1
- package/dist/components/Escalation/EscalationUsersEmptyState.esm.js +0 -23
- package/dist/components/Escalation/EscalationUsersEmptyState.esm.js.map +0 -1
- package/dist/components/Escalation/EscalationUsersForbiddenState.esm.js +0 -23
- package/dist/components/Escalation/EscalationUsersForbiddenState.esm.js.map +0 -1
- package/dist/components/HomePagePagerDutyCard/Content.esm.js +0 -9
- package/dist/components/HomePagePagerDutyCard/Content.esm.js.map +0 -1
- package/dist/components/HomePagePagerDutyCard/index.esm.js +0 -2
- package/dist/components/HomePagePagerDutyCard/index.esm.js.map +0 -1
- package/dist/components/Icons/index.esm.js +0 -9
- package/dist/components/Icons/index.esm.js.map +0 -1
- package/dist/components/Incident/IncidentEmptyState.esm.js +0 -29
- package/dist/components/Incident/IncidentEmptyState.esm.js.map +0 -1
- package/dist/components/Incident/IncidentForbiddenState.esm.js +0 -29
- package/dist/components/Incident/IncidentForbiddenState.esm.js.map +0 -1
- package/dist/components/Incident/IncidentListItem.esm.js +0 -126
- package/dist/components/Incident/IncidentListItem.esm.js.map +0 -1
- package/dist/components/Incident/Incidents.esm.js +0 -46
- package/dist/components/Incident/Incidents.esm.js.map +0 -1
- package/dist/components/PagerDutyCard/index.esm.js +0 -239
- package/dist/components/PagerDutyCard/index.esm.js.map +0 -1
- package/dist/components/PagerDutyCardCommon/InsightsCard.esm.js +0 -41
- package/dist/components/PagerDutyCardCommon/InsightsCard.esm.js.map +0 -1
- package/dist/components/PagerDutyCardCommon/OpenServiceButton.esm.js +0 -48
- package/dist/components/PagerDutyCardCommon/OpenServiceButton.esm.js.map +0 -1
- package/dist/components/PagerDutyCardCommon/ServiceStandardsCard.esm.js +0 -113
- package/dist/components/PagerDutyCardCommon/ServiceStandardsCard.esm.js.map +0 -1
- package/dist/components/PagerDutyCardCommon/StatusCard.esm.js +0 -109
- package/dist/components/PagerDutyCardCommon/StatusCard.esm.js.map +0 -1
- package/dist/components/PagerDutyCardCommon/TriggerIncidentButton.esm.js +0 -71
- package/dist/components/PagerDutyCardCommon/TriggerIncidentButton.esm.js.map +0 -1
- package/dist/components/PagerDutyPage/MappingTable.esm.js +0 -271
- package/dist/components/PagerDutyPage/MappingTable.esm.js.map +0 -1
- package/dist/components/PagerDutyPage/ServiceMappingComponent.esm.js +0 -50
- package/dist/components/PagerDutyPage/ServiceMappingComponent.esm.js.map +0 -1
- package/dist/components/PagerDutyPage/index.esm.js +0 -152
- package/dist/components/PagerDutyPage/index.esm.js.map +0 -1
- package/dist/components/PagerDutySmallCard/index.esm.js +0 -247
- package/dist/components/PagerDutySmallCard/index.esm.js.map +0 -1
- package/dist/components/TriggerButton/index.esm.js +0 -51
- package/dist/components/TriggerButton/index.esm.js.map +0 -1
- package/dist/components/TriggerDialog/TriggerDialog.esm.js +0 -116
- package/dist/components/TriggerDialog/TriggerDialog.esm.js.map +0 -1
- package/dist/components/constants.esm.js +0 -6
- package/dist/components/constants.esm.js.map +0 -1
- package/dist/components/pagerDutyEntity.esm.js +0 -14
- package/dist/components/pagerDutyEntity.esm.js.map +0 -1
- package/dist/deprecated.esm.js +0 -10
- package/dist/deprecated.esm.js.map +0 -1
- package/dist/hooks/index.esm.js +0 -10
- package/dist/hooks/index.esm.js.map +0 -1
- package/dist/index.d.ts +0 -182
- package/dist/index.esm.js +0 -8
- package/dist/index.esm.js.map +0 -1
- package/dist/plugin.esm.js +0 -78
- package/dist/plugin.esm.js.map +0 -1
package/dist/index.d.ts
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import * as _backstage_plugin_home_react from '@backstage/plugin-home-react';
|
|
2
|
-
import { Entity } from '@backstage/catalog-model';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
5
|
-
import { DiscoveryApi, FetchApi, ConfigApi } from '@backstage/core-plugin-api';
|
|
6
|
-
import { ReactNode } from 'react';
|
|
7
|
-
import { PagerDutySetting, PagerDutyEntityMappingsResponse, PagerDutyServiceResponse, PagerDutyIncidentsResponse, PagerDutyChangeEventsResponse, PagerDutyServiceStandardsResponse, PagerDutyServiceMetricsResponse, PagerDutyUser } from '@pagerduty/backstage-plugin-common';
|
|
8
|
-
|
|
9
|
-
/** @public */
|
|
10
|
-
declare const isPluginApplicableToEntity$1: (entity: Entity) => boolean;
|
|
11
|
-
/** @public */
|
|
12
|
-
type EntityPagerDutySmallCardProps = {
|
|
13
|
-
readOnly?: boolean;
|
|
14
|
-
disableInsights?: boolean;
|
|
15
|
-
disableOnCall?: boolean;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/** @public */
|
|
19
|
-
declare const isPluginApplicableToEntity: (entity: Entity) => boolean;
|
|
20
|
-
/** @public */
|
|
21
|
-
type EntityPagerDutyCardProps = {
|
|
22
|
-
readOnly?: boolean;
|
|
23
|
-
disableChangeEvents?: boolean;
|
|
24
|
-
disableOnCall?: boolean;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/** @public */
|
|
28
|
-
type PagerDutyEntity = {
|
|
29
|
-
integrationKey?: string;
|
|
30
|
-
serviceId?: string;
|
|
31
|
-
account?: string;
|
|
32
|
-
name: string;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/** @public */
|
|
36
|
-
type HomePagePagerDutyCardProps = PagerDutyEntity & {
|
|
37
|
-
readOnly?: boolean;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/** @public */
|
|
41
|
-
declare const pagerDutyPlugin: _backstage_core_plugin_api.BackstagePlugin<{}, {}, {}>;
|
|
42
|
-
/** @public */
|
|
43
|
-
declare const PagerDutyPage: () => react_jsx_runtime.JSX.Element;
|
|
44
|
-
/** @public */
|
|
45
|
-
declare const EntityPagerDutyCard: (props: EntityPagerDutyCardProps) => react_jsx_runtime.JSX.Element;
|
|
46
|
-
/** @public */
|
|
47
|
-
declare const EntityPagerDutySmallCard: (props: EntityPagerDutySmallCardProps) => react_jsx_runtime.JSX.Element;
|
|
48
|
-
/** @public */
|
|
49
|
-
declare const HomePagePagerDutyCard: (props: _backstage_plugin_home_react.CardExtensionProps<HomePagePagerDutyCardProps>) => react_jsx_runtime.JSX.Element;
|
|
50
|
-
|
|
51
|
-
/** @public */
|
|
52
|
-
declare function PagerDutyIcon(): react_jsx_runtime.JSX.Element;
|
|
53
|
-
|
|
54
|
-
/** @public */
|
|
55
|
-
declare function TriggerButton(props: {
|
|
56
|
-
children?: ReactNode;
|
|
57
|
-
}): react_jsx_runtime.JSX.Element;
|
|
58
|
-
|
|
59
|
-
/** @public */
|
|
60
|
-
type PagerDutyTriggerAlarmRequest = {
|
|
61
|
-
integrationKey: string;
|
|
62
|
-
source: string;
|
|
63
|
-
description: string;
|
|
64
|
-
userName: string;
|
|
65
|
-
};
|
|
66
|
-
/** @public */
|
|
67
|
-
interface PagerDutyApi {
|
|
68
|
-
/**
|
|
69
|
-
* Fetches PagerDuty setting from store.
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
72
|
-
getSetting(id: string): Promise<PagerDutySetting>;
|
|
73
|
-
/**
|
|
74
|
-
* Stores PagerDuty setting in the database.
|
|
75
|
-
*
|
|
76
|
-
*/
|
|
77
|
-
storeSettings(settings: PagerDutySetting[]): Promise<Response>;
|
|
78
|
-
/**
|
|
79
|
-
* Fetches all entity mappings.
|
|
80
|
-
*
|
|
81
|
-
*/
|
|
82
|
-
getEntityMappings(): Promise<PagerDutyEntityMappingsResponse>;
|
|
83
|
-
/**
|
|
84
|
-
* Stores the service mapping in the database.
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
storeServiceMapping(serviceId: string, integrationKey: string, entityRef: string, account: string): Promise<Response>;
|
|
88
|
-
/**
|
|
89
|
-
* Fetches the service for the provided pager duty Entity.
|
|
90
|
-
*
|
|
91
|
-
*/
|
|
92
|
-
getServiceByPagerDutyEntity(pagerDutyEntity: PagerDutyEntity): Promise<PagerDutyServiceResponse>;
|
|
93
|
-
/**
|
|
94
|
-
* Fetches the service for the provided Entity.
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
getServiceByEntity(entity: Entity): Promise<PagerDutyServiceResponse>;
|
|
98
|
-
/**
|
|
99
|
-
* Fetches service with the provided service id.
|
|
100
|
-
*
|
|
101
|
-
*/
|
|
102
|
-
getServiceById(serviceId: string, account?: string): Promise<PagerDutyServiceResponse>;
|
|
103
|
-
/**
|
|
104
|
-
* Fetches a list of incidents a provided service has.
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
getIncidentsByServiceId(serviceId: string, account?: string): Promise<PagerDutyIncidentsResponse>;
|
|
108
|
-
/**
|
|
109
|
-
* Fetches a list of change events a provided service has.
|
|
110
|
-
*
|
|
111
|
-
*/
|
|
112
|
-
getChangeEventsByServiceId(serviceId: string, account?: string): Promise<PagerDutyChangeEventsResponse>;
|
|
113
|
-
/**
|
|
114
|
-
* Fetches a list of standards for a provided service.
|
|
115
|
-
*
|
|
116
|
-
*/
|
|
117
|
-
getServiceStandardsByServiceId(serviceId: string, account?: string): Promise<PagerDutyServiceStandardsResponse>;
|
|
118
|
-
/**
|
|
119
|
-
* Fetches a list of metrics for a provided service.
|
|
120
|
-
*
|
|
121
|
-
*/
|
|
122
|
-
getServiceMetricsByServiceId(serviceId: string, account?: string): Promise<PagerDutyServiceMetricsResponse>;
|
|
123
|
-
/**
|
|
124
|
-
* Fetches the list of users in an escalation policy.
|
|
125
|
-
*
|
|
126
|
-
*/
|
|
127
|
-
getOnCallByPolicyId(policyId: string, account?: string): Promise<PagerDutyUser[]>;
|
|
128
|
-
/**
|
|
129
|
-
* Triggers an incident to whoever is on-call.
|
|
130
|
-
*/
|
|
131
|
-
triggerAlarm(request: PagerDutyTriggerAlarmRequest): Promise<Response>;
|
|
132
|
-
}
|
|
133
|
-
/** @public */
|
|
134
|
-
type PagerDutyClientApiDependencies = {
|
|
135
|
-
discoveryApi: DiscoveryApi;
|
|
136
|
-
fetchApi: FetchApi;
|
|
137
|
-
};
|
|
138
|
-
/** @public */
|
|
139
|
-
type PagerDutyClientApiConfig = PagerDutyClientApiDependencies & {
|
|
140
|
-
eventsBaseUrl?: string;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
/** @public */
|
|
144
|
-
declare class UnauthorizedError extends Error {
|
|
145
|
-
}
|
|
146
|
-
/** @public */
|
|
147
|
-
declare const pagerDutyApiRef: _backstage_core_plugin_api.ApiRef<PagerDutyApi>;
|
|
148
|
-
/** @public */
|
|
149
|
-
declare class PagerDutyClient implements PagerDutyApi {
|
|
150
|
-
private readonly config;
|
|
151
|
-
static fromConfig(configApi: ConfigApi, dependencies: PagerDutyClientApiDependencies): PagerDutyClient;
|
|
152
|
-
constructor(config: PagerDutyClientApiConfig);
|
|
153
|
-
getServiceByPagerDutyEntity(pagerDutyEntity: PagerDutyEntity): Promise<PagerDutyServiceResponse>;
|
|
154
|
-
getSetting(id: string): Promise<PagerDutySetting>;
|
|
155
|
-
storeSettings(settings: PagerDutySetting[]): Promise<Response>;
|
|
156
|
-
getEntityMappings(): Promise<PagerDutyEntityMappingsResponse>;
|
|
157
|
-
storeServiceMapping(serviceId: string, integrationKey: string, backstageEntityRef: string, account: string): Promise<Response>;
|
|
158
|
-
getServiceByEntity(entity: Entity): Promise<PagerDutyServiceResponse>;
|
|
159
|
-
getServiceById(serviceId: string, account?: string): Promise<PagerDutyServiceResponse>;
|
|
160
|
-
getIncidentsByServiceId(serviceId: string, account?: string): Promise<PagerDutyIncidentsResponse>;
|
|
161
|
-
getChangeEventsByServiceId(serviceId: string, account?: string): Promise<PagerDutyChangeEventsResponse>;
|
|
162
|
-
getServiceStandardsByServiceId(serviceId: string, account?: string): Promise<PagerDutyServiceStandardsResponse>;
|
|
163
|
-
getServiceMetricsByServiceId(serviceId: string, account?: string): Promise<PagerDutyServiceMetricsResponse>;
|
|
164
|
-
getOnCallByPolicyId(policyId: string, account?: string): Promise<PagerDutyUser[]>;
|
|
165
|
-
triggerAlarm(request: PagerDutyTriggerAlarmRequest): Promise<Response>;
|
|
166
|
-
private findByUrl;
|
|
167
|
-
private request;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* @public
|
|
172
|
-
* @deprecated Please use EntityPagerDutyCard
|
|
173
|
-
*/
|
|
174
|
-
declare const PagerDutyCard: (props: EntityPagerDutyCardProps) => react_jsx_runtime.JSX.Element;
|
|
175
|
-
/**
|
|
176
|
-
* @public
|
|
177
|
-
* @deprecated Please use EntityPagerDutyCardProps
|
|
178
|
-
*/
|
|
179
|
-
type PagerDutyCardProps = EntityPagerDutyCardProps;
|
|
180
|
-
|
|
181
|
-
export { EntityPagerDutyCard, EntityPagerDutySmallCard, HomePagePagerDutyCard, PagerDutyCard, PagerDutyClient, PagerDutyIcon, PagerDutyPage, TriggerButton, UnauthorizedError, isPluginApplicableToEntity as isPagerDutyAvailable, isPluginApplicableToEntity$1 as isPagerDutySmallCardAvailable, isPluginApplicableToEntity, pagerDutyApiRef, pagerDutyPlugin, pagerDutyPlugin as plugin };
|
|
182
|
-
export type { EntityPagerDutyCardProps, EntityPagerDutySmallCardProps, HomePagePagerDutyCardProps, PagerDutyApi, PagerDutyCardProps, PagerDutyClientApiConfig, PagerDutyClientApiDependencies, PagerDutyEntity, PagerDutyTriggerAlarmRequest };
|
package/dist/index.esm.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { EntityPagerDutyCard, EntityPagerDutySmallCard, HomePagePagerDutyCard, PagerDutyPage, pagerDutyPlugin, pagerDutyPlugin as plugin } from './plugin.esm.js';
|
|
2
|
-
export { isPluginApplicableToEntity as isPagerDutyAvailable, isPluginApplicableToEntity } from './components/EntityPagerDutyCard/index.esm.js';
|
|
3
|
-
export { isPluginApplicableToEntity as isPagerDutySmallCardAvailable } from './components/EntityPagerDutySmallCard/index.esm.js';
|
|
4
|
-
export { PagerDutyIcon } from './components/Icons/index.esm.js';
|
|
5
|
-
export { TriggerButton } from './components/TriggerButton/index.esm.js';
|
|
6
|
-
export { PagerDutyClient, UnauthorizedError, pagerDutyApiRef } from './api/client.esm.js';
|
|
7
|
-
export { PagerDutyCard } from './deprecated.esm.js';
|
|
8
|
-
//# sourceMappingURL=index.esm.js.map
|
package/dist/index.esm.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/plugin.esm.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { PagerDutyClient, pagerDutyApiRef } from './api/client.esm.js';
|
|
2
|
-
import { createRouteRef, createPlugin, createApiFactory, fetchApiRef, configApiRef, discoveryApiRef, createRoutableExtension, createComponentExtension } from '@backstage/core-plugin-api';
|
|
3
|
-
import { createCardExtension } from '@backstage/plugin-home-react';
|
|
4
|
-
|
|
5
|
-
const rootRouteRef = createRouteRef({
|
|
6
|
-
id: "pagerduty"
|
|
7
|
-
});
|
|
8
|
-
const pagerDutyPlugin = createPlugin({
|
|
9
|
-
id: "pagerduty",
|
|
10
|
-
apis: [
|
|
11
|
-
createApiFactory({
|
|
12
|
-
api: pagerDutyApiRef,
|
|
13
|
-
deps: {
|
|
14
|
-
discoveryApi: discoveryApiRef,
|
|
15
|
-
configApi: configApiRef,
|
|
16
|
-
fetchApi: fetchApiRef
|
|
17
|
-
},
|
|
18
|
-
factory: ({ configApi, discoveryApi, fetchApi }) => PagerDutyClient.fromConfig(configApi, { discoveryApi, fetchApi })
|
|
19
|
-
})
|
|
20
|
-
]
|
|
21
|
-
});
|
|
22
|
-
const PagerDutyPage = pagerDutyPlugin.provide(
|
|
23
|
-
createRoutableExtension({
|
|
24
|
-
name: "PagerDutyPage",
|
|
25
|
-
component: () => import('./components/PagerDutyPage/index.esm.js').then((m) => m.PagerDutyPage),
|
|
26
|
-
mountPoint: rootRouteRef
|
|
27
|
-
})
|
|
28
|
-
);
|
|
29
|
-
const EntityPagerDutyCard = pagerDutyPlugin.provide(
|
|
30
|
-
createComponentExtension({
|
|
31
|
-
name: "EntityPagerDutyCard",
|
|
32
|
-
component: {
|
|
33
|
-
lazy: () => import('./components/EntityPagerDutyCard/index.esm.js').then(
|
|
34
|
-
(m) => m.EntityPagerDutyCard
|
|
35
|
-
)
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
);
|
|
39
|
-
const EntityPagerDutySmallCard = pagerDutyPlugin.provide(
|
|
40
|
-
createComponentExtension({
|
|
41
|
-
name: "EntityPagerDutySmallCard",
|
|
42
|
-
component: {
|
|
43
|
-
lazy: () => import('./components/EntityPagerDutySmallCard/index.esm.js').then(
|
|
44
|
-
(m) => m.EntityPagerDutySmallCard
|
|
45
|
-
)
|
|
46
|
-
}
|
|
47
|
-
})
|
|
48
|
-
);
|
|
49
|
-
const HomePagePagerDutyCard = pagerDutyPlugin.provide(
|
|
50
|
-
createCardExtension({
|
|
51
|
-
name: "HomePagePagerDutyCard",
|
|
52
|
-
title: "PagerDuty Homepage Card",
|
|
53
|
-
components: () => import('./components/HomePagePagerDutyCard/index.esm.js'),
|
|
54
|
-
settings: {
|
|
55
|
-
schema: {
|
|
56
|
-
title: "PagerDuty",
|
|
57
|
-
type: "object",
|
|
58
|
-
properties: {
|
|
59
|
-
integrationKey: {
|
|
60
|
-
title: "PagerDuty integration key",
|
|
61
|
-
type: "string"
|
|
62
|
-
},
|
|
63
|
-
serviceId: {
|
|
64
|
-
title: "PagerDuty service id",
|
|
65
|
-
type: "string"
|
|
66
|
-
},
|
|
67
|
-
name: {
|
|
68
|
-
title: "PagerDuty service name",
|
|
69
|
-
type: "string"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
})
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
export { EntityPagerDutyCard, EntityPagerDutySmallCard, HomePagePagerDutyCard, PagerDutyPage, pagerDutyPlugin, rootRouteRef };
|
|
78
|
-
//# sourceMappingURL=plugin.esm.js.map
|
package/dist/plugin.esm.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2020 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 { pagerDutyApiRef, PagerDutyClient } from './api';\nimport {\n createApiFactory,\n createPlugin,\n createRouteRef,\n discoveryApiRef,\n fetchApiRef,\n configApiRef,\n createComponentExtension,\n createRoutableExtension,\n} from '@backstage/core-plugin-api';\nimport { createCardExtension } from '@backstage/plugin-home-react';\nimport { HomePagePagerDutyCardProps } from './components/HomePagePagerDutyCard/Content';\n\nexport const rootRouteRef = createRouteRef({\n id: 'pagerduty',\n});\n\n/** @public */\nexport const pagerDutyPlugin = createPlugin({\n id: 'pagerduty',\n apis: [\n createApiFactory({\n api: pagerDutyApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n configApi: configApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ configApi, discoveryApi, fetchApi }) =>\n PagerDutyClient.fromConfig(configApi, { discoveryApi, fetchApi }),\n }),\n ],\n});\n\n/** @public */\nexport const PagerDutyPage = pagerDutyPlugin.provide(\n createRoutableExtension({\n name: 'PagerDutyPage',\n component: () =>\n import('./components/PagerDutyPage').then(m => m.PagerDutyPage),\n mountPoint: rootRouteRef,\n }),\n);\n\n/** @public */\nexport const EntityPagerDutyCard = pagerDutyPlugin.provide(\n createComponentExtension({\n name: 'EntityPagerDutyCard',\n component: {\n lazy: () =>\n import('./components/EntityPagerDutyCard').then(\n m => m.EntityPagerDutyCard,\n ),\n },\n }),\n);\n\n/** @public */\nexport const EntityPagerDutySmallCard = pagerDutyPlugin.provide(\n createComponentExtension({\n name: 'EntityPagerDutySmallCard',\n component: {\n lazy: () =>\n import('./components/EntityPagerDutySmallCard').then(\n m => m.EntityPagerDutySmallCard,\n ),\n },\n }),\n);\n\n/** @public */\nexport const HomePagePagerDutyCard = pagerDutyPlugin.provide(\n createCardExtension<HomePagePagerDutyCardProps>({\n name: 'HomePagePagerDutyCard',\n title: 'PagerDuty Homepage Card',\n components: () => import('./components/HomePagePagerDutyCard'),\n settings: {\n schema: {\n title: 'PagerDuty',\n type: 'object',\n properties: {\n integrationKey: {\n title: 'PagerDuty integration key',\n type: 'string',\n },\n serviceId: {\n title: 'PagerDuty service id',\n type: 'string',\n },\n name: {\n title: 'PagerDuty service name',\n type: 'string',\n },\n },\n },\n },\n }),\n);\n"],"names":[],"mappings":";;;;AA6BO,MAAM,eAAe,cAAA,CAAe;AAAA,EACzC,EAAA,EAAI;AACN,CAAC;AAGM,MAAM,kBAAkB,YAAA,CAAa;AAAA,EAC1C,EAAA,EAAI,WAAA;AAAA,EACJ,IAAA,EAAM;AAAA,IACJ,gBAAA,CAAiB;AAAA,MACf,GAAA,EAAK,eAAA;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,SAAA,EAAW,YAAA,EAAc,QAAA,EAAS,KAC5C,eAAA,CAAgB,UAAA,CAAW,SAAA,EAAW,EAAE,YAAA,EAAc,UAAU;AAAA,KACnE;AAAA;AAEL,CAAC;AAGM,MAAM,gBAAgB,eAAA,CAAgB,OAAA;AAAA,EAC3C,uBAAA,CAAwB;AAAA,IACtB,IAAA,EAAM,eAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,yCAA4B,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,aAAa,CAAA;AAAA,IAChE,UAAA,EAAY;AAAA,GACb;AACH;AAGO,MAAM,sBAAsB,eAAA,CAAgB,OAAA;AAAA,EACjD,wBAAA,CAAyB;AAAA,IACvB,IAAA,EAAM,qBAAA;AAAA,IACN,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,MACJ,OAAO,+CAAkC,CAAA,CAAE,IAAA;AAAA,QACzC,OAAK,CAAA,CAAE;AAAA;AACT;AACJ,GACD;AACH;AAGO,MAAM,2BAA2B,eAAA,CAAgB,OAAA;AAAA,EACtD,wBAAA,CAAyB;AAAA,IACvB,IAAA,EAAM,0BAAA;AAAA,IACN,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,MACJ,OAAO,oDAAuC,CAAA,CAAE,IAAA;AAAA,QAC9C,OAAK,CAAA,CAAE;AAAA;AACT;AACJ,GACD;AACH;AAGO,MAAM,wBAAwB,eAAA,CAAgB,OAAA;AAAA,EACnD,mBAAA,CAAgD;AAAA,IAC9C,IAAA,EAAM,uBAAA;AAAA,IACN,KAAA,EAAO,yBAAA;AAAA,IACP,UAAA,EAAY,MAAM,OAAO,iDAAoC,CAAA;AAAA,IAC7D,QAAA,EAAU;AAAA,MACR,MAAA,EAAQ;AAAA,QACN,KAAA,EAAO,WAAA;AAAA,QACP,IAAA,EAAM,QAAA;AAAA,QACN,UAAA,EAAY;AAAA,UACV,cAAA,EAAgB;AAAA,YACd,KAAA,EAAO,2BAAA;AAAA,YACP,IAAA,EAAM;AAAA,WACR;AAAA,UACA,SAAA,EAAW;AAAA,YACT,KAAA,EAAO,sBAAA;AAAA,YACP,IAAA,EAAM;AAAA,WACR;AAAA,UACA,IAAA,EAAM;AAAA,YACJ,KAAA,EAAO,wBAAA;AAAA,YACP,IAAA,EAAM;AAAA;AACR;AACF;AACF;AACF,GACD;AACH;;;;"}
|