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

teableio / teable / 8467699124

28 Mar 2024 01:01PM CUT coverage: 21.828% (-60.6%) from 82.388%
8467699124

push

github

web-flow
feat: export csv (#493)

* feat: support export csv from table

* feat: supplement import auth validate

* feat: export table as csv using table name

* feat: perfect import & export auth definition

* feat: cancel validate auth analyze file when import

* feat: add export csv error handle

feat: fit all special field

* chore: update export csv line feed symbo

* feat: deal export csv untitled case

* test: add export csv e2e test

* test: enable debug global log when ci test

* fix: filter delete table when export csv from table

* fix: single user field export `[object]`

* chore: lint error

1396 of 2501 branches covered (55.82%)

9 of 79 new or added lines in 7 files covered. (11.39%)

14548 of 66649 relevant lines covered (21.83%)

2.09 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