Skip to content

Commit

Permalink
Merge pull request #24 from PagerDuty/feat/add-support-for-multiple-a…
Browse files Browse the repository at this point in the history
…ccounts

feat: add account field to PagerDuty types
  • Loading branch information
t1agob authored Jul 11, 2024
2 parents d76f565 + 86950ec commit 1d99bbc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export type PagerDutyService = {
summary?: string;
self?: string;
html_url: string;
account?: string;
}

/** @public */
Expand All @@ -65,6 +66,7 @@ export type PagerDutyEscalationPolicy = {
summary?: string;
self?: string;
html_url?: string;
account?: string;
}

/** @public */
Expand Down Expand Up @@ -254,6 +256,16 @@ export type PagerDutyOAuthConfig = {
subDomain: string;
}

/** @public */
export type PagerDutyAccountConfig = {
id: string;
isDefault?: boolean;
eventsBaseUrl?: string;
apiBaseUrl?: string;
apiToken?: string;
oauth?: PagerDutyOAuthConfig;
}

/** @public */
export type PagerDutyEntityMapping = {
entityRef: string;
Expand All @@ -266,6 +278,7 @@ export type PagerDutyEntityMapping = {
processedDate?: Date;
team?: string;
escalationPolicy?: string;
account?: string;
};

/** @public */
Expand Down

0 comments on commit 1d99bbc

Please sign in to comment.