A simple utility for exporting Retino tickets to Excel format (using Bun and ExcelJS). Fetches ticket data from Retino API and generates a formatted XLSX report.
- Bun installed
- Retino API token
bun install retino-cases-reports-xls
- Create a new file in your project
- Add your Retino API token:
const TOKEN_KEY = "YOUR_TOKEN_KEY";
# Run the export
bun start
This will generate a tickets.xlsx
file in your current directory with the following columns:
- ID
- Code
- Order ID
- Type (Complaint/Return)
- Product Name
- Customer Name
- Order Date
- Created At
- Lifetime (days)
- Closed At
- Country
# Install dependencies
bun install
# Run the script
bun start
# Run tests
bun test
- exceljs: ^4.4.0
- typescript: ^5.0.0 (peer dependency)