Skip to main content

CommentAddedPayload

type CommentAddedPayload = {
eventData: | {
content: string;
fileAttachment: | {
fileDuration?: number | null;
fileName?: string | null;
fileSize?: number | null;
fileType?: string | null;
fileUrl?: string | null;
image?: string | null;
imageHeight?: number | null;
imageWidth?: number | null;
resourceType: string;
title?: string | null;
uploadState?: "completed" | "pending" | null;
url?: string | null;
}
| null;
id: string;
isDeleted: boolean;
item: {
addedAt: Date | null;
addedByUid: string | null;
assignedByUid: string | null;
checked: boolean;
childOrder: number;
completedAt: Date | null;
content: string;
dayOrder: number;
deadline: | {
date: string;
lang: string;
}
| null;
description: string;
due: | {
date: string;
datetime?: string | null;
isRecurring: boolean;
lang?: string | null;
string: string;
timezone?: string | null;
}
| null;
duration: | {
amount: number;
unit: "minute" | "day";
}
| null;
id: string;
isCollapsed: boolean;
isDeleted: boolean;
isUncompletable: boolean;
labels: string[];
parentId: string | null;
priority: number;
projectId: string;
responsibleUid: string | null;
sectionId: string | null;
updatedAt: Date | null;
url: string;
userId: string;
};
postedAt: Date | null;
postedUid: string | null;
reactions: Record<string, string[]> | null;
taskId: string;
uidsToNotify: string[] | null;
url: string;
}
| {
content: string;
fileAttachment: | {
fileDuration?: number | null;
fileName?: string | null;
fileSize?: number | null;
fileType?: string | null;
fileUrl?: string | null;
image?: string | null;
imageHeight?: number | null;
imageWidth?: number | null;
resourceType: string;
title?: string | null;
uploadState?: "completed" | "pending" | null;
url?: string | null;
}
| null;
id: string;
isDeleted: boolean;
postedAt: Date | null;
postedUid: string | null;
projectId: string;
reactions: Record<string, string[]> | null;
uidsToNotify: string[] | null;
};
eventName: "note:added";
initiator: {
email: string;
fullName: string;
id: string;
imageId: string | null;
isPremium: boolean;
};
triggeredAt: Date;
userId: string;
version: "1";
};

Type Declaration

NameTypeDefault value
eventData| { content: string; fileAttachment: | { fileDuration?: number | null; fileName?: string | null; fileSize?: number | null; fileType?: string | null; fileUrl?: string | null; image?: string | null; imageHeight?: number | null; imageWidth?: number | null; resourceType: string; title?: string | null; uploadState?: "completed" | "pending" | null; url?: string | null; } | null; id: string; isDeleted: boolean; item: { addedAt: Date | null; addedByUid: string | null; assignedByUid: string | null; checked: boolean; childOrder: number; completedAt: Date | null; content: string; dayOrder: number; deadline: | { date: string; lang: string; } | null; description: string; due: | { date: string; datetime?: string | null; isRecurring: boolean; lang?: string | null; string: string; timezone?: string | null; } | null; duration: | { amount: number; unit: "minute" | "day"; } | null; id: string; isCollapsed: boolean; isDeleted: boolean; isUncompletable: boolean; labels: string[]; parentId: string | null; priority: number; projectId: string; responsibleUid: string | null; sectionId: string | null; updatedAt: Date | null; url: string; userId: string; }; postedAt: Date | null; postedUid: string | null; reactions: Record<string, string[]> | null; taskId: string; uidsToNotify: string[] | null; url: string; } | { content: string; fileAttachment: | { fileDuration?: number | null; fileName?: string | null; fileSize?: number | null; fileType?: string | null; fileUrl?: string | null; image?: string | null; imageHeight?: number | null; imageWidth?: number | null; resourceType: string; title?: string | null; uploadState?: "completed" | "pending" | null; url?: string | null; } | null; id: string; isDeleted: boolean; postedAt: Date | null; postedUid: string | null; projectId: string; reactions: Record<string, string[]> | null; uidsToNotify: string[] | null; }WebhookCommentSchema
eventName"note:added"-
initiator{ email: string; fullName: string; id: string; imageId: string | null; isPremium: boolean; }WebhookInitiatorSchema
initiator.emailstring-
initiator.fullNamestring-
initiator.idstring-
initiator.imageIdstring | null-
initiator.isPremiumboolean-
triggeredAtDate-
userIdstring-
version"1"WebhookVersionSchema