Events & Data
Type of events:
When someone replies to a comment, the event 'comment.replied' is fired instead of 'submission.commented'
submission.commented
{
event: 'application.commented'
project: {
id: string;
name: string;
slug: string;
language: string;
iconUrl: string;
};
comment: {
id: string;
content: string;
user: {
id: string;
displayName: string;
name: string;
avatarUrl: string;
loginProvidersIds: {
DISCORD: string;
}
},
createdAt: Date;
},
submission: {
id: string;
user: {
id: string;
displayName: string;
name: string;
avatarUrl: string;
loginProvidersIds: {
DISCORD: string;
}
},
form: {
id: string;
name: string;
slug: string;
},
createdAt: Date;
}
}
comment.replied
{
event: 'application.replied'
project: {
id: string;
name: string;
slug: string;
language: string;
iconUrl: string;
};
comment: {
id: string;
content: string;
user: {
id: string;
displayName: string;
name: string;
avatarUrl: string;
loginProvidersIds: {
DISCORD: string;
}
},
parentComment: {
id: string;
content: string;
user: {
id: string;
displayName: string;
name: string;
avatarUrl: string;
loginProvidersIds: {
DISCORD: string;
}
},
createdAt: Date;
},
createdAt: Date;
},
submission: {
id: string;
status: 'PENDING' | 'REJECTED' | 'APPROVED',
user: {
id: string;
displayName: string;
name: string;
avatarUrl: string;
loginProvidersIds: {
DISCORD: string;
}
},
form: {
id: string;
title: string;
slug: string;
},
createdAt: Date;
}
}
application.submitted
{
event: 'application.submitted'
project: {
id: string;
name: string;
slug: string;
language: string;
iconUrl: string;
}
submission: {
id: string;
form: {
id: string;
title: string;
slug: string;
};
answers: {
fieldId: string;
fieldName: string;
value: string;
}[];
createdAt: Date;
}
user: {
id: string;
displayName: string;
name: string;
avatarUrl: string;
loginProvidersIds: {
DISCORD: string;
}
}
}
submission.status.updated
{
event: 'submission.status.updated'
project: {
id: string;
name: string;
slug: string;
language: string;
iconUrl: string;
}
submission: {
id: string;
status: 'PENDING' | 'REJECTED' | 'APPROVED',
form: {
id: string;
title: string;
slug: string;
}
user: {
id: string;
displayName: string;
name: string;
avatarUrl: string;
loginProvidersIds: {
DISCORD: string;
}
}
createdAt: Date;
}
}
Last updated