Browse Source

Update AutocompleteParseResult type (#2119)

* Update suggestTables field in AutocompleteParseResult type

* Update more fields
Jason Killian 4 years ago
parent
commit
f1dd5350c4
1 changed files with 5 additions and 5 deletions
  1. 5 5
      desktop/core/src/desktop/js/parse/types.ts

+ 5 - 5
desktop/core/src/desktop/js/parse/types.ts

@@ -125,12 +125,12 @@ export interface AutocompleteParseResult {
     types?: string[];
     types?: string[];
     udfRef?: string;
     udfRef?: string;
   };
   };
-  suggestCommonTableExpressions: {
+  suggestCommonTableExpressions?: {
     name: string;
     name: string;
     prependFrom: boolean;
     prependFrom: boolean;
     prependQuestionMark: boolean;
     prependQuestionMark: boolean;
   }[];
   }[];
-  suggestDatabases: {
+  suggestDatabases?: {
     appendDot?: boolean;
     appendDot?: boolean;
     prependFrom?: boolean;
     prependFrom?: boolean;
     prependQuestionMark?: boolean;
     prependQuestionMark?: boolean;
@@ -151,7 +151,7 @@ export interface AutocompleteParseResult {
     prependJoin?: boolean;
     prependJoin?: boolean;
     tables: ParsedTable[];
     tables: ParsedTable[];
   };
   };
-  suggestJoinConditions: {
+  suggestJoinConditions?: {
     prependOn?: boolean;
     prependOn?: boolean;
     tables: ParsedTable[];
     tables: ParsedTable[];
   };
   };
@@ -167,7 +167,7 @@ export interface AutocompleteParseResult {
   suggestOrderBys?: CommonPopularSuggestion;
   suggestOrderBys?: CommonPopularSuggestion;
   suggestSetOptions?: boolean;
   suggestSetOptions?: boolean;
   suggestTables?: {
   suggestTables?: {
-    identifierChain: IdentifierChainEntry[];
+    identifierChain?: IdentifierChainEntry[];
     onlyTables?: boolean;
     onlyTables?: boolean;
     onlyViews?: boolean;
     onlyViews?: boolean;
     prependFrom?: boolean;
     prependFrom?: boolean;
@@ -177,7 +177,7 @@ export interface AutocompleteParseResult {
     missingEndQuote?: boolean;
     missingEndQuote?: boolean;
     partialQuote?: boolean;
     partialQuote?: boolean;
   };
   };
-  udfArgument: {
+  udfArgument?: {
     name: string;
     name: string;
     position: number;
     position: number;
   };
   };