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

teableio / teable / 8477076350

29 Mar 2024 04:11AM UTC coverage: 21.636% (-0.2%) from 21.83%
8477076350

Pull #484

github

web-flow
Merge 4e5e9beeb into 039ad8b0a
Pull Request #484: feat: support increment import

1395 of 2503 branches covered (55.73%)

24 of 733 new or added lines in 23 files covered. (3.27%)

2 existing lines in 1 file now uncovered.

14552 of 67258 relevant lines covered (21.64%)

2.07 hits per line

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

0.0
/packages/openapi/src/import/analyze.ts
1
import type { RouteConfig } from '@asteasolutions/zod-to-openapi';
×
2
import { axios } from '../axios';
×
3
import { registerRoute, urlBuilder } from '../utils';
×
NEW
4
import type { IAnalyzeRo, IAnalyzeVo } from './types';
×
NEW
5
import { analyzeRoSchema, analyzeVoSchema } from './types';
×
6

×
7
export const ANALYZE_FILE = '/import/analyze';
×
8

×
9
export const AnalyzeTableRoute: RouteConfig = registerRoute({
×
10
  method: 'get',
×
11
  path: ANALYZE_FILE,
×
12
  description: 'Get a column info from analyze sheet',
×
13
  request: {
×
14
    query: analyzeRoSchema,
×
15
  },
×
16
  responses: {
×
17
    200: {
×
18
      description: 'Returns columnHeader analyze from file',
×
19
      content: {
×
20
        'application/json': {
×
21
          schema: analyzeVoSchema,
×
22
        },
×
23
      },
×
24
    },
×
25
  },
×
26
  tags: ['import'],
×
27
});
×
28

×
29
export const analyzeFile = async (analyzeRo: IAnalyzeRo) => {
×
30
  return axios.get<IAnalyzeVo>(urlBuilder(ANALYZE_FILE), { params: analyzeRo });
×
31
};
×
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