Done: нельзя при нерешённой проблеме (Can't done - not solved yet. SS, исходная проблема сохраняется), точечная проверка операции в QuickBooks; вложения документов в QuickBooks (qbo-attach, миграция 078, ссылка на Drive в Memo); review-done-action.md по замечаниям
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -100,6 +100,12 @@ export class DriveClient implements DriveStore {
|
||||
return out;
|
||||
}
|
||||
|
||||
/** Имя и тип файла. */
|
||||
async meta(fileId: string): Promise<{ name: string; mimeType: string }> {
|
||||
const res = await this.call(`${API}/files/${encodeURIComponent(fileId)}?fields=name,mimeType&supportsAllDrives=true`);
|
||||
return (await res.json()) as { name: string; mimeType: string };
|
||||
}
|
||||
|
||||
async download(fileId: string): Promise<Buffer> {
|
||||
const res = await this.call(`${API}/files/${encodeURIComponent(fileId)}?alt=media&supportsAllDrives=true`);
|
||||
return Buffer.from(await res.arrayBuffer());
|
||||
|
||||
Reference in New Issue
Block a user