fix: type

This commit is contained in:
Methapon2001 2024-06-25 15:46:02 +07:00
parent 771b3e8ab6
commit e303464d7c
6 changed files with 159 additions and 159 deletions

View file

@ -29,9 +29,9 @@ const useBranchContactStore = defineStore('api-branch-contact', () => {
pageSize?: number;
},
flow?: {
sessionId: string;
refTransactionId: string;
transactionId: string;
sessionId?: string;
refTransactionId?: string;
transactionId?: string;
},
) {
const params = new URLSearchParams();
@ -65,9 +65,9 @@ const useBranchContactStore = defineStore('api-branch-contact', () => {
branchId: string,
data: BranchContactCreate,
flow?: {
sessionId: string;
refTransactionId: string;
transactionId: string;
sessionId?: string;
refTransactionId?: string;
transactionId?: string;
},
) {
const res = await api.post<
@ -91,9 +91,9 @@ const useBranchContactStore = defineStore('api-branch-contact', () => {
data: Partial<BranchContactCreate>,
qrCodeImage?: File,
flow?: {
sessionId: string;
refTransactionId: string;
transactionId: string;
sessionId?: string;
refTransactionId?: string;
transactionId?: string;
},
) {
const { ...payload } = data;
@ -128,9 +128,9 @@ const useBranchContactStore = defineStore('api-branch-contact', () => {
branchId: string,
contactId: string,
flow?: {
sessionId: string;
refTransactionId: string;
transactionId: string;
sessionId?: string;
refTransactionId?: string;
transactionId?: string;
},
) {
const res = await api.delete<