@vizzly/services 0.15.0-dev-dfdff442d54d270df03c337679ae904243a831b6 → 0.15.0-dev-f576f0918251ec7901abbda943caec672e40c29c

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 (271) hide show
  1. package/dist/types/{Services → services/src/Services}/Cell.d.ts +1 -1
  2. package/dist/types/{Services → services/src/Services}/Dashboard.d.ts +2 -2
  3. package/dist/types/{Services → services/src/Services}/Editor.d.ts +1 -1
  4. package/dist/types/{Services → services/src/Services}/Header.d.ts +1 -1
  5. package/dist/types/{Services → services/src/Services}/Library.d.ts +1 -1
  6. package/dist/types/{Services → services/src/Services}/View.d.ts +1 -1
  7. package/dist/types/{VizzlyLoader.d.ts → services/src/VizzlyLoader.d.ts} +7 -7
  8. package/dist/types/{eventbus.types.d.ts → services/src/eventbus.types.d.ts} +1 -1
  9. package/dist/types/{index.d.ts → services/src/index.d.ts} +21 -20
  10. package/dist/types/services/src/schemaValidations/cell.d.ts +1 -0
  11. package/dist/types/{schemaValidations → services/src/schemaValidations}/dashboard.d.ts +1 -1
  12. package/dist/types/services/src/schemaValidations/filters.d.ts +3 -0
  13. package/dist/types/{schemaValidations → services/src/schemaValidations}/query.d.ts +1 -1
  14. package/dist/types/shared-logic/src/AdditionalFilter/AdditionalFilter.d.ts +48 -0
  15. package/dist/types/shared-logic/src/AdditionalFilter/FilterConfig.d.ts +15 -0
  16. package/dist/types/shared-logic/src/AdditionalFilter/constants.d.ts +16 -0
  17. package/dist/types/shared-logic/src/AdditionalFilter/filterHelpers.d.ts +1 -0
  18. package/dist/types/shared-logic/src/AdditionalFilter/fromDashboardRequiredFilterGroups.d.ts +12 -0
  19. package/dist/types/shared-logic/src/AdditionalFilter/index.d.ts +3 -0
  20. package/dist/types/shared-logic/src/AdditionalFilter/schema.d.ts +6 -0
  21. package/dist/types/shared-logic/src/AdditionalFilter/toQueryAttributesFilter.d.ts +4 -0
  22. package/dist/types/shared-logic/src/AdditionalFilter/types.d.ts +119 -0
  23. package/dist/types/shared-logic/src/Aggregate/Aggregate.d.ts +9 -0
  24. package/dist/types/shared-logic/src/Aggregate/constants.d.ts +1 -0
  25. package/dist/types/shared-logic/src/Aggregate/index.d.ts +2 -0
  26. package/dist/types/shared-logic/src/Aggregate/types.d.ts +8 -0
  27. package/dist/types/shared-logic/src/AreaChart/attributesSchema.d.ts +3 -0
  28. package/dist/types/shared-logic/src/AreaChart/constants.d.ts +3 -0
  29. package/dist/types/shared-logic/src/AreaChart/index.d.ts +4 -0
  30. package/dist/types/shared-logic/src/AreaChart/setAttributes.d.ts +4 -0
  31. package/dist/types/shared-logic/src/AreaChartV2/attributesSchema.d.ts +3 -0
  32. package/dist/types/shared-logic/src/AreaChartV2/constants.d.ts +3 -0
  33. package/dist/types/shared-logic/src/AreaChartV2/index.d.ts +4 -0
  34. package/dist/types/shared-logic/src/AreaChartV2/setAttributes.d.ts +4 -0
  35. package/dist/types/shared-logic/src/BarChart/attributesSchema.d.ts +3 -0
  36. package/dist/types/shared-logic/src/BarChart/constants.d.ts +3 -0
  37. package/dist/types/shared-logic/src/BarChart/index.d.ts +4 -0
  38. package/dist/types/shared-logic/src/BarChart/setAttributes.d.ts +4 -0
  39. package/dist/types/shared-logic/src/BarChartV2/attributesSchema.d.ts +3 -0
  40. package/dist/types/shared-logic/src/BarChartV2/constants.d.ts +3 -0
  41. package/dist/types/shared-logic/src/BarChartV2/index.d.ts +4 -0
  42. package/dist/types/shared-logic/src/BarChartV2/setAttributes.d.ts +4 -0
  43. package/dist/types/shared-logic/src/BasicTable/attributesSchema.d.ts +3 -0
  44. package/dist/types/shared-logic/src/BasicTable/constants.d.ts +3 -0
  45. package/dist/types/shared-logic/src/BasicTable/index.d.ts +9 -0
  46. package/dist/types/shared-logic/src/BasicTable/setAttributes.d.ts +4 -0
  47. package/dist/types/shared-logic/src/BubbleChart/attributesSchema.d.ts +3 -0
  48. package/dist/types/shared-logic/src/BubbleChart/constants.d.ts +3 -0
  49. package/dist/types/shared-logic/src/BubbleChart/index.d.ts +4 -0
  50. package/dist/types/shared-logic/src/BubbleChart/setAttributes.d.ts +4 -0
  51. package/dist/types/shared-logic/src/BubbleChartV2/attributesSchema.d.ts +3 -0
  52. package/dist/types/shared-logic/src/BubbleChartV2/constants.d.ts +3 -0
  53. package/dist/types/shared-logic/src/BubbleChartV2/index.d.ts +4 -0
  54. package/dist/types/shared-logic/src/BubbleChartV2/setAttributes.d.ts +4 -0
  55. package/dist/types/shared-logic/src/ComboChart/attributesSchema.d.ts +3 -0
  56. package/dist/types/shared-logic/src/ComboChart/constants.d.ts +3 -0
  57. package/dist/types/shared-logic/src/ComboChart/index.d.ts +4 -0
  58. package/dist/types/shared-logic/src/ComboChart/setAttributes.d.ts +4 -0
  59. package/dist/types/shared-logic/src/ComboChart/upcast.d.ts +2 -0
  60. package/dist/types/shared-logic/src/ComboChartV2/attributesSchema.d.ts +3 -0
  61. package/dist/types/shared-logic/src/ComboChartV2/constants.d.ts +3 -0
  62. package/dist/types/shared-logic/src/ComboChartV2/index.d.ts +4 -0
  63. package/dist/types/shared-logic/src/ComboChartV2/setAttributes.d.ts +4 -0
  64. package/dist/types/shared-logic/src/Component/Component.d.ts +11 -0
  65. package/dist/types/shared-logic/src/Component/attributesSchema.d.ts +3 -0
  66. package/dist/types/shared-logic/src/Component/constants.d.ts +4 -0
  67. package/dist/types/shared-logic/src/Component/dumpable.d.ts +11 -0
  68. package/dist/types/shared-logic/src/Component/getGroupingWithTimeDimension.d.ts +5 -0
  69. package/dist/types/shared-logic/src/Component/index.d.ts +4 -0
  70. package/dist/types/shared-logic/src/Component/mergeAttributes.d.ts +2 -0
  71. package/dist/types/shared-logic/src/Component/removeField.d.ts +10 -0
  72. package/dist/types/shared-logic/src/Component/saveable.d.ts +2 -0
  73. package/dist/types/shared-logic/src/Component/setAttributes.d.ts +11 -0
  74. package/dist/types/shared-logic/src/Component/sharedSchemas.d.ts +58 -0
  75. package/dist/types/shared-logic/src/Component/splitTimeDimensionFromGrouping.d.ts +4 -0
  76. package/dist/types/shared-logic/src/Component/types.d.ts +642 -0
  77. package/dist/types/shared-logic/src/Component/upcast.d.ts +3 -0
  78. package/dist/types/shared-logic/src/Component/usedFields.d.ts +10 -0
  79. package/dist/types/shared-logic/src/Component/validateView.d.ts +6 -0
  80. package/dist/types/shared-logic/src/ComponentInterface/constants.d.ts +63 -0
  81. package/dist/types/shared-logic/src/ComponentInterface/namespaces.d.ts +3 -0
  82. package/dist/types/shared-logic/src/ComponentInterface/setDataAttributesFromPreAggregatedDataSet.d.ts +3 -0
  83. package/dist/types/shared-logic/src/ComponentInterface/types/ComponentInterfaceConfig.d.ts +18 -0
  84. package/dist/types/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +124 -0
  85. package/dist/types/shared-logic/src/ComponentInterface/types.d.ts +45 -0
  86. package/dist/types/shared-logic/src/ConditionalFormatting/ConditionalFormatting.d.ts +9 -0
  87. package/dist/types/shared-logic/src/ConditionalFormatting/attributesSchema.d.ts +5 -0
  88. package/dist/types/shared-logic/src/ConditionalFormatting/index.d.ts +1 -0
  89. package/dist/types/shared-logic/src/CustomField/AggregateMath/index.d.ts +7 -0
  90. package/dist/types/shared-logic/src/CustomField/AliasField/index.d.ts +7 -0
  91. package/dist/types/shared-logic/src/CustomField/Conditional/index.d.ts +8 -0
  92. package/dist/types/shared-logic/src/CustomField/CustomField.d.ts +23 -0
  93. package/dist/types/shared-logic/src/CustomField/CustomMetric/build.d.ts +7 -0
  94. package/dist/types/shared-logic/src/CustomField/CustomMetric/index.d.ts +3 -0
  95. package/dist/types/shared-logic/src/CustomField/CustomMetric/init.d.ts +4 -0
  96. package/dist/types/shared-logic/src/CustomField/CustomMetric/types.d.ts +47 -0
  97. package/dist/types/shared-logic/src/CustomField/CustomMetric/validate.d.ts +2 -0
  98. package/dist/types/shared-logic/src/CustomField/DateCalculation/index.d.ts +7 -0
  99. package/dist/types/shared-logic/src/CustomField/Percentage/index.d.ts +16 -0
  100. package/dist/types/shared-logic/src/CustomField/RoundedNumber/index.d.ts +7 -0
  101. package/dist/types/shared-logic/src/CustomField/Rules/index.d.ts +10 -0
  102. package/dist/types/shared-logic/src/CustomField/Rules/types.d.ts +5 -0
  103. package/dist/types/shared-logic/src/CustomField/SimpleMath/index.d.ts +11 -0
  104. package/dist/types/shared-logic/src/CustomField/constants.d.ts +15 -0
  105. package/dist/types/shared-logic/src/CustomField/index.d.ts +10 -0
  106. package/dist/types/shared-logic/src/CustomField/metricValuesHaveAggregates.d.ts +2 -0
  107. package/dist/types/shared-logic/src/CustomField/types.d.ts +88 -0
  108. package/dist/types/shared-logic/src/CustomField/upcast.d.ts +2 -0
  109. package/dist/types/shared-logic/src/CustomView/attributesSchema.d.ts +3 -0
  110. package/dist/types/shared-logic/src/CustomView/constants.d.ts +3 -0
  111. package/dist/types/shared-logic/src/CustomView/index.d.ts +5 -0
  112. package/dist/types/shared-logic/src/CustomView/types.d.ts +29 -0
  113. package/dist/types/shared-logic/src/Dashboard/Dashboard.d.ts +39 -0
  114. package/dist/types/shared-logic/src/Dashboard/fromRaw.d.ts +23 -0
  115. package/dist/types/shared-logic/src/Dashboard/index.d.ts +2 -0
  116. package/dist/types/shared-logic/src/Dashboard/saveableDashboardDefinitionSchema.d.ts +5 -0
  117. package/dist/types/shared-logic/src/Dashboard/types.d.ts +50 -0
  118. package/dist/types/shared-logic/src/DataPanelConfig/types.d.ts +45 -0
  119. package/dist/types/shared-logic/src/DataSet/DataSet.d.ts +45 -0
  120. package/dist/types/shared-logic/src/DataSet/fieldFilterOptions.d.ts +17 -0
  121. package/dist/types/shared-logic/src/DataSet/filterFields.d.ts +3 -0
  122. package/dist/types/shared-logic/src/DataSet/index.d.ts +3 -0
  123. package/dist/types/shared-logic/src/DataSet/newField.d.ts +15 -0
  124. package/dist/types/shared-logic/src/DataSet/types.d.ts +19 -0
  125. package/dist/types/shared-logic/src/DataTable/attributesSchema.d.ts +3 -0
  126. package/dist/types/shared-logic/src/DataTable/constants.d.ts +3 -0
  127. package/dist/types/shared-logic/src/DataTable/index.d.ts +4 -0
  128. package/dist/types/shared-logic/src/DataTable/setAttributes.d.ts +4 -0
  129. package/dist/types/shared-logic/src/DataTable/shared.contants.d.ts +1 -0
  130. package/dist/types/shared-logic/src/DataTable/types.d.ts +26 -0
  131. package/dist/types/shared-logic/src/DateTime/types.d.ts +10 -0
  132. package/dist/types/shared-logic/src/DateTimeField/DateTimeField.d.ts +2 -0
  133. package/dist/types/shared-logic/src/DatumKey/DatumKey.d.ts +15 -0
  134. package/dist/types/shared-logic/src/DatumKey/index.d.ts +1 -0
  135. package/dist/types/shared-logic/src/Display/Display.d.ts +23 -0
  136. package/dist/types/shared-logic/src/Display/dumpable.d.ts +5 -0
  137. package/dist/types/shared-logic/src/Display/index.d.ts +2 -0
  138. package/dist/types/shared-logic/src/Display/removeAllFieldReferences.d.ts +3 -0
  139. package/dist/types/shared-logic/src/Display/types.d.ts +15 -0
  140. package/dist/types/shared-logic/src/Display/upcast.d.ts +7 -0
  141. package/dist/types/shared-logic/src/Drilldown/schema.d.ts +3 -0
  142. package/dist/types/shared-logic/src/Dumpable.d.ts +5 -0
  143. package/dist/types/shared-logic/src/Field/Field.d.ts +102 -0
  144. package/dist/types/shared-logic/src/Field/index.d.ts +1 -0
  145. package/dist/types/shared-logic/src/Field/types.d.ts +26 -0
  146. package/dist/types/shared-logic/src/Filter/Filter.d.ts +26 -0
  147. package/dist/types/shared-logic/src/Filter/combineFilters.d.ts +2 -0
  148. package/dist/types/shared-logic/src/Filter/index.d.ts +2 -0
  149. package/dist/types/shared-logic/src/Filter/relative.d.ts +55 -0
  150. package/dist/types/shared-logic/src/Filter/types.d.ts +7 -0
  151. package/dist/types/shared-logic/src/FormatPanelConfig/types.d.ts +48 -0
  152. package/dist/types/shared-logic/src/FormattingRule/types.d.ts +1 -0
  153. package/dist/types/shared-logic/src/Functions/types.d.ts +8 -0
  154. package/dist/types/shared-logic/src/FunnelChart/constants.d.ts +3 -0
  155. package/dist/types/shared-logic/src/FunnelChart/index.d.ts +4 -0
  156. package/dist/types/shared-logic/src/FunnelChart/setAttributes.d.ts +4 -0
  157. package/dist/types/shared-logic/src/GlobalFilter/index.d.ts +4 -0
  158. package/dist/types/shared-logic/src/GlobalFilter/types.d.ts +27 -0
  159. package/dist/types/shared-logic/src/Header/index.d.ts +7 -0
  160. package/dist/types/shared-logic/src/Header/schema.d.ts +2 -0
  161. package/dist/types/shared-logic/src/Header/types.d.ts +4 -0
  162. package/dist/types/shared-logic/src/Headline/upcast.d.ts +3 -0
  163. package/dist/types/shared-logic/src/HorizontalBarChart/constants.d.ts +3 -0
  164. package/dist/types/shared-logic/src/HorizontalBarChart/index.d.ts +4 -0
  165. package/dist/types/shared-logic/src/HorizontalBarChart/setAttributes.d.ts +4 -0
  166. package/dist/types/shared-logic/src/HorizontalBarChartV2/attributesSchema.d.ts +3 -0
  167. package/dist/types/shared-logic/src/HorizontalBarChartV2/constants.d.ts +3 -0
  168. package/dist/types/shared-logic/src/HorizontalBarChartV2/index.d.ts +4 -0
  169. package/dist/types/shared-logic/src/HorizontalBarChartV2/setAttributes.d.ts +4 -0
  170. package/dist/types/shared-logic/src/LineChart/attributesSchema.d.ts +3 -0
  171. package/dist/types/shared-logic/src/LineChart/constants.d.ts +3 -0
  172. package/dist/types/shared-logic/src/LineChart/index.d.ts +4 -0
  173. package/dist/types/shared-logic/src/LineChart/setAttributes.d.ts +4 -0
  174. package/dist/types/shared-logic/src/LineChartV2/attributesSchema.d.ts +3 -0
  175. package/dist/types/shared-logic/src/LineChartV2/constants.d.ts +3 -0
  176. package/dist/types/shared-logic/src/LineChartV2/index.d.ts +4 -0
  177. package/dist/types/shared-logic/src/LineChartV2/setAttributes.d.ts +4 -0
  178. package/dist/types/shared-logic/src/Logger/Logger.d.ts +16 -0
  179. package/dist/types/shared-logic/src/Logger/index.d.ts +1 -0
  180. package/dist/types/shared-logic/src/Logger/types.d.ts +1 -0
  181. package/dist/types/shared-logic/src/Measure/Measure.d.ts +13 -0
  182. package/dist/types/shared-logic/src/Measure/index.d.ts +1 -0
  183. package/dist/types/shared-logic/src/MercatorMap/attributesSchema.d.ts +3 -0
  184. package/dist/types/shared-logic/src/MercatorMap/constants.d.ts +3 -0
  185. package/dist/types/shared-logic/src/MercatorMap/index.d.ts +4 -0
  186. package/dist/types/shared-logic/src/MercatorMap/setAttributes.d.ts +4 -0
  187. package/dist/types/shared-logic/src/Parameters/removeParameters.d.ts +3 -0
  188. package/dist/types/shared-logic/src/PieChart/attributesSchema.d.ts +3 -0
  189. package/dist/types/shared-logic/src/PieChart/constants.d.ts +3 -0
  190. package/dist/types/shared-logic/src/PieChart/index.d.ts +4 -0
  191. package/dist/types/shared-logic/src/Progress/attributesSchema.d.ts +3 -0
  192. package/dist/types/shared-logic/src/Progress/constants.d.ts +3 -0
  193. package/dist/types/shared-logic/src/Progress/index.d.ts +5 -0
  194. package/dist/types/shared-logic/src/Progress/types.d.ts +2 -0
  195. package/dist/types/shared-logic/src/Query/Query.d.ts +22 -0
  196. package/dist/types/shared-logic/src/Query/buildFromQueryAttributes.d.ts +9 -0
  197. package/dist/types/shared-logic/src/Query/index.d.ts +2 -0
  198. package/dist/types/shared-logic/src/Query/types.d.ts +35 -0
  199. package/dist/types/shared-logic/src/QueryAttributes/QueryAttributes.d.ts +25 -0
  200. package/dist/types/shared-logic/src/QueryAttributes/constants.d.ts +1 -0
  201. package/dist/types/shared-logic/src/QueryAttributes/index.d.ts +1 -0
  202. package/dist/types/shared-logic/src/QueryAttributes/types.d.ts +68 -0
  203. package/dist/types/shared-logic/src/QueryEngineConfig/types.d.ts +10 -0
  204. package/dist/types/shared-logic/src/RadarChart/attributesSchema.d.ts +3 -0
  205. package/dist/types/shared-logic/src/RadarChart/constants.d.ts +3 -0
  206. package/dist/types/shared-logic/src/RadarChart/index.d.ts +4 -0
  207. package/dist/types/shared-logic/src/RadarChart/setAttributes.d.ts +4 -0
  208. package/dist/types/shared-logic/src/Report/types.d.ts +6 -0
  209. package/dist/types/shared-logic/src/Result/types.d.ts +41 -0
  210. package/dist/types/shared-logic/src/RichText/attributesSchema.d.ts +3 -0
  211. package/dist/types/shared-logic/src/RichText/constants.d.ts +3 -0
  212. package/dist/types/shared-logic/src/RichText/index.d.ts +4 -0
  213. package/dist/types/shared-logic/src/RichText/initialRichTextContent.d.ts +38 -0
  214. package/dist/types/shared-logic/src/RichText/setAttributes.d.ts +4 -0
  215. package/dist/types/shared-logic/src/ScatterChart/attributesSchema.d.ts +3 -0
  216. package/dist/types/shared-logic/src/ScatterChart/constants.d.ts +3 -0
  217. package/dist/types/shared-logic/src/ScatterChart/index.d.ts +4 -0
  218. package/dist/types/shared-logic/src/ScatterChart/setAttributes.d.ts +4 -0
  219. package/dist/types/shared-logic/src/SingleStat/attributesSchema.d.ts +3 -0
  220. package/dist/types/shared-logic/src/SingleStat/constants.d.ts +3 -0
  221. package/dist/types/shared-logic/src/SingleStat/index.d.ts +5 -0
  222. package/dist/types/shared-logic/src/SingleStat/types.d.ts +10 -0
  223. package/dist/types/shared-logic/src/SingleStat/upcastSingleValueAttributes.d.ts +4 -0
  224. package/dist/types/shared-logic/src/SunburstChart/attributesSchema.d.ts +3 -0
  225. package/dist/types/shared-logic/src/SunburstChart/constants.d.ts +3 -0
  226. package/dist/types/shared-logic/src/SunburstChart/index.d.ts +4 -0
  227. package/dist/types/shared-logic/src/Tags/tags.d.ts +3 -0
  228. package/dist/types/shared-logic/src/Theme/Theme.d.ts +16 -0
  229. package/dist/types/shared-logic/src/Theme/index.d.ts +1 -0
  230. package/dist/types/shared-logic/src/Theme/types.d.ts +641 -0
  231. package/dist/types/shared-logic/src/TimeDimension/TimeDimension.d.ts +10 -0
  232. package/dist/types/shared-logic/src/TimeDimension/constants.d.ts +1 -0
  233. package/dist/types/shared-logic/src/TimeDimension/index.d.ts +1 -0
  234. package/dist/types/shared-logic/src/Translations/extract/shared.d.ts +10 -0
  235. package/dist/types/shared-logic/src/Translations/textOverrideComponent.d.ts +30 -0
  236. package/dist/types/shared-logic/src/Translations/translation.schema.d.ts +2 -0
  237. package/dist/types/shared-logic/src/Translations/translation.types.d.ts +5756 -0
  238. package/dist/types/shared-logic/src/Translations/translations.d.ts +9 -0
  239. package/dist/types/shared-logic/src/Translations/types.d.ts +13 -0
  240. package/dist/types/shared-logic/src/Translations/validation.d.ts +1 -0
  241. package/dist/types/shared-logic/src/Trends/trendsSchema.d.ts +2 -0
  242. package/dist/types/shared-logic/src/Trends/types.d.ts +9 -0
  243. package/dist/types/shared-logic/src/ValueAlias/ValueAlias.d.ts +7 -0
  244. package/dist/types/shared-logic/src/ValueAlias/types.d.ts +10 -0
  245. package/dist/types/shared-logic/src/Variables/Variables.d.ts +8 -0
  246. package/dist/types/shared-logic/src/Variables/index.d.ts +1 -0
  247. package/dist/types/shared-logic/src/Variables/types.d.ts +9 -0
  248. package/dist/types/shared-logic/src/WaterfallChart/attributesSchema.d.ts +3 -0
  249. package/dist/types/shared-logic/src/WaterfallChart/constants.d.ts +3 -0
  250. package/dist/types/shared-logic/src/WaterfallChart/index.d.ts +4 -0
  251. package/dist/types/shared-logic/src/WaterfallChart/setAttributes.d.ts +4 -0
  252. package/dist/types/shared-logic/src/errors/CorruptedView.d.ts +5 -0
  253. package/dist/types/shared-logic/src/errors/DataSetNotFound.d.ts +5 -0
  254. package/dist/types/shared-logic/src/errors/FieldNotFoundInDataSet.d.ts +7 -0
  255. package/dist/types/shared-logic/src/errors/ValidationError.d.ts +4 -0
  256. package/dist/types/shared-logic/src/errors/VariableNotFoundForVariables.d.ts +7 -0
  257. package/dist/types/shared-logic/src/getComponentInterface.d.ts +28 -0
  258. package/dist/types/shared-logic/src/typeHelpers.d.ts +1 -0
  259. package/dist/types/shared-logic/src/utils/feedback.d.ts +4 -0
  260. package/dist/types/shared-logic/src/utils/generateId.d.ts +1 -0
  261. package/dist/types/shared-logic/src/utils/stringHelper.d.ts +10 -0
  262. package/package.json +6 -6
  263. package/dist/types/schemaValidations/cell.d.ts +0 -1
  264. package/dist/types/schemaValidations/filters.d.ts +0 -3
  265. /package/dist/types/{Services → services/src/Services}/Row.d.ts +0 -0
  266. /package/dist/types/{Services → services/src/Services}/index.d.ts +0 -0
  267. /package/dist/types/{errors → services/src/errors}/ServicesValidationError.d.ts +0 -0
  268. /package/dist/types/{errors → services/src/errors}/TimeoutWaitingForVizzlyInstance.d.ts +0 -0
  269. /package/dist/types/{errors → services/src/errors}/VizzlyInstanceNotLoaded.d.ts +0 -0
  270. /package/dist/types/{schemaValidations → services/src/schemaValidations}/index.d.ts +0 -0
  271. /package/dist/types/{schemaValidations → services/src/schemaValidations}/library.d.ts +0 -0
@@ -0,0 +1,63 @@
1
+ import { Section } from '../DataPanelConfig/types';
2
+ import { ViewConstants } from './types/namespaces.types';
3
+ export declare function headingConstant(constants: ViewConstants): {
4
+ subSection: (Section<"title"> | Section<"subject">)[];
5
+ type?: "heading" | undefined;
6
+ title: string;
7
+ description?: string;
8
+ callToAction?: string;
9
+ testId?: string;
10
+ namespace?: string;
11
+ };
12
+ export declare function axisLabelsConstants(constants: ViewConstants): {
13
+ y: {
14
+ prefix: Section<"axisLabels">;
15
+ postfix: Section<"axisLabels">;
16
+ format: Section<"axisLabels">;
17
+ count: Section<"axisLabels">;
18
+ axisTitle: Section<"axisLabels">;
19
+ type?: "axisLabels" | undefined;
20
+ title: string;
21
+ description?: string;
22
+ callToAction?: string;
23
+ testId?: string;
24
+ namespace?: string;
25
+ };
26
+ x: {
27
+ prefix: Section<"axisLabels">;
28
+ postfix: Section<"axisLabels">;
29
+ format: Section<"axisLabels">;
30
+ count: Section<"axisLabels">;
31
+ axisTitle: Section<"axisLabels">;
32
+ type?: "axisLabels" | undefined;
33
+ title: string;
34
+ description?: string;
35
+ callToAction?: string;
36
+ testId?: string;
37
+ namespace?: string;
38
+ };
39
+ type?: "axisLabels" | undefined;
40
+ title: string;
41
+ description?: string;
42
+ callToAction?: string;
43
+ testId?: string;
44
+ namespace?: string;
45
+ };
46
+ export declare function chartStylesConstant(constants: ViewConstants, line: boolean, bar: boolean): {
47
+ subSection: (Section<"curve"> | Section<"legend">)[];
48
+ type?: "chartStyles" | undefined;
49
+ title: string;
50
+ description?: string;
51
+ callToAction?: string;
52
+ testId?: string;
53
+ namespace?: string;
54
+ } | {
55
+ subSection: (Section<"legend"> | Section<"stacked">)[];
56
+ type?: "chartStyles" | undefined;
57
+ title: string;
58
+ description?: string;
59
+ callToAction?: string;
60
+ testId?: string;
61
+ namespace?: string;
62
+ };
63
+ export declare function statsLabelsConstant(constants: ViewConstants, namespace: string): Omit<Section<'statsLabels'>, 'type'>;
@@ -0,0 +1,3 @@
1
+ import { Section } from '../DataPanelConfig/types';
2
+ import { Namespace, ViewConstants } from './types/namespaces.types';
3
+ export declare function namespace<Type>(constants: ViewConstants, namespace: Namespace): Section<Type>;
@@ -0,0 +1,3 @@
1
+ import { DataSet as DataSetType } from '../DataSet/types';
2
+ import { Component } from '../Component/types';
3
+ export declare const setDataAttributesFromPreAggregatedDataSet: <T extends Component.Attributes>(attributes: T, dataSet: DataSetType, setAttributes: (attrs: T, partial: any) => T) => T;
@@ -0,0 +1,18 @@
1
+ import { DataSet } from '../../DataSet/types';
2
+ import { QueryEngineConfig } from '../../QueryEngineConfig/types';
3
+ import { TextOverride } from '../../Translations/types';
4
+ export type ComponentInterfaceConfig = {
5
+ queryEngineConfig: QueryEngineConfig;
6
+ attributesSchemaOptions?: {
7
+ restrictFields?: Array<{
8
+ id: string;
9
+ dataType: DataSet['fields'][number]['dataType'];
10
+ publicName?: string;
11
+ description?: DataSet['fields'][number]['description'];
12
+ canBeDimension: boolean;
13
+ canBeMeasure: boolean;
14
+ }>;
15
+ restrictDataSetIds?: string[];
16
+ };
17
+ textOverride?: TextOverride;
18
+ };
@@ -0,0 +1,124 @@
1
+ export type Section<Type> = {
2
+ type?: Type;
3
+ title: string;
4
+ description?: string;
5
+ callToAction?: string;
6
+ };
7
+ export type ViewConstants = {
8
+ title: string;
9
+ description: string;
10
+ namespace: ComponentNamespace;
11
+ data_panel: DataPanelNamespaces;
12
+ format_panel: FormatPanelNamespaces;
13
+ };
14
+ export type SubSection<Type> = Section<Type> & {
15
+ namespace?: string;
16
+ };
17
+ type SubSectionDef = {
18
+ line?: SubSection<'metrics'>;
19
+ bar?: SubSection<'metrics'>;
20
+ xAxis?: SubSection<'metrics'>;
21
+ yAxis?: SubSection<'metrics'>;
22
+ zAxis?: SubSection<'metrics'>;
23
+ };
24
+ export type Pagination = {
25
+ options: number[];
26
+ };
27
+ export interface DataPanelNamespaces {
28
+ combo_chart_dimension?: Section<'comboChartDimension'>;
29
+ comparison?: Section<'comparison'>;
30
+ custom_metrics?: Section<'customMetrics'>;
31
+ data_set: Section<'dataSet'>;
32
+ dateComparison?: Section<'dateComparison'>;
33
+ drilldown?: Section<'drilldown'>;
34
+ field_columns?: Section<'fieldCollector'>;
35
+ field_country?: Section<'fieldCollector'>;
36
+ field_grouping?: Section<'fieldCollector'>;
37
+ field_metrics?: Section<'fieldCollector'>;
38
+ field_rows?: Section<'fieldCollector'>;
39
+ field_x_axis?: Section<'fieldCollector'>;
40
+ field_y_axis?: Section<'fieldCollector'>;
41
+ field_z_axis?: Section<'fieldCollector'>;
42
+ fields?: Section<'fields'>;
43
+ filter?: Section<'filter'>;
44
+ labelled_metrics?: Section<'labelledMetrics'> & {
45
+ subSectionDefinition: SubSectionDef;
46
+ };
47
+ limit?: Section<'limit'>;
48
+ pagination?: Section<'pagination'>;
49
+ progress_goals?: Section<'progressGoals'>;
50
+ sort?: Section<'sort'>;
51
+ views: Section<'views'>;
52
+ }
53
+ export type Namespace = keyof FormatPanelNamespaces | keyof DataPanelNamespaces;
54
+ export interface FormatPanelNamespaces {
55
+ axis_labels?: Section<'axisLabels'> & {
56
+ subSectionDefinition: {
57
+ x: SubSection<'axisLabels'>;
58
+ 'x.prefix': SubSection<'axisLabels'>;
59
+ 'x.postfix': SubSection<'axisLabels'>;
60
+ 'x.format': SubSection<'axisLabels'>;
61
+ 'x.count': SubSection<'axisLabels'>;
62
+ 'x.axis_title'?: SubSection<'axisLabels'>;
63
+ y: SubSection<'axisLabels'>;
64
+ 'y.prefix': SubSection<'axisLabels'>;
65
+ 'y.postfix': SubSection<'axisLabels'>;
66
+ 'y.format': SubSection<'axisLabels'>;
67
+ 'y.count': SubSection<'axisLabels'>;
68
+ 'y.axis_title'?: SubSection<'axisLabels'>;
69
+ z?: SubSection<'axisLabels'>;
70
+ 'z.prefix'?: SubSection<'axisLabels'>;
71
+ 'z.postfix'?: SubSection<'axisLabels'>;
72
+ 'z.format'?: SubSection<'axisLabels'>;
73
+ 'z.count'?: SubSection<'axisLabels'>;
74
+ 'z.axis_title'?: SubSection<'axisLabels'>;
75
+ };
76
+ };
77
+ stats_labels?: Section<'statsLabels'> & {
78
+ subSectionDefinition: {
79
+ prefix: SubSection<'statsLabels'>;
80
+ postfix: SubSection<'statsLabels'>;
81
+ format: SubSection<'statsLabels'>;
82
+ count: SubSection<'statsLabels'>;
83
+ };
84
+ };
85
+ rich_text?: Section<'richText'>;
86
+ heading: Section<'heading'> & {
87
+ subSectionDefinition: {
88
+ title: SubSection<'title'>;
89
+ subject: SubSection<'subject'>;
90
+ };
91
+ };
92
+ progress_type?: Section<'progressType'>;
93
+ chart_styles?: Section<'chartStyles'> & {
94
+ subSectionDefinition: {
95
+ stacked?: SubSection<'stacked'>;
96
+ legend?: SubSection<'legend'>;
97
+ labels?: SubSection<'labels'>;
98
+ curve?: SubSection<'curve'>;
99
+ number_format?: SubSection<'numberFormat'>;
100
+ };
101
+ };
102
+ format?: Section<'format'> & {
103
+ subSectionDefinition: {
104
+ time?: SubSection<'time'>;
105
+ font_size?: SubSection<'fontSize'>;
106
+ direction?: SubSection<'direction'>;
107
+ };
108
+ };
109
+ goal_line?: Section<'goalLine'>;
110
+ map_colors?: Section<'mapColors'>;
111
+ waterfall_colors?: Section<'waterfallColors'>;
112
+ headline?: Section<'headline'>;
113
+ trends?: Section<'trends'>;
114
+ prefixes?: Section<'prefixes'>;
115
+ conditional_formatting?: Section<'conditionalFormatting'> & {
116
+ subSectionDefinition?: {
117
+ bar: SubSection<'stacked'>;
118
+ line: SubSection<'stacked'>;
119
+ };
120
+ };
121
+ quadrants?: Section<'quadrants'>;
122
+ }
123
+ export type ComponentNamespace = 'area_chart' | 'bar_chart' | 'basic_table' | 'bubble_chart' | 'combo_chart' | 'custom' | 'fields' | 'funnel_chart' | 'headline' | 'horizontal_bar_chart' | 'line_chart' | 'mercator_map' | 'pie_chart' | 'sunburst_chart' | 'pivot_table' | 'progress' | 'rich_text' | 'scatter_chart' | 'single_stat' | 'waterfall_chart' | 'radar_chart';
124
+ export {};
@@ -0,0 +1,45 @@
1
+ import Joi from '@vizzly/joi';
2
+ import { Dumpable } from '../Dumpable';
3
+ import { DataSet } from '../DataSet/types';
4
+ import { DataPanelConfig } from '../DataPanelConfig/types';
5
+ import { FormatPanelConfig } from '../FormatPanelConfig/types';
6
+ import FieldNotFoundInDataSet from '../errors/FieldNotFoundInDataSet';
7
+ import DataSetNotFound from '../errors/DataSetNotFound';
8
+ import CorruptedView from '../errors/CorruptedView';
9
+ import { ComponentInterfaceConfig } from './types/ComponentInterfaceConfig';
10
+ import { ComponentNamespace } from './types/namespaces.types';
11
+ import { AcceptedTypes } from '../CustomField/types';
12
+ export * from './types/ComponentInterfaceConfig';
13
+ export interface ComponentInterface<Hydrated = any, Dumped = any> extends Dumpable<Hydrated, Dumped> {
14
+ title: string;
15
+ description: string;
16
+ servicesClass: string;
17
+ namespace: ComponentNamespace;
18
+ setDataAttributesFromPreAggregatedDataSet?: (attributes: Hydrated, dataSet: DataSet) => Hydrated;
19
+ removeField: (hydrated: Hydrated, fieldId: string) => Hydrated;
20
+ init: (dataSetId: string, overrides?: Partial<Hydrated>) => Hydrated;
21
+ setAttributes: (original: Hydrated, changes: Partial<Hydrated>) => Hydrated;
22
+ validate: (hydrated: Hydrated, dataSets: DataSet[]) => (CorruptedView | FieldNotFoundInDataSet | DataSetNotFound)[];
23
+ schema: Joi.ObjectSchema;
24
+ createFeedback?: (hydrated: Hydrated) => boolean | string | null;
25
+ isRunnable: (hydrated: Hydrated) => boolean;
26
+ autoGenerate: (dataSet: DataSet) => Hydrated;
27
+ dataPanelConfig: () => DataPanelConfig;
28
+ formatPanelConfig: () => FormatPanelConfig;
29
+ supportedCustomFields: {
30
+ percentages: boolean;
31
+ simpleMaths: boolean;
32
+ aggregateMaths: boolean;
33
+ rules: boolean;
34
+ roundedNumbers: boolean;
35
+ dateCalculations: boolean;
36
+ conditional: boolean;
37
+ customBuild: Array<AcceptedTypes> | false;
38
+ };
39
+ supportedFeatures: {
40
+ parameters: boolean;
41
+ colorGradient: boolean;
42
+ };
43
+ supportedAggregations?: Array<string>;
44
+ }
45
+ export type LoadComponentInterface<Hydrated, Dumped> = (config: ComponentInterfaceConfig) => ComponentInterface<Hydrated, Dumped>;
@@ -0,0 +1,9 @@
1
+ import { Component } from '../Component/types';
2
+ import * as Field from '../Field';
3
+ type OldRules = {
4
+ field?: any;
5
+ operator?: any;
6
+ value?: any;
7
+ };
8
+ export declare const upcast: (functionsToCheck: Field.DecodingFunctionsToCheck, conditionalFormattingRules?: Array<Component.ConditionalFormatting.Rule & OldRules>) => Component.ConditionalFormatting.Rule[];
9
+ export {};
@@ -0,0 +1,5 @@
1
+ import Joi from '@vizzly/joi';
2
+ import { QueryEngineConfig } from '../QueryEngineConfig/types';
3
+ export declare const conditionalFormattingRuleSchema: (queryEngineConfig: QueryEngineConfig) => Joi.ObjectSchema<any>;
4
+ export declare const prefixSchema: Joi.ObjectSchema<any>;
5
+ export declare const conditionalFormattingRulesSchema: (queryEngineConfig: QueryEngineConfig) => Joi.ArraySchema<any[]>;
@@ -0,0 +1 @@
1
+ export * from './ConditionalFormatting';
@@ -0,0 +1,7 @@
1
+ import { AggregateMathField, AggregateNested } from '../../CustomField/types';
2
+ import { Query } from '../../Query/types';
3
+ import { QueryEngineConfig } from '../../QueryEngineConfig/types';
4
+ import { VariableList } from '../../Variables/types';
5
+ import { MathOperator } from '../types';
6
+ export declare const init: (publicName: string, leftFieldId: string, leftFunction: string, operator: MathOperator, rightFieldId: string, rightFunction: string, queryEngineConfig: QueryEngineConfig, leftNested: AggregateNested | undefined, rightNested: AggregateNested | undefined) => AggregateMathField;
7
+ export declare const build: (customField: AggregateMathField, variables: VariableList) => Query["measure"][number];
@@ -0,0 +1,7 @@
1
+ import { Params } from 'results-driver/src/types';
2
+ import { DataSet } from '../../DataSet/types';
3
+ import { Query } from '../../Query/types';
4
+ import { QueryAttributes } from '../../QueryAttributes/types';
5
+ import { QueryEngineConfig } from '../../QueryEngineConfig/types';
6
+ import { AliasFieldType } from '../types';
7
+ export declare const build: (measureAttribute: QueryAttributes.Measure, customField: AliasFieldType, _queryEngineConfig: QueryEngineConfig, dataSet: DataSet, _queryHasDimension: boolean, params: Params) => Query["measure"][number];
@@ -0,0 +1,8 @@
1
+ import { Params } from 'results-driver/src/types';
2
+ import { DataSet } from '../../DataSet/types';
3
+ import { Query } from '../../Query/types';
4
+ import { QueryAttributes } from '../../QueryAttributes/types';
5
+ import { QueryEngineConfig } from '../../QueryEngineConfig/types';
6
+ import { ConditionalField } from '../types';
7
+ export declare const init: (publicName: string, fieldId: string, func: string, rule: QueryAttributes.Filter[][], queryEngineConfig: QueryEngineConfig) => ConditionalField;
8
+ export declare const build: (field: ConditionalField, queryEngineConfig: QueryEngineConfig, dataSet: DataSet, params: Params) => Query["measure"][number];
@@ -0,0 +1,23 @@
1
+ import { DataSet as DataSetType } from '../DataSet/types';
2
+ import { AggregateMathField, AliasFieldType, ConditionalField, CustomField, DateCalculationField, MetricField, PercentageField, RoundedNumberField, RulesField, SimpleMathField } from '../CustomField/types';
3
+ import { QueryAttributes } from '../QueryAttributes/types';
4
+ import { QueryEngineConfig } from '../QueryEngineConfig/types';
5
+ import { Query } from '../Query/types';
6
+ import { CustomFieldCategory } from './types';
7
+ import { Params } from 'results-driver/src/types';
8
+ export declare const isSimpleMathField: (field: DataSetType.Field) => field is SimpleMathField;
9
+ export declare const isRoundedNumberField: (field: DataSetType.Field) => field is RoundedNumberField;
10
+ export declare const isAggregateMathField: (field: DataSetType.Field) => field is AggregateMathField;
11
+ export declare const isPercentageField: (field: DataSetType.Field) => field is PercentageField;
12
+ export declare const isRules: (field: DataSetType.Field) => field is RulesField;
13
+ export declare const isConditional: (field: DataSetType.Field) => field is ConditionalField;
14
+ export declare const isCustomBuildMetric: (field: DataSetType.Field) => field is MetricField;
15
+ export declare const isAliasField: (field: DataSetType.Field) => field is AliasFieldType;
16
+ export declare const isDateCalculation: (field: DataSetType.Field) => field is DateCalculationField;
17
+ export declare const getCustomFieldCategory: (field: CustomField) => CustomFieldCategory;
18
+ export declare const isCustomField: (field: DataSetType.Field) => field is CustomField;
19
+ /**
20
+ * Converts a custom field definition to
21
+ * a measure.
22
+ */
23
+ export declare const toQueryMeasure: (measureAttribute: QueryAttributes.Measure, customField: CustomField, queryEngineConfig: QueryEngineConfig, dataSet: DataSetType, queryHasDimension: boolean, params: Params) => Query["measure"][number];
@@ -0,0 +1,7 @@
1
+ import { Params } from 'results-driver/src/types';
2
+ import { DataSet } from '../../DataSet/types';
3
+ import { Query } from '../../Query/types';
4
+ import { QueryAttributes } from '../../QueryAttributes/types';
5
+ import { QueryEngineConfig } from '../../QueryEngineConfig/types';
6
+ import { MetricField } from '../types';
7
+ export declare const build: (measureAttribute: QueryAttributes.Measure, customField: MetricField, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => Query["measure"][number];
@@ -0,0 +1,3 @@
1
+ export * from './init';
2
+ export * from './build';
3
+ export * from './validate';
@@ -0,0 +1,4 @@
1
+ import * as Types from './types';
2
+ import { QueryEngineConfig } from '../../QueryEngineConfig/types';
3
+ import { MetricField } from '../types';
4
+ export declare const init: (publicName: string, metric: Types.Metric, queryEngineConfig: QueryEngineConfig) => MetricField;
@@ -0,0 +1,47 @@
1
+ import { QueryAttributes } from '../../../../shared-logic/src/QueryAttributes/types';
2
+ export declare enum PropertyType {
3
+ Operator = "operator",
4
+ IfLogic = "ifLogic",
5
+ NumberInput = "number",
6
+ Variable = "variable",
7
+ Field = "field",
8
+ Aggregate = "aggregate"
9
+ }
10
+ export declare enum OperatorType {
11
+ Divide = "/",
12
+ Multiply = "*",
13
+ Subtract = "-",
14
+ Add = "+"
15
+ }
16
+ export type NumberInput = {
17
+ type: PropertyType.NumberInput;
18
+ value: number | undefined;
19
+ };
20
+ export type Variable = {
21
+ type: PropertyType.Variable;
22
+ value: string;
23
+ };
24
+ export type Field = {
25
+ type: PropertyType.Field;
26
+ fieldId: string;
27
+ function: string;
28
+ };
29
+ export type Aggregate = {
30
+ type: PropertyType.Aggregate;
31
+ fieldId: string;
32
+ function?: string;
33
+ };
34
+ export type IfLogic = {
35
+ type: PropertyType.IfLogic;
36
+ cases: Array<{
37
+ filter: Array<QueryAttributes.Filter[]>;
38
+ returns: Operator | NumberInput | Field | Variable | IfLogic | Aggregate | undefined;
39
+ }>;
40
+ else: Operator | NumberInput | Field | Variable | IfLogic | undefined | Aggregate;
41
+ };
42
+ export type Operator = {
43
+ type: PropertyType.Operator;
44
+ op: OperatorType;
45
+ values: Array<Operator | NumberInput | Field | Variable | IfLogic | Aggregate>;
46
+ };
47
+ export type Metric = Operator | IfLogic | Aggregate | NumberInput | Field;
@@ -0,0 +1,2 @@
1
+ import { MetricField } from '../types';
2
+ export declare const validate: (field: MetricField) => boolean;
@@ -0,0 +1,7 @@
1
+ import { Query } from '../../Query/types';
2
+ import { QueryAttributes } from '../../QueryAttributes/types';
3
+ import { QueryEngineConfig } from '../../QueryEngineConfig/types';
4
+ import { VariableList } from '../../Variables/types';
5
+ import { DateCalculationField } from '../types';
6
+ export declare const init: (publicName: string, leftFieldId: string, dateCalculationFunction: DateCalculationField["dateCalculationFunction"], rightFieldId: string, queryEngineConfig: QueryEngineConfig) => DateCalculationField;
7
+ export declare const build: (measureAttribute: QueryAttributes.Measure, customField: DateCalculationField, variables: VariableList) => Query["measure"][number];
@@ -0,0 +1,16 @@
1
+ import { Params } from 'results-driver/src/types';
2
+ import { DataSet } from '../../DataSet/types';
3
+ import { Query } from '../../Query/types';
4
+ import { QueryAttributes } from '../../QueryAttributes/types';
5
+ import { QueryEngineConfig } from '../../QueryEngineConfig/types';
6
+ import { VariableList } from '../../Variables/types';
7
+ import { PercentageField } from '../types';
8
+ /**
9
+ * Creates a new custom percentage field.
10
+ */
11
+ export declare const init: (publicName: string, denominatorFieldId: string, denominatorAggregate: string, numeratorFieldId: string | null, numeratorAggregate: string | null, numeratorFilter: QueryAttributes["filter"], denominatorFilter: QueryAttributes["filter"], queryEngineConfig: QueryEngineConfig, denominatorScope?: PercentageField["denominatorScope"]) => PercentageField;
12
+ export declare const build: (customField: PercentageField, queryEngineConfig: QueryEngineConfig, dataSet: DataSet, _queryHasDimension: boolean, params: Params) => Query["measure"][number];
13
+ export declare function buildPercentageFilters(customField: PercentageField, variables: VariableList): {
14
+ queryFilterFromNumeratorFilter: import("@vizzly/sqlbuilder-public").RecursiveFilter;
15
+ queryFilterFromDenominatorFilter: import("@vizzly/sqlbuilder-public").RecursiveFilter;
16
+ };
@@ -0,0 +1,7 @@
1
+ import { RoundedNumberField } from '../../CustomField/types';
2
+ import { Query } from '../../Query/types';
3
+ import { QueryAttributes } from '../../QueryAttributes/types';
4
+ import { QueryEngineConfig } from '../../QueryEngineConfig/types';
5
+ import { VariableList } from '../../Variables/types';
6
+ export declare const init: (publicName: string, fieldId: string, roundToDecimalPlaces: 0 | 2, queryEngineConfig: QueryEngineConfig) => RoundedNumberField;
7
+ export declare const build: (measureAttribute: QueryAttributes.Measure, customField: RoundedNumberField, variables: VariableList) => Query["measure"][number];
@@ -0,0 +1,10 @@
1
+ import { Params } from 'results-driver/src/types';
2
+ import { RulesField } from '../../CustomField/types';
3
+ import { DataSet } from '../../DataSet/types';
4
+ import { Query, QueryNameSpace } from '../../Query/types';
5
+ import { QueryAttributes } from '../../QueryAttributes/types';
6
+ import { QueryEngineConfig } from '../../QueryEngineConfig/types';
7
+ import { Rules } from './types';
8
+ export declare const init: (publicName: string, rules: Rules[], queryEngineConfig: QueryEngineConfig) => RulesField;
9
+ export declare const build: (measureAttribute: QueryAttributes.Measure, customField: RulesField, queryEngineConfig: QueryEngineConfig, dataSet: DataSet, params: Params) => Query["measure"][number];
10
+ export declare const convertToCases: (rules: Rules[], queryEngineConfig: QueryEngineConfig, dataSet: DataSet, params: Params) => QueryNameSpace.Cases[];
@@ -0,0 +1,5 @@
1
+ import { QueryAttributes } from '../../QueryAttributes/types';
2
+ export type Rules = {
3
+ name: string;
4
+ rule: QueryAttributes.Filter[][];
5
+ };
@@ -0,0 +1,11 @@
1
+ import { SimpleMathField } from '../../CustomField/types';
2
+ import { Query, QueryNameSpace } from '../../Query/types';
3
+ import { QueryAttributes } from '../../QueryAttributes/types';
4
+ import { QueryEngineConfig } from '../../QueryEngineConfig/types';
5
+ import { MathOperator } from '../types';
6
+ import { DataSet } from '../../DataSet/types';
7
+ import { Params } from 'results-driver/src/types';
8
+ import { VariableList } from '../../Variables/types';
9
+ export declare const init: (publicName: string, leftFieldId: string, operator: MathOperator, rightFieldId: string, queryEngineConfig: QueryEngineConfig) => SimpleMathField;
10
+ export declare const build: (measureAttribute: QueryAttributes.Measure, customField: SimpleMathField, dataSet: DataSet, params: Params) => Query["measure"][number];
11
+ export declare const buildSide: (value: string, dataSet: DataSet, variables: VariableList) => QueryNameSpace.FieldDefinition;
@@ -0,0 +1,15 @@
1
+ import { Clause } from '../Filter/types';
2
+ export declare const alwaysTrueFilter: {
3
+ type: Clause.AND_WHERE;
4
+ value: {
5
+ type: Clause.WHERE;
6
+ value: {
7
+ field: {
8
+ type: "number";
9
+ value: number;
10
+ };
11
+ op: string;
12
+ value: number;
13
+ };
14
+ }[];
15
+ };
@@ -0,0 +1,10 @@
1
+ export * from './CustomField';
2
+ export * as Percentage from './Percentage';
3
+ export * as SimpleMath from './SimpleMath';
4
+ export * as AggregateMath from './AggregateMath';
5
+ export * as Rules from './Rules';
6
+ export * as RoundedNumber from './RoundedNumber';
7
+ export * as DateCalculation from './DateCalculation';
8
+ export * as Conditional from './Conditional';
9
+ export * as CustomMetric from './CustomMetric';
10
+ export * from './upcast';
@@ -0,0 +1,2 @@
1
+ import { Aggregate, IfLogic, NumberInput, Operator, Field as FieldMetric, Variable } from './CustomMetric/types';
2
+ export declare function metricValuesHaveAggregates(values: (Operator | IfLogic | Aggregate | NumberInput | FieldMetric | Variable)[] | undefined): boolean;
@@ -0,0 +1,88 @@
1
+ import { QueryAttributes } from '../QueryAttributes/types';
2
+ import { BaseField, DataType, NonDateTimeField } from '../Field/types';
3
+ import { Rules } from './Rules/types';
4
+ import { Metric } from './CustomMetric/types';
5
+ type BaseCustomField = Omit<NonDateTimeField, 'dashboardFilterGroups'>;
6
+ type SimpleMath = {
7
+ leftFieldId: string;
8
+ operator: MathOperator;
9
+ rightFieldId: string;
10
+ };
11
+ type RoundedNumber = {
12
+ roundToDecimalPlaces: 0 | 2;
13
+ fieldId: string;
14
+ };
15
+ export type Conditional = {
16
+ fieldId: string;
17
+ function: string;
18
+ rule: QueryAttributes.Filter[][];
19
+ };
20
+ export type Percentage = {
21
+ version: 2;
22
+ denominatorFieldId: string;
23
+ denominatorAggregate: string;
24
+ numeratorFieldId?: string | null;
25
+ numeratorAggregate?: string | null;
26
+ denominatorScope?: 'all' | 'withinGrouping';
27
+ numeratorFilter?: QueryAttributes['filter'];
28
+ denominatorFilter?: QueryAttributes['filter'];
29
+ dataType: DataType;
30
+ };
31
+ export type AggregateNested = {
32
+ operator: MathOperator;
33
+ fieldId: string;
34
+ /** @deprecated ignore this outside of upcasting */
35
+ aggregate?: string;
36
+ function: string;
37
+ };
38
+ export type AggregateMath = {
39
+ leftFieldId: string;
40
+ leftFunction: string;
41
+ leftNested?: AggregateNested;
42
+ operator: MathOperator;
43
+ rightFieldId: string;
44
+ rightFunction: string;
45
+ rightNested?: AggregateNested;
46
+ /** @deprecated ignore this outside of upcasting */
47
+ leftAggregate?: string;
48
+ /** @deprecated ignore this outside of upcasting */
49
+ rightAggregate?: string;
50
+ };
51
+ export type DateCalculation = {
52
+ leftFieldId: string;
53
+ rightFieldId: string;
54
+ dateCalculationFunction: 'seconds_between' | 'minutes_between' | 'hours_between' | 'days_between';
55
+ };
56
+ export type PercentageField = BaseCustomField & Percentage;
57
+ export type RoundedNumberField = BaseCustomField & RoundedNumber;
58
+ export type DateCalculationField = BaseCustomField & DateCalculation;
59
+ export type AggregateMathField = BaseCustomField & AggregateMath;
60
+ export type ConditionalField = BaseCustomField & Conditional;
61
+ export type AliasFieldType = BaseCustomField & {
62
+ allowedFields: Array<{
63
+ id: string;
64
+ }>;
65
+ };
66
+ export type MetricField = BaseCustomField & {
67
+ metric: Metric;
68
+ };
69
+ export type SimpleMathField = BaseCustomField & SimpleMath & {
70
+ dataType: 'number';
71
+ };
72
+ export type RulesField = BaseField & {
73
+ rules: Rules[];
74
+ dataType: 'string' | 'number';
75
+ };
76
+ export type CustomBuildMetricField = BaseField & {
77
+ metricAttributes: Metric;
78
+ dataType: 'number';
79
+ };
80
+ export type CustomField = PercentageField | SimpleMathField | AggregateMathField | RulesField | RoundedNumberField | DateCalculationField | ConditionalField | MetricField | CustomBuildMetricField | AliasFieldType;
81
+ export type MathOperator = '*' | '-' | '/' | '+';
82
+ export type CustomFieldCategory = 'percentage' | 'math' | 'rules' | 'roundedNumber' | 'dateCalculation' | 'conditional' | 'customBuildMetric';
83
+ export declare enum AcceptedTypes {
84
+ Maths = "maths",
85
+ IfStatement = "ifStatement",
86
+ Aggregates = "aggregates"
87
+ }
88
+ export {};
@@ -0,0 +1,2 @@
1
+ import { CustomField } from '../CustomField/types';
2
+ export declare const upcast: (maybeOldCustomField: CustomField) => CustomField;
@@ -0,0 +1,3 @@
1
+ import Joi from '@vizzly/joi';
2
+ import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
+ export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -0,0 +1,3 @@
1
+ import { ViewConstants } from '../ComponentInterface/types/namespaces.types';
2
+ declare const CONSTANTS: ViewConstants;
3
+ export default CONSTANTS;
@@ -0,0 +1,5 @@
1
+ import { Component } from '../Component/types';
2
+ import { LoadComponentInterface } from '../ComponentInterface/types';
3
+ import { DumpedCustomViewAttributes } from './types';
4
+ declare const CustomChart: LoadComponentInterface<Component.CustomViewAttributes, DumpedCustomViewAttributes>;
5
+ export default CustomChart;