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;
|
email: string;
|
||||||
longitude: string;
|
longitude: string;
|
||||||
latitude: string;
|
latitude: string;
|
||||||
|
status?: Status;
|
||||||
subDistrictId?: string | null;
|
subDistrictId?: string | null;
|
||||||
districtId?: string | null;
|
districtId?: string | null;
|
||||||
provinceId?: string | null;
|
provinceId?: string | null;
|
||||||
|
|
|
||||||
|
|
@ -334,7 +334,7 @@ const useUserStore = defineStore('api-user', () => {
|
||||||
|
|
||||||
async function editById(
|
async function editById(
|
||||||
id: string,
|
id: string,
|
||||||
data: Partial<Omit<UserCreate, 'keycloakId'>>,
|
data: Partial<UserCreate & { status: 'ACTIVE' | 'INACTIVE' }>,
|
||||||
flow?: {
|
flow?: {
|
||||||
sessionId: string;
|
sessionId: string;
|
||||||
refTransactionId: string;
|
refTransactionId: string;
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,7 @@ export type UserCreate = {
|
||||||
userRole: string;
|
userRole: string;
|
||||||
userType: string;
|
userType: string;
|
||||||
username: string;
|
username: string;
|
||||||
|
status: Status;
|
||||||
profileImage?: File | null; // required but not strict
|
profileImage?: File | null; // required but not strict
|
||||||
birthDate?: Date | null;
|
birthDate?: Date | null;
|
||||||
responsibleArea?: string | null;
|
responsibleArea?: string | null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue