File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export type ColumnKind =
2121 | typeof ColumnKindCode . DATE
2222 | typeof ColumnKindCode . ENTITY ;
2323
24- export interface Column {
24+ interface Column {
2525 name ?: string ;
2626 kind : ColumnKind ;
2727}
@@ -77,19 +77,12 @@ export interface WholeFileLocation {
7777 endColumn : never ;
7878}
7979
80- export type ResolvableLocationValue = WholeFileLocation | LineColumnLocation ;
80+ type ResolvableLocationValue = WholeFileLocation | LineColumnLocation ;
8181
8282export type UrlValue = ResolvableLocationValue | string ;
8383
8484export type CellValue = EntityValue | number | string | boolean ;
8585
86- export type ResultRow = CellValue [ ] ;
87-
88- export interface RawResultSet {
89- readonly schema : ResultSetSchema ;
90- readonly rows : readonly ResultRow [ ] ;
91- }
92-
9386export type BqrsKind =
9487 | "String"
9588 | "Float"
Original file line number Diff line number Diff line change 11import { createRemoteFileRef } from "../common/location-link-utils" ;
22import { isUrlValueResolvable , UrlValue } from "./raw-result-types" ;
3- import {
4- LineColumnLocation ,
5- UrlValue as BqrsUrlValue ,
6- WholeFileLocation ,
7- } from "./bqrs-cli-types" ;
83
94/**
105 * Checks whether the file path is empty. If so, we do not want to render this location
@@ -14,27 +9,6 @@ export function isEmptyPath(uriStr: string) {
149 return ! uriStr || uriStr === "file:/" ;
1510}
1611
17- export function isLineColumnLoc ( loc : BqrsUrlValue ) : loc is LineColumnLocation {
18- return (
19- typeof loc !== "string" &&
20- ! isEmptyPath ( loc . uri ) &&
21- "startLine" in loc &&
22- "startColumn" in loc &&
23- "endLine" in loc &&
24- "endColumn" in loc
25- ) ;
26- }
27-
28- export function isWholeFileLoc ( loc : BqrsUrlValue ) : loc is WholeFileLocation {
29- return (
30- typeof loc !== "string" && ! isEmptyPath ( loc . uri ) && ! isLineColumnLoc ( loc )
31- ) ;
32- }
33-
34- export function isStringLoc ( loc : BqrsUrlValue ) : loc is string {
35- return typeof loc === "string" ;
36- }
37-
3812export function tryGetRemoteLocation (
3913 loc : UrlValue | undefined ,
4014 fileLinkPrefix : string ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const SELECT_TABLE_NAME = "#select";
3535export const ALERTS_TABLE_NAME = "alerts" ;
3636export const GRAPH_TABLE_NAME = "graph" ;
3737
38- export type RawTableResultSet = {
38+ type RawTableResultSet = {
3939 t : "RawResultSet" ;
4040 resultSet : RawResultSet ;
4141} ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export type Column = {
1212 kind : ColumnKind ;
1313} ;
1414
15- export type UrlValueString = {
15+ type UrlValueString = {
1616 type : "string" ;
1717 value : string ;
1818} ;
@@ -51,22 +51,22 @@ export type EntityValue = {
5151 id ?: number ;
5252} ;
5353
54- export type CellValueEntity = {
54+ type CellValueEntity = {
5555 type : "entity" ;
5656 value : EntityValue ;
5757} ;
5858
59- export type CellValueNumber = {
59+ type CellValueNumber = {
6060 type : "number" ;
6161 value : number ;
6262} ;
6363
64- export type CellValueString = {
64+ type CellValueString = {
6565 type : "string" ;
6666 value : string ;
6767} ;
6868
69- export type CellValueBoolean = {
69+ type CellValueBoolean = {
7070 type : "boolean" ;
7171 value : boolean ;
7272} ;
Original file line number Diff line number Diff line change 11import { ModeledMethod , ModeledMethodType } from "./modeled-method" ;
22import { UrlValueResolvable } from "../common/raw-result-types" ;
33
4- export type Call = {
4+ type Call = {
55 readonly label : string ;
66 readonly url : Readonly < UrlValueResolvable > ;
77} ;
You can’t perform that action at this time.
0 commit comments