• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

teableio / teable / 8432329425

26 Mar 2024 07:31AM CUT coverage: 26.059% (-0.05%) from 26.106%
8432329425

Pull #493

github

web-flow
Merge de535fbae into 98543ea09
Pull Request #493: feat: export csv

2106 of 3377 branches covered (62.36%)

9 of 220 new or added lines in 12 files covered. (4.09%)

1 existing line in 1 file now uncovered.

25609 of 98275 relevant lines covered (26.06%)

5.16 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/openapi/src/export/export-csv.ts
NEW
1
import type { RouteConfig } from '@asteasolutions/zod-to-openapi';
×
NEW
2
import { axios } from '../axios';
×
NEW
3
import { registerRoute, urlBuilder } from '../utils';
×
NEW
4
import { z } from '../zod';
×
NEW
5

×
NEW
6
export const EXPORT_CSV_FROM_TABLE = '/export/{tableId}';
×
NEW
7

×
NEW
8
export const ExportCsvFromTableRoute: RouteConfig = registerRoute({
×
NEW
9
  method: 'get',
×
NEW
10
  path: EXPORT_CSV_FROM_TABLE,
×
NEW
11
  description: 'export csv from table',
×
NEW
12
  request: {
×
NEW
13
    params: z.object({
×
NEW
14
      tableId: z.string(),
×
NEW
15
    }),
×
NEW
16
  },
×
NEW
17
  responses: {
×
NEW
18
    200: {
×
NEW
19
      description: 'Download successful',
×
NEW
20
    },
×
NEW
21
  },
×
NEW
22
  tags: ['export'],
×
NEW
23
});
×
NEW
24

×
NEW
25
export const exportCsvFromTable = async (tableId: string) => {
×
NEW
26
  return axios.get(urlBuilder(EXPORT_CSV_FROM_TABLE, { tableId }));
×
NEW
27
};
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc