mirror of
https://github.com/outline/outline.git
synced 2026-01-30 15:18:58 -06:00
* chore: Simplify encrypted decorator * fix: Correctly handle and type nullable encrypted fields * docs
34 lines
489 B
TypeScript
34 lines
489 B
TypeScript
import { observable } from "mobx";
|
|
import Model from "./base/Model";
|
|
import Field from "./decorators/Field";
|
|
|
|
class WebhookSubscription extends Model {
|
|
static modelName = "WebhookSubscription";
|
|
|
|
@Field
|
|
@observable
|
|
id: string;
|
|
|
|
@Field
|
|
@observable
|
|
name: string;
|
|
|
|
@Field
|
|
@observable
|
|
url: string;
|
|
|
|
@Field
|
|
@observable
|
|
secret: string | null;
|
|
|
|
@Field
|
|
@observable
|
|
enabled: boolean;
|
|
|
|
@Field
|
|
@observable
|
|
events: string[];
|
|
}
|
|
|
|
export default WebhookSubscription;
|