From ace3af2a4b7fead12028dfaa0257b3a74570d061 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 8 Apr 2025 12:09:40 +0700 Subject: [PATCH] refactor: add contact information and bank details to institution types and translations --- src/i18n/eng.ts | 3 +++ src/i18n/tha.ts | 3 +++ src/stores/institution/types.ts | 11 +++++++++++ 3 files changed, 17 insertions(+) diff --git a/src/i18n/eng.ts b/src/i18n/eng.ts index 9d3e74fa..241621bb 100644 --- a/src/i18n/eng.ts +++ b/src/i18n/eng.ts @@ -917,6 +917,9 @@ export default { code: 'Agencies Code', group: 'Agencies Group', name: 'Agencies Name', + contactName: 'Contact Name', + contactTel: 'Contact Telephone', + bankInfo: 'Bank Information', }, requestList: { diff --git a/src/i18n/tha.ts b/src/i18n/tha.ts index a87f67e8..19915334 100644 --- a/src/i18n/tha.ts +++ b/src/i18n/tha.ts @@ -908,6 +908,9 @@ export default { code: 'รหัสหน่วยงาน', group: 'กลุ่มหน่วยงาน', name: 'ชื่อหน่วยงาน', + contactName: 'ชื่อผู้ติดต่อ', + contactTel: 'เบอร์โทรผู้ติดต่อ', + bankInfo: 'ข้อมูลธนาคาร', }, requestList: { diff --git a/src/stores/institution/types.ts b/src/stores/institution/types.ts index 7bd6287f..9a3877a5 100644 --- a/src/stores/institution/types.ts +++ b/src/stores/institution/types.ts @@ -1,4 +1,5 @@ import { District, Province, SubDistrict } from '../address'; +import { BankBook } from '../branch/types'; import { Status } from '../types'; export type Institution = { @@ -25,6 +26,11 @@ export type Institution = { districtId: string; provinceId: string; status: Status; + + contactName?: string | null; + contactEmail?: string | null; + contactTel?: string | null; + bank: BankBook[]; }; export type InstitutionPayload = { @@ -34,6 +40,11 @@ export type InstitutionPayload = { group?: string; selectedImage?: string | null; + contactName?: string | null; + contactEmail?: string | null; + contactTel?: string | null; + bank: BankBook[]; + addressEN: string; address: string; soi?: string | null;