var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import Monitor from "./Monitor";
import Project from "./Project";
import StatusPage from "./StatusPage";
import User from "./User";
import File from "./File";
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel";
import Route from "../../Types/API/Route";
import { PlanType } from "../../Types/Billing/SubscriptionPlan";
import ColumnAccessControl from "../../Types/Database/AccessControl/ColumnAccessControl";
import TableAccessControl from "../../Types/Database/AccessControl/TableAccessControl";
import TableBillingAccessControl from "../../Types/Database/AccessControl/TableBillingAccessControl";
import CanAccessIfCanReadOn from "../../Types/Database/CanAccessIfCanReadOn";
import ColumnLength from "../../Types/Database/ColumnLength";
import ColumnType from "../../Types/Database/ColumnType";
import CrudApiEndpoint from "../../Types/Database/CrudApiEndpoint";
import EnableDocumentation from "../../Types/Database/EnableDocumentation";
import EnableWorkflow from "../../Types/Database/EnableWorkflow";
import SlugifyColumn from "../../Types/Database/SlugifyColumn";
import TableColumn from "../../Types/Database/TableColumn";
import TableColumnType from "../../Types/Database/TableColumnType";
import TableMetadata from "../../Types/Database/TableMetadata";
import TenantColumn from "../../Types/Database/TenantColumn";
import IconProp from "../../Types/Icon/IconProp";
import ObjectID from "../../Types/ObjectID";
import Permission from "../../Types/Permission";
import StatusPageSubscriberNotificationStatus from "../../Types/StatusPage/StatusPageSubscriberNotificationStatus";
import { Column, Entity, Index, JoinColumn, JoinTable, ManyToMany, ManyToOne, } from "typeorm";
let StatusPageAnnouncement = class StatusPageAnnouncement extends BaseModel {
    constructor() {
        super(...arguments);
        this.project = undefined;
        this.projectId = undefined;
        this.statusPages = undefined;
        this.monitors = undefined;
        this.title = undefined;
        this.showAnnouncementAt = undefined;
        this.endAnnouncementAt = undefined;
        this.description = undefined;
        this.attachments = undefined;
        this.createdByUser = undefined;
        this.createdByUserId = undefined;
        this.deletedByUser = undefined;
        this.deletedByUserId = undefined;
        this.subscriberNotificationStatus = undefined;
        this.subscriberNotificationStatusMessage = undefined;
        this.shouldStatusPageSubscribersBeNotified = undefined;
        this.isOwnerNotified = undefined;
    }
};
__decorate([
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [],
    }),
    TableColumn({
        manyToOneRelationColumn: "projectId",
        type: TableColumnType.Entity,
        modelType: Project,
        title: "Project",
        description: "Relation to Project Resource in which this object belongs",
    }),
    ManyToOne(() => {
        return Project;
    }, {
        eager: false,
        nullable: true,
        onDelete: "CASCADE",
        orphanedRowAction: "nullify",
    }),
    JoinColumn({ name: "projectId" }),
    __metadata("design:type", Project)
], StatusPageAnnouncement.prototype, "project", void 0);
__decorate([
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [],
    }),
    Index(),
    TableColumn({
        type: TableColumnType.ObjectID,
        required: true,
        canReadOnRelationQuery: true,
        title: "Project ID",
        description: "ID of your OneUptime Project in which this object belongs",
        example: "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
    }),
    Column({
        type: ColumnType.ObjectID,
        nullable: false,
        transformer: ObjectID.getDatabaseTransformer(),
    }),
    __metadata("design:type", ObjectID)
], StatusPageAnnouncement.prototype, "projectId", void 0);
__decorate([
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.EditStatusPageAnnouncement,
        ],
    }),
    TableColumn({
        required: false,
        type: TableColumnType.EntityArray,
        modelType: StatusPage,
        title: "Status Pages",
        description: "Status Pages to show show this announcement on.",
    }),
    ManyToMany(() => {
        return StatusPage;
    }, { eager: false }),
    JoinTable({
        name: "AnnouncementStatusPage",
        inverseJoinColumn: {
            name: "statusPageId",
            referencedColumnName: "_id",
        },
        joinColumn: {
            name: "announcementId",
            referencedColumnName: "_id",
        },
    }),
    __metadata("design:type", Array)
], StatusPageAnnouncement.prototype, "statusPages", void 0);
__decorate([
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.EditStatusPageAnnouncement,
        ],
    }),
    TableColumn({
        required: false,
        type: TableColumnType.EntityArray,
        modelType: Monitor,
        title: "Monitors",
        description: "List of monitors affected by this announcement. If none are selected, all subscribers will be notified.",
    }),
    ManyToMany(() => {
        return Monitor;
    }, { eager: false }),
    JoinTable({
        name: "AnnouncementMonitor",
        inverseJoinColumn: {
            name: "monitorId",
            referencedColumnName: "_id",
        },
        joinColumn: {
            name: "announcementId",
            referencedColumnName: "_id",
        },
    }),
    __metadata("design:type", Array)
], StatusPageAnnouncement.prototype, "monitors", void 0);
__decorate([
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.EditStatusPageAnnouncement,
        ],
    }),
    TableColumn({
        required: true,
        type: TableColumnType.ShortText,
        title: "Title",
        description: "Title of this resource",
        example: "Scheduled Maintenance - Database Upgrade",
    }),
    Column({
        nullable: false,
        type: ColumnType.ShortText,
        length: ColumnLength.ShortText,
    }),
    __metadata("design:type", String)
], StatusPageAnnouncement.prototype, "title", void 0);
__decorate([
    TableColumn({
        title: "Show At",
        type: TableColumnType.Date,
        required: true,
        description: "When should this announcement be shown?",
    }),
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.EditStatusPageAnnouncement,
        ],
    }),
    Column({
        nullable: false,
        type: ColumnType.Date,
    }),
    __metadata("design:type", Date)
], StatusPageAnnouncement.prototype, "showAnnouncementAt", void 0);
__decorate([
    TableColumn({
        title: "End At",
        type: TableColumnType.Date,
        required: false,
        description: "When should this announcement hidden?",
    }),
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.EditStatusPageAnnouncement,
        ],
    }),
    Column({
        nullable: true,
        type: ColumnType.Date,
    }),
    __metadata("design:type", Date)
], StatusPageAnnouncement.prototype, "endAnnouncementAt", void 0);
__decorate([
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.EditStatusPageAnnouncement,
        ],
    }),
    TableColumn({
        required: true,
        type: TableColumnType.Markdown,
        title: "Announcement Description",
        description: "Text of the announcement. This can be in Markdown format.",
        example: "We will be performing scheduled maintenance on our database servers. Expected downtime is 2 hours.",
    }),
    Column({
        nullable: false,
        type: ColumnType.Markdown,
    }),
    __metadata("design:type", String)
], StatusPageAnnouncement.prototype, "description", void 0);
__decorate([
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.EditStatusPageAnnouncement,
        ],
    }),
    TableColumn({
        type: TableColumnType.EntityArray,
        modelType: File,
        title: "Attachments",
        description: "Files attached to this announcement",
        required: false,
    }),
    ManyToMany(() => {
        return File;
    }, {
        eager: false,
    }),
    JoinTable({
        name: "StatusPageAnnouncementFile",
        joinColumn: {
            name: "statusPageAnnouncementId",
            referencedColumnName: "_id",
        },
        inverseJoinColumn: {
            name: "fileId",
            referencedColumnName: "_id",
        },
    }),
    __metadata("design:type", Array)
], StatusPageAnnouncement.prototype, "attachments", void 0);
__decorate([
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [],
    }),
    TableColumn({
        manyToOneRelationColumn: "createdByUserId",
        type: TableColumnType.Entity,
        modelType: User,
        title: "Created by User",
        description: "Relation to User who created this object (if this object was created by a User)",
    }),
    ManyToOne(() => {
        return User;
    }, {
        eager: false,
        nullable: true,
        onDelete: "SET NULL",
        orphanedRowAction: "nullify",
    }),
    JoinColumn({ name: "createdByUserId" }),
    __metadata("design:type", User)
], StatusPageAnnouncement.prototype, "createdByUser", void 0);
__decorate([
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [],
    }),
    TableColumn({
        type: TableColumnType.ObjectID,
        title: "Created by User ID",
        description: "User ID who created this object (if this object was created by a User)",
        example: "c3d4e5f6-a7b8-9012-cdef-234567890abc",
    }),
    Column({
        type: ColumnType.ObjectID,
        nullable: true,
        transformer: ObjectID.getDatabaseTransformer(),
    }),
    __metadata("design:type", ObjectID)
], StatusPageAnnouncement.prototype, "createdByUserId", void 0);
__decorate([
    ColumnAccessControl({
        create: [],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [],
    }),
    TableColumn({
        manyToOneRelationColumn: "deletedByUserId",
        type: TableColumnType.Entity,
        title: "Deleted by User",
        modelType: User,
        description: "Relation to User who deleted this object (if this object was deleted by a User)",
    }),
    ManyToOne(() => {
        return User;
    }, {
        cascade: false,
        eager: false,
        nullable: true,
        onDelete: "SET NULL",
        orphanedRowAction: "nullify",
    }),
    JoinColumn({ name: "deletedByUserId" }),
    __metadata("design:type", User)
], StatusPageAnnouncement.prototype, "deletedByUser", void 0);
__decorate([
    ColumnAccessControl({
        create: [],
        read: [],
        update: [],
    }),
    TableColumn({
        type: TableColumnType.ObjectID,
        title: "Deleted by User ID",
        description: "User ID who deleted this object (if this object was deleted by a User)",
    }),
    Column({
        type: ColumnType.ObjectID,
        nullable: true,
        transformer: ObjectID.getDatabaseTransformer(),
    }),
    __metadata("design:type", ObjectID)
], StatusPageAnnouncement.prototype, "deletedByUserId", void 0);
__decorate([
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.EditStatusPageAnnouncement,
        ],
    }),
    TableColumn({
        isDefaultValueColumn: true,
        computed: true,
        hideColumnInDocumentation: true,
        type: TableColumnType.ShortText,
        defaultValue: StatusPageSubscriberNotificationStatus.Pending,
    }),
    Column({
        type: ColumnType.ShortText,
        default: StatusPageSubscriberNotificationStatus.Pending,
    }),
    __metadata("design:type", String)
], StatusPageAnnouncement.prototype, "subscriberNotificationStatus", void 0);
__decorate([
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.EditStatusPageAnnouncement,
        ],
    }),
    TableColumn({
        type: TableColumnType.VeryLongText,
        title: "Notification Status Message",
        description: "Status message for subscriber notifications - includes success messages, failure reasons, or skip reasons",
        required: false,
    }),
    Column({
        type: ColumnType.VeryLongText,
        nullable: true,
    }),
    __metadata("design:type", String)
], StatusPageAnnouncement.prototype, "subscriberNotificationStatusMessage", void 0);
__decorate([
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [],
    }),
    TableColumn({
        isDefaultValueColumn: true,
        type: TableColumnType.Boolean,
        title: "Should subscribers be notified?",
        description: "Should subscribers be notified about this announcement?",
        defaultValue: true,
    }),
    Column({
        type: ColumnType.Boolean,
        default: true,
    }),
    __metadata("design:type", Boolean)
], StatusPageAnnouncement.prototype, "shouldStatusPageSubscribersBeNotified", void 0);
__decorate([
    ColumnAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        update: [],
    }),
    Index(),
    TableColumn({
        type: TableColumnType.Boolean,
        computed: true,
        hideColumnInDocumentation: true,
        required: true,
        isDefaultValueColumn: true,
        title: "Are Owners Notified",
        description: "Are owners notified of this announcement?",
        defaultValue: false,
    }),
    Column({
        type: ColumnType.Boolean,
        nullable: false,
        default: false,
    }),
    __metadata("design:type", Boolean)
], StatusPageAnnouncement.prototype, "isOwnerNotified", void 0);
StatusPageAnnouncement = __decorate([
    EnableDocumentation(),
    TenantColumn("projectId"),
    CanAccessIfCanReadOn("statusPages"),
    TableBillingAccessControl({
        create: PlanType.Growth,
        read: PlanType.Free,
        update: PlanType.Growth,
        delete: PlanType.Free,
    }),
    TableAccessControl({
        create: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.CreateStatusPageAnnouncement,
        ],
        read: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.Viewer,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.StatusPageViewer,
            Permission.ReadStatusPageAnnouncement,
        ],
        delete: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.DeleteStatusPageAnnouncement,
        ],
        update: [
            Permission.ProjectOwner,
            Permission.ProjectAdmin,
            Permission.ProjectMember,
            Permission.StatusPageAdmin,
            Permission.StatusPageMember,
            Permission.EditStatusPageAnnouncement,
        ],
    }),
    EnableWorkflow({
        create: true,
        delete: true,
        update: true,
        read: true,
    }),
    CrudApiEndpoint(new Route("/status-page-announcement")),
    SlugifyColumn("name", "slug"),
    TableMetadata({
        tableName: "StatusPageAnnouncement",
        singularName: "Status Page Announcement",
        pluralName: "Status Page Announcements",
        icon: IconProp.Announcement,
        tableDescription: "Manage announcements on your status page",
    }),
    Entity({
        name: "StatusPageAnnouncement",
    })
], StatusPageAnnouncement);
export default StatusPageAnnouncement;
//# sourceMappingURL=StatusPageAnnouncement.js.map