• 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/inplace-import-table.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
import { inplaceImportOptionRoSchema } from './types';
×
NEW
6
import type { IInplaceImportOptionRo } from './types';
×
NEW
7

×
NEW
8
export const INPLACE_IMPORT_TABLE = '/import/{tableId}';
×
NEW
9

×
NEW
10
export const inplaceImportTableFromFileRoute: RouteConfig = registerRoute({
×
NEW
11
  method: 'patch',
×
NEW
12
  path: INPLACE_IMPORT_TABLE,
×
NEW
13
  description: 'import table inplace',
×
NEW
14
  request: {
×
NEW
15
    params: z.object({
×
NEW
16
      tableId: z.string(),
×
NEW
17
    }),
×
NEW
18
    body: {
×
NEW
19
      content: {
×
NEW
20
        'application/json': {
×
NEW
21
          schema: inplaceImportOptionRoSchema,
×
NEW
22
        },
×
NEW
23
      },
×
NEW
24
    },
×
NEW
25
  },
×
NEW
26
  responses: {
×
NEW
27
    200: {
×
NEW
28
      description: 'Successfully import table inplace',
×
NEW
29
    },
×
NEW
30
  },
×
NEW
31
  tags: ['import'],
×
NEW
32
});
×
NEW
33

×
NEW
34
export const inplaceImportTableFromFile = async (
×
NEW
35
  tableId: string,
×
NEW
36
  inplaceImportRo: IInplaceImportOptionRo
×
NEW
37
) => {
×
NEW
38
  return axios.patch<void>(urlBuilder(INPLACE_IMPORT_TABLE, { tableId }), inplaceImportRo);
×
NEW
39
};
×
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