@pagerduty/backstage-plugin-backend 0.9.10 → 0.10.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/config.d.ts +32 -29
- package/dist/apis/pagerduty.cjs.js +317 -94
- package/dist/apis/pagerduty.cjs.js.map +1 -1
- package/dist/auth/auth.cjs.js +71 -37
- package/dist/auth/auth.cjs.js.map +1 -1
- package/dist/db/PagerDutyBackendDatabase.cjs.js +16 -5
- package/dist/db/PagerDutyBackendDatabase.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/plugin.cjs.js +10 -8
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/service/router.cjs.js +297 -250
- package/dist/service/router.cjs.js.map +1 -1
- package/migrations/20240527_init.js +16 -24
- package/migrations/20240710_add_account_column.js +16 -10
- package/migrations/20240722_add_settings_table.js +11 -17
- package/package.json +1 -1
package/config.d.ts
CHANGED
|
@@ -14,38 +14,41 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
PagerDutyAccountConfig,
|
|
19
|
+
PagerDutyOAuthConfig,
|
|
20
|
+
} from '@pagerduty/backstage-plugin-common';
|
|
18
21
|
|
|
19
22
|
export interface Config {
|
|
23
|
+
/**
|
|
24
|
+
* Configuration for the PagerDuty plugin
|
|
25
|
+
* @visibility frontend
|
|
26
|
+
*/
|
|
27
|
+
pagerDuty?: {
|
|
20
28
|
/**
|
|
21
|
-
*
|
|
29
|
+
* Optional Events Base URL to override the default.
|
|
22
30
|
* @visibility frontend
|
|
23
31
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
* Optional PagerDuty multi-account configuration
|
|
47
|
-
* @deepVisibility secret
|
|
48
|
-
*/
|
|
49
|
-
accounts?: PagerDutyAccountConfig[];
|
|
50
|
-
};
|
|
32
|
+
eventsBaseUrl?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Optional API Base URL to override the default.
|
|
35
|
+
* @visibility frontend
|
|
36
|
+
*/
|
|
37
|
+
apiBaseUrl?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Optional PagerDuty API Token used in API calls from the backend component.
|
|
40
|
+
* @visibility secret
|
|
41
|
+
*/
|
|
42
|
+
apiToken?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Optional PagerDuty Scoped OAuth Token used in API calls from the backend component.
|
|
45
|
+
* @deepVisibility secret
|
|
46
|
+
*/
|
|
47
|
+
oauth?: PagerDutyOAuthConfig;
|
|
48
|
+
/**
|
|
49
|
+
* Optional PagerDuty multi-account configuration
|
|
50
|
+
* @deepVisibility secret
|
|
51
|
+
*/
|
|
52
|
+
accounts?: PagerDutyAccountConfig[];
|
|
53
|
+
};
|
|
51
54
|
}
|