mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
load item path on result mount
This commit is contained in:
Vendored
+15
@@ -32,6 +32,7 @@ export type OdFolderObject = {
|
||||
}>
|
||||
}
|
||||
|
||||
// Search result type which is returned by /api/search?q={query}
|
||||
export type OdSearchResult = Array<{
|
||||
id: string
|
||||
name: string
|
||||
@@ -44,3 +45,17 @@ export type OdSearchResult = Array<{
|
||||
path: string
|
||||
}
|
||||
}>
|
||||
|
||||
// driveItem type which is returned by /api/item?id={id}
|
||||
export type OdDriveItem = {
|
||||
'@odata.context': string
|
||||
'@odata.etag': string
|
||||
id: string
|
||||
name: string
|
||||
parentReference: {
|
||||
driveId: string
|
||||
driveType: string
|
||||
id: string
|
||||
path: string
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user