fix store profile fields
This commit is contained in:
@@ -2,11 +2,9 @@ import { api } from '@/lib/api'
|
||||
import type {
|
||||
PaginatedResponse,
|
||||
StoreResponse,
|
||||
KycDocumentResponse,
|
||||
OutstandingBalanceResponse,
|
||||
StoreDashboardResponse,
|
||||
StoreVisitHistoryItem,
|
||||
KycStatus,
|
||||
} from '@/types/api'
|
||||
|
||||
import type { PageParams } from './master'
|
||||
@@ -15,7 +13,8 @@ import type { PageParams } from './master'
|
||||
|
||||
export interface StoreBody {
|
||||
routeId: string
|
||||
ownerName: string
|
||||
ownerName?: string | null
|
||||
contactNumber?: string | null
|
||||
storeName: string
|
||||
storeAddress: string
|
||||
latitude: number
|
||||
@@ -28,7 +27,6 @@ export interface StoreBody {
|
||||
|
||||
export interface StoreListParams extends PageParams {
|
||||
routeId?: string
|
||||
kycStatus?: KycStatus
|
||||
search?: string
|
||||
}
|
||||
|
||||
@@ -53,16 +51,6 @@ export const stores = {
|
||||
|
||||
dashboard: (id: string, period?: string) =>
|
||||
api.get<StoreDashboardResponse>(`/stores/${id}/dashboard`, { params: { period } }).then(r => r.data),
|
||||
|
||||
kycDocuments: (id: string) =>
|
||||
api.get<KycDocumentResponse[]>(`/stores/${id}/kyc-documents`).then(r => r.data),
|
||||
|
||||
uploadKycDocument: (id: string, documentType: string, fileReference: string) =>
|
||||
api.post<KycDocumentResponse>(`/stores/${id}/kyc-documents`, { documentType, fileReference }).then(r => r.data),
|
||||
|
||||
updateKycStatus: (id: string, kycStatus: KycStatus) =>
|
||||
api.patch<StoreResponse>(`/stores/${id}/kyc-status`, { kycStatus }).then(r => r.data),
|
||||
|
||||
visitHistory: (id: string) =>
|
||||
api.get<StoreVisitHistoryItem[]>(`/stores/${id}/visit-history`).then(r => r.data),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user