@pagerduty/backstage-plugin-common 0.1.2-next.1 → 0.1.2-next.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../src/types.ts","../src/constants.ts"],"sourcesContent":["/** @public */\nexport type PagerDutyIncident = {\n id: string;\n title: string;\n status: string;\n html_url: string;\n assignments: [\n {\n assignee: PagerDutyUser;\n },\n ];\n service: PagerDutyService;\n created_at: string;\n}\n\n/** @public */\nexport type PagerDutyUser = {\n id: string;\n summary: string;\n email: string;\n html_url: string;\n name: string;\n avatar_url: string;\n};\n\n/** @public */\nexport type PagerDutyChangeEvent = {\n id: string;\n integration: PagerDutyIntegration[];\n source: string;\n html_url?: string;\n links: [\n {\n href: string;\n text: string;\n },\n ];\n summary: string;\n timestamp: string;\n}\n\n/** @public */\nexport type PagerDutyService = {\n id: string;\n name: string;\n description?: string;\n escalation_policy: PagerDutyEscalationPolicy; \n alert_creation?: string;\n incident_urgency_rule?: PagerDutyIncidentUrgencyRule;\n integrations?: PagerDutyIntegration[];\n teams?: PagerDutyTeam[];\n status?: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url: string;\n}\n\n/** @public */\nexport type PagerDutyEscalationPolicy = {\n id: string;\n name: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url?: string;\n}\n\n/** @public */\nexport type PagerDutyIncidentUrgencyRule = {\n type: string;\n urgency: string;\n}\n\n/** @public */\nexport type PagerDutyIntegration = {\n id: string;\n type: string;\n summary?: string;\n self?: string;\n html_url?: string;\n name?: string;\n service?: PagerDutyService;\n created_at?: string;\n vendor?: PagerDutyVendor;\n integration_key?: string;\n}\n\n/** @public */\nexport type PagerDutyTeam = {\n id: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url?: string;\n}\n\n/** @public */\nexport type PagerDutyOnCall = {\n user: PagerDutyUser;\n escalation_level: number;\n}\n\n/** @public */\nexport type PagerDutyOnCallUsersResponse = {\n users: PagerDutyUser[];\n}\n\n/** @public */\nexport type PagerDutyVendor = {\n id: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url?: string;\n}\n\n// {\n// \"resource_id\": \"PPCEB3U\",\n// \"resource_type\": \"technical_service\",\n// \"score\": {\n// \"passing\": 7,\n// \"total\": 10\n// },\n// \"standards\": [\n// {\n// \"active\": true,\n// \"description\": \"A description provides critical context about what a service represents or is used for to inform team members and responders. The description should be kept concise and understandable by those without deep knowledge of the service.\",\n// \"id\": \"01DXB3Z45WODKLNM5GGKJSEAU4\",\n// \"name\": \"Service has a description\",\n// \"pass\": true,\n// \"type\": \"has_technical_service_description\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Ensure that no incident goes unaddressed, even if the on-call responder on the first level of the escalation policy is unavailable.\",\n// \"id\": \"01DXB3Z467Z995PBDCZLEA7VQ9\",\n// \"name\": \"Service has an escalation policy with 2 or more unique levels\",\n// \"pass\": true,\n// \"type\": \"minimum_escalation_policy_rule_depth\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Extensions or add-ons streamline incident response and communication processes by connecting PagerDuty services to other tools that matter to your incident management workflow.\",\n// \"id\": \"01DXB3Z46N9M54JG980N7VB8MI\",\n// \"name\": \"Service has an extension or add-on (e.g. Slack, etc.)\",\n// \"pass\": true,\n// \"type\": \"minimum_outbound_integrations\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Configuring services to group related alerts into incidents minimizes noise and provides additional context about the incident.\",\n// \"id\": \"01DXB3Z46WHS7XAN7OV1YBS1N4\",\n// \"name\": \"Service has Alert Grouping turned on\",\n// \"pass\": true,\n// \"type\": \"alert_grouping_enabled\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Classifying incident urgency helps set expectations during the response process and ensures that low-priority issues aren’t misrepresented.\",\n// \"id\": \"01DXB3Z47B8SYFLUU2IU4JMYW2\",\n// \"name\": \"Service does not only send high urgency incidents\",\n// \"pass\": true,\n// \"type\": \"always_high_urgency_disabled\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Connect code deployment and pipeline tools to see recent changes made to services, providing critical context when responding to incidents.\",\n// \"id\": \"01DXB3Z47P72Z4XT3QRJPNUJ7Z\",\n// \"name\": \"Service has at least 1 change integration\",\n// \"pass\": false,\n// \"type\": \"has_change_event_inbound_integration\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Mapping how technical services support customer-facing or business-critical capabilities (called business services in PagerDuty) allows for faster impact assessment during incident response, and makes it simpler to communicate incident status updates to non-technical stakeholders.\",\n// \"id\": \"01DXB3Z47X0YP8DWJXVCSBHRUY\",\n// \"name\": \"Service has at least 1 business service dependency\",\n// \"pass\": false,\n// \"type\": \"minimum_business_service_dependencies\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Maintaining an up-to-date technical service graph is critical for impact assessment and facilitating cross-team collaboration during incident response.\",\n// \"id\": \"01DXB3Z4860G65SMRMVL669A3X\",\n// \"name\": \"Service has at least 1 technical service dependency\",\n// \"pass\": false,\n// \"type\": \"minimum_technical_service_dependencies\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"API (non-email) integrations enable teams to use event rules which provide rich incident context and only send interrupt notifications for actionable incidents.\",\n// \"id\": \"01DXB3Z48JU36JLMGNDWSSPNTQ\",\n// \"name\": \"Service has at least 1 API integration\",\n// \"pass\": true,\n// \"type\": \"has_non_email_inbound_integration\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Service names provide critical context to team members and responders and should reflect the discrete piece of functionality, or technical services they represent.\",\n// \"id\": \"01DXB3Z48U4U2YJ62LVM1JEKW6\",\n// \"name\": \"Service name matches .*\",\n// \"pass\": true,\n// \"type\": \"service_name_matches_regex\"\n// }\n// ]\n// }\n\n/** @public */\nexport type PagerDutyServiceStandards = {\n resource_id: string;\n resource_type: string;\n score: {\n passing: number;\n total: number;\n };\n list: PagerDutyServiceStandard[];\n}\n\n/** @public */\nexport type PagerDutyServiceStandard = {\n active: boolean;\n description: string;\n id: string;\n name: string;\n pass: boolean;\n type: string;\n}\n\n/** @public */\nexport type PagerDutyServiceStandardsResponse = {\n standards: PagerDutyServiceStandards;\n}\n\n/** @public */\nexport type PagerDutyServicesResponse = {\n services: PagerDutyService[];\n};\n\n/** @public */\nexport type PagerDutyServiceResponse = {\n service: PagerDutyService;\n};\n\n/** @public */\nexport type PagerDutyIncidentsResponse = {\n incidents: PagerDutyIncident[];\n};\n\n/** @public */\nexport type PagerDutyChangeEventsResponse = {\n change_events: PagerDutyChangeEvent[];\n};\n\n/** @public */\nexport type PagerDutyOnCallsResponse = {\n oncalls: PagerDutyOnCall[];\n};\n\n/** @public */\nexport type PagerDutyIntegrationResponse = {\n integration: PagerDutyIntegration;\n}\n\n/** @public */\nexport type PagerDutyEscalationPoliciesResponse = {\n escalation_policies: PagerDutyEscalationPolicy[];\n limit?: number;\n offset?: number;\n more?: boolean;\n total?: number;\n};\n\n/** @public */\nexport type PagerDutyAbilitiesResponse = {\n abilities: string[];\n};\n\n/** @public */\nexport class HttpError extends Error {\n constructor(message: string, status: number) {\n super(message);\n this.status = status;\n }\n\n status: number;\n}\n\n/** @public */\nexport type PagerDutyOAuthConfig = {\n clientId: string;\n clientSecret: string;\n region?: string;\n subDomain: string;\n}\n","/** @public */\nexport const PAGERDUTY_INTEGRATION_KEY = 'pagerduty.com/integration-key';\n\n/** @public */\nexport const PAGERDUTY_SERVICE_ID = 'pagerduty.com/service-id';"],"names":[],"mappings":";;;;;;;;;;AAuRO,MAAM,kBAAkB,KAAM,CAAA;AAAA,EACjC,WAAA,CAAY,SAAiB,MAAgB,EAAA;AACzC,IAAA,KAAA,CAAM,OAAO,CAAA,CAAA;AAIjB,IAAA,aAAA,CAAA,IAAA,EAAA,QAAA,CAAA,CAAA;AAHI,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA,CAAA;AAAA,GAClB;AAGJ;;AC7RO,MAAM,yBAA4B,GAAA,gCAAA;AAGlC,MAAM,oBAAuB,GAAA;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/types.ts","../src/constants.ts"],"sourcesContent":["/** @public */\nexport type PagerDutyIncident = {\n id: string;\n title: string;\n status: string;\n html_url: string;\n assignments: [\n {\n assignee: PagerDutyUser;\n },\n ];\n service: PagerDutyService;\n created_at: string;\n urgency: string;\n}\n\n/** @public */\nexport type PagerDutyUser = {\n id: string;\n summary: string;\n email: string;\n html_url: string;\n name: string;\n avatar_url: string;\n};\n\n/** @public */\nexport type PagerDutyChangeEvent = {\n id: string;\n integration: PagerDutyIntegration[];\n source: string;\n html_url?: string;\n links: [\n {\n href: string;\n text: string;\n },\n ];\n summary: string;\n timestamp: string;\n}\n\n/** @public */\nexport type PagerDutyService = {\n id: string;\n name: string;\n description?: string;\n escalation_policy: PagerDutyEscalationPolicy; \n alert_creation?: string;\n incident_urgency_rule?: PagerDutyIncidentUrgencyRule;\n integrations?: PagerDutyIntegration[];\n teams?: PagerDutyTeam[];\n status?: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url: string;\n}\n\n/** @public */\nexport type PagerDutyEscalationPolicy = {\n id: string;\n name: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url?: string;\n}\n\n/** @public */\nexport type PagerDutyIncidentUrgencyRule = {\n type: string;\n urgency: string;\n}\n\n/** @public */\nexport type PagerDutyIntegration = {\n id: string;\n type: string;\n summary?: string;\n self?: string;\n html_url?: string;\n name?: string;\n service?: PagerDutyService;\n created_at?: string;\n vendor?: PagerDutyVendor;\n integration_key?: string;\n}\n\n/** @public */\nexport type PagerDutyTeam = {\n id: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url?: string;\n}\n\n/** @public */\nexport type PagerDutyOnCall = {\n user: PagerDutyUser;\n escalation_level: number;\n}\n\n/** @public */\nexport type PagerDutyOnCallUsersResponse = {\n users: PagerDutyUser[];\n}\n\n/** @public */\nexport type PagerDutyVendor = {\n id: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url?: string;\n}\n\n// {\n// \"resource_id\": \"PPCEB3U\",\n// \"resource_type\": \"technical_service\",\n// \"score\": {\n// \"passing\": 7,\n// \"total\": 10\n// },\n// \"standards\": [\n// {\n// \"active\": true,\n// \"description\": \"A description provides critical context about what a service represents or is used for to inform team members and responders. The description should be kept concise and understandable by those without deep knowledge of the service.\",\n// \"id\": \"01DXB3Z45WODKLNM5GGKJSEAU4\",\n// \"name\": \"Service has a description\",\n// \"pass\": true,\n// \"type\": \"has_technical_service_description\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Ensure that no incident goes unaddressed, even if the on-call responder on the first level of the escalation policy is unavailable.\",\n// \"id\": \"01DXB3Z467Z995PBDCZLEA7VQ9\",\n// \"name\": \"Service has an escalation policy with 2 or more unique levels\",\n// \"pass\": true,\n// \"type\": \"minimum_escalation_policy_rule_depth\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Extensions or add-ons streamline incident response and communication processes by connecting PagerDuty services to other tools that matter to your incident management workflow.\",\n// \"id\": \"01DXB3Z46N9M54JG980N7VB8MI\",\n// \"name\": \"Service has an extension or add-on (e.g. Slack, etc.)\",\n// \"pass\": true,\n// \"type\": \"minimum_outbound_integrations\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Configuring services to group related alerts into incidents minimizes noise and provides additional context about the incident.\",\n// \"id\": \"01DXB3Z46WHS7XAN7OV1YBS1N4\",\n// \"name\": \"Service has Alert Grouping turned on\",\n// \"pass\": true,\n// \"type\": \"alert_grouping_enabled\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Classifying incident urgency helps set expectations during the response process and ensures that low-priority issues aren’t misrepresented.\",\n// \"id\": \"01DXB3Z47B8SYFLUU2IU4JMYW2\",\n// \"name\": \"Service does not only send high urgency incidents\",\n// \"pass\": true,\n// \"type\": \"always_high_urgency_disabled\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Connect code deployment and pipeline tools to see recent changes made to services, providing critical context when responding to incidents.\",\n// \"id\": \"01DXB3Z47P72Z4XT3QRJPNUJ7Z\",\n// \"name\": \"Service has at least 1 change integration\",\n// \"pass\": false,\n// \"type\": \"has_change_event_inbound_integration\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Mapping how technical services support customer-facing or business-critical capabilities (called business services in PagerDuty) allows for faster impact assessment during incident response, and makes it simpler to communicate incident status updates to non-technical stakeholders.\",\n// \"id\": \"01DXB3Z47X0YP8DWJXVCSBHRUY\",\n// \"name\": \"Service has at least 1 business service dependency\",\n// \"pass\": false,\n// \"type\": \"minimum_business_service_dependencies\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Maintaining an up-to-date technical service graph is critical for impact assessment and facilitating cross-team collaboration during incident response.\",\n// \"id\": \"01DXB3Z4860G65SMRMVL669A3X\",\n// \"name\": \"Service has at least 1 technical service dependency\",\n// \"pass\": false,\n// \"type\": \"minimum_technical_service_dependencies\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"API (non-email) integrations enable teams to use event rules which provide rich incident context and only send interrupt notifications for actionable incidents.\",\n// \"id\": \"01DXB3Z48JU36JLMGNDWSSPNTQ\",\n// \"name\": \"Service has at least 1 API integration\",\n// \"pass\": true,\n// \"type\": \"has_non_email_inbound_integration\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Service names provide critical context to team members and responders and should reflect the discrete piece of functionality, or technical services they represent.\",\n// \"id\": \"01DXB3Z48U4U2YJ62LVM1JEKW6\",\n// \"name\": \"Service name matches .*\",\n// \"pass\": true,\n// \"type\": \"service_name_matches_regex\"\n// }\n// ]\n// }\n\n/** @public */\nexport type PagerDutyServiceStandards = {\n resource_id: string;\n resource_type: string;\n score: {\n passing: number;\n total: number;\n };\n list: PagerDutyServiceStandard[];\n}\n\n/** @public */\nexport type PagerDutyServiceStandard = {\n active: boolean;\n description: string;\n id: string;\n name: string;\n pass: boolean;\n type: string;\n}\n\n/** @public */\nexport type PagerDutyServiceStandardsResponse = {\n standards: PagerDutyServiceStandards;\n}\n\n/** @public */\nexport type PagerDutyServicesResponse = {\n services: PagerDutyService[];\n};\n\n/** @public */\nexport type PagerDutyServiceResponse = {\n service: PagerDutyService;\n};\n\n/** @public */\nexport type PagerDutyIncidentsResponse = {\n incidents: PagerDutyIncident[];\n};\n\n/** @public */\nexport type PagerDutyChangeEventsResponse = {\n change_events: PagerDutyChangeEvent[];\n};\n\n/** @public */\nexport type PagerDutyOnCallsResponse = {\n oncalls: PagerDutyOnCall[];\n};\n\n/** @public */\nexport type PagerDutyIntegrationResponse = {\n integration: PagerDutyIntegration;\n}\n\n/** @public */\nexport type PagerDutyEscalationPoliciesResponse = {\n escalation_policies: PagerDutyEscalationPolicy[];\n limit?: number;\n offset?: number;\n more?: boolean;\n total?: number;\n};\n\n/** @public */\nexport type PagerDutyAbilitiesResponse = {\n abilities: string[];\n};\n\n/** @public */\nexport class HttpError extends Error {\n constructor(message: string, status: number) {\n super(message);\n this.status = status;\n }\n\n status: number;\n}\n\n/** @public */\nexport type PagerDutyOAuthConfig = {\n clientId: string;\n clientSecret: string;\n region?: string;\n subDomain: string;\n}\n","/** @public */\nexport const PAGERDUTY_INTEGRATION_KEY = 'pagerduty.com/integration-key';\n\n/** @public */\nexport const PAGERDUTY_SERVICE_ID = 'pagerduty.com/service-id';"],"names":[],"mappings":";;;;;;;;;;AAwRO,MAAM,kBAAkB,KAAM,CAAA;AAAA,EACjC,WAAA,CAAY,SAAiB,MAAgB,EAAA;AACzC,IAAA,KAAA,CAAM,OAAO,CAAA,CAAA;AAIjB,IAAA,aAAA,CAAA,IAAA,EAAA,QAAA,CAAA,CAAA;AAHI,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA,CAAA;AAAA,GAClB;AAGJ;;AC9RO,MAAM,yBAA4B,GAAA,gCAAA;AAGlC,MAAM,oBAAuB,GAAA;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ type PagerDutyIncident = {
11
11
  ];
12
12
  service: PagerDutyService;
13
13
  created_at: string;
14
+ urgency: string;
14
15
  };
15
16
  /** @public */
16
17
  type PagerDutyUser = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/types.ts","../src/constants.ts"],"sourcesContent":["/** @public */\nexport type PagerDutyIncident = {\n id: string;\n title: string;\n status: string;\n html_url: string;\n assignments: [\n {\n assignee: PagerDutyUser;\n },\n ];\n service: PagerDutyService;\n created_at: string;\n}\n\n/** @public */\nexport type PagerDutyUser = {\n id: string;\n summary: string;\n email: string;\n html_url: string;\n name: string;\n avatar_url: string;\n};\n\n/** @public */\nexport type PagerDutyChangeEvent = {\n id: string;\n integration: PagerDutyIntegration[];\n source: string;\n html_url?: string;\n links: [\n {\n href: string;\n text: string;\n },\n ];\n summary: string;\n timestamp: string;\n}\n\n/** @public */\nexport type PagerDutyService = {\n id: string;\n name: string;\n description?: string;\n escalation_policy: PagerDutyEscalationPolicy; \n alert_creation?: string;\n incident_urgency_rule?: PagerDutyIncidentUrgencyRule;\n integrations?: PagerDutyIntegration[];\n teams?: PagerDutyTeam[];\n status?: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url: string;\n}\n\n/** @public */\nexport type PagerDutyEscalationPolicy = {\n id: string;\n name: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url?: string;\n}\n\n/** @public */\nexport type PagerDutyIncidentUrgencyRule = {\n type: string;\n urgency: string;\n}\n\n/** @public */\nexport type PagerDutyIntegration = {\n id: string;\n type: string;\n summary?: string;\n self?: string;\n html_url?: string;\n name?: string;\n service?: PagerDutyService;\n created_at?: string;\n vendor?: PagerDutyVendor;\n integration_key?: string;\n}\n\n/** @public */\nexport type PagerDutyTeam = {\n id: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url?: string;\n}\n\n/** @public */\nexport type PagerDutyOnCall = {\n user: PagerDutyUser;\n escalation_level: number;\n}\n\n/** @public */\nexport type PagerDutyOnCallUsersResponse = {\n users: PagerDutyUser[];\n}\n\n/** @public */\nexport type PagerDutyVendor = {\n id: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url?: string;\n}\n\n// {\n// \"resource_id\": \"PPCEB3U\",\n// \"resource_type\": \"technical_service\",\n// \"score\": {\n// \"passing\": 7,\n// \"total\": 10\n// },\n// \"standards\": [\n// {\n// \"active\": true,\n// \"description\": \"A description provides critical context about what a service represents or is used for to inform team members and responders. The description should be kept concise and understandable by those without deep knowledge of the service.\",\n// \"id\": \"01DXB3Z45WODKLNM5GGKJSEAU4\",\n// \"name\": \"Service has a description\",\n// \"pass\": true,\n// \"type\": \"has_technical_service_description\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Ensure that no incident goes unaddressed, even if the on-call responder on the first level of the escalation policy is unavailable.\",\n// \"id\": \"01DXB3Z467Z995PBDCZLEA7VQ9\",\n// \"name\": \"Service has an escalation policy with 2 or more unique levels\",\n// \"pass\": true,\n// \"type\": \"minimum_escalation_policy_rule_depth\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Extensions or add-ons streamline incident response and communication processes by connecting PagerDuty services to other tools that matter to your incident management workflow.\",\n// \"id\": \"01DXB3Z46N9M54JG980N7VB8MI\",\n// \"name\": \"Service has an extension or add-on (e.g. Slack, etc.)\",\n// \"pass\": true,\n// \"type\": \"minimum_outbound_integrations\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Configuring services to group related alerts into incidents minimizes noise and provides additional context about the incident.\",\n// \"id\": \"01DXB3Z46WHS7XAN7OV1YBS1N4\",\n// \"name\": \"Service has Alert Grouping turned on\",\n// \"pass\": true,\n// \"type\": \"alert_grouping_enabled\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Classifying incident urgency helps set expectations during the response process and ensures that low-priority issues aren’t misrepresented.\",\n// \"id\": \"01DXB3Z47B8SYFLUU2IU4JMYW2\",\n// \"name\": \"Service does not only send high urgency incidents\",\n// \"pass\": true,\n// \"type\": \"always_high_urgency_disabled\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Connect code deployment and pipeline tools to see recent changes made to services, providing critical context when responding to incidents.\",\n// \"id\": \"01DXB3Z47P72Z4XT3QRJPNUJ7Z\",\n// \"name\": \"Service has at least 1 change integration\",\n// \"pass\": false,\n// \"type\": \"has_change_event_inbound_integration\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Mapping how technical services support customer-facing or business-critical capabilities (called business services in PagerDuty) allows for faster impact assessment during incident response, and makes it simpler to communicate incident status updates to non-technical stakeholders.\",\n// \"id\": \"01DXB3Z47X0YP8DWJXVCSBHRUY\",\n// \"name\": \"Service has at least 1 business service dependency\",\n// \"pass\": false,\n// \"type\": \"minimum_business_service_dependencies\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Maintaining an up-to-date technical service graph is critical for impact assessment and facilitating cross-team collaboration during incident response.\",\n// \"id\": \"01DXB3Z4860G65SMRMVL669A3X\",\n// \"name\": \"Service has at least 1 technical service dependency\",\n// \"pass\": false,\n// \"type\": \"minimum_technical_service_dependencies\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"API (non-email) integrations enable teams to use event rules which provide rich incident context and only send interrupt notifications for actionable incidents.\",\n// \"id\": \"01DXB3Z48JU36JLMGNDWSSPNTQ\",\n// \"name\": \"Service has at least 1 API integration\",\n// \"pass\": true,\n// \"type\": \"has_non_email_inbound_integration\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Service names provide critical context to team members and responders and should reflect the discrete piece of functionality, or technical services they represent.\",\n// \"id\": \"01DXB3Z48U4U2YJ62LVM1JEKW6\",\n// \"name\": \"Service name matches .*\",\n// \"pass\": true,\n// \"type\": \"service_name_matches_regex\"\n// }\n// ]\n// }\n\n/** @public */\nexport type PagerDutyServiceStandards = {\n resource_id: string;\n resource_type: string;\n score: {\n passing: number;\n total: number;\n };\n list: PagerDutyServiceStandard[];\n}\n\n/** @public */\nexport type PagerDutyServiceStandard = {\n active: boolean;\n description: string;\n id: string;\n name: string;\n pass: boolean;\n type: string;\n}\n\n/** @public */\nexport type PagerDutyServiceStandardsResponse = {\n standards: PagerDutyServiceStandards;\n}\n\n/** @public */\nexport type PagerDutyServicesResponse = {\n services: PagerDutyService[];\n};\n\n/** @public */\nexport type PagerDutyServiceResponse = {\n service: PagerDutyService;\n};\n\n/** @public */\nexport type PagerDutyIncidentsResponse = {\n incidents: PagerDutyIncident[];\n};\n\n/** @public */\nexport type PagerDutyChangeEventsResponse = {\n change_events: PagerDutyChangeEvent[];\n};\n\n/** @public */\nexport type PagerDutyOnCallsResponse = {\n oncalls: PagerDutyOnCall[];\n};\n\n/** @public */\nexport type PagerDutyIntegrationResponse = {\n integration: PagerDutyIntegration;\n}\n\n/** @public */\nexport type PagerDutyEscalationPoliciesResponse = {\n escalation_policies: PagerDutyEscalationPolicy[];\n limit?: number;\n offset?: number;\n more?: boolean;\n total?: number;\n};\n\n/** @public */\nexport type PagerDutyAbilitiesResponse = {\n abilities: string[];\n};\n\n/** @public */\nexport class HttpError extends Error {\n constructor(message: string, status: number) {\n super(message);\n this.status = status;\n }\n\n status: number;\n}\n\n/** @public */\nexport type PagerDutyOAuthConfig = {\n clientId: string;\n clientSecret: string;\n region?: string;\n subDomain: string;\n}\n","/** @public */\nexport const PAGERDUTY_INTEGRATION_KEY = 'pagerduty.com/integration-key';\n\n/** @public */\nexport const PAGERDUTY_SERVICE_ID = 'pagerduty.com/service-id';"],"names":[],"mappings":";;;;;;AAuRO,MAAM,kBAAkB,KAAM,CAAA;AAAA,EACjC,WAAA,CAAY,SAAiB,MAAgB,EAAA;AACzC,IAAA,KAAA,CAAM,OAAO,CAAA,CAAA;AAIjB,IAAA,aAAA,CAAA,IAAA,EAAA,QAAA,CAAA,CAAA;AAHI,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA,CAAA;AAAA,GAClB;AAGJ;;AC7RO,MAAM,yBAA4B,GAAA,gCAAA;AAGlC,MAAM,oBAAuB,GAAA;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../src/types.ts","../src/constants.ts"],"sourcesContent":["/** @public */\nexport type PagerDutyIncident = {\n id: string;\n title: string;\n status: string;\n html_url: string;\n assignments: [\n {\n assignee: PagerDutyUser;\n },\n ];\n service: PagerDutyService;\n created_at: string;\n urgency: string;\n}\n\n/** @public */\nexport type PagerDutyUser = {\n id: string;\n summary: string;\n email: string;\n html_url: string;\n name: string;\n avatar_url: string;\n};\n\n/** @public */\nexport type PagerDutyChangeEvent = {\n id: string;\n integration: PagerDutyIntegration[];\n source: string;\n html_url?: string;\n links: [\n {\n href: string;\n text: string;\n },\n ];\n summary: string;\n timestamp: string;\n}\n\n/** @public */\nexport type PagerDutyService = {\n id: string;\n name: string;\n description?: string;\n escalation_policy: PagerDutyEscalationPolicy; \n alert_creation?: string;\n incident_urgency_rule?: PagerDutyIncidentUrgencyRule;\n integrations?: PagerDutyIntegration[];\n teams?: PagerDutyTeam[];\n status?: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url: string;\n}\n\n/** @public */\nexport type PagerDutyEscalationPolicy = {\n id: string;\n name: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url?: string;\n}\n\n/** @public */\nexport type PagerDutyIncidentUrgencyRule = {\n type: string;\n urgency: string;\n}\n\n/** @public */\nexport type PagerDutyIntegration = {\n id: string;\n type: string;\n summary?: string;\n self?: string;\n html_url?: string;\n name?: string;\n service?: PagerDutyService;\n created_at?: string;\n vendor?: PagerDutyVendor;\n integration_key?: string;\n}\n\n/** @public */\nexport type PagerDutyTeam = {\n id: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url?: string;\n}\n\n/** @public */\nexport type PagerDutyOnCall = {\n user: PagerDutyUser;\n escalation_level: number;\n}\n\n/** @public */\nexport type PagerDutyOnCallUsersResponse = {\n users: PagerDutyUser[];\n}\n\n/** @public */\nexport type PagerDutyVendor = {\n id: string;\n type?: string;\n summary?: string;\n self?: string;\n html_url?: string;\n}\n\n// {\n// \"resource_id\": \"PPCEB3U\",\n// \"resource_type\": \"technical_service\",\n// \"score\": {\n// \"passing\": 7,\n// \"total\": 10\n// },\n// \"standards\": [\n// {\n// \"active\": true,\n// \"description\": \"A description provides critical context about what a service represents or is used for to inform team members and responders. The description should be kept concise and understandable by those without deep knowledge of the service.\",\n// \"id\": \"01DXB3Z45WODKLNM5GGKJSEAU4\",\n// \"name\": \"Service has a description\",\n// \"pass\": true,\n// \"type\": \"has_technical_service_description\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Ensure that no incident goes unaddressed, even if the on-call responder on the first level of the escalation policy is unavailable.\",\n// \"id\": \"01DXB3Z467Z995PBDCZLEA7VQ9\",\n// \"name\": \"Service has an escalation policy with 2 or more unique levels\",\n// \"pass\": true,\n// \"type\": \"minimum_escalation_policy_rule_depth\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Extensions or add-ons streamline incident response and communication processes by connecting PagerDuty services to other tools that matter to your incident management workflow.\",\n// \"id\": \"01DXB3Z46N9M54JG980N7VB8MI\",\n// \"name\": \"Service has an extension or add-on (e.g. Slack, etc.)\",\n// \"pass\": true,\n// \"type\": \"minimum_outbound_integrations\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Configuring services to group related alerts into incidents minimizes noise and provides additional context about the incident.\",\n// \"id\": \"01DXB3Z46WHS7XAN7OV1YBS1N4\",\n// \"name\": \"Service has Alert Grouping turned on\",\n// \"pass\": true,\n// \"type\": \"alert_grouping_enabled\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Classifying incident urgency helps set expectations during the response process and ensures that low-priority issues aren’t misrepresented.\",\n// \"id\": \"01DXB3Z47B8SYFLUU2IU4JMYW2\",\n// \"name\": \"Service does not only send high urgency incidents\",\n// \"pass\": true,\n// \"type\": \"always_high_urgency_disabled\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Connect code deployment and pipeline tools to see recent changes made to services, providing critical context when responding to incidents.\",\n// \"id\": \"01DXB3Z47P72Z4XT3QRJPNUJ7Z\",\n// \"name\": \"Service has at least 1 change integration\",\n// \"pass\": false,\n// \"type\": \"has_change_event_inbound_integration\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Mapping how technical services support customer-facing or business-critical capabilities (called business services in PagerDuty) allows for faster impact assessment during incident response, and makes it simpler to communicate incident status updates to non-technical stakeholders.\",\n// \"id\": \"01DXB3Z47X0YP8DWJXVCSBHRUY\",\n// \"name\": \"Service has at least 1 business service dependency\",\n// \"pass\": false,\n// \"type\": \"minimum_business_service_dependencies\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Maintaining an up-to-date technical service graph is critical for impact assessment and facilitating cross-team collaboration during incident response.\",\n// \"id\": \"01DXB3Z4860G65SMRMVL669A3X\",\n// \"name\": \"Service has at least 1 technical service dependency\",\n// \"pass\": false,\n// \"type\": \"minimum_technical_service_dependencies\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"API (non-email) integrations enable teams to use event rules which provide rich incident context and only send interrupt notifications for actionable incidents.\",\n// \"id\": \"01DXB3Z48JU36JLMGNDWSSPNTQ\",\n// \"name\": \"Service has at least 1 API integration\",\n// \"pass\": true,\n// \"type\": \"has_non_email_inbound_integration\"\n// },\n// {\n// \"active\": true,\n// \"description\": \"Service names provide critical context to team members and responders and should reflect the discrete piece of functionality, or technical services they represent.\",\n// \"id\": \"01DXB3Z48U4U2YJ62LVM1JEKW6\",\n// \"name\": \"Service name matches .*\",\n// \"pass\": true,\n// \"type\": \"service_name_matches_regex\"\n// }\n// ]\n// }\n\n/** @public */\nexport type PagerDutyServiceStandards = {\n resource_id: string;\n resource_type: string;\n score: {\n passing: number;\n total: number;\n };\n list: PagerDutyServiceStandard[];\n}\n\n/** @public */\nexport type PagerDutyServiceStandard = {\n active: boolean;\n description: string;\n id: string;\n name: string;\n pass: boolean;\n type: string;\n}\n\n/** @public */\nexport type PagerDutyServiceStandardsResponse = {\n standards: PagerDutyServiceStandards;\n}\n\n/** @public */\nexport type PagerDutyServicesResponse = {\n services: PagerDutyService[];\n};\n\n/** @public */\nexport type PagerDutyServiceResponse = {\n service: PagerDutyService;\n};\n\n/** @public */\nexport type PagerDutyIncidentsResponse = {\n incidents: PagerDutyIncident[];\n};\n\n/** @public */\nexport type PagerDutyChangeEventsResponse = {\n change_events: PagerDutyChangeEvent[];\n};\n\n/** @public */\nexport type PagerDutyOnCallsResponse = {\n oncalls: PagerDutyOnCall[];\n};\n\n/** @public */\nexport type PagerDutyIntegrationResponse = {\n integration: PagerDutyIntegration;\n}\n\n/** @public */\nexport type PagerDutyEscalationPoliciesResponse = {\n escalation_policies: PagerDutyEscalationPolicy[];\n limit?: number;\n offset?: number;\n more?: boolean;\n total?: number;\n};\n\n/** @public */\nexport type PagerDutyAbilitiesResponse = {\n abilities: string[];\n};\n\n/** @public */\nexport class HttpError extends Error {\n constructor(message: string, status: number) {\n super(message);\n this.status = status;\n }\n\n status: number;\n}\n\n/** @public */\nexport type PagerDutyOAuthConfig = {\n clientId: string;\n clientSecret: string;\n region?: string;\n subDomain: string;\n}\n","/** @public */\nexport const PAGERDUTY_INTEGRATION_KEY = 'pagerduty.com/integration-key';\n\n/** @public */\nexport const PAGERDUTY_SERVICE_ID = 'pagerduty.com/service-id';"],"names":[],"mappings":";;;;;;AAwRO,MAAM,kBAAkB,KAAM,CAAA;AAAA,EACjC,WAAA,CAAY,SAAiB,MAAgB,EAAA;AACzC,IAAA,KAAA,CAAM,OAAO,CAAA,CAAA;AAIjB,IAAA,aAAA,CAAA,IAAA,EAAA,QAAA,CAAA,CAAA;AAHI,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA,CAAA;AAAA,GAClB;AAGJ;;AC9RO,MAAM,yBAA4B,GAAA,gCAAA;AAGlC,MAAM,oBAAuB,GAAA;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pagerduty/backstage-plugin-common",
3
3
  "description": "Common components for PagerDuty plugins for Backstage",
4
- "version": "0.1.2-next.1",
4
+ "version": "0.1.2-next.3",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",