@databrainhq/plugin 0.15.32 → 0.15.33

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.
Files changed (242) hide show
  1. package/package.json +2 -2
  2. package/dist/components/Accordion/index.d.ts +0 -33
  3. package/dist/components/AceEditorSql/AceEditorSql.d.ts +0 -11
  4. package/dist/components/Alert/index.d.ts +0 -12
  5. package/dist/components/AutoCompleteDropdown/index.d.ts +0 -20
  6. package/dist/components/Badge/index.d.ts +0 -10
  7. package/dist/components/Button/index.d.ts +0 -14
  8. package/dist/components/ButtonGroup/index.d.ts +0 -14
  9. package/dist/components/Chart/SingleValueChart.d.ts +0 -37
  10. package/dist/components/Chart/index.d.ts +0 -34
  11. package/dist/components/ChartModal/ChartConfig.d.ts +0 -10
  12. package/dist/components/ChartModal/ChartModalOptions.d.ts +0 -14
  13. package/dist/components/ChartModal/index.d.ts +0 -3
  14. package/dist/components/ChartPopup/components/UnderlyingData/index.d.ts +0 -15
  15. package/dist/components/ChartPopup/index.d.ts +0 -28
  16. package/dist/components/ChartReportPanel/index.d.ts +0 -10
  17. package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +0 -13
  18. package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboChartFormatter.d.ts +0 -8
  19. package/dist/components/ChartSettingsPopup/components/ChartConfigure/PositionContainer.d.ts +0 -8
  20. package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +0 -26
  21. package/dist/components/ChartSettingsPopup/components/ChartSettings/index.d.ts +0 -14
  22. package/dist/components/ChartSettingsPopup/index.d.ts +0 -3
  23. package/dist/components/ChartTypePanel/index.d.ts +0 -15
  24. package/dist/components/Checkbox/index.d.ts +0 -11
  25. package/dist/components/ColorField/ColorField.d.ts +0 -13
  26. package/dist/components/DataType/index.d.ts +0 -9
  27. package/dist/components/DateRangePicker/index.d.ts +0 -36
  28. package/dist/components/DraggableItem/index.d.ts +0 -7
  29. package/dist/components/DrillBreadCrumb/index.d.ts +0 -16
  30. package/dist/components/Error/index.d.ts +0 -6
  31. package/dist/components/ErrorFallback/index.d.ts +0 -2
  32. package/dist/components/ExternalMetricForm/index.d.ts +0 -11
  33. package/dist/components/FilterDropDown/index.d.ts +0 -30
  34. package/dist/components/FilterField/index.d.ts +0 -39
  35. package/dist/components/Flex/index.d.ts +0 -13
  36. package/dist/components/FloatingDropDown/index.d.ts +0 -38
  37. package/dist/components/FullScreenChart/index.d.ts +0 -8
  38. package/dist/components/GaugeLegend/index.d.ts +0 -12
  39. package/dist/components/GenerateMetric/index.d.ts +0 -3
  40. package/dist/components/GlobalFilters/AddFilter.d.ts +0 -15
  41. package/dist/components/GlobalFilters/AppliedFilter.d.ts +0 -9
  42. package/dist/components/GlobalFilters/Filters.d.ts +0 -28
  43. package/dist/components/GlobalFilters/HorizontalFilters.d.ts +0 -35
  44. package/dist/components/GlobalFilters/NumberFilterField.d.ts +0 -23
  45. package/dist/components/GlobalFilters/SearchField.d.ts +0 -10
  46. package/dist/components/GlobalFilters/index.d.ts +0 -79
  47. package/dist/components/HorizontalStackTable/DebouncedInput.d.ts +0 -6
  48. package/dist/components/HorizontalStackTable/index.d.ts +0 -18
  49. package/dist/components/Icons/Logos/index.d.ts +0 -28
  50. package/dist/components/Icons/index.d.ts +0 -9
  51. package/dist/components/InfoTooltip/index.d.ts +0 -27
  52. package/dist/components/InputField/index.d.ts +0 -17
  53. package/dist/components/List/index.d.ts +0 -38
  54. package/dist/components/Loader/index.d.ts +0 -6
  55. package/dist/components/Menu/index.d.ts +0 -32
  56. package/dist/components/MetricChart/ChartImageDownloadButton.d.ts +0 -11
  57. package/dist/components/MetricChart/CsvDownloadButton.d.ts +0 -12
  58. package/dist/components/MetricChart/PivotCsvDownloadButton.d.ts +0 -12
  59. package/dist/components/MetricChart/RawCsvDownloadButton.d.ts +0 -37
  60. package/dist/components/MetricChart/index.d.ts +0 -5
  61. package/dist/components/MetricCreation/MetricCreation.d.ts +0 -3
  62. package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +0 -3
  63. package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +0 -3
  64. package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +0 -2
  65. package/dist/components/MetricCreation/components/Dataset/index.d.ts +0 -3
  66. package/dist/components/MetricCreation/components/Header/index.d.ts +0 -3
  67. package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +0 -3
  68. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +0 -33
  69. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +0 -2
  70. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/index.d.ts +0 -1
  71. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +0 -11
  72. package/dist/components/MetricCreation/components/MetricOutput/components/index.d.ts +0 -3
  73. package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +0 -2
  74. package/dist/components/MetricCreation/components/Panels/ChartActionPanel.d.ts +0 -13
  75. package/dist/components/MetricCreation/components/Panels/ChartAppearancePanel.d.ts +0 -22
  76. package/dist/components/MetricCreation/components/Panels/FiltersPanel.d.ts +0 -20
  77. package/dist/components/MetricCreation/components/Panels/SortPanel.d.ts +0 -15
  78. package/dist/components/MetricCreation/index.d.ts +0 -5
  79. package/dist/components/MetricFilterDropDown/components/OldMetricFilterComponents.d.ts +0 -17
  80. package/dist/components/MetricFilterDropDown/components/SearchField.d.ts +0 -7
  81. package/dist/components/MetricFilterDropDown/components/StringAutoCustomFilterField.d.ts +0 -18
  82. package/dist/components/MetricFilterDropDown/components/StringManualFilterField.d.ts +0 -11
  83. package/dist/components/MetricFilterDropDown/components/TimeFilterField.d.ts +0 -12
  84. package/dist/components/MetricFilterDropDown/components/VariableTimeFilterField.d.ts +0 -12
  85. package/dist/components/MetricFilterDropDown/index.d.ts +0 -24
  86. package/dist/components/MetricList/MetricList.d.ts +0 -65
  87. package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +0 -7
  88. package/dist/components/MetricList/components/DownloadRawCsvModal/index.d.ts +0 -13
  89. package/dist/components/MetricList/components/FullScreenView/AddMetricFilter.d.ts +0 -8
  90. package/dist/components/MetricList/components/FullScreenView/ChartPropertiesPanel.d.ts +0 -12
  91. package/dist/components/MetricList/components/FullScreenView/DownloadButton.d.ts +0 -18
  92. package/dist/components/MetricList/components/FullScreenView/index.d.ts +0 -45
  93. package/dist/components/MetricList/components/LayoutAlert/index.d.ts +0 -7
  94. package/dist/components/MetricList/components/ManageMetricMenu/ManageMetricCard.d.ts +0 -15
  95. package/dist/components/MetricList/components/ManageMetricMenu/index.d.ts +0 -17
  96. package/dist/components/MetricList/components/MetricCards/CreateElementPanel.d.ts +0 -14
  97. package/dist/components/MetricList/components/MetricCards/ElementCard.d.ts +0 -16
  98. package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +0 -98
  99. package/dist/components/MetricList/components/MetricCards/NoDataLoading.d.ts +0 -11
  100. package/dist/components/MetricList/components/TableViewModal/index.d.ts +0 -9
  101. package/dist/components/MetricList/components/index.d.ts +0 -7
  102. package/dist/components/MetricList/index.d.ts +0 -2
  103. package/dist/components/MetricTable/index.d.ts +0 -7
  104. package/dist/components/Modal/Modal.d.ts +0 -14
  105. package/dist/components/Modal/ModalFooter.d.ts +0 -5
  106. package/dist/components/Modal/index.d.ts +0 -2
  107. package/dist/components/MultiSelectDropdown/index.d.ts +0 -40
  108. package/dist/components/Panel/index.d.ts +0 -17
  109. package/dist/components/PivotTable/PivotTableV2.d.ts +0 -23
  110. package/dist/components/PivotTable/index.d.ts +0 -8
  111. package/dist/components/PivotTable/transformData.d.ts +0 -7
  112. package/dist/components/PopoverMenu/index.d.ts +0 -36
  113. package/dist/components/Portal/index.d.ts +0 -2
  114. package/dist/components/RadioButton/index.d.ts +0 -16
  115. package/dist/components/ScheduleEmail/ScheduleEmailForm/index.d.ts +0 -16
  116. package/dist/components/ScheduleEmail/index.d.ts +0 -14
  117. package/dist/components/SearchDropdown/index.d.ts +0 -14
  118. package/dist/components/SearchMetricData/ChatMode/ChatAppearancePanel.d.ts +0 -19
  119. package/dist/components/SearchMetricData/ChatMode/ChatMode.d.ts +0 -44
  120. package/dist/components/SearchMetricData/ChatMode/ChatModeHeader.d.ts +0 -8
  121. package/dist/components/SearchMetricData/ChatMode/ChatReportPanel.d.ts +0 -9
  122. package/dist/components/SearchMetricData/ChatMode/ChatSqlPanel.d.ts +0 -7
  123. package/dist/components/SearchMetricData/ChatMode/NoChatData.d.ts +0 -3
  124. package/dist/components/SearchMetricData/ChatMode/NoDataFound.d.ts +0 -7
  125. package/dist/components/SearchMetricData/ChatMode/Results.d.ts +0 -23
  126. package/dist/components/SearchMetricData/LoaderWithStates/index.d.ts +0 -7
  127. package/dist/components/SearchMetricData/SearchMetricData.d.ts +0 -5
  128. package/dist/components/SearchMetricData/index.d.ts +0 -1
  129. package/dist/components/SearchTab/index.d.ts +0 -13
  130. package/dist/components/Select/index.d.ts +0 -47
  131. package/dist/components/SelfHostControl/index.d.ts +0 -4
  132. package/dist/components/SkeletonLoader/index.d.ts +0 -9
  133. package/dist/components/SpinningLoader/index.d.ts +0 -2
  134. package/dist/components/Switch/SwitchInput.d.ts +0 -9
  135. package/dist/components/Switch/index.d.ts +0 -11
  136. package/dist/components/Tab/index.d.ts +0 -14
  137. package/dist/components/Table/DebouncedInput.d.ts +0 -6
  138. package/dist/components/Table/Filter.d.ts +0 -7
  139. package/dist/components/Table/index.d.ts +0 -36
  140. package/dist/components/Tabs/index.d.ts +0 -41
  141. package/dist/components/TagInputField/index.d.ts +0 -33
  142. package/dist/components/Text/index.d.ts +0 -14
  143. package/dist/components/TextAreaField/index.d.ts +0 -24
  144. package/dist/components/ThemeBlock/index.d.ts +0 -8
  145. package/dist/components/TimeGrainField/index.d.ts +0 -16
  146. package/dist/components/TimeSeriesSettings/index.d.ts +0 -8
  147. package/dist/components/index.d.ts +0 -65
  148. package/dist/consts/api.d.ts +0 -64
  149. package/dist/consts/app.d.ts +0 -154
  150. package/dist/consts/index.d.ts +0 -2
  151. package/dist/consts/metricOptions.d.ts +0 -205
  152. package/dist/consts/validations.d.ts +0 -24
  153. package/dist/containers/CreateMetric/CreateEmbeddedMetric.d.ts +0 -14
  154. package/dist/containers/CreateMetric/index.d.ts +0 -3
  155. package/dist/containers/Dashboard/Dashboard.d.ts +0 -72
  156. package/dist/containers/Dashboard/DashboardProvider.d.ts +0 -7
  157. package/dist/containers/Dashboard/EmbededDashboard.d.ts +0 -45
  158. package/dist/containers/Dashboard/index.d.ts +0 -2
  159. package/dist/containers/DbnStyles.d.ts +0 -10
  160. package/dist/containers/Metric/EmbeddedMetric.d.ts +0 -47
  161. package/dist/containers/Metric/index.d.ts +0 -85
  162. package/dist/containers/PluginProvider.d.ts +0 -7
  163. package/dist/containers/index.d.ts +0 -3
  164. package/dist/helpers/adaptiveFormatter.d.ts +0 -6
  165. package/dist/helpers/areArraysEqual.d.ts +0 -1
  166. package/dist/helpers/autoCompleteHelpers.d.ts +0 -95
  167. package/dist/helpers/cardActions.d.ts +0 -5
  168. package/dist/helpers/chartOptions.d.ts +0 -93
  169. package/dist/helpers/checkIsElementInViewport.d.ts +0 -1
  170. package/dist/helpers/conditionalFormatting.d.ts +0 -3
  171. package/dist/helpers/copyToClipboard.d.ts +0 -4
  172. package/dist/helpers/createMetric.d.ts +0 -26
  173. package/dist/helpers/darkColorIdentifier.d.ts +0 -2
  174. package/dist/helpers/dateFormatter.d.ts +0 -1
  175. package/dist/helpers/generateColorPalette.d.ts +0 -1
  176. package/dist/helpers/generateTimeRangeWhereClause.d.ts +0 -13
  177. package/dist/helpers/getColumnType.d.ts +0 -2
  178. package/dist/helpers/getComboRangeLabel.d.ts +0 -5
  179. package/dist/helpers/getFilterAppliedQuery.d.ts +0 -71
  180. package/dist/helpers/getModifiedQuery.d.ts +0 -78
  181. package/dist/helpers/getNextScheduledTime.d.ts +0 -13
  182. package/dist/helpers/getTimeFilterValue.d.ts +0 -12
  183. package/dist/helpers/getValidRlsConditionOptions.d.ts +0 -16
  184. package/dist/helpers/groupArray.d.ts +0 -1
  185. package/dist/helpers/groupBy.d.ts +0 -25
  186. package/dist/helpers/index.d.ts +0 -16
  187. package/dist/helpers/numberFormatter.d.ts +0 -1
  188. package/dist/helpers/setOnDateChange.d.ts +0 -11
  189. package/dist/helpers/sqlMetadata.d.ts +0 -7
  190. package/dist/helpers/timeseries.d.ts +0 -35
  191. package/dist/helpers/timeseriesOption.d.ts +0 -72
  192. package/dist/helpers/tooltipFormatter.d.ts +0 -27
  193. package/dist/helpers/treeMap.d.ts +0 -6
  194. package/dist/hooks/index.d.ts +0 -12
  195. package/dist/hooks/useArchiveMetric.d.ts +0 -10
  196. package/dist/hooks/useAutoCompleteOptions.d.ts +0 -4
  197. package/dist/hooks/useClientDashboardLayout.d.ts +0 -21
  198. package/dist/hooks/useDashboardContext.d.ts +0 -37
  199. package/dist/hooks/useDatasetMetric.d.ts +0 -50
  200. package/dist/hooks/useDebounce.d.ts +0 -2
  201. package/dist/hooks/useDownloadRawCsv.d.ts +0 -21
  202. package/dist/hooks/useDrag.d.ts +0 -10
  203. package/dist/hooks/useDragAndDropState.d.ts +0 -10
  204. package/dist/hooks/useDrop.d.ts +0 -13
  205. package/dist/hooks/useEmbeddedMetric.d.ts +0 -24
  206. package/dist/hooks/useExternalMetric.d.ts +0 -55
  207. package/dist/hooks/useGenerateDatasetMetrics.d.ts +0 -13
  208. package/dist/hooks/useGenerateMetric.d.ts +0 -64
  209. package/dist/hooks/useMetricCard.d.ts +0 -121
  210. package/dist/hooks/useMetricConfig.d.ts +0 -63
  211. package/dist/hooks/useNewEmbeddedDashboard.d.ts +0 -35
  212. package/dist/hooks/useOutsideAlerter.d.ts +0 -14
  213. package/dist/hooks/usePublishArchivedMetrics.d.ts +0 -5
  214. package/dist/hooks/usePythonResults.d.ts +0 -17
  215. package/dist/hooks/useScheduleEmail.d.ts +0 -38
  216. package/dist/hooks/useSearch.d.ts +0 -55
  217. package/dist/hooks/useUnderlyingData.d.ts +0 -32
  218. package/dist/index.d.ts +0 -8
  219. package/dist/queries/externalDashboard.mutation.d.ts +0 -61
  220. package/dist/queries/externalDashboard.query.d.ts +0 -20
  221. package/dist/queries/index.d.ts +0 -1
  222. package/dist/queries/metric.mutation.d.ts +0 -57
  223. package/dist/queries/metric.query.d.ts +0 -12
  224. package/dist/types/app.d.ts +0 -896
  225. package/dist/types/dragAndDropProps.d.ts +0 -70
  226. package/dist/types/index.d.ts +0 -3
  227. package/dist/types/metricCreate.d.ts +0 -741
  228. package/dist/types/queryTypes.d.ts +0 -343
  229. package/dist/utils/arrayToCsvString.d.ts +0 -6
  230. package/dist/utils/colors.d.ts +0 -2
  231. package/dist/utils/fetcher.d.ts +0 -13
  232. package/dist/utils/getChartAttributes.d.ts +0 -98
  233. package/dist/utils/getChartImage.d.ts +0 -3
  234. package/dist/utils/getChartOptions.d.ts +0 -42
  235. package/dist/utils/getFormattedDataType.d.ts +0 -1
  236. package/dist/utils/getNoAxisChartOptions.d.ts +0 -25
  237. package/dist/utils/getValidJson.d.ts +0 -1
  238. package/dist/utils/index.d.ts +0 -9
  239. package/dist/utils/pivotDataTransform.d.ts +0 -7
  240. package/dist/utils/popoverPosition.d.ts +0 -2
  241. package/dist/utils/theme.d.ts +0 -42
  242. package/dist/webcomponents.d.ts +0 -16
@@ -1,343 +0,0 @@
1
- import { ClientColumnType, RlsCondition } from './app';
2
- import { DatasetMetricCreationConfiguration } from './metricCreate';
3
- export type UseDashboardDataQueryInputType = {
4
- token: string;
5
- dashboardId?: string;
6
- };
7
- export type ClientSubsetData = {
8
- companyIntegrationId?: string | null;
9
- dbName?: string | null;
10
- error?: {
11
- message: string;
12
- } | null;
13
- tableList?: {
14
- tableName: string;
15
- clientColumn?: string | null;
16
- columns?: {
17
- datatype: string;
18
- name: string;
19
- as: string;
20
- }[] | null;
21
- }[] | null;
22
- } | null;
23
- export type UseDashboardDataQueryOutputType = {
24
- externalDashboard?: any | null;
25
- isAllowedToChangeLayout?: boolean | null;
26
- isAllowedToCreateMetrics?: boolean | null;
27
- isAllowedToDeleteMetrics?: boolean | null;
28
- isAllowedToUpdateMetrics?: boolean | null;
29
- isAllowedToEmailReports?: boolean | null;
30
- isAllowedManageMetrics?: boolean | null;
31
- isShowUnderlyingData?: boolean | null;
32
- adminTheme?: any | null;
33
- clientId?: string | null;
34
- companyId?: string | null;
35
- companyTenancyType?: string | null;
36
- externalMetrics?: (any | null)[] | null;
37
- rlsSettings?: any | null;
38
- appFilters?: any | null;
39
- dashboardAppFilters?: any | null;
40
- workspace?: any | null;
41
- sharingSettingsId?: string | null;
42
- error?: {
43
- message: string;
44
- } | null;
45
- clientSubsetData?: ClientSubsetData;
46
- cType?: ClientColumnType;
47
- refreshTime?: number | null;
48
- isEnableMetricSummary?: boolean;
49
- isAllClient?: boolean;
50
- metricCreationMode?: string;
51
- } | null;
52
- export type UseMetricQueryQueryInputType = {
53
- id?: string;
54
- clientId?: string;
55
- globalFilters?: Record<string, any>;
56
- rlsConditions?: any[];
57
- filterValues?: Record<string, any>;
58
- tenancyLevel?: string;
59
- drillFilters?: any[];
60
- limit?: number;
61
- offset?: number;
62
- isAllClient?: boolean;
63
- disableStringify?: boolean;
64
- pivotHeaders?: string[];
65
- timeseriesSettings?: {
66
- format: string;
67
- seriesField: string;
68
- };
69
- chartSeriesField?: string;
70
- comparisonCount?: number;
71
- dynamicXAxis?: {
72
- isEnable: boolean;
73
- xaxis: string;
74
- };
75
- };
76
- export type UseMetricQueryQueryOutputType = {
77
- data?: any | null;
78
- timeTaken?: number | null;
79
- totalRecords?: number | null;
80
- metaData?: any | null;
81
- };
82
- export type UseMetricColumnMutationInputType = {
83
- tableName?: string;
84
- columnName?: string;
85
- wId?: string;
86
- filter?: Record<string, any>;
87
- customTable?: {
88
- query: string;
89
- alias: string;
90
- };
91
- labelColumnName?: string;
92
- };
93
- export type UseMetricUnderlyingDataMutationInputType = {
94
- columnName?: string;
95
- companyId?: string;
96
- query?: string;
97
- value?: any;
98
- workspaceId?: string;
99
- metricId?: string;
100
- isCustomSql?: boolean;
101
- };
102
- export type UseMetricShareCsvMutationInputType = {
103
- configurations?: Record<string, any>;
104
- emails?: string[];
105
- expireCsvFileAt?: string;
106
- expireUrlIn?: number;
107
- externalMetricId?: string;
108
- integrationId?: string;
109
- integrationName?: string;
110
- query?: string;
111
- sharingSettingsId?: string;
112
- subject?: string;
113
- };
114
- export type UseSaveDashboardLayoutMutationInputType = {
115
- clientId: string;
116
- externalDashboardId: string;
117
- layout: any[];
118
- isLocked?: boolean;
119
- dashboardFiltersLayout?: any[];
120
- gridMargin?: {
121
- verticalMargin?: number;
122
- horizontalMargin?: number;
123
- } | null;
124
- };
125
- export type UseDeleteDashboardScheduleReportMutationInputType = {
126
- token: string;
127
- id: string;
128
- };
129
- export type UseSaveDashboardScheduleReportMutationInputType = {
130
- emails?: any;
131
- externalDashboardId?: string;
132
- guestToken?: string;
133
- nextScheduledAt?: string;
134
- sharingSettingsId?: string;
135
- subject?: string;
136
- timeConfigurations?: any;
137
- data?: any;
138
- isInternal?: boolean;
139
- };
140
- export type UseMarkArchivedMutationInputType = {
141
- id?: string;
142
- };
143
- export type UsePublishArchivedMetricsMutationInputType = {
144
- externalMetricIds?: string[];
145
- archiveMetrics?: string[];
146
- };
147
- export type UseExecutePythonMutationInputType = {
148
- code: string;
149
- clientId?: string;
150
- companyId: string;
151
- rlsConditions?: RlsCondition[];
152
- };
153
- export type ExternalMetricsInsertInput = {
154
- chartOptions?: any;
155
- clientDeletedMetrics?: any;
156
- clientId?: string;
157
- companyId?: string;
158
- companyIntegrationId?: string;
159
- createdAt?: string;
160
- createdBy?: string;
161
- datasetMetricSettings?: any;
162
- description?: string;
163
- drillDownSettings?: any;
164
- externalDashboardMetrics?: any;
165
- externalMetricRawCsvUrl?: any;
166
- externalMetricsRlsFilters?: any;
167
- groupBy?: any;
168
- inputFields?: any;
169
- integrationName?: string;
170
- isCreatedByClient?: boolean;
171
- isEnableGroupBy?: boolean;
172
- isLive?: boolean;
173
- metricId?: string;
174
- metricQuery?: string;
175
- name?: string;
176
- outputColumns?: string;
177
- query?: string;
178
- resizeAttributes?: any;
179
- scheduleEmailReportCharts?: any;
180
- selectedGroupBy?: any;
181
- timeGrain?: string;
182
- updatedAt?: string;
183
- elementSettings?: any;
184
- isMetric?: boolean;
185
- };
186
- export type UseUpdateAdminMetricMutationInputType = {
187
- externalMetricId: string;
188
- object: ExternalMetricsInsertInput;
189
- clientId: string;
190
- };
191
- export type ExternalMetricsSetInput = {
192
- chartOptions?: any;
193
- description?: string;
194
- metricId?: string;
195
- name?: string;
196
- resizeAttributes?: any;
197
- updatedAt?: any;
198
- };
199
- export type UseUpdateMetricMutationInputType = {
200
- externalMetricId: string;
201
- set: ExternalMetricsSetInput;
202
- };
203
- export type UsePreviewTableMutationInputType = {
204
- tableName?: string;
205
- limit?: number;
206
- integrationId?: string;
207
- integrationName?: string;
208
- };
209
- export type UseGenerateMetricDataMutationInputType = {
210
- questionString: string;
211
- };
212
- export type UseGenerateMetricMutationInputType = {
213
- userInputs?: any;
214
- integrationName?: string;
215
- integrationId?: string;
216
- };
217
- export type UseDatatsetMetricMutationInputType = {
218
- cId: string;
219
- configuration: DatasetMetricCreationConfiguration;
220
- id: string;
221
- };
222
- export type UseNewDatatsetMetricMutationInputType = {
223
- configuration: DatasetMetricCreationConfiguration;
224
- id: string;
225
- };
226
- export type UseGenerateMetricSummaryMutationInputType = {
227
- data: Record<string, any>[];
228
- wId?: string;
229
- };
230
- export type DbChatMetricCreationType = {
231
- wId?: string;
232
- question: string;
233
- config?: any;
234
- };
235
- export type DbChatMetricCreationOutputType = {
236
- data: any;
237
- };
238
- export type UseCreateMetricMutationInputType = {
239
- chartOptions?: any;
240
- companyId?: string;
241
- companyIntegrationId?: string;
242
- description?: string;
243
- inputFields?: any;
244
- integrationName?: string;
245
- metricId?: string;
246
- metricQuery?: string;
247
- name?: string;
248
- outputColumns?: string;
249
- query?: string;
250
- isLive?: boolean;
251
- clientId?: string | null;
252
- isCreatedByClient?: boolean;
253
- createdBy?: string;
254
- timeGrain?: string | null;
255
- externalDashboardIds?: any;
256
- selectedGroupBy?: any;
257
- isEnableGroupBy?: boolean;
258
- datasetMetricSettings?: any;
259
- groupBy?: any;
260
- drillDownSettings?: any;
261
- };
262
- export type CompanyIntegrations = {
263
- companyId: string;
264
- companyWorkspace: any;
265
- customSqlColumns: any;
266
- externalMetrics: any;
267
- id: string;
268
- integrationId: string;
269
- name: string;
270
- workspaceId: string;
271
- };
272
- export type ExternalMetrics = {
273
- chartOptions: any;
274
- clickActions: any;
275
- clientDeletedMetrics: any;
276
- clientId?: string;
277
- companyId: string;
278
- companyIntegration: CompanyIntegrations;
279
- companyIntegrationId: string;
280
- createdAt: string;
281
- createdBy?: string;
282
- datasetMetricSettings?: any;
283
- description: string;
284
- drillDownSettings?: any;
285
- /** An array relationship */
286
- externalDashboardMetrics: any;
287
- /** An object relationship */
288
- externalMetricRawCsvUrl?: any;
289
- /** An array relationship */
290
- externalMetricsRlsFilters: any;
291
- groupBy: any;
292
- id: string;
293
- inputFields?: any;
294
- integrationName: string;
295
- isArchived: boolean;
296
- isCreatedByClient: boolean;
297
- isEnableGroupBy: boolean;
298
- isLive: boolean;
299
- isMarkedDeleted: boolean;
300
- metricId: string;
301
- metricQuery?: string;
302
- name: string;
303
- outputColumns?: string;
304
- query: string;
305
- resizeAttributes: any;
306
- rlsConditions: any;
307
- scheduleEmailReportCharts: any;
308
- selectedGroupBy: any;
309
- timeGrain?: string;
310
- updatedAt: string;
311
- };
312
- export type ChatCompletionRequestMessage = {
313
- /**
314
- * The role of the author of this message.
315
- * @type {string}
316
- * @memberof ChatCompletionRequestMessage
317
- */
318
- role: 'system' | 'user' | 'assistant';
319
- /**
320
- * The contents of the message
321
- * @type {string}
322
- * @memberof ChatCompletionRequestMessage
323
- */
324
- content: string;
325
- /**
326
- * The name of the user in a multi-user chat
327
- * @type {string}
328
- * @memberof ChatCompletionRequestMessage
329
- */
330
- name?: string;
331
- };
332
- export type UseChatApiResponseType = {
333
- messages: ChatCompletionRequestMessage[];
334
- };
335
- export type SummarizeMetricMutationType = {
336
- metricData: any;
337
- summaryPrompt: string;
338
- id: string;
339
- filters: string;
340
- name: string;
341
- description: string;
342
- workspaceId: string;
343
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * @name objectArrayToCsvString - converts array of objects to csv file downloadable link
3
- * @param array - array of objects with key value pairs
4
- * @returns uri encoded csv data string
5
- */
6
- export declare const objectArrayToCsvString: (array: Record<string, string>[]) => string;
@@ -1,2 +0,0 @@
1
- export declare const colors: string[];
2
- export declare const colorsArray: string[];
@@ -1,13 +0,0 @@
1
- type ApiResponse<T> = {
2
- data: T;
3
- };
4
- type FetcherOptions = {
5
- method: 'GET' | 'POST';
6
- token?: string;
7
- data?: object;
8
- isFrontend?: boolean;
9
- clientId?: string;
10
- };
11
- export declare const getToken: () => string | null;
12
- declare const fetcher: <T>(url: string, options?: FetcherOptions) => Promise<ApiResponse<T>>;
13
- export default fetcher;
@@ -1,98 +0,0 @@
1
- type GetLabelsParams = {
2
- data: Record<string, any>[] | undefined;
3
- xAxis: string | undefined;
4
- isDynamicXaxis: boolean;
5
- isGroupXAxis: boolean;
6
- };
7
- export declare const getLabels: ({ data, xAxis, isDynamicXaxis, isGroupXAxis, }: GetLabelsParams) => string[] | undefined;
8
- export type GetDatasetsParams = {
9
- data: Record<string, any>[] | undefined;
10
- yAxisList: string[] | undefined;
11
- xAxis: string | undefined;
12
- isDynamicXaxis: boolean;
13
- isCumulativeBar: boolean;
14
- chartType: string;
15
- seriesType: string;
16
- isGroupXAxis: boolean;
17
- };
18
- export declare const getDatasets: ({ data, yAxisList, xAxis, isDynamicXaxis, isCumulativeBar, chartType, seriesType, isGroupXAxis, }: GetDatasetsParams) => {
19
- label: string;
20
- data: any[] | undefined;
21
- borderColor: string;
22
- }[] | undefined;
23
- type GetFunnelDataParams = {
24
- data: Record<string, any>[] | undefined;
25
- measure: string | undefined;
26
- step: string | undefined;
27
- };
28
- export declare const getFunnelData: ({ data, measure, step }: GetFunnelDataParams) => {
29
- value: any;
30
- name: any;
31
- }[];
32
- type GetSingleValueDataParams = {
33
- data: Record<string, any>[] | undefined;
34
- singleValue: string | undefined;
35
- };
36
- export declare const getSingleValueData: ({ data, singleValue, }: GetSingleValueDataParams) => any[];
37
- type GetXaxisDataParams = {
38
- isTimeSeries: boolean;
39
- xAxis: string | undefined;
40
- data: Record<string, any>[] | undefined;
41
- selectedFormat: string | undefined;
42
- fillXAxis: boolean;
43
- };
44
- export declare const getXAxisData: ({ isTimeSeries, xAxis, data, selectedFormat, fillXAxis, }: GetXaxisDataParams) => any[];
45
- export type GetSeriesDataParams = {
46
- data: Record<string, any>[] | undefined;
47
- xAxis: string | undefined;
48
- yAxisList: string[] | undefined;
49
- seriesField: string | undefined;
50
- isTimeSeries: boolean;
51
- selectedFormat: string | undefined;
52
- fillXAxis: boolean;
53
- isCumulativeBar: boolean;
54
- chartType: string;
55
- seriesType: string;
56
- };
57
- export declare const getSeriesData: ({ data, seriesField, isTimeSeries, xAxis, selectedFormat, fillXAxis, yAxisList, isCumulativeBar, chartType, seriesType, }: GetSeriesDataParams) => any;
58
- export type GetChartAttributesParams = {
59
- data: Record<string, any>[] | undefined;
60
- yAxisList: string[] | undefined;
61
- xAxis: string | undefined;
62
- measure: string | undefined;
63
- step: string | undefined;
64
- singleValue: string | undefined;
65
- seriesField: string | undefined;
66
- isTimeSeries: boolean;
67
- selectedFormat: string | undefined;
68
- fillXAxis: boolean;
69
- isDynamicXaxis: boolean;
70
- isCumulativeBar: boolean;
71
- chartType: string;
72
- seriesType: string;
73
- isGroupXAxis: boolean;
74
- };
75
- export declare const getChartAttributes: ({ data, measure, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, fillXAxis, isDynamicXaxis, isCumulativeBar, chartType, seriesType, isGroupXAxis, }: GetChartAttributesParams) => {
76
- labels: string[];
77
- datasets: any;
78
- funnelData: {
79
- value: any;
80
- name: any;
81
- }[];
82
- singleValueData: any[];
83
- xAxisData: any[];
84
- seriesData: any;
85
- };
86
- export declare const transformDataToSankey: ({ data, source, target, value, sankeyColors, }: {
87
- data: Record<string, any>[];
88
- source: string;
89
- target: string;
90
- value: any;
91
- sankeyColors: string[] | undefined;
92
- }) => {
93
- nodes: {
94
- name: any;
95
- }[];
96
- links: Record<string, any>[];
97
- };
98
- export {};
@@ -1,3 +0,0 @@
1
- import EChartsReact from 'echarts-for-react';
2
- declare const getChartImage: (chartRef: React.RefObject<EChartsReact>) => string;
3
- export default getChartImage;
@@ -1,42 +0,0 @@
1
- /// <reference types="react" />
2
- import { ChartAppearanceType, ChartSettingsType } from '@/types';
3
- export declare const truncateText: (label: string, maxLength: number) => string;
4
- export declare const addPrefixAndSuffix: (val: any, prefix?: any, suffix?: any) => string;
5
- export declare const findLegendPosition: (val: string | undefined) => {
6
- top: string;
7
- left: string;
8
- right?: undefined;
9
- bottom?: undefined;
10
- } | {
11
- top: string;
12
- right: string;
13
- left?: undefined;
14
- bottom?: undefined;
15
- } | {
16
- bottom: string;
17
- left: string;
18
- top?: undefined;
19
- right?: undefined;
20
- } | {
21
- bottom: string;
22
- right: string;
23
- top?: undefined;
24
- left?: undefined;
25
- };
26
- export declare const validateColor: (color: any) => boolean;
27
- export type GetChartOptionsParams = {
28
- chartOptions: ChartSettingsType;
29
- data: Record<string, any>[];
30
- colors?: string[];
31
- geoJsonData?: any;
32
- isPythonMode?: boolean;
33
- chartHeight?: number;
34
- chartAppearance?: ChartAppearanceType;
35
- chartRef?: React.MutableRefObject<any>;
36
- metricCardColor?: string;
37
- };
38
- export declare const getLegendData: ({ chartOptions, data, }: {
39
- chartOptions: ChartSettingsType;
40
- data: Record<string, any>[];
41
- }) => any;
42
- export declare const getChartOptions: ({ chartOptions, data, colors, isPythonMode, geoJsonData, chartHeight, chartAppearance, chartRef, metricCardColor, }: GetChartOptionsParams) => Record<string, any>;
@@ -1 +0,0 @@
1
- export declare const getFormattedDataType: (datatype: string) => 'text' | 'number' | 'boolean';
@@ -1,25 +0,0 @@
1
- /// <reference types="react" />
2
- import { ChartAppearanceType, ChartSettingsType } from '@/types';
3
- export type GetNoAxisChartOptionsParams = {
4
- chartOptions: ChartSettingsType;
5
- data: Record<string, any>[];
6
- colors?: string[];
7
- datasets?: any;
8
- labels?: any;
9
- funnelData?: {
10
- value: any;
11
- name: any;
12
- }[];
13
- singleValueData?: any;
14
- geoJsonData?: any;
15
- mapColors?: string[];
16
- progressData?: any;
17
- barGradient?: any;
18
- labelFormatSettings: any;
19
- bgColors: string[];
20
- chartHeight?: number;
21
- chartAppearance?: ChartAppearanceType;
22
- chartRef?: React.MutableRefObject<any>;
23
- metricCardColor?: string;
24
- };
25
- export declare const getNoAxisChartOptions: ({ chartOptions, data, colors, datasets, funnelData, labels, singleValueData, geoJsonData, mapColors, progressData, barGradient, labelFormatSettings, bgColors, chartHeight, chartAppearance, chartRef, metricCardColor, }: GetNoAxisChartOptionsParams) => Record<string, any>;
@@ -1 +0,0 @@
1
- export declare const getValidJson: (json: string) => any;
@@ -1,9 +0,0 @@
1
- export * from './theme';
2
- export * from './getChartAttributes';
3
- export * from './colors';
4
- export * from './getFormattedDataType';
5
- export * from './arrayToCsvString';
6
- export * from './popoverPosition';
7
- export * from './colors';
8
- export * from './getValidJson';
9
- export * from './getChartOptions';
@@ -1,7 +0,0 @@
1
- /**
2
- * @name pivotDataTransform - converts array of objects to pivot csv data
3
- * @param chartOptions - includes chart properties, data - array of objects including data for the chart
4
- * @returns array containing pivoted data
5
- */
6
- import { ChartSettingsType } from '@/types';
7
- export declare const pivotDataTransform: (chartOptions: ChartSettingsType | undefined, data: Record<string, string>[]) => any[];
@@ -1,2 +0,0 @@
1
- export declare const getPopoverPosition: (e: any, parentDimension: DOMRect, popupDimension: DOMRect) => [number, number];
2
- export declare const setPopoverPosition: (popoverDiv: HTMLDivElement, x: number, y: number) => void;
@@ -1,42 +0,0 @@
1
- /**
2
- * colors - object of customizable colors
3
- * typography - object of customizable typography
4
- * border - object of customizable border
5
- * shadow - object of customizable box shadow
6
- * breakpoint - object of customizable breakpoint
7
- * metricLayoutCols - object of customizable metric chart layout columns
8
- */
9
- export interface ThemeType {
10
- button?: {
11
- primary?: string;
12
- secondary?: string;
13
- primaryText?: string;
14
- secondaryText?: string;
15
- };
16
- checkbox?: {
17
- checked?: string;
18
- unChecked?: string;
19
- };
20
- switch?: {
21
- enabled?: string;
22
- disabled?: string;
23
- };
24
- datePickerColor?: string;
25
- manageMetricsStyle?: Record<string, any>;
26
- breakpoint?: {
27
- xl?: number;
28
- lg?: number;
29
- md?: number;
30
- sm?: number;
31
- xs?: number;
32
- };
33
- metricLayoutCols?: {
34
- xl?: number;
35
- lg?: number;
36
- md?: number;
37
- sm?: number;
38
- xs?: number;
39
- xxs?: number;
40
- };
41
- }
42
- export declare const applyTheme: (theme: ThemeType) => void;
@@ -1,16 +0,0 @@
1
- import { DashboardProps } from './containers/Dashboard';
2
- import { Chart, ChartProps } from './components';
3
- import { MetricProps } from './containers/Metric';
4
- import { CreateEmbedMetricProps } from './containers/CreateMetric/CreateEmbeddedMetric';
5
- export type { CustomSettings, TableSettings, MarginSettings, AxisSettings, LegendSettings, LabelSettings, BackgroundSettings, PivotSettingsType, GaugeSettingsType, ChartSettingsType, TimeSeriesSettingsType, MetricFilterOptionsType, DateTypeOptionType, } from '@/types';
6
- export declare namespace JSX {
7
- interface IntrinsicElements {
8
- Tag: any;
9
- 'dbn-dashboard': DashboardProps;
10
- 'dbn-metric': MetricProps;
11
- 'dbn-chart': ChartProps;
12
- 'dbn-create-metric': CreateEmbedMetricProps;
13
- }
14
- }
15
- export type { DashboardProps, MetricProps, ChartProps, CreateEmbedMetricProps };
16
- export { Chart };