# bitbucket-webhooks

> Type Descriptions for Bitbucket Webhook Events

Latest version **0.0.7** (published 2021-02-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install bitbucket-webhooks
pnpm add bitbucket-webhooks
yarn add bitbucket-webhooks
bun add bitbucket-webhooks
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2021-02-16 |
| First published | 2021-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 78.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alan Raison |
| Maintainers | alanraison |
| Keywords | bitbucket, typescript |

## Links

- npm: https://www.npmjs.com/package/bitbucket-webhooks
- Repository: https://github.com/alanraison/bitbucket-webhooks
- Homepage: https://github.com/alanraison/bitbucket-webhooks#readme
- Issues: https://github.com/alanraison/bitbucket-webhooks/issues
- npm.io page: https://npm.io/package/bitbucket-webhooks

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.7 (latest) — 2021-02-16
- 0.0.1 — 2021-01-05

## README

# bitbucket-webhooks
Type definitions for Bitbucket webhook events

![CI Status](https://github.com/alanraison/bitbucket-webhooks/workflows/CI/badge.svg)

## Usage

Since Bitbucket Server and Bitbucket Cloud have different webook formats, you need to import the type definitions from the appropriate place; either:

```typescript
import { server } from 'bitbucket-webhooks';
let pr: server.PullRequest;
// or
import { PullRequest } from 'bitbucket-webhooks/server';
let pr: PullRequest;
```

*Note that there are no definitions for the Bitbucket Cloud webhooks yet*

There are also builder functions for the various types:

```typescript
import { PullRequest } from 'bitbucket-webhooks/server';
import { pullRequest } from 'bitbucket-webhooks/builders/server';

const pr: PullRequest = pullRequest({
  description: 'A super-cool pull request',
});
```

## Legal

Bitbucket is a trademark of [Atlassian](https://atlassian.com), with which this library is not associated.

---
_Source: https://npm.io/package/bitbucket-webhooks · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
