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

teableio / teable / 8536869866

03 Apr 2024 10:05AM CUT coverage: 21.234% (-0.3%) from 21.535%
8536869866

Pull #514

github

web-flow
Merge 91a25d710 into 45ee7ebb3
Pull Request #514: refactor: user and link selector

1394 of 2532 branches covered (55.06%)

27 of 1620 new or added lines in 60 files covered. (1.67%)

4 existing lines in 2 files now uncovered.

14588 of 68702 relevant lines covered (21.23%)

2.02 hits per line

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

81.97
/packages/sdk/src/config/react-query-keys.ts
1
/* eslint-disable @typescript-eslint/naming-convention */
1✔
2
import type { IFieldRo, IConvertFieldRo, NotificationStatesEnum } from '@teable/core';
1✔
3
import type {
1✔
4
  IShareViewRowCountRo,
1✔
5
  IShareViewAggregationsRo,
1✔
6
  IAggregationRo,
1✔
7
  IGroupPointsRo,
1✔
8
  IQueryBaseRo,
1✔
9
} from '@teable/openapi';
1✔
10

1✔
11
export const ReactQueryKeys = {
1✔
12
  base: (baseId: string) => ['base', baseId] as const,
1✔
13

1✔
14
  spaceList: () => ['space-list'] as const,
1✔
15

1✔
16
  spaceCollaboratorList: (spaceId: string) => ['space-collaborator-list', spaceId] as const,
1✔
17

1✔
18
  baseCollaboratorList: (baseId: string) => ['base-collaborator-list', baseId] as const,
1✔
19

1✔
20
  notifyList: (filter: { status: NotificationStatesEnum }) =>
1✔
21
    ['notification', 'list', filter] as const,
×
22
  notifyUnreadCount: () => ['notification', 'unread-count'],
1✔
23

1✔
24
  rowCount: (tableId: string, query: IQueryBaseRo) => ['row-count', tableId, query] as const,
1✔
25
  groupPoints: (tableId: string, query: IGroupPointsRo) =>
1✔
26
    ['group-points', tableId, query] as const,
×
27
  aggregations: (tableId: string, query: IAggregationRo) =>
1✔
28
    ['aggregations', tableId, query] as const,
×
29

1✔
30
  shareViewRowCount: (shareId: string, query: IShareViewRowCountRo) =>
1✔
31
    ['share-view-row-count', shareId, query] as const,
×
32
  shareViewGroupPoints: (shareId: string, query: IGroupPointsRo) =>
1✔
33
    ['share-view-group-points', shareId, query] as const,
×
34
  shareViewAggregations: (shareId: string, query: IShareViewAggregationsRo) =>
1✔
35
    ['share-view-aggregations', shareId, query] as const,
×
36

1✔
37
  planFieldCreate: (tableId: string, fieldRo: IFieldRo) =>
1✔
38
    ['create-field-plan', tableId, fieldRo] as const,
×
39

1✔
40
  planFieldConvert: (tableId: string, fieldId: string, fieldRo: IConvertFieldRo) =>
1✔
41
    ['create-field-plan', tableId, fieldId, fieldRo] as const,
×
42

1✔
43
  planField: (tableId: string, fieldId: string) => ['field-plan', tableId, fieldId] as const,
1✔
44

1✔
45
  personAccessTokenList: () => ['person-access-token-list'],
1✔
46

1✔
47
  personAccessToken: (id: string) => ['person-access-token-list', id],
1✔
48

1✔
49
  tableInfo: (baseId: string, tableId: string) => ['table-info', baseId, tableId],
1✔
50

1✔
51
  field: (tableId: string) => ['field-info', tableId],
1✔
52

1✔
53
  shareViewCollaborators: (shareId: string, fieldId?: string) =>
1✔
NEW
54
    ['share-view-collaborators', shareId, fieldId] as const,
×
55

1✔
56
  getViewFilterLinkRecords: (tableId: string, viewId: string) =>
1✔
NEW
57
    ['get-view-filter-link-records', tableId, viewId] as const,
×
58

1✔
59
  shareViewLinkRecords: (shareId: string, fieldId: string, search?: string) =>
1✔
NEW
60
    ['share-link-records', shareId, fieldId, search] as const,
×
61
};
1✔
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