Done: нельзя при нерешённой проблеме (Can't done - not solved yet. SS, исходная проблема сохраняется), точечная проверка операции в QuickBooks; вложения документов в QuickBooks (qbo-attach, миграция 078, ссылка на Drive в Memo); review-done-action.md по замечаниям
Some checks failed
ci / test (push) Failing after 1m0s
ci / deploy (push) Has been skipped

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 19:32:51 +03:00
parent 2419bd26d3
commit 1112dac733
12 changed files with 523 additions and 55 deletions

View File

@@ -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());