semaphor 0.0.27 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -149,6 +149,12 @@ declare type CardWithFooter = BaseCustomCard & {
149
149
 
150
150
  export declare function cleanCard(card: TCard): TCard;
151
151
 
152
+ export declare type ConnectionPolicy = {
153
+ connectionId?: string;
154
+ name: string;
155
+ params: Params;
156
+ };
157
+
152
158
  export declare function createSqlGenConfig(column: TDataColumn, preSqlGen: SqlGen, calc?: AggregateCalc): SqlGen;
153
159
 
154
160
  export declare type CustomCard = CardWithContent | CardWithFooter;
@@ -317,9 +323,13 @@ export declare type LoadingProps = {
317
323
 
318
324
  export declare const NUMBER_DATA_TYPES: string[];
319
325
 
326
+ declare type Params = {
327
+ [key: string]: string | number | string[] | number[];
328
+ };
329
+
320
330
  export declare const resolveDataType: (value: any) => string;
321
331
 
322
- export declare function SelectComponent({ title, items, value, isLoading, isError, onChange, }: SelectProps): JSX_2.Element;
332
+ export declare function SelectComponent({ title, items, value, isLoading, isError, onChange, className, showIcon, }: SelectProps): JSX_2.Element;
323
333
 
324
334
  declare type SelectProps = {
325
335
  title: string;
@@ -331,6 +341,8 @@ declare type SelectProps = {
331
341
  isLoading: boolean;
332
342
  isError: boolean;
333
343
  onChange?: (value: string) => void;
344
+ className?: string;
345
+ showIcon?: boolean;
334
346
  };
335
347
 
336
348
  export declare function SemaphorQueryClient({ children, }: {
@@ -881,7 +893,7 @@ export declare function useEditorAside(token?: AuthToken, connectionQueryKey?: s
881
893
  isColumnsLoadingOrFetching: boolean;
882
894
  isColumnsError: boolean;
883
895
  isAPIConnection: boolean;
884
- tableName: string;
896
+ tableName: any;
885
897
  schemaName: string;
886
898
  handleConnectionChange: (value: string) => void;
887
899
  handleDatabaseChange: (value: string) => void;