fix: type
This commit is contained in:
parent
771b3e8ab6
commit
e303464d7c
6 changed files with 159 additions and 159 deletions
|
|
@ -26,9 +26,9 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
status?: 'CREATED' | 'ACTIVE' | 'INACTIVE';
|
||||
},
|
||||
flow?: {
|
||||
sessionId: string;
|
||||
refTransactionId: string;
|
||||
transactionId: string;
|
||||
sessionId?: string;
|
||||
refTransactionId?: string;
|
||||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const params = new URLSearchParams();
|
||||
|
|
@ -64,9 +64,9 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
async function create(
|
||||
data: EmployeeCreate,
|
||||
flow?: {
|
||||
sessionId: string;
|
||||
refTransactionId: string;
|
||||
transactionId: string;
|
||||
sessionId?: string;
|
||||
refTransactionId?: string;
|
||||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const { image, ...payload } = data;
|
||||
|
|
@ -97,9 +97,9 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
id: string,
|
||||
data: Partial<EmployeeCreate>,
|
||||
flow?: {
|
||||
sessionId: string;
|
||||
refTransactionId: string;
|
||||
transactionId: string;
|
||||
sessionId?: string;
|
||||
refTransactionId?: string;
|
||||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const { image, ...payload } = data;
|
||||
|
|
@ -129,9 +129,9 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
async function deleteById(
|
||||
id: string,
|
||||
flow?: {
|
||||
sessionId: string;
|
||||
refTransactionId: string;
|
||||
transactionId: string;
|
||||
sessionId?: string;
|
||||
refTransactionId?: string;
|
||||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const res = await api.delete<Employee>(`/employee/${id}`, {
|
||||
|
|
@ -151,9 +151,9 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
async function fetchCheckup(
|
||||
id: string,
|
||||
flow?: {
|
||||
sessionId: string;
|
||||
refTransactionId: string;
|
||||
transactionId: string;
|
||||
sessionId?: string;
|
||||
refTransactionId?: string;
|
||||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const res = await api.get<EmployeeCheckup[]>(`/employee/${id}/checkup`, {
|
||||
|
|
@ -171,9 +171,9 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
async function fetchWork(
|
||||
id: string,
|
||||
flow?: {
|
||||
sessionId: string;
|
||||
refTransactionId: string;
|
||||
transactionId: string;
|
||||
sessionId?: string;
|
||||
refTransactionId?: string;
|
||||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const res = await api.get<EmployeeWork[]>(`/employee/${id}/work`, {
|
||||
|
|
@ -191,9 +191,9 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
async function fetchOther(
|
||||
id: string,
|
||||
flow?: {
|
||||
sessionId: string;
|
||||
refTransactionId: string;
|
||||
transactionId: string;
|
||||
sessionId?: string;
|
||||
refTransactionId?: string;
|
||||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const res = await api.get<EmployeeOther>(`/employee/${id}/other-info`, {
|
||||
|
|
@ -211,9 +211,9 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
async function getStatsEmployee(
|
||||
customerBranchId?: string,
|
||||
flow?: {
|
||||
sessionId: string;
|
||||
refTransactionId: string;
|
||||
transactionId: string;
|
||||
sessionId?: string;
|
||||
refTransactionId?: string;
|
||||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const res = await api.get(
|
||||
|
|
@ -234,9 +234,9 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
async function getStatsEmployeeGender(
|
||||
customerBranchId?: string,
|
||||
flow?: {
|
||||
sessionId: string;
|
||||
refTransactionId: string;
|
||||
transactionId: string;
|
||||
sessionId?: string;
|
||||
refTransactionId?: string;
|
||||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const res = await api.get(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue