@coderabbitai/bitbucket
Version:
CodeRabbit's TypeScript API client for connecting to Bitbucket Cloud and Bitbucket Data Center
82 lines • 2.47 kB
TypeScript
import type { SchemaPullRequest, SchemaRepository } from "../../../openapi/openapi-typescript.ts";
export interface Actor {
readonly active: boolean;
readonly displayName: string;
readonly emailAddress: string;
readonly id: number;
readonly name: string;
readonly slug: string;
readonly type: string;
}
export interface Author {
readonly approved: boolean;
readonly role: string;
readonly status: string;
readonly user: Actor;
}
export interface Comment {
readonly author: Actor;
readonly comments: unknown[];
readonly createdDate: number;
readonly id: number;
readonly tasks: unknown[];
readonly text: string;
readonly updatedDate: number;
readonly version: number;
}
/** A user deletes a comment on a pull request. This payload comes with an event
* key of `pr:comment:deleted`. */
export interface PRCommentDeleted {
/** The user that deleted the comment. */
readonly actor: Actor;
/** The comment deleted. */
readonly comment: Comment;
/** Id of the parent comment if one exists. */
readonly commentParentId: number;
readonly date: string;
readonly eventKey: "pr:comment:deleted";
/** The pull request where the comment existed. */
readonly pullRequest: PullRequest;
}
export interface Project {
readonly id: number;
readonly key: string;
readonly name: string;
readonly public: boolean;
readonly type: string;
}
export interface PullRequest {
readonly author: Author;
readonly closed: boolean;
readonly createdDate: number;
readonly draft: boolean;
readonly fromRef: Ref;
readonly id: number;
readonly locked: boolean;
readonly open: boolean;
readonly participants: Author[];
readonly reviewers: Author[];
readonly state: SchemaPullRequest["state"];
readonly title: string;
readonly toRef: Ref;
readonly updatedDate: number;
readonly version: number;
}
export interface Ref {
readonly displayId: string;
readonly id: string;
readonly latestCommit: string;
readonly repository: Repository;
}
export interface Repository {
readonly forkable: boolean;
readonly id: number;
readonly name: string;
readonly project: Project;
readonly public: boolean;
readonly scmId: string;
readonly slug: string;
readonly state: SchemaRepository["state"];
readonly statusMessage: string;
}
//# sourceMappingURL=comment_deleted.d.ts.map