Add store-item Excel export/import for bulk price and stock updates.

Dashboard can download grouped product variants and re-upload to update price and stock. Also expose Content-Disposition for downloads and keep related product/customer API docs in sync.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-19 01:02:43 +03:30
co-authored by Cursor
parent 4a5780e74d
commit 7277817b6e
17 changed files with 1553 additions and 52 deletions
@@ -3,6 +3,7 @@ import {
ExecutionContext,
Injectable,
NestInterceptor,
StreamableFile,
} from '@nestjs/common';
import { Observable, map } from 'rxjs';
@@ -15,6 +16,14 @@ function serializeBigInt(value: unknown): unknown {
return value.toISOString();
}
if (value instanceof StreamableFile) {
return value;
}
if (Buffer.isBuffer(value) || value instanceof Uint8Array) {
return value;
}
if (Array.isArray(value)) {
return value.map(serializeBigInt);
}