refactor: update store

This commit is contained in:
Methapon2001 2024-04-18 16:42:49 +07:00
parent 8a00c9a738
commit f8551edfb6
3 changed files with 3 additions and 1 deletions

View file

@ -46,6 +46,7 @@ export type BranchCreate = {
email: string;
longitude: string;
latitude: string;
status?: Status;
subDistrictId?: string | null;
districtId?: string | null;
provinceId?: string | null;

View file

@ -334,7 +334,7 @@ const useUserStore = defineStore('api-user', () => {
async function editById(
id: string,
data: Partial<Omit<UserCreate, 'keycloakId'>>,
data: Partial<UserCreate & { status: 'ACTIVE' | 'INACTIVE' }>,
flow?: {
sessionId: string;
refTransactionId: string;

View file

@ -74,6 +74,7 @@ export type UserCreate = {
userRole: string;
userType: string;
username: string;
status: Status;
profileImage?: File | null; // required but not strict
birthDate?: Date | null;
responsibleArea?: string | null;