From ce316baf3c5615122e3ab41ceedbc78137e86b48 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com> Date: Mon, 4 Jan 2021 02:25:55 +0300 Subject: Updates Models Changes the models to match the backend. Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com> --- src/api/forms.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/api/forms.ts') diff --git a/src/api/forms.ts b/src/api/forms.ts index aec4b99..3869838 100644 --- a/src/api/forms.ts +++ b/src/api/forms.ts @@ -6,17 +6,24 @@ export enum FormFeatures { RequiresLogin = "REQUIRES_LOGIN", Open = "OPEN", CollectEmail = "COLLECT_EMAIL", - DisableAntispam = "DISABLE_ANTISPAM" + DisableAntispam = "DISABLE_ANTISPAM", + WEBHOOK_ENABLED = "WEBHOOK_ENABLED" } export interface Form { id: string, features: Array, + webhook: WebHook | null, questions: Array, name: string, description: string } +export interface WebHook { + url: string, + message: string | null +} + export async function getForms(): Promise { const resp = await ApiClient.get("forms/discoverable"); return resp.data; -- cgit v1.2.3