From e87ce255d372332949b87eca5fa6901d17e6145f Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Sun, 25 Aug 2024 22:02:26 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20Form=20model=20=E3=81=AB=E5=9B=9E?= =?UTF-8?q?=E7=AD=94=E3=82=92=E4=B8=80=E8=88=AC=E5=85=AC=E9=96=8B=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=81=8B=E3=81=A9=E3=81=86=E3=81=8B=E3=81=AE=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E9=A0=85=E7=9B=AE=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/form.tsp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/models/form.tsp b/src/models/form.tsp index 996b9cc..c91ae03 100644 --- a/src/models/form.tsp +++ b/src/models/form.tsp @@ -57,7 +57,16 @@ model Form { webhook_url: url; default_title: string; + + /** + * フォーム自体を公開するかどうか + */ visibility: Visibility; + + /** + * 回答を公開するかどうか + */ + answer_visibility: Visibility; }; metadata: { created_at: utcDateTime; From e468fe1ed22397e07ebbf71316161e939733d5b8 Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Sun, 25 Aug 2024 22:05:59 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E3=83=95=E3=82=A9=E3=83=BC?= =?UTF-8?q?=E3=83=A0=E3=81=AE=E5=80=A4=E3=82=92=E6=9B=B4=E6=96=B0=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=A8=E3=83=B3=E3=83=89=E3=83=9D=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=81=AB=20answer=5Fvisibility=20=E3=83=91=E3=83=A9?= =?UTF-8?q?=E3=83=A1=E3=83=BC=E3=82=BF=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/endpoints/forms.tsp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/endpoints/forms.tsp b/src/endpoints/forms.tsp index 36752da..3295450 100644 --- a/src/endpoints/forms.tsp +++ b/src/endpoints/forms.tsp @@ -116,6 +116,7 @@ namespace Forms { default_title?: string; visibility?: Visibility; + answer_visibility?: Visibility; }, ): { @statusCode statusCode: 200;