refactor: update store
This commit is contained in:
parent
8a00c9a738
commit
f8551edfb6
3 changed files with 3 additions and 1 deletions
|
|
@ -46,6 +46,7 @@ export type BranchCreate = {
|
|||
email: string;
|
||||
longitude: string;
|
||||
latitude: string;
|
||||
status?: Status;
|
||||
subDistrictId?: string | null;
|
||||
districtId?: string | null;
|
||||
provinceId?: string | null;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue