mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 20:01:46 +00:00
47 lines
797 B
TypeScript
47 lines
797 B
TypeScript
export type OdFileObject = {
|
|
'@microsoft.graph.downloadUrl': string
|
|
name: string
|
|
size: number
|
|
id: string
|
|
lastModifiedDateTime: string
|
|
file: {
|
|
mimeType: string
|
|
hashes: {
|
|
quickXorHash: string
|
|
sha1Hash: string
|
|
sha256Hash: string
|
|
}
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}>
|