mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
search with onedrive graph api
This commit is contained in:
Vendored
+31
@@ -13,3 +13,34 @@ export type OdFileObject = {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export type OdFolderObject = {
|
||||
'@odata.count': number
|
||||
value: Array<{
|
||||
id: string
|
||||
name: string
|
||||
lastModifiedDateTime: string
|
||||
size: number
|
||||
folder: {
|
||||
childCount: number
|
||||
view: {
|
||||
sortBy: 'name'
|
||||
sortOrder: 'ascending'
|
||||
viewType: 'thumbnails'
|
||||
}
|
||||
}
|
||||
}>
|
||||
}
|
||||
|
||||
export type OdSearchResult = Array<{
|
||||
id: string
|
||||
name: string
|
||||
file?: OdFileObject
|
||||
folder?: OdFolderObject
|
||||
path: string
|
||||
parentReference: {
|
||||
id: string
|
||||
name: string
|
||||
path: string
|
||||
}
|
||||
}>
|
||||
|
||||
Reference in New Issue
Block a user