@databrainhq/plugin 0.11.22 → 0.11.24

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.
@@ -2,12 +2,10 @@ import React from 'react';
2
2
  import { RlsFilterObjectType } from '@/types/app';
3
3
  import { FloatingDropDownProps, MultiFloatingDropDownProps } from '@/components/FloatingDropDown';
4
4
  export type FilterDropDownProps = Omit<FloatingDropDownProps, 'options' | 'isDisabled'> & {
5
- companyId: string;
6
5
  filter: Pick<RlsFilterObjectType, 'columnName' | 'tableName' | 'defaultValue' | 'value'>;
7
6
  autoSelected?: boolean;
8
- integrationId: string;
9
- integrationName: string;
7
+ workspaceId: string;
10
8
  };
11
- export declare const FilterDropDown: ({ companyId, filter, onChange, selectedOption, autoSelected, integrationId, integrationName, ...rest }: FilterDropDownProps) => React.JSX.Element;
12
- export type MultiFilterDropDownProps = Pick<FilterDropDownProps, 'autoSelected' | 'companyId' | 'filter' | 'label' | 'integrationId' | 'integrationName'> & Omit<MultiFloatingDropDownProps, 'options' | 'isDisabled'>;
9
+ export declare const FilterDropDown: ({ filter, onChange, selectedOption, autoSelected, workspaceId, ...rest }: FilterDropDownProps) => React.JSX.Element;
10
+ export type MultiFilterDropDownProps = Pick<FilterDropDownProps, 'autoSelected' | 'filter' | 'label' | 'workspaceId'> & Omit<MultiFloatingDropDownProps, 'options' | 'isDisabled'>;
13
11
  export declare const MultiFilterDropdown: React.FC<MultiFilterDropDownProps>;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  export type FilterFieldType = {
3
3
  column: string;
4
4
  operator: string;
5
- value?: string | string[] | number | number[] | boolean | boolean[] | null;
5
+ value?: string | string[] | number | number[] | boolean | boolean[] | null | Record<string, any>;
6
6
  as?: string;
7
7
  defaultValues?: any;
8
8
  filterType?: 'global' | 'horizontal';
@@ -17,9 +17,7 @@ export type FilterFieldProps = {
17
17
  };
18
18
  isResetted: boolean;
19
19
  onChange: (field: FilterFieldType) => void;
20
- companyId: string;
21
- integrationId: string;
22
- integrationName: string;
20
+ workspaceId: string;
23
21
  };
24
22
  export declare const isInFilterOperator: (input: string) => boolean;
25
23
  export declare const isNullFilterOperator: (input: string) => boolean;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FilterFieldType } from '@/components/FilterField';
3
- import { FilterType } from '@/types/app';
4
- import { CompanyIntegrationQuery } from '@/utils/generated/graphql';
3
+ import { FilterType, FloatingDropDownOption } from '@/types/app';
5
4
  export type FilterColumn = {
6
5
  as: string;
7
6
  dataType: string;
@@ -9,15 +8,18 @@ export type FilterColumn = {
9
8
  isDefault?: boolean;
10
9
  isShowHorizontal?: boolean;
11
10
  label?: string;
11
+ options?: FloatingDropDownOption[];
12
12
  };
13
13
  type FiltersProps = {
14
14
  filterList: FilterColumn[];
15
15
  setFilterList: React.Dispatch<React.SetStateAction<FilterColumn[]>>;
16
16
  appliedfilters: FilterFieldType[];
17
17
  setAppliedFilters: (value: React.SetStateAction<FilterFieldType[]>) => void;
18
- data: CompanyIntegrationQuery | undefined;
19
- companyId: string;
20
18
  filters: FilterType[];
19
+ internal?: {
20
+ isInternal: boolean;
21
+ workspaceId: string;
22
+ };
21
23
  };
22
24
  export declare const Filters: React.FC<FiltersProps>;
23
25
  export {};
@@ -1,13 +1,14 @@
1
1
  import React from 'react';
2
2
  import { FilterFieldType } from '@/components/FilterField';
3
3
  import { FilterType } from '@/types/app';
4
- import { CompanyIntegrationQuery } from '@/utils/generated/graphql';
5
4
  type HorizontalFiltersProps = {
6
5
  appliedfilters: FilterFieldType[];
7
6
  setAppliedFilters: (value: React.SetStateAction<FilterFieldType[]>) => void;
8
- data: CompanyIntegrationQuery | undefined;
9
- companyId: string;
10
7
  filters: FilterType[];
8
+ internal?: {
9
+ isInternal: boolean;
10
+ workspaceId: string;
11
+ };
11
12
  };
12
13
  export declare const HorizontalFilters: React.FC<HorizontalFiltersProps>;
13
14
  export {};
@@ -3,13 +3,14 @@ import { FilterColumn } from './Filters';
3
3
  import { FilterFieldType } from '@/components/FilterField';
4
4
  import { MetricCardProps } from '@/components/MetricList/components';
5
5
  import { FilterType } from '@/types/app';
6
- import { CompanyIntegrationQuery } from '@/utils/generated/graphql';
7
6
  type GlobalFiltersProps = {
8
7
  filters: FilterType[];
9
- companyId: string;
10
8
  onApply: (filters: MetricCardProps['globalFilters']) => void;
11
9
  renderAdditionalHeaderContent?: () => JSX.Element;
12
- externalDashboardId: string;
10
+ internal?: {
11
+ isInternal: boolean;
12
+ workspaceId: string;
13
+ };
13
14
  };
14
15
  export declare const getFormattedFilterValue: (obj: {
15
16
  operator: string;
@@ -18,16 +19,18 @@ export declare const getFormattedFilterValue: (obj: {
18
19
  export declare const GlobalFilters: React.FC<GlobalFiltersProps>;
19
20
  type FilterPopupProps = {
20
21
  filters: FilterType[];
21
- companyId: string;
22
22
  renderAdditionalHeaderContent?: () => JSX.Element;
23
23
  filterList: FilterColumn[];
24
24
  setFilterList: React.Dispatch<React.SetStateAction<FilterColumn[]>>;
25
25
  appliedfilters: FilterFieldType[];
26
26
  setAppliedFilters: (value: React.SetStateAction<FilterFieldType[]>) => void;
27
- data: CompanyIntegrationQuery | undefined;
28
27
  globalFilterRef: React.RefObject<HTMLDivElement>;
29
28
  handleSubmit: (e: React.FormEvent<HTMLFormElement>) => void;
30
29
  resetFilters: () => void;
30
+ internal?: {
31
+ isInternal: boolean;
32
+ workspaceId: string;
33
+ };
31
34
  };
32
35
  export declare const FilterPopup: React.FC<FilterPopupProps>;
33
36
  export {};
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ConstructMetricProps } from '@/types/metricCreate';
3
- export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, datasetSettings, setDatasetSettings, }: ConstructMetricProps) => React.JSX.Element;
3
+ export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, datasetSettings, setDatasetSettings, setGroupByList, }: ConstructMetricProps) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ConstructMetricProps } from '@/types/metricCreate';
3
- export declare const MetricForm: ({ dateTimeColumnList, columnList, database, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, datasetSettings, setDatasetSettings, }: ConstructMetricProps) => React.JSX.Element;
3
+ export declare const MetricForm: ({ dateTimeColumnList, columnList, database, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, datasetSettings, setDatasetSettings, setGroupByList, }: ConstructMetricProps) => React.JSX.Element;
@@ -3,9 +3,7 @@ import { FloatingDropDownOption, RlsCondition } from '@/types';
3
3
  type Props = {
4
4
  rlsConditions?: RlsCondition;
5
5
  onChangeFilterValue?: (name: string, value: string, customValue?: Record<string, Date>, stringValues?: FloatingDropDownOption[]) => void;
6
- companyId: string;
7
- integrationId: string;
8
- integrationName: string;
6
+ workspaceId: string;
9
7
  };
10
- export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue, companyId, integrationId, integrationName, }: Props) => React.JSX.Element;
8
+ export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue, workspaceId, }: Props) => React.JSX.Element;
11
9
  export default MetricFilterDropDown;
@@ -22,6 +22,13 @@ export declare const CHART_TYPES: {
22
22
  timeSeries: string;
23
23
  pivot: string;
24
24
  };
25
+ export declare const timeStamp: {
26
+ month: string;
27
+ quarter: string;
28
+ daily: string;
29
+ weekly: string;
30
+ yearly: string;
31
+ };
25
32
  export declare const STATUS_TAB = "STATUS_TAB";
26
33
  export declare const STREAM_TAB = "STREAM_TAB";
27
34
  export declare const CLIENT_NAME_VAR = "client_id_variable";
@@ -4,7 +4,7 @@ interface TimeSeriesData {
4
4
  valuekeys: string[];
5
5
  data: Record<string, any>[];
6
6
  }
7
- export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuekeys, groupBy, labelSettings, customSettings, backGroundColor, }: {
7
+ export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuekeys, groupBy, labelSettings, customSettings, backGroundColor, fillXAxis, }: {
8
8
  dataArray: Record<string, any>[];
9
9
  timeStampKey: string;
10
10
  valuekeys: string[];
@@ -13,6 +13,7 @@ export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuek
13
13
  labelSettings: LabelSettings;
14
14
  customSettings: CustomSettings;
15
15
  backGroundColor: BackgroundSettings;
16
+ fillXAxis: boolean;
16
17
  }) => ({
17
18
  stack?: string | undefined;
18
19
  barWidth?: string | undefined;
@@ -9,4 +9,3 @@ export * from './useUnderlyingData';
9
9
  export * from './useMetricCard';
10
10
  export * from './useArchiveMetric';
11
11
  export * from './useEmbeddedMetric';
12
- export * from './useSqlMetadata';
@@ -1,23 +1,15 @@
1
1
  /// <reference types="react" />
2
- import { EmbeddedDashboardMetricsQuery } from '@/utils/generated/graphql';
2
+ import { ExternalDashboardMetrics, ExternalDashboards, Themes } from '@/utils/generated/graphql';
3
3
  interface DashboardContextType {
4
4
  isLoading: boolean | undefined;
5
5
  token: string | undefined;
6
- pluginRef?: React.RefObject<HTMLDivElement>;
6
+ error?: string;
7
7
  data: {
8
- externalDashboardId: string;
9
8
  companyId: string;
10
9
  sharingSettingsId: string | undefined;
11
10
  clientId: string | undefined;
12
- isLiveMode: boolean;
13
- externalDashboardMetrics: EmbeddedDashboardMetricsQuery['externalDashboardMetrics'] | undefined;
14
- externalDashboard: {
15
- __typename?: 'externalDashboards' | undefined;
16
- id: any;
17
- name: string;
18
- filters: any;
19
- layout: any[];
20
- } | undefined;
11
+ externalDashboardMetrics: ExternalDashboardMetrics[];
12
+ externalDashboard: ExternalDashboards;
21
13
  rlsSettings: any | undefined;
22
14
  companyTenancyType: any;
23
15
  isAllowedToCreateMetrics: boolean | undefined;
@@ -25,6 +17,7 @@ interface DashboardContextType {
25
17
  isAllowedToUpdateMetrics: boolean | undefined;
26
18
  isAllowedToChangeLayout: boolean | undefined;
27
19
  workspace: any;
20
+ adminTheme: Themes;
28
21
  } | undefined;
29
22
  }
30
23
  export declare const DashboardContext: import("react").Context<DashboardContextType>;
@@ -11,5 +11,6 @@ export declare const useGenerateDatasetMetrics: () => {
11
11
  columnName?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
12
12
  integrationId?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
13
13
  integrationName?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
14
+ wId?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
14
15
  }>, unknown>;
15
16
  };
@@ -0,0 +1,24 @@
1
+ import { ExternalDashboardMetrics, ExternalDashboards, Themes } from '@/utils/generated/graphql';
2
+ declare const useNewEmbeddedDashboard: ({ token, dashboardId, }: {
3
+ token: string;
4
+ dashboardId?: string | undefined;
5
+ }) => {
6
+ isLoading: boolean;
7
+ error: string | undefined;
8
+ data: {
9
+ externalDashboard: ExternalDashboards;
10
+ externalDashboardMetrics: ExternalDashboardMetrics[];
11
+ isAllowedToChangeLayout: boolean;
12
+ isAllowedToCreateMetrics: boolean;
13
+ isAllowedToDeleteMetrics: boolean;
14
+ isAllowedToUpdateMetrics: boolean;
15
+ companyId: string;
16
+ clientId: string;
17
+ workspace: any;
18
+ rlsSettings: any;
19
+ sharingSettingsId: string;
20
+ adminTheme: Themes;
21
+ companyTenancyType: string;
22
+ };
23
+ };
24
+ export default useNewEmbeddedDashboard;
@@ -15,6 +15,7 @@ export type TimeSeriesSettingsType = {
15
15
  isDynamic: boolean;
16
16
  options: string[];
17
17
  value: TimeSeriesGroupType;
18
+ fillXAxis: boolean;
18
19
  };
19
20
  };
20
21
  export type TimeSeriesSettingsProps = {
@@ -169,6 +170,7 @@ export type Schema = {
169
170
  isDefault?: boolean;
170
171
  isShowHorizontal?: boolean;
171
172
  defaultValue?: string[] | string | number | number[] | Record<string, any>;
173
+ options?: FloatingDropDownOption[];
172
174
  }[];
173
175
  };
174
176
  export type RlsFilterObjectType = {
@@ -65,6 +65,7 @@ export type ConstructMetricProps = {
65
65
  databaseId: string;
66
66
  datasetSettings?: DatasetSettings;
67
67
  setDatasetSettings?: React.Dispatch<React.SetStateAction<DatasetSettings | undefined>>;
68
+ setGroupByList: React.Dispatch<React.SetStateAction<string[]>>;
68
69
  };
69
70
  export type MetricOutputProps = {
70
71
  data: any[] | undefined;
@@ -46,25 +46,25 @@ export type ColumnDataError = {
46
46
  message: Scalars['String'];
47
47
  };
48
48
  export type EmbeddedDashboardDataInput = {
49
+ dashboardId?: InputMaybe<Scalars['String']>;
49
50
  token: Scalars['String'];
50
51
  };
51
52
  export type EmbeddedDashboardDataOutput = {
52
53
  __typename?: 'EmbeddedDashboardDataOutput';
54
+ adminTheme?: Maybe<Scalars['json']>;
53
55
  clientId?: Maybe<Scalars['String']>;
54
56
  companyId?: Maybe<Scalars['String']>;
55
57
  companyTenancyType?: Maybe<Scalars['String']>;
56
- dashboardFilters?: Maybe<Scalars['json']>;
57
58
  error?: Maybe<Error>;
58
- externalDashboardId?: Maybe<Scalars['String']>;
59
+ externalDashboard?: Maybe<Scalars['json']>;
59
60
  externalMetrics?: Maybe<Array<Maybe<Scalars['json']>>>;
60
61
  guestToken?: Maybe<Scalars['String']>;
61
62
  isAllowedToChangeLayout?: Maybe<Scalars['Boolean']>;
62
63
  isAllowedToCreateMetrics?: Maybe<Scalars['Boolean']>;
63
64
  isAllowedToDeleteMetrics?: Maybe<Scalars['Boolean']>;
64
65
  isAllowedToUpdateMetrics?: Maybe<Scalars['Boolean']>;
65
- isLive?: Maybe<Scalars['Boolean']>;
66
- isTestKey?: Maybe<Scalars['Boolean']>;
67
66
  rlsSettings?: Maybe<Scalars['json']>;
67
+ sharingSettingsId?: Maybe<Scalars['String']>;
68
68
  workspace?: Maybe<Scalars['json']>;
69
69
  };
70
70
  export type EmbeddedMetricDataInput = {
@@ -101,14 +101,16 @@ export type ExternalMetricQueryOutput = {
101
101
  __typename?: 'ExternalMetricQueryOutput';
102
102
  comparisonValue?: Maybe<Scalars['json']>;
103
103
  data?: Maybe<Scalars['json']>;
104
+ metaData?: Maybe<Scalars['json']>;
104
105
  timeTaken?: Maybe<Scalars['Float']>;
105
106
  totalRecords?: Maybe<Scalars['Int']>;
106
107
  };
107
108
  export type FetchColumnDataInput = {
108
109
  columnName: Scalars['String'];
109
- integrationId: Scalars['String'];
110
- integrationName: Scalars['String'];
110
+ integrationId?: InputMaybe<Scalars['String']>;
111
+ integrationName?: InputMaybe<Scalars['String']>;
111
112
  tableName: Scalars['String'];
113
+ wId?: InputMaybe<Scalars['String']>;
112
114
  };
113
115
  export type FetchColumnDataOutput = {
114
116
  __typename?: 'FetchColumnDataOutput';
@@ -123,6 +125,7 @@ export type GenerateDatasetMetricsInput = {
123
125
  export type GenerateDatasetMetricsOutput = {
124
126
  __typename?: 'GenerateDatasetMetricsOutput';
125
127
  error?: Maybe<Scalars['json']>;
128
+ metaData?: Maybe<Scalars['json']>;
126
129
  query?: Maybe<Scalars['String']>;
127
130
  result?: Maybe<Scalars['json']>;
128
131
  timeTaken?: Maybe<Scalars['Float']>;
@@ -2079,7 +2082,6 @@ export type Mutation_Root = {
2079
2082
  delete_scheduleEmailReports?: Maybe<ScheduleEmailReports_Mutation_Response>;
2080
2083
  /** delete single row from the table: "scheduleEmailReports" */
2081
2084
  delete_scheduleEmailReports_by_pk?: Maybe<ScheduleEmailReports>;
2082
- embeddedDashboardData?: Maybe<EmbeddedDashboardDataOutput>;
2083
2085
  embeddedMetricQuery?: Maybe<ExternalMetricQueryOutput>;
2084
2086
  fetchColumnData?: Maybe<FetchColumnDataOutput>;
2085
2087
  generateDatasetMetrics?: Maybe<GenerateDatasetMetricsOutput>;
@@ -2180,10 +2182,6 @@ export type Mutation_RootDelete_ScheduleEmailReports_By_PkArgs = {
2180
2182
  id: Scalars['uuid'];
2181
2183
  };
2182
2184
  /** mutation root */
2183
- export type Mutation_RootEmbeddedDashboardDataArgs = {
2184
- input: EmbeddedDashboardDataInput;
2185
- };
2186
- /** mutation root */
2187
2185
  export type Mutation_RootEmbeddedMetricQueryArgs = {
2188
2186
  input: ExternalMetricQueryInput;
2189
2187
  };
@@ -2488,6 +2486,7 @@ export type Query_Root = {
2488
2486
  demoTheme: Array<DemoTheme>;
2489
2487
  /** fetch data from the table: "demoTheme" using primary key columns */
2490
2488
  demoTheme_by_pk?: Maybe<DemoTheme>;
2489
+ embeddedDashboardData?: Maybe<EmbeddedDashboardDataOutput>;
2491
2490
  /** Gets the required data to embed individual metrics. */
2492
2491
  embeddedMetricData?: Maybe<EmbeddedMetricDataOutput>;
2493
2492
  /** An array relationship */
@@ -2540,6 +2539,10 @@ export type Query_Root = {
2540
2539
  themes: Array<Themes>;
2541
2540
  /** fetch data from the table: "themes" using primary key columns */
2542
2541
  themes_by_pk?: Maybe<Themes>;
2542
+ /** fetch data from the table: "whitelistedDomains" */
2543
+ whitelistedDomains: Array<WhitelistedDomains>;
2544
+ /** fetch data from the table: "whitelistedDomains" using primary key columns */
2545
+ whitelistedDomains_by_pk?: Maybe<WhitelistedDomains>;
2543
2546
  };
2544
2547
  export type Query_RootClientDashboardLayoutArgs = {
2545
2548
  distinct_on?: InputMaybe<Array<ClientDashboardLayout_Select_Column>>;
@@ -2621,6 +2624,9 @@ export type Query_RootDemoThemeArgs = {
2621
2624
  export type Query_RootDemoTheme_By_PkArgs = {
2622
2625
  id: Scalars['uuid'];
2623
2626
  };
2627
+ export type Query_RootEmbeddedDashboardDataArgs = {
2628
+ input: EmbeddedDashboardDataInput;
2629
+ };
2624
2630
  export type Query_RootEmbeddedMetricDataArgs = {
2625
2631
  input: EmbeddedMetricDataInput;
2626
2632
  };
@@ -2751,6 +2757,16 @@ export type Query_RootThemesArgs = {
2751
2757
  export type Query_RootThemes_By_PkArgs = {
2752
2758
  id: Scalars['uuid'];
2753
2759
  };
2760
+ export type Query_RootWhitelistedDomainsArgs = {
2761
+ distinct_on?: InputMaybe<Array<WhitelistedDomains_Select_Column>>;
2762
+ limit?: InputMaybe<Scalars['Int']>;
2763
+ offset?: InputMaybe<Scalars['Int']>;
2764
+ order_by?: InputMaybe<Array<WhitelistedDomains_Order_By>>;
2765
+ where?: InputMaybe<WhitelistedDomains_Bool_Exp>;
2766
+ };
2767
+ export type Query_RootWhitelistedDomains_By_PkArgs = {
2768
+ companyId: Scalars['uuid'];
2769
+ };
2754
2770
  /** columns and relationships of "scheduleEmailReportCharts" */
2755
2771
  export type ScheduleEmailReportCharts = {
2756
2772
  __typename?: 'scheduleEmailReportCharts';
@@ -3178,6 +3194,10 @@ export type Subscription_Root = {
3178
3194
  themes: Array<Themes>;
3179
3195
  /** fetch data from the table: "themes" using primary key columns */
3180
3196
  themes_by_pk?: Maybe<Themes>;
3197
+ /** fetch data from the table: "whitelistedDomains" */
3198
+ whitelistedDomains: Array<WhitelistedDomains>;
3199
+ /** fetch data from the table: "whitelistedDomains" using primary key columns */
3200
+ whitelistedDomains_by_pk?: Maybe<WhitelistedDomains>;
3181
3201
  };
3182
3202
  export type Subscription_RootClientDashboardLayoutArgs = {
3183
3203
  distinct_on?: InputMaybe<Array<ClientDashboardLayout_Select_Column>>;
@@ -3383,6 +3403,16 @@ export type Subscription_RootThemesArgs = {
3383
3403
  export type Subscription_RootThemes_By_PkArgs = {
3384
3404
  id: Scalars['uuid'];
3385
3405
  };
3406
+ export type Subscription_RootWhitelistedDomainsArgs = {
3407
+ distinct_on?: InputMaybe<Array<WhitelistedDomains_Select_Column>>;
3408
+ limit?: InputMaybe<Scalars['Int']>;
3409
+ offset?: InputMaybe<Scalars['Int']>;
3410
+ order_by?: InputMaybe<Array<WhitelistedDomains_Order_By>>;
3411
+ where?: InputMaybe<WhitelistedDomains_Bool_Exp>;
3412
+ };
3413
+ export type Subscription_RootWhitelistedDomains_By_PkArgs = {
3414
+ companyId: Scalars['uuid'];
3415
+ };
3386
3416
  /** The global theme per company. */
3387
3417
  export type Themes = {
3388
3418
  __typename?: 'themes';
@@ -3478,6 +3508,36 @@ export type Uuid_Comparison_Exp = {
3478
3508
  _neq?: InputMaybe<Scalars['uuid']>;
3479
3509
  _nin?: InputMaybe<Array<Scalars['uuid']>>;
3480
3510
  };
3511
+ /** Company whitelisted domains. */
3512
+ export type WhitelistedDomains = {
3513
+ __typename?: 'whitelistedDomains';
3514
+ companyId: Scalars['uuid'];
3515
+ domains: Scalars['jsonb'];
3516
+ };
3517
+ /** Company whitelisted domains. */
3518
+ export type WhitelistedDomainsDomainsArgs = {
3519
+ path?: InputMaybe<Scalars['String']>;
3520
+ };
3521
+ /** Boolean expression to filter rows from the table "whitelistedDomains". All fields are combined with a logical 'AND'. */
3522
+ export type WhitelistedDomains_Bool_Exp = {
3523
+ _and?: InputMaybe<Array<WhitelistedDomains_Bool_Exp>>;
3524
+ _not?: InputMaybe<WhitelistedDomains_Bool_Exp>;
3525
+ _or?: InputMaybe<Array<WhitelistedDomains_Bool_Exp>>;
3526
+ companyId?: InputMaybe<Uuid_Comparison_Exp>;
3527
+ domains?: InputMaybe<Jsonb_Comparison_Exp>;
3528
+ };
3529
+ /** Ordering options when selecting data from "whitelistedDomains". */
3530
+ export type WhitelistedDomains_Order_By = {
3531
+ companyId?: InputMaybe<Order_By>;
3532
+ domains?: InputMaybe<Order_By>;
3533
+ };
3534
+ /** select columns of table "whitelistedDomains" */
3535
+ export declare enum WhitelistedDomains_Select_Column {
3536
+ /** column name */
3537
+ CompanyId = "companyId",
3538
+ /** column name */
3539
+ Domains = "domains"
3540
+ }
3481
3541
  export type GetEmbeddedMetricQueryVariables = Exact<{
3482
3542
  guestToken: Scalars['String'];
3483
3543
  metricId: Scalars['String'];
@@ -3558,6 +3618,7 @@ export type FetchColumnDataMutationVariables = Exact<{
3558
3618
  columnName?: InputMaybe<Scalars['String']>;
3559
3619
  integrationId?: InputMaybe<Scalars['String']>;
3560
3620
  integrationName?: InputMaybe<Scalars['String']>;
3621
+ wId?: InputMaybe<Scalars['String']>;
3561
3622
  }>;
3562
3623
  export type FetchColumnDataMutation = {
3563
3624
  __typename?: 'mutation_root';
@@ -3587,6 +3648,7 @@ export type GenerateDatasetMetricsMutation = {
3587
3648
  query?: string | null;
3588
3649
  result?: any | null;
3589
3650
  timeTaken?: number | null;
3651
+ metaData?: any | null;
3590
3652
  } | null;
3591
3653
  };
3592
3654
  export type GenerateEmbeddedMeticMutationVariables = Exact<{
@@ -3648,6 +3710,33 @@ export type CompanySubsetTableDataMutation = {
3648
3710
  } | null> | null;
3649
3711
  } | null;
3650
3712
  };
3713
+ export type GetEmbeddedDashboardQueryVariables = Exact<{
3714
+ token: Scalars['String'];
3715
+ dashboardId?: InputMaybe<Scalars['String']>;
3716
+ }>;
3717
+ export type GetEmbeddedDashboardQuery = {
3718
+ __typename?: 'query_root';
3719
+ embeddedDashboardData?: {
3720
+ __typename?: 'EmbeddedDashboardDataOutput';
3721
+ externalDashboard?: any | null;
3722
+ isAllowedToChangeLayout?: boolean | null;
3723
+ isAllowedToCreateMetrics?: boolean | null;
3724
+ isAllowedToDeleteMetrics?: boolean | null;
3725
+ isAllowedToUpdateMetrics?: boolean | null;
3726
+ adminTheme?: any | null;
3727
+ clientId?: string | null;
3728
+ companyId?: string | null;
3729
+ companyTenancyType?: string | null;
3730
+ externalMetrics?: Array<any | null> | null;
3731
+ rlsSettings?: any | null;
3732
+ workspace?: any | null;
3733
+ sharingSettingsId?: string | null;
3734
+ error?: {
3735
+ __typename?: 'Error';
3736
+ message: string;
3737
+ } | null;
3738
+ } | null;
3739
+ };
3651
3740
  export type EmbeddedDashboardMetricsQueryVariables = Exact<{
3652
3741
  externalDashboardId?: Scalars['String'];
3653
3742
  clientId?: Scalars['String'];
@@ -3765,17 +3854,6 @@ export type ExternalMetricRawCsvUrlsQuery = {
3765
3854
  requestStatus: string;
3766
3855
  }>;
3767
3856
  };
3768
- export type GroupByColumnListMutationVariables = Exact<{
3769
- databaseName?: InputMaybe<Scalars['String']>;
3770
- query?: InputMaybe<Scalars['String']>;
3771
- }>;
3772
- export type GroupByColumnListMutation = {
3773
- __typename?: 'mutation_root';
3774
- groupbyColumnList?: {
3775
- __typename?: 'GroupbyColumnListOutput';
3776
- groupbyColumnList?: Array<string | null> | null;
3777
- } | null;
3778
- };
3779
3857
  export type GuestTokenParamsQueryVariables = Exact<{
3780
3858
  id?: InputMaybe<Scalars['uuid']>;
3781
3859
  }>;
@@ -3976,6 +4054,7 @@ export type QueryExternalMetricQuery = {
3976
4054
  data?: any | null;
3977
4055
  timeTaken?: number | null;
3978
4056
  totalRecords?: number | null;
4057
+ metaData?: any | null;
3979
4058
  } | null;
3980
4059
  };
3981
4060
  export type RawCsvMutationVariables = Exact<{
@@ -4179,19 +4258,21 @@ export declare const useDeleteScheduledEmailMutation: <TError = unknown, TContex
4179
4258
  }>, TContext> | undefined) => import("react-query").UseMutationResult<DeleteScheduledEmailMutation, TError, Exact<{
4180
4259
  id?: InputMaybe<Scalars['uuid']>;
4181
4260
  }>, TContext>;
4182
- export declare const FetchColumnDataDocument = "\n mutation FetchColumnData($tableName: String = \"\", $columnName: String = \"\", $integrationId: String = \"\", $integrationName: String = \"\") {\n fetchColumnData(\n input: {columnName: $columnName, tableName: $tableName, integrationId: $integrationId, integrationName: $integrationName}\n ) {\n data {\n label\n value\n }\n error {\n message\n }\n }\n}\n ";
4261
+ export declare const FetchColumnDataDocument = "\n mutation FetchColumnData($tableName: String = \"\", $columnName: String = \"\", $integrationId: String = \"\", $integrationName: String = \"\", $wId: String = \"\") {\n fetchColumnData(\n input: {columnName: $columnName, tableName: $tableName, wId: $wId}\n ) {\n data {\n label\n value\n }\n error {\n message\n }\n }\n}\n ";
4183
4262
  export declare const useFetchColumnDataMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<FetchColumnDataMutation, TError, Exact<{
4184
4263
  tableName?: InputMaybe<string> | undefined;
4185
4264
  columnName?: InputMaybe<string> | undefined;
4186
4265
  integrationId?: InputMaybe<string> | undefined;
4187
4266
  integrationName?: InputMaybe<string> | undefined;
4267
+ wId?: InputMaybe<string> | undefined;
4188
4268
  }>, TContext> | undefined) => import("react-query").UseMutationResult<FetchColumnDataMutation, TError, Exact<{
4189
4269
  tableName?: InputMaybe<string> | undefined;
4190
4270
  columnName?: InputMaybe<string> | undefined;
4191
4271
  integrationId?: InputMaybe<string> | undefined;
4192
4272
  integrationName?: InputMaybe<string> | undefined;
4273
+ wId?: InputMaybe<string> | undefined;
4193
4274
  }>, TContext>;
4194
- export declare const GenerateDatasetMetricsDocument = "\n mutation GenerateDatasetMetrics($userInputs: json = \"\", $integrationName: String = \"\", $integrationId: String = \"\") {\n generateDatasetMetrics(\n input: {userInputs: $userInputs, integrationName: $integrationName, integrationId: $integrationId}\n ) {\n error\n query\n result\n timeTaken\n }\n}\n ";
4275
+ export declare const GenerateDatasetMetricsDocument = "\n mutation GenerateDatasetMetrics($userInputs: json = \"\", $integrationName: String = \"\", $integrationId: String = \"\") {\n generateDatasetMetrics(\n input: {userInputs: $userInputs, integrationName: $integrationName, integrationId: $integrationId}\n ) {\n error\n query\n result\n timeTaken\n metaData\n }\n}\n ";
4195
4276
  export declare const useGenerateDatasetMetricsMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<GenerateDatasetMetricsMutation, TError, Exact<{
4196
4277
  userInputs?: InputMaybe<Scalars['json']>;
4197
4278
  integrationName?: InputMaybe<string> | undefined;
@@ -4225,6 +4306,8 @@ export declare const useCompanySubsetTableDataMutation: <TError = unknown, TCont
4225
4306
  companyId?: InputMaybe<string> | undefined;
4226
4307
  workspaceId?: InputMaybe<string> | undefined;
4227
4308
  }>, TContext>;
4309
+ export declare const GetEmbeddedDashboardDocument = "\n query GetEmbeddedDashboard($token: String!, $dashboardId: String) {\n embeddedDashboardData(input: {token: $token, dashboardId: $dashboardId}) {\n externalDashboard\n isAllowedToChangeLayout\n isAllowedToCreateMetrics\n isAllowedToDeleteMetrics\n isAllowedToUpdateMetrics\n adminTheme\n clientId\n companyId\n companyTenancyType\n externalMetrics\n rlsSettings\n workspace\n error {\n message\n }\n sharingSettingsId\n }\n}\n ";
4310
+ export declare const useGetEmbeddedDashboardQuery: <TData = GetEmbeddedDashboardQuery, TError = unknown>(variables: GetEmbeddedDashboardQueryVariables, options?: UseQueryOptions<GetEmbeddedDashboardQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
4228
4311
  export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($externalDashboardId: String! = \"\", $clientId: String! = \"\") {\n externalDashboardMetrics(\n where: {externalDashboard: {externalDashboardId: {_eq: $externalDashboardId}}, externalMetric: {isArchived: {_eq: false}, isMarkedDeleted: {_eq: false}}, _not: {externalMetric: {clientDeletedMetrics: {clientId: {_eq: $clientId}}}}}\n ) {\n externalMetricId\n externalDashboardId\n externalMetric {\n chartOptions\n clientId\n companyId\n companyIntegrationId\n createdAt\n createdBy\n description\n id\n inputFields\n integrationName\n isCreatedByClient\n isLive\n metricId\n metricQuery\n name\n outputColumns\n query\n timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n resizeAttributes\n rlsConditions\n clickActions\n drillDownSettings\n companyIntegration {\n name\n workspaceId\n }\n datasetMetricSettings\n }\n }\n}\n ";
4229
4312
  export declare const useEmbeddedDashboardMetricsQuery: <TData = EmbeddedDashboardMetricsQuery, TError = unknown>(variables?: EmbeddedDashboardMetricsQueryVariables, options?: UseQueryOptions<EmbeddedDashboardMetricsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
4230
4313
  export declare const GetExternalDashboardClientThemeDocument = "\n query GetExternalDashboardClientTheme($companyId: uuid!, $clientId: String!) {\n externalDashboardThemes(\n where: {companyId: {_eq: $companyId}, externalDashboardThemeClients: {clientId: {_eq: $clientId}}}\n limit: 1\n ) {\n colors\n createdAt\n id\n name\n }\n}\n ";
@@ -4237,14 +4320,6 @@ export declare const ExternalDashboardListDocument = "\n query ExternalDashbo
4237
4320
  export declare const useExternalDashboardListQuery: <TData = ExternalDashboardListQuery, TError = unknown>(variables?: ExternalDashboardListQueryVariables, options?: UseQueryOptions<ExternalDashboardListQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
4238
4321
  export declare const ExternalMetricRawCsvUrlsDocument = "\n query ExternalMetricRawCsvUrls($externalMetricId: uuid = \"\") {\n externalMetricRawCsvUrls(where: {externalMetricId: {_eq: $externalMetricId}}) {\n configurations\n error\n expireUrlIn\n externalMetricId\n id\n lastUpdatedAt\n urls\n requestStatus\n }\n}\n ";
4239
4322
  export declare const useExternalMetricRawCsvUrlsQuery: <TData = ExternalMetricRawCsvUrlsQuery, TError = unknown>(variables?: ExternalMetricRawCsvUrlsQueryVariables, options?: UseQueryOptions<ExternalMetricRawCsvUrlsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
4240
- export declare const GroupByColumnListDocument = "\n mutation GroupByColumnList($databaseName: String = \"\", $query: String = \"\") {\n groupbyColumnList(input: {databaseName: $databaseName, query: $query}) {\n groupbyColumnList\n }\n}\n ";
4241
- export declare const useGroupByColumnListMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<GroupByColumnListMutation, TError, Exact<{
4242
- databaseName?: InputMaybe<string> | undefined;
4243
- query?: InputMaybe<string> | undefined;
4244
- }>, TContext> | undefined) => import("react-query").UseMutationResult<GroupByColumnListMutation, TError, Exact<{
4245
- databaseName?: InputMaybe<string> | undefined;
4246
- query?: InputMaybe<string> | undefined;
4247
- }>, TContext>;
4248
4323
  export declare const GuestTokenParamsDocument = "\n query GuestTokenParams($id: uuid = \"\") {\n guestTokens_by_pk(id: $id) {\n clientId\n companyId\n id\n params\n }\n}\n ";
4249
4324
  export declare const useGuestTokenParamsQuery: <TData = GuestTokenParamsQuery, TError = unknown>(variables?: GuestTokenParamsQueryVariables, options?: UseQueryOptions<GuestTokenParamsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
4250
4325
  export declare const MetricAccessDocument = "\n query MetricAccess($workspaceId: uuid = \"\") {\n companySubsetTables(where: {workspaceId: {_eq: $workspaceId}}) {\n isAllowMetricCreation\n isAllowMetricDeletion\n isAllowMetricUpdation\n isAllowChangeLayout\n }\n}\n ";
@@ -4359,7 +4434,7 @@ export declare const usePreviewTableMutation: <TError = unknown, TContext = unkn
4359
4434
  integrationId?: InputMaybe<string> | undefined;
4360
4435
  integrationName?: InputMaybe<string> | undefined;
4361
4436
  }>, TContext>;
4362
- export declare const QueryExternalMetricDocument = "\n query QueryExternalMetric($id: String = \"\", $clientId: String = \"\", $globalFilters: json = \"\", $rlsConditions: json = [], $filterValues: json = \"\", $tenancyLevel: String = \"\", $drillFilters: json = [], $limit: Int, $offset: Int) {\n externalMetricQuery(\n input: {externalMetricId: $id, clientId: $clientId, globalFilters: $globalFilters, rlsConditions: $rlsConditions, filterValues: $filterValues, tenancyLevel: $tenancyLevel, drillFilters: $drillFilters, limit: $limit, offset: $offset}\n ) {\n data\n timeTaken\n totalRecords\n }\n}\n ";
4437
+ export declare const QueryExternalMetricDocument = "\n query QueryExternalMetric($id: String = \"\", $clientId: String = \"\", $globalFilters: json = \"\", $rlsConditions: json = [], $filterValues: json = \"\", $tenancyLevel: String = \"\", $drillFilters: json = [], $limit: Int, $offset: Int) {\n externalMetricQuery(\n input: {externalMetricId: $id, clientId: $clientId, globalFilters: $globalFilters, rlsConditions: $rlsConditions, filterValues: $filterValues, tenancyLevel: $tenancyLevel, drillFilters: $drillFilters, limit: $limit, offset: $offset}\n ) {\n data\n timeTaken\n totalRecords\n metaData\n }\n}\n ";
4363
4438
  export declare const useQueryExternalMetricQuery: <TData = QueryExternalMetricQuery, TError = unknown>(variables?: QueryExternalMetricQueryVariables, options?: UseQueryOptions<QueryExternalMetricQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
4364
4439
  export declare const RawCsvDocument = "\n mutation RawCsv($companyId: String = \"\", $recipientAddress: String = \"\", $sqlQuery: String = \"\", $metricName: String = \"\", $workspaceId: String = \"\") {\n sendRawCsv(\n input: {companyId: $companyId, recipientAddress: $recipientAddress, sqlQuery: $sqlQuery, metricName: $metricName, workspaceId: $workspaceId}\n ) {\n status\n error {\n message\n }\n }\n}\n ";
4365
4440
  export declare const useRawCsvMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<RawCsvMutation, TError, Exact<{
@@ -9,8 +9,9 @@ type Params = {
9
9
  seriesField: string | undefined;
10
10
  isTimeSeries: boolean;
11
11
  selectedFormat: string | undefined;
12
+ fillXAxis: boolean;
12
13
  };
13
- export declare const getChartAttributes: ({ data, measure, sankeyValues, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, }: Params) => {
14
+ export declare const getChartAttributes: ({ data, measure, sankeyValues, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, fillXAxis, }: Params) => {
14
15
  labels: string[];
15
16
  datasets: {
16
17
  label: string;