From beb5efe888439891139804261f72333c63b54c8a Mon Sep 17 00:00:00 2001 From: minbo Date: Mon, 16 Sep 2024 14:31:11 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=8A=B9=EC=A0=95=20=EC=A7=80=EC=9B=90?= =?UTF-8?q?=EC=9E=90=EC=97=90=20=EB=8C=80=ED=95=9C=20=EC=A7=80=EC=9B=90=20?= =?UTF-8?q?=EC=83=81=ED=83=9C=EB=A5=BC=20=EA=B0=80=EC=A0=B8=EC=98=A4?= =?UTF-8?q?=EB=8A=94=20api=20=ED=95=A8=EC=88=98=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/apis/applicant/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/src/apis/applicant/index.ts b/frontend/src/apis/applicant/index.ts index 7eb39b4..77404c9 100644 --- a/frontend/src/apis/applicant/index.ts +++ b/frontend/src/apis/applicant/index.ts @@ -143,3 +143,14 @@ export const patchApplicantState = async ( return data; }; + +export const getApplicantState = async ( + navigationId: string, + applicantId: string, + generation: string +): Promise => { + const cardsData = await getKanbanCards(navigationId, generation); + + return cardsData.find((card) => card.applicantId === applicantId)?.state + .passState; +};