@lightdash/common 0.2104.7 → 0.2104.9

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 (752) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -0
  2. package/dist/cjs/authorization/index.d.ts +1 -4
  3. package/dist/cjs/authorization/index.d.ts.map +1 -1
  4. package/dist/cjs/authorization/index.js +0 -4
  5. package/dist/cjs/authorization/index.js.map +1 -1
  6. package/dist/cjs/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +8 -8
  7. package/dist/cjs/ee/AiAgent/index.d.ts +2 -2
  8. package/dist/cjs/ee/AiAgent/schemas/parser.d.ts +24 -24
  9. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +96 -96
  10. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts +48 -48
  11. package/dist/cjs/ee/AiAgent/utils.d.ts +8 -8
  12. package/dist/cjs/index.d.ts +23 -449
  13. package/dist/cjs/index.d.ts.map +1 -1
  14. package/dist/cjs/index.js +21 -55
  15. package/dist/cjs/index.js.map +1 -1
  16. package/dist/cjs/pivot/index.d.ts +1 -0
  17. package/dist/cjs/pivot/index.d.ts.map +1 -1
  18. package/dist/cjs/pivot/index.js +1 -0
  19. package/dist/cjs/pivot/index.js.map +1 -1
  20. package/dist/cjs/pivot/pivotConfig.d.ts +7 -0
  21. package/dist/cjs/pivot/pivotConfig.d.ts.map +1 -0
  22. package/dist/cjs/pivot/pivotConfig.js +32 -0
  23. package/dist/cjs/pivot/pivotConfig.js.map +1 -0
  24. package/dist/cjs/types/api.d.ts +447 -0
  25. package/dist/cjs/types/api.d.ts.map +1 -1
  26. package/dist/cjs/types/api.js +50 -1
  27. package/dist/cjs/types/api.js.map +1 -1
  28. package/dist/cjs/types/auth.d.ts +2 -1
  29. package/dist/cjs/types/auth.d.ts.map +1 -1
  30. package/dist/cjs/types/auth.js +4 -4
  31. package/dist/cjs/types/auth.js.map +1 -1
  32. package/dist/cjs/types/changeset.d.ts +10 -10
  33. package/dist/cjs/types/pivot.d.ts +0 -2
  34. package/dist/cjs/types/pivot.d.ts.map +1 -1
  35. package/dist/cjs/types/pivot.js +0 -29
  36. package/dist/cjs/types/pivot.js.map +1 -1
  37. package/dist/cjs/types/resourceViewItem.d.ts +1 -1
  38. package/dist/esm/.tsbuildinfo +1 -0
  39. package/dist/esm/authorization/index.d.ts +1 -4
  40. package/dist/esm/authorization/index.d.ts.map +1 -1
  41. package/dist/esm/authorization/index.js +0 -4
  42. package/dist/esm/authorization/index.js.map +1 -1
  43. package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +8 -8
  44. package/dist/esm/ee/AiAgent/index.d.ts +2 -2
  45. package/dist/esm/ee/AiAgent/schemas/parser.d.ts +24 -24
  46. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +96 -96
  47. package/dist/esm/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts +48 -48
  48. package/dist/esm/ee/AiAgent/utils.d.ts +8 -8
  49. package/dist/esm/index.d.ts +23 -449
  50. package/dist/esm/index.d.ts.map +1 -1
  51. package/dist/esm/index.js +16 -50
  52. package/dist/esm/index.js.map +1 -1
  53. package/dist/esm/pivot/index.d.ts +1 -0
  54. package/dist/esm/pivot/index.d.ts.map +1 -1
  55. package/dist/esm/pivot/index.js +1 -0
  56. package/dist/esm/pivot/index.js.map +1 -1
  57. package/dist/esm/pivot/pivotConfig.d.ts +7 -0
  58. package/dist/esm/pivot/pivotConfig.d.ts.map +1 -0
  59. package/dist/esm/pivot/pivotConfig.js +28 -0
  60. package/dist/esm/pivot/pivotConfig.js.map +1 -0
  61. package/dist/esm/types/api.d.ts +447 -0
  62. package/dist/esm/types/api.d.ts.map +1 -1
  63. package/dist/esm/types/api.js +46 -0
  64. package/dist/esm/types/api.js.map +1 -1
  65. package/dist/esm/types/auth.d.ts +2 -1
  66. package/dist/esm/types/auth.d.ts.map +1 -1
  67. package/dist/esm/types/auth.js +2 -2
  68. package/dist/esm/types/auth.js.map +1 -1
  69. package/dist/esm/types/changeset.d.ts +10 -10
  70. package/dist/esm/types/pivot.d.ts +0 -2
  71. package/dist/esm/types/pivot.d.ts.map +1 -1
  72. package/dist/esm/types/pivot.js +1 -27
  73. package/dist/esm/types/pivot.js.map +1 -1
  74. package/dist/esm/types/resourceViewItem.d.ts +1 -1
  75. package/dist/types/.tsbuildinfo +1 -0
  76. package/dist/types/authorization/buildAccountHelpers.js +11 -0
  77. package/dist/types/authorization/buildAccountHelpers.js.map +1 -0
  78. package/dist/types/authorization/index.d.ts +1 -4
  79. package/dist/types/authorization/index.d.ts.map +1 -1
  80. package/dist/types/authorization/index.js +62 -0
  81. package/dist/types/authorization/index.js.map +1 -0
  82. package/dist/types/authorization/index.mock.js +42 -0
  83. package/dist/types/authorization/index.mock.js.map +1 -0
  84. package/dist/types/authorization/index.test.js +220 -0
  85. package/dist/types/authorization/index.test.js.map +1 -0
  86. package/dist/types/authorization/jwtAbility.js +77 -0
  87. package/dist/types/authorization/jwtAbility.js.map +1 -0
  88. package/dist/types/authorization/jwtAbility.test.js +416 -0
  89. package/dist/types/authorization/jwtAbility.test.js.map +1 -0
  90. package/dist/types/authorization/organizationMemberAbility.js +318 -0
  91. package/dist/types/authorization/organizationMemberAbility.js.map +1 -0
  92. package/dist/types/authorization/organizationMemberAbility.mock.js +34 -0
  93. package/dist/types/authorization/organizationMemberAbility.mock.js.map +1 -0
  94. package/dist/types/authorization/organizationMemberAbility.test.js +1265 -0
  95. package/dist/types/authorization/organizationMemberAbility.test.js.map +1 -0
  96. package/dist/types/authorization/parseAccount.js +28 -0
  97. package/dist/types/authorization/parseAccount.js.map +1 -0
  98. package/dist/types/authorization/parseScopes.js +31 -0
  99. package/dist/types/authorization/parseScopes.js.map +1 -0
  100. package/dist/types/authorization/parseScopes.test.js +102 -0
  101. package/dist/types/authorization/parseScopes.test.js.map +1 -0
  102. package/dist/types/authorization/projectMemberAbility.js +239 -0
  103. package/dist/types/authorization/projectMemberAbility.js.map +1 -0
  104. package/dist/types/authorization/projectMemberAbility.mock.js +27 -0
  105. package/dist/types/authorization/projectMemberAbility.mock.js.map +1 -0
  106. package/dist/types/authorization/projectMemberAbility.test.js +1031 -0
  107. package/dist/types/authorization/projectMemberAbility.test.js.map +1 -0
  108. package/dist/types/authorization/roleToScopeMapping.js +150 -0
  109. package/dist/types/authorization/roleToScopeMapping.js.map +1 -0
  110. package/dist/types/authorization/roleToScopeMapping.test.js +561 -0
  111. package/dist/types/authorization/roleToScopeMapping.test.js.map +1 -0
  112. package/dist/types/authorization/roleToScopeMapping.testUtils.js +319 -0
  113. package/dist/types/authorization/roleToScopeMapping.testUtils.js.map +1 -0
  114. package/dist/types/authorization/roleToScopeParity.test.js +194 -0
  115. package/dist/types/authorization/roleToScopeParity.test.js.map +1 -0
  116. package/dist/types/authorization/scopeAbilityBuilder.js +57 -0
  117. package/dist/types/authorization/scopeAbilityBuilder.js.map +1 -0
  118. package/dist/types/authorization/scopeAbilityBuilder.test.js +1348 -0
  119. package/dist/types/authorization/scopeAbilityBuilder.test.js.map +1 -0
  120. package/dist/types/authorization/scopes.js +613 -0
  121. package/dist/types/authorization/scopes.js.map +1 -0
  122. package/dist/types/authorization/serviceAccountAbility.js +303 -0
  123. package/dist/types/authorization/serviceAccountAbility.js.map +1 -0
  124. package/dist/types/authorization/types.js +2 -0
  125. package/dist/types/authorization/types.js.map +1 -0
  126. package/dist/types/compiler/exploreCompiler.js +462 -0
  127. package/dist/types/compiler/exploreCompiler.js.map +1 -0
  128. package/dist/types/compiler/exploreCompiler.mock.js +2016 -0
  129. package/dist/types/compiler/exploreCompiler.mock.js.map +1 -0
  130. package/dist/types/compiler/exploreCompiler.test.js +679 -0
  131. package/dist/types/compiler/exploreCompiler.test.js.map +1 -0
  132. package/dist/types/compiler/fieldSetExpander.js +119 -0
  133. package/dist/types/compiler/fieldSetExpander.js.map +1 -0
  134. package/dist/types/compiler/fieldSetExpander.test.js +184 -0
  135. package/dist/types/compiler/fieldSetExpander.test.js.map +1 -0
  136. package/dist/types/compiler/filtersCompiler.js +337 -0
  137. package/dist/types/compiler/filtersCompiler.js.map +1 -0
  138. package/dist/types/compiler/filtersCompiler.mock.js +496 -0
  139. package/dist/types/compiler/filtersCompiler.mock.js.map +1 -0
  140. package/dist/types/compiler/filtersCompiler.test.js +570 -0
  141. package/dist/types/compiler/filtersCompiler.test.js.map +1 -0
  142. package/dist/types/compiler/lightdashProjectConfig.js +37 -0
  143. package/dist/types/compiler/lightdashProjectConfig.js.map +1 -0
  144. package/dist/types/compiler/parameters.js +75 -0
  145. package/dist/types/compiler/parameters.js.map +1 -0
  146. package/dist/types/compiler/parameters.test.js +216 -0
  147. package/dist/types/compiler/parameters.test.js.map +1 -0
  148. package/dist/types/compiler/translator.js +707 -0
  149. package/dist/types/compiler/translator.js.map +1 -0
  150. package/dist/types/compiler/translator.mock.js +1901 -0
  151. package/dist/types/compiler/translator.mock.js.map +1 -0
  152. package/dist/types/compiler/translator.test.js +323 -0
  153. package/dist/types/compiler/translator.test.js.map +1 -0
  154. package/dist/types/constants/pivot.js +7 -0
  155. package/dist/types/constants/pivot.js.map +1 -0
  156. package/dist/types/constants/sessionStorageKeys.js +6 -0
  157. package/dist/types/constants/sessionStorageKeys.js.map +1 -0
  158. package/dist/types/constants/sqlRunner.js +3 -0
  159. package/dist/types/constants/sqlRunner.js.map +1 -0
  160. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.js +285 -0
  161. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.js.map +1 -0
  162. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.js +224 -0
  163. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.js.map +1 -0
  164. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.test.js +129 -0
  165. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.test.js.map +1 -0
  166. package/dist/types/dbt/schemas/lightdashMetadata.json +385 -0
  167. package/dist/types/dbt/schemas/lightdashV10.json +72 -0
  168. package/dist/types/dbt/schemas/lightdashV11.json +72 -0
  169. package/dist/types/dbt/schemas/lightdashV12.json +63 -0
  170. package/dist/types/dbt/schemas/lightdashV7.json +72 -0
  171. package/dist/types/dbt/schemas/lightdashV8.json +76 -0
  172. package/dist/types/dbt/schemas/lightdashV9.json +72 -0
  173. package/dist/types/dbt/schemas/manifestV10.json +5545 -0
  174. package/dist/types/dbt/schemas/manifestV11.json +6041 -0
  175. package/dist/types/dbt/schemas/manifestV12.json +22567 -0
  176. package/dist/types/dbt/schemas/manifestV7.json +6481 -0
  177. package/dist/types/dbt/schemas/manifestV8.json +4358 -0
  178. package/dist/types/dbt/schemas/manifestV9.json +4879 -0
  179. package/dist/types/dbt/validation.js +67 -0
  180. package/dist/types/dbt/validation.js.map +1 -0
  181. package/dist/types/ee/AiAgent/adminTypes.js +2 -0
  182. package/dist/types/ee/AiAgent/adminTypes.js.map +1 -0
  183. package/dist/types/ee/AiAgent/chartConfig/shared/formatFieldLabel.js +10 -0
  184. package/dist/types/ee/AiAgent/chartConfig/shared/formatFieldLabel.js.map +1 -0
  185. package/dist/types/ee/AiAgent/chartConfig/slack/generateBarVizConfigTool/getVerticalBarChartEchartsConfig.js +60 -0
  186. package/dist/types/ee/AiAgent/chartConfig/slack/generateBarVizConfigTool/getVerticalBarChartEchartsConfig.js.map +1 -0
  187. package/dist/types/ee/AiAgent/chartConfig/slack/generateTimeSeriesVizConfigTool/getTimeSeriesChartEchartsConfig.js +60 -0
  188. package/dist/types/ee/AiAgent/chartConfig/slack/generateTimeSeriesVizConfigTool/getTimeSeriesChartEchartsConfig.js.map +1 -0
  189. package/dist/types/ee/AiAgent/chartConfig/slack/getSlackAiEchartsConfig.js +33 -0
  190. package/dist/types/ee/AiAgent/chartConfig/slack/getSlackAiEchartsConfig.js.map +1 -0
  191. package/dist/types/ee/AiAgent/chartConfig/slack/index.js +2 -0
  192. package/dist/types/ee/AiAgent/chartConfig/slack/index.js.map +1 -0
  193. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/getRunQueryEchartsConfig.js +43 -0
  194. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/getRunQueryEchartsConfig.js.map +1 -0
  195. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/bar.js +98 -0
  196. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/bar.js.map +1 -0
  197. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/funnel.js +38 -0
  198. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/funnel.js.map +1 -0
  199. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/horizontalBar.js +65 -0
  200. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/horizontalBar.js.map +1 -0
  201. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/line.js +105 -0
  202. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/line.js.map +1 -0
  203. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/pie.js +34 -0
  204. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/pie.js.map +1 -0
  205. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/scatter.js +66 -0
  206. package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/scatter.js.map +1 -0
  207. package/dist/types/ee/AiAgent/chartConfig/slack/shared/getCommonEChartsConfig.js +104 -0
  208. package/dist/types/ee/AiAgent/chartConfig/slack/shared/getCommonEChartsConfig.js.map +1 -0
  209. package/dist/types/ee/AiAgent/chartConfig/slack/types.js +2 -0
  210. package/dist/types/ee/AiAgent/chartConfig/slack/types.js.map +1 -0
  211. package/dist/types/ee/AiAgent/chartConfig/web/generateBarVizConfigTool/getVerticalBarChartConfig.js +65 -0
  212. package/dist/types/ee/AiAgent/chartConfig/web/generateBarVizConfigTool/getVerticalBarChartConfig.js.map +1 -0
  213. package/dist/types/ee/AiAgent/chartConfig/web/generateTableVizConfigTool/getTableChartConfig.js +5 -0
  214. package/dist/types/ee/AiAgent/chartConfig/web/generateTableVizConfigTool/getTableChartConfig.js.map +1 -0
  215. package/dist/types/ee/AiAgent/chartConfig/web/generateTimeSeriesVizConfigTool/getTimeSeriesChartConfig.js +63 -0
  216. package/dist/types/ee/AiAgent/chartConfig/web/generateTimeSeriesVizConfigTool/getTimeSeriesChartConfig.js.map +1 -0
  217. package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +8 -8
  218. package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.js +51 -0
  219. package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.js.map +1 -0
  220. package/dist/types/ee/AiAgent/chartConfig/web/index.js +6 -0
  221. package/dist/types/ee/AiAgent/chartConfig/web/index.js.map +1 -0
  222. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.js +73 -0
  223. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.js.map +1 -0
  224. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/bar.js +91 -0
  225. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/bar.js.map +1 -0
  226. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/funnel.js +17 -0
  227. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/funnel.js.map +1 -0
  228. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/horizontalBar.js +52 -0
  229. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/horizontalBar.js.map +1 -0
  230. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/line.js +96 -0
  231. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/line.js.map +1 -0
  232. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/pie.js +15 -0
  233. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/pie.js.map +1 -0
  234. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/scatter.js +66 -0
  235. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/scatter.js.map +1 -0
  236. package/dist/types/ee/AiAgent/chartConfig/web/shared/canRenderAsChart.js +24 -0
  237. package/dist/types/ee/AiAgent/chartConfig/web/shared/canRenderAsChart.js.map +1 -0
  238. package/dist/types/ee/AiAgent/chartConfig/web/shared/formatPivotValueLabel.js +15 -0
  239. package/dist/types/ee/AiAgent/chartConfig/web/shared/formatPivotValueLabel.js.map +1 -0
  240. package/dist/types/ee/AiAgent/chartConfig/web/shared/getAvailableChartTypes.js +11 -0
  241. package/dist/types/ee/AiAgent/chartConfig/web/shared/getAvailableChartTypes.js.map +1 -0
  242. package/dist/types/ee/AiAgent/chartConfig/web/shared/getGroupByDimensions.js +15 -0
  243. package/dist/types/ee/AiAgent/chartConfig/web/shared/getGroupByDimensions.js.map +1 -0
  244. package/dist/types/ee/AiAgent/chartConfig/web/types.js +2 -0
  245. package/dist/types/ee/AiAgent/chartConfig/web/types.js.map +1 -0
  246. package/dist/types/ee/AiAgent/constants.js +2 -0
  247. package/dist/types/ee/AiAgent/constants.js.map +1 -0
  248. package/dist/types/ee/AiAgent/filterExploreByTags.js +94 -0
  249. package/dist/types/ee/AiAgent/filterExploreByTags.js.map +1 -0
  250. package/dist/types/ee/AiAgent/filterExploreByTags.test.js +634 -0
  251. package/dist/types/ee/AiAgent/filterExploreByTags.test.js.map +1 -0
  252. package/dist/types/ee/AiAgent/followUpTools.js +33 -0
  253. package/dist/types/ee/AiAgent/followUpTools.js.map +1 -0
  254. package/dist/types/ee/AiAgent/index.d.ts +2 -2
  255. package/dist/types/ee/AiAgent/index.js +43 -0
  256. package/dist/types/ee/AiAgent/index.js.map +1 -0
  257. package/dist/types/ee/AiAgent/requestTypes.js +2 -0
  258. package/dist/types/ee/AiAgent/requestTypes.js.map +1 -0
  259. package/dist/types/ee/AiAgent/schemas/customMetrics.js +50 -0
  260. package/dist/types/ee/AiAgent/schemas/customMetrics.js.map +1 -0
  261. package/dist/types/ee/AiAgent/schemas/fieldId.js +11 -0
  262. package/dist/types/ee/AiAgent/schemas/fieldId.js.map +1 -0
  263. package/dist/types/ee/AiAgent/schemas/filters/booleanFilters.js +29 -0
  264. package/dist/types/ee/AiAgent/schemas/filters/booleanFilters.js.map +1 -0
  265. package/dist/types/ee/AiAgent/schemas/filters/dateFilters.js +84 -0
  266. package/dist/types/ee/AiAgent/schemas/filters/dateFilters.js.map +1 -0
  267. package/dist/types/ee/AiAgent/schemas/filters/index.js +98 -0
  268. package/dist/types/ee/AiAgent/schemas/filters/index.js.map +1 -0
  269. package/dist/types/ee/AiAgent/schemas/filters/numberFilters.js +53 -0
  270. package/dist/types/ee/AiAgent/schemas/filters/numberFilters.js.map +1 -0
  271. package/dist/types/ee/AiAgent/schemas/filters/stringFilters.js +33 -0
  272. package/dist/types/ee/AiAgent/schemas/filters/stringFilters.js.map +1 -0
  273. package/dist/types/ee/AiAgent/schemas/index.js +9 -0
  274. package/dist/types/ee/AiAgent/schemas/index.js.map +1 -0
  275. package/dist/types/ee/AiAgent/schemas/outputMetadata.js +5 -0
  276. package/dist/types/ee/AiAgent/schemas/outputMetadata.js.map +1 -0
  277. package/dist/types/ee/AiAgent/schemas/parser.d.ts +24 -24
  278. package/dist/types/ee/AiAgent/schemas/parser.js +43 -0
  279. package/dist/types/ee/AiAgent/schemas/parser.js.map +1 -0
  280. package/dist/types/ee/AiAgent/schemas/sortField.js +14 -0
  281. package/dist/types/ee/AiAgent/schemas/sortField.js.map +1 -0
  282. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.js +28 -0
  283. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.js.map +1 -0
  284. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentChangeFromPrevious.js +14 -0
  285. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentChangeFromPrevious.js.map +1 -0
  286. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.js +14 -0
  287. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.js.map +1 -0
  288. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfPreviousValue.js +14 -0
  289. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfPreviousValue.js.map +1 -0
  290. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcRankInColumn.js +10 -0
  291. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcRankInColumn.js.map +1 -0
  292. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcRunningTotal.js +10 -0
  293. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcRunningTotal.js.map +1 -0
  294. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.js +105 -0
  295. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.js.map +1 -0
  296. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.js +168 -0
  297. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.js.map +1 -0
  298. package/dist/types/ee/AiAgent/schemas/toolSchemaBuilder.js +37 -0
  299. package/dist/types/ee/AiAgent/schemas/toolSchemaBuilder.js.map +1 -0
  300. package/dist/types/ee/AiAgent/schemas/tools/index.js +16 -0
  301. package/dist/types/ee/AiAgent/schemas/tools/index.js.map +1 -0
  302. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardArgs.js +103 -0
  303. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardArgs.js.map +1 -0
  304. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +96 -96
  305. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.js +50 -0
  306. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.js.map +1 -0
  307. package/dist/types/ee/AiAgent/schemas/tools/toolFindChartsArgs.js +34 -0
  308. package/dist/types/ee/AiAgent/schemas/tools/toolFindChartsArgs.js.map +1 -0
  309. package/dist/types/ee/AiAgent/schemas/tools/toolFindContentArgs.js +33 -0
  310. package/dist/types/ee/AiAgent/schemas/tools/toolFindContentArgs.js.map +1 -0
  311. package/dist/types/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js +36 -0
  312. package/dist/types/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js.map +1 -0
  313. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +45 -0
  314. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -0
  315. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +34 -0
  316. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -0
  317. package/dist/types/ee/AiAgent/schemas/tools/toolImproveContextArgs.js +60 -0
  318. package/dist/types/ee/AiAgent/schemas/tools/toolImproveContextArgs.js.map +1 -0
  319. package/dist/types/ee/AiAgent/schemas/tools/toolProposeChangeArgs.js +157 -0
  320. package/dist/types/ee/AiAgent/schemas/tools/toolProposeChangeArgs.js.map +1 -0
  321. package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.js +41 -0
  322. package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.js.map +1 -0
  323. package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts +48 -48
  324. package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.js +151 -0
  325. package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.js.map +1 -0
  326. package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.js +46 -0
  327. package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.js.map +1 -0
  328. package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.js +53 -0
  329. package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.js.map +1 -0
  330. package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +58 -0
  331. package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -0
  332. package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js +53 -0
  333. package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js.map +1 -0
  334. package/dist/types/ee/AiAgent/schemas/visualizationMetadata.js +9 -0
  335. package/dist/types/ee/AiAgent/schemas/visualizationMetadata.js.map +1 -0
  336. package/dist/types/ee/AiAgent/schemas/visualizations/index.js +58 -0
  337. package/dist/types/ee/AiAgent/schemas/visualizations/index.js.map +1 -0
  338. package/dist/types/ee/AiAgent/schemas/visualizations/tableViz.js +38 -0
  339. package/dist/types/ee/AiAgent/schemas/visualizations/tableViz.js.map +1 -0
  340. package/dist/types/ee/AiAgent/schemas/visualizations/timeSeriesViz.js +63 -0
  341. package/dist/types/ee/AiAgent/schemas/visualizations/timeSeriesViz.js.map +1 -0
  342. package/dist/types/ee/AiAgent/schemas/visualizations/verticalBarViz.js +68 -0
  343. package/dist/types/ee/AiAgent/schemas/visualizations/verticalBarViz.js.map +1 -0
  344. package/dist/types/ee/AiAgent/types.js +12 -0
  345. package/dist/types/ee/AiAgent/types.js.map +1 -0
  346. package/dist/types/ee/AiAgent/utils.d.ts +8 -8
  347. package/dist/types/ee/AiAgent/utils.js +82 -0
  348. package/dist/types/ee/AiAgent/utils.js.map +1 -0
  349. package/dist/types/ee/AiAgent/validators.js +10 -0
  350. package/dist/types/ee/AiAgent/validators.js.map +1 -0
  351. package/dist/types/ee/commercialFeatureFlags.js +10 -0
  352. package/dist/types/ee/commercialFeatureFlags.js.map +1 -0
  353. package/dist/types/ee/embed/index.js +90 -0
  354. package/dist/types/ee/embed/index.js.map +1 -0
  355. package/dist/types/ee/index.js +19 -0
  356. package/dist/types/ee/index.js.map +1 -0
  357. package/dist/types/ee/scim/errors.js +22 -0
  358. package/dist/types/ee/scim/errors.js.map +1 -0
  359. package/dist/types/ee/scim/types.js +2 -0
  360. package/dist/types/ee/scim/types.js.map +1 -0
  361. package/dist/types/ee/serviceAccounts/types.js +8 -0
  362. package/dist/types/ee/serviceAccounts/types.js.map +1 -0
  363. package/dist/types/index.d.ts +23 -449
  364. package/dist/types/index.d.ts.map +1 -1
  365. package/dist/types/index.js +652 -0
  366. package/dist/types/index.js.map +1 -0
  367. package/dist/types/index.mock.js +44 -0
  368. package/dist/types/index.mock.js.map +1 -0
  369. package/dist/types/index.test.js +123 -0
  370. package/dist/types/index.test.js.map +1 -0
  371. package/dist/types/pivot/derivePivotConfigFromChart.js +206 -0
  372. package/dist/types/pivot/derivePivotConfigFromChart.js.map +1 -0
  373. package/dist/types/pivot/derivePivotConfigFromChart.mock.js +112 -0
  374. package/dist/types/pivot/derivePivotConfigFromChart.mock.js.map +1 -0
  375. package/dist/types/pivot/derivePivotConfigFromChart.test.js +418 -0
  376. package/dist/types/pivot/derivePivotConfigFromChart.test.js.map +1 -0
  377. package/dist/types/pivot/index.d.ts +1 -0
  378. package/dist/types/pivot/index.d.ts.map +1 -1
  379. package/dist/types/pivot/index.js +5 -0
  380. package/dist/types/pivot/index.js.map +1 -0
  381. package/dist/types/pivot/pivotConfig.d.ts +7 -0
  382. package/dist/types/pivot/pivotConfig.d.ts.map +1 -0
  383. package/dist/types/pivot/pivotConfig.js +28 -0
  384. package/dist/types/pivot/pivotConfig.js.map +1 -0
  385. package/dist/types/pivot/pivotQueryResults.js +1034 -0
  386. package/dist/types/pivot/pivotQueryResults.js.map +1 -0
  387. package/dist/types/pivot/pivotQueryResults.mock.js +2412 -0
  388. package/dist/types/pivot/pivotQueryResults.mock.js.map +1 -0
  389. package/dist/types/pivot/pivotQueryResults.test.js +1222 -0
  390. package/dist/types/pivot/pivotQueryResults.test.js.map +1 -0
  391. package/dist/types/pivot/utils.js +14 -0
  392. package/dist/types/pivot/utils.js.map +1 -0
  393. package/dist/types/schemas/json/chart-as-code-1.0.json +436 -0
  394. package/dist/types/schemas/json/dashboard-as-code-1.0.json +349 -0
  395. package/dist/types/schemas/json/lightdash-dbt-2.0.json +1417 -0
  396. package/dist/types/schemas/json/lightdash-project-config-1.0.json +138 -0
  397. package/dist/types/templating/template.js +30 -0
  398. package/dist/types/templating/template.js.map +1 -0
  399. package/dist/types/templating/template.mock.js +45 -0
  400. package/dist/types/templating/template.mock.js.map +1 -0
  401. package/dist/types/templating/template.test.js +21 -0
  402. package/dist/types/templating/template.test.js.map +1 -0
  403. package/dist/types/types/SshKeyPair.js +2 -0
  404. package/dist/types/types/SshKeyPair.js.map +1 -0
  405. package/dist/types/types/account.js +2 -0
  406. package/dist/types/types/account.js.map +1 -0
  407. package/dist/types/types/analytics.js +29 -0
  408. package/dist/types/types/analytics.js.map +1 -0
  409. package/dist/types/types/any.js +2 -0
  410. package/dist/types/types/any.js.map +1 -0
  411. package/dist/types/types/api/comments.js +2 -0
  412. package/dist/types/types/api/comments.js.map +1 -0
  413. package/dist/types/types/api/email.js +2 -0
  414. package/dist/types/types/api/email.js.map +1 -0
  415. package/dist/types/types/api/errors.js +2 -0
  416. package/dist/types/types/api/errors.js.map +1 -0
  417. package/dist/types/types/api/notifications.js +5 -0
  418. package/dist/types/types/api/notifications.js.map +1 -0
  419. package/dist/types/types/api/paginatedQuery.js +3 -0
  420. package/dist/types/types/api/paginatedQuery.js.map +1 -0
  421. package/dist/types/types/api/parameters.js +2 -0
  422. package/dist/types/types/api/parameters.js.map +1 -0
  423. package/dist/types/types/api/share.js +2 -0
  424. package/dist/types/types/api/share.js.map +1 -0
  425. package/dist/types/types/api/sort.js +2 -0
  426. package/dist/types/types/api/sort.js.map +1 -0
  427. package/dist/types/types/api/spotlight.js +2 -0
  428. package/dist/types/types/api/spotlight.js.map +1 -0
  429. package/dist/types/types/api/success.js +2 -0
  430. package/dist/types/types/api/success.js.map +1 -0
  431. package/dist/types/types/api/uuid.js +2 -0
  432. package/dist/types/types/api/uuid.js.map +1 -0
  433. package/dist/types/types/api.d.ts +447 -0
  434. package/dist/types/types/api.d.ts.map +1 -1
  435. package/dist/types/types/api.js +57 -0
  436. package/dist/types/types/api.js.map +1 -0
  437. package/dist/types/types/applyDimensionOverrides.test.js +338 -0
  438. package/dist/types/types/applyDimensionOverrides.test.js.map +1 -0
  439. package/dist/types/types/auth.d.ts +2 -1
  440. package/dist/types/types/auth.d.ts.map +1 -1
  441. package/dist/types/types/auth.js +42 -0
  442. package/dist/types/types/auth.js.map +1 -0
  443. package/dist/types/types/bigQuerySSO.js +2 -0
  444. package/dist/types/types/bigQuerySSO.js.map +1 -0
  445. package/dist/types/types/catalog.js +50 -0
  446. package/dist/types/types/catalog.js.map +1 -0
  447. package/dist/types/types/changeset.d.ts +10 -10
  448. package/dist/types/types/changeset.js +72 -0
  449. package/dist/types/types/changeset.js.map +1 -0
  450. package/dist/types/types/coder.js +2 -0
  451. package/dist/types/types/coder.js.map +1 -0
  452. package/dist/types/types/comments.js +2 -0
  453. package/dist/types/types/comments.js.map +1 -0
  454. package/dist/types/types/conditionalFormatting.js +25 -0
  455. package/dist/types/types/conditionalFormatting.js.map +1 -0
  456. package/dist/types/types/content.js +19 -0
  457. package/dist/types/types/content.js.map +1 -0
  458. package/dist/types/types/csv.js +2 -0
  459. package/dist/types/types/csv.js.map +1 -0
  460. package/dist/types/types/dashboard.js +46 -0
  461. package/dist/types/types/dashboard.js.map +1 -0
  462. package/dist/types/types/dbt.js +262 -0
  463. package/dist/types/types/dbt.js.map +1 -0
  464. package/dist/types/types/dbtFromSchema.js +2 -0
  465. package/dist/types/types/dbtFromSchema.js.map +1 -0
  466. package/dist/types/types/deepPartial.js +7 -0
  467. package/dist/types/types/deepPartial.js.map +1 -0
  468. package/dist/types/types/downloadFile.js +9 -0
  469. package/dist/types/types/downloadFile.js.map +1 -0
  470. package/dist/types/types/email.js +2 -0
  471. package/dist/types/types/email.js.map +1 -0
  472. package/dist/types/types/errors.js +496 -0
  473. package/dist/types/types/errors.js.map +1 -0
  474. package/dist/types/types/explore.js +24 -0
  475. package/dist/types/types/explore.js.map +1 -0
  476. package/dist/types/types/featureFlags.js +62 -0
  477. package/dist/types/types/featureFlags.js.map +1 -0
  478. package/dist/types/types/field.js +473 -0
  479. package/dist/types/types/field.js.map +1 -0
  480. package/dist/types/types/field.test.js +90 -0
  481. package/dist/types/types/field.test.js.map +1 -0
  482. package/dist/types/types/fieldMatch.js +2 -0
  483. package/dist/types/types/fieldMatch.js.map +1 -0
  484. package/dist/types/types/filter.js +287 -0
  485. package/dist/types/types/filter.js.map +1 -0
  486. package/dist/types/types/filter.test.js +372 -0
  487. package/dist/types/types/filter.test.js.map +1 -0
  488. package/dist/types/types/filterGrammar.js +358 -0
  489. package/dist/types/types/filterGrammar.js.map +1 -0
  490. package/dist/types/types/filterGrammar.test.js +549 -0
  491. package/dist/types/types/filterGrammar.test.js.map +1 -0
  492. package/dist/types/types/filterGrammarConversion.js +94 -0
  493. package/dist/types/types/filterGrammarConversion.js.map +1 -0
  494. package/dist/types/types/filterGrammarConversion.test.js +260 -0
  495. package/dist/types/types/filterGrammarConversion.test.js.map +1 -0
  496. package/dist/types/types/gdrive.js +2 -0
  497. package/dist/types/types/gdrive.js.map +1 -0
  498. package/dist/types/types/gitIntegration.js +2 -0
  499. package/dist/types/types/gitIntegration.js.map +1 -0
  500. package/dist/types/types/groups.js +4 -0
  501. package/dist/types/types/groups.js.map +1 -0
  502. package/dist/types/types/job.js +67 -0
  503. package/dist/types/types/job.js.map +1 -0
  504. package/dist/types/types/knex-paginate.js +2 -0
  505. package/dist/types/types/knex-paginate.js.map +1 -0
  506. package/dist/types/types/lightdashProjectConfig.js +4 -0
  507. package/dist/types/types/lightdashProjectConfig.js.map +1 -0
  508. package/dist/types/types/metricQuery.js +20 -0
  509. package/dist/types/types/metricQuery.js.map +1 -0
  510. package/dist/types/types/metricsExplorer.js +12 -0
  511. package/dist/types/types/metricsExplorer.js.map +1 -0
  512. package/dist/types/types/notifications.js +2 -0
  513. package/dist/types/types/notifications.js.map +1 -0
  514. package/dist/types/types/oauth.js +2 -0
  515. package/dist/types/types/oauth.js.map +1 -0
  516. package/dist/types/types/openIdIdentity.js +12 -0
  517. package/dist/types/types/openIdIdentity.js.map +1 -0
  518. package/dist/types/types/organization.js +20 -0
  519. package/dist/types/types/organization.js.map +1 -0
  520. package/dist/types/types/organizationMemberProfile.js +30 -0
  521. package/dist/types/types/organizationMemberProfile.js.map +1 -0
  522. package/dist/types/types/organizationWarehouseCredentials.js +2 -0
  523. package/dist/types/types/organizationWarehouseCredentials.js.map +1 -0
  524. package/dist/types/types/paginateResults.js +2 -0
  525. package/dist/types/types/paginateResults.js.map +1 -0
  526. package/dist/types/types/parameters.js +2 -0
  527. package/dist/types/types/parameters.js.map +1 -0
  528. package/dist/types/types/personalAccessToken.js +2 -0
  529. package/dist/types/types/personalAccessToken.js.map +1 -0
  530. package/dist/types/types/pinning.js +5 -0
  531. package/dist/types/types/pinning.js.map +1 -0
  532. package/dist/types/types/pivot.d.ts +0 -2
  533. package/dist/types/types/pivot.d.ts.map +1 -1
  534. package/dist/types/types/pivot.js +2 -0
  535. package/dist/types/types/pivot.js.map +1 -0
  536. package/dist/types/types/projectGroupAccess.js +2 -0
  537. package/dist/types/types/projectGroupAccess.js.map +1 -0
  538. package/dist/types/types/projectMemberProfile.js +2 -0
  539. package/dist/types/types/projectMemberProfile.js.map +1 -0
  540. package/dist/types/types/projectMemberRole.js +30 -0
  541. package/dist/types/types/projectMemberRole.js.map +1 -0
  542. package/dist/types/types/projects.js +149 -0
  543. package/dist/types/types/projects.js.map +1 -0
  544. package/dist/types/types/promotion.js +8 -0
  545. package/dist/types/types/promotion.js.map +1 -0
  546. package/dist/types/types/queryHistory.js +8 -0
  547. package/dist/types/types/queryHistory.js.map +1 -0
  548. package/dist/types/types/rename.js +6 -0
  549. package/dist/types/types/rename.js.map +1 -0
  550. package/dist/types/types/resourceViewItem.d.ts +1 -1
  551. package/dist/types/types/resourceViewItem.js +103 -0
  552. package/dist/types/types/resourceViewItem.js.map +1 -0
  553. package/dist/types/types/results.js +51 -0
  554. package/dist/types/types/results.js.map +1 -0
  555. package/dist/types/types/roles.js +2 -0
  556. package/dist/types/types/roles.js.map +1 -0
  557. package/dist/types/types/savedCharts.js +225 -0
  558. package/dist/types/types/savedCharts.js.map +1 -0
  559. package/dist/types/types/scheduler.js +87 -0
  560. package/dist/types/types/scheduler.js.map +1 -0
  561. package/dist/types/types/schedulerLog.js +2 -0
  562. package/dist/types/types/schedulerLog.js.map +1 -0
  563. package/dist/types/types/schedulerTaskList.js +31 -0
  564. package/dist/types/types/schedulerTaskList.js.map +1 -0
  565. package/dist/types/types/scopes.js +14 -0
  566. package/dist/types/types/scopes.js.map +1 -0
  567. package/dist/types/types/search.js +53 -0
  568. package/dist/types/types/search.js.map +1 -0
  569. package/dist/types/types/share.js +2 -0
  570. package/dist/types/types/share.js.map +1 -0
  571. package/dist/types/types/slack.js +2 -0
  572. package/dist/types/types/slack.js.map +1 -0
  573. package/dist/types/types/slackSettings.js +2 -0
  574. package/dist/types/types/slackSettings.js.map +1 -0
  575. package/dist/types/types/space.js +7 -0
  576. package/dist/types/types/space.js.map +1 -0
  577. package/dist/types/types/spotlightTableConfig.js +17 -0
  578. package/dist/types/types/spotlightTableConfig.js.map +1 -0
  579. package/dist/types/types/sqlRunner.js +41 -0
  580. package/dist/types/types/sqlRunner.js.map +1 -0
  581. package/dist/types/types/table.js +6 -0
  582. package/dist/types/types/table.js.map +1 -0
  583. package/dist/types/types/tags.js +2 -0
  584. package/dist/types/types/tags.js.map +1 -0
  585. package/dist/types/types/timeFrames.js +42 -0
  586. package/dist/types/types/timeFrames.js.map +1 -0
  587. package/dist/types/types/timezone.js +33 -0
  588. package/dist/types/types/timezone.js.map +1 -0
  589. package/dist/types/types/user.js +23 -0
  590. package/dist/types/types/user.js.map +1 -0
  591. package/dist/types/types/userAttributes.js +2 -0
  592. package/dist/types/types/userAttributes.js.map +1 -0
  593. package/dist/types/types/userWarehouseCredentials.js +2 -0
  594. package/dist/types/types/userWarehouseCredentials.js.map +1 -0
  595. package/dist/types/types/validation.js +29 -0
  596. package/dist/types/types/validation.js.map +1 -0
  597. package/dist/types/types/warehouse.js +6 -0
  598. package/dist/types/types/warehouse.js.map +1 -0
  599. package/dist/types/types/yamlSchema.js +2 -0
  600. package/dist/types/types/yamlSchema.js.map +1 -0
  601. package/dist/types/utils/accessors.js +27 -0
  602. package/dist/types/utils/accessors.js.map +1 -0
  603. package/dist/types/utils/accessors.test.js +45 -0
  604. package/dist/types/utils/accessors.test.js.map +1 -0
  605. package/dist/types/utils/additionalMetrics.js +54 -0
  606. package/dist/types/utils/additionalMetrics.js.map +1 -0
  607. package/dist/types/utils/api.js +5 -0
  608. package/dist/types/utils/api.js.map +1 -0
  609. package/dist/types/utils/assertUnreachable.js +10 -0
  610. package/dist/types/utils/assertUnreachable.js.map +1 -0
  611. package/dist/types/utils/booleanConverter.js +27 -0
  612. package/dist/types/utils/booleanConverter.js.map +1 -0
  613. package/dist/types/utils/booleanConverter.test.js +59 -0
  614. package/dist/types/utils/booleanConverter.test.js.map +1 -0
  615. package/dist/types/utils/catalogMetricsTree.js +2 -0
  616. package/dist/types/utils/catalogMetricsTree.js.map +1 -0
  617. package/dist/types/utils/changeset.js +132 -0
  618. package/dist/types/utils/changeset.js.map +1 -0
  619. package/dist/types/utils/changeset.mock.js +146 -0
  620. package/dist/types/utils/changeset.mock.js.map +1 -0
  621. package/dist/types/utils/changeset.test.js +248 -0
  622. package/dist/types/utils/changeset.test.js.map +1 -0
  623. package/dist/types/utils/charts.js +74 -0
  624. package/dist/types/utils/charts.js.map +1 -0
  625. package/dist/types/utils/colors.js +15 -0
  626. package/dist/types/utils/colors.js.map +1 -0
  627. package/dist/types/utils/colors.test.js +85 -0
  628. package/dist/types/utils/colors.test.js.map +1 -0
  629. package/dist/types/utils/conditionalFormatting.js +436 -0
  630. package/dist/types/utils/conditionalFormatting.js.map +1 -0
  631. package/dist/types/utils/conditionalFormatting.test.js +105 -0
  632. package/dist/types/utils/conditionalFormatting.test.js.map +1 -0
  633. package/dist/types/utils/convertCustomDimensionsToYaml.js +115 -0
  634. package/dist/types/utils/convertCustomDimensionsToYaml.js.map +1 -0
  635. package/dist/types/utils/convertCustomMetricsToYaml.js +15 -0
  636. package/dist/types/utils/convertCustomMetricsToYaml.js.map +1 -0
  637. package/dist/types/utils/customDimensions.js +27 -0
  638. package/dist/types/utils/customDimensions.js.map +1 -0
  639. package/dist/types/utils/dashboard.js +35 -0
  640. package/dist/types/utils/dashboard.js.map +1 -0
  641. package/dist/types/utils/dashboard.test.js +36 -0
  642. package/dist/types/utils/dashboard.test.js.map +1 -0
  643. package/dist/types/utils/dbt.js +4 -0
  644. package/dist/types/utils/dbt.js.map +1 -0
  645. package/dist/types/utils/dbt.test.js +39 -0
  646. package/dist/types/utils/dbt.test.js.map +1 -0
  647. package/dist/types/utils/dependencyGraph.js +51 -0
  648. package/dist/types/utils/dependencyGraph.js.map +1 -0
  649. package/dist/types/utils/dependencyGraph.test.js +113 -0
  650. package/dist/types/utils/dependencyGraph.test.js.map +1 -0
  651. package/dist/types/utils/email.js +76 -0
  652. package/dist/types/utils/email.js.map +1 -0
  653. package/dist/types/utils/email.test.js +49 -0
  654. package/dist/types/utils/email.test.js.map +1 -0
  655. package/dist/types/utils/fields.js +183 -0
  656. package/dist/types/utils/fields.js.map +1 -0
  657. package/dist/types/utils/fields.mock.js +150 -0
  658. package/dist/types/utils/fields.mock.js.map +1 -0
  659. package/dist/types/utils/fields.test.js +259 -0
  660. package/dist/types/utils/fields.test.js.map +1 -0
  661. package/dist/types/utils/filters.js +763 -0
  662. package/dist/types/utils/filters.js.map +1 -0
  663. package/dist/types/utils/filters.mock.js +450 -0
  664. package/dist/types/utils/filters.mock.js.map +1 -0
  665. package/dist/types/utils/filters.test.js +360 -0
  666. package/dist/types/utils/filters.test.js.map +1 -0
  667. package/dist/types/utils/formatting.js +552 -0
  668. package/dist/types/utils/formatting.js.map +1 -0
  669. package/dist/types/utils/formatting.mock.js +28 -0
  670. package/dist/types/utils/formatting.mock.js.map +1 -0
  671. package/dist/types/utils/formatting.test.js +1047 -0
  672. package/dist/types/utils/formatting.test.js.map +1 -0
  673. package/dist/types/utils/github.js +11 -0
  674. package/dist/types/utils/github.js.map +1 -0
  675. package/dist/types/utils/i18n/abstract.js +3 -0
  676. package/dist/types/utils/i18n/abstract.js.map +1 -0
  677. package/dist/types/utils/i18n/chartAsCode.js +132 -0
  678. package/dist/types/utils/i18n/chartAsCode.js.map +1 -0
  679. package/dist/types/utils/i18n/chartAsCode.test.js +350 -0
  680. package/dist/types/utils/i18n/chartAsCode.test.js.map +1 -0
  681. package/dist/types/utils/i18n/dashboardAsCode.js +58 -0
  682. package/dist/types/utils/i18n/dashboardAsCode.js.map +1 -0
  683. package/dist/types/utils/i18n/index.js +5 -0
  684. package/dist/types/utils/i18n/index.js.map +1 -0
  685. package/dist/types/utils/i18n/merge.js +20 -0
  686. package/dist/types/utils/i18n/merge.js.map +1 -0
  687. package/dist/types/utils/i18n/types.js +2 -0
  688. package/dist/types/utils/i18n/types.js.map +1 -0
  689. package/dist/types/utils/item.js +154 -0
  690. package/dist/types/utils/item.js.map +1 -0
  691. package/dist/types/utils/loadLightdashProjectConfig.js +49 -0
  692. package/dist/types/utils/loadLightdashProjectConfig.js.map +1 -0
  693. package/dist/types/utils/loadLightdashProjectConfig.mock.js +127 -0
  694. package/dist/types/utils/loadLightdashProjectConfig.mock.js.map +1 -0
  695. package/dist/types/utils/loadLightdashProjectConfig.test.js +137 -0
  696. package/dist/types/utils/loadLightdashProjectConfig.test.js.map +1 -0
  697. package/dist/types/utils/metricsExplorer.js +365 -0
  698. package/dist/types/utils/metricsExplorer.js.map +1 -0
  699. package/dist/types/utils/oauth.js +242 -0
  700. package/dist/types/utils/oauth.js.map +1 -0
  701. package/dist/types/utils/organization.js +23 -0
  702. package/dist/types/utils/organization.js.map +1 -0
  703. package/dist/types/utils/projectMemberRole.js +85 -0
  704. package/dist/types/utils/projectMemberRole.js.map +1 -0
  705. package/dist/types/utils/projectMemberRole.test.js +36 -0
  706. package/dist/types/utils/projectMemberRole.test.js.map +1 -0
  707. package/dist/types/utils/promises.js +5 -0
  708. package/dist/types/utils/promises.js.map +1 -0
  709. package/dist/types/utils/sanitizeHtml.js +111 -0
  710. package/dist/types/utils/sanitizeHtml.js.map +1 -0
  711. package/dist/types/utils/sanitizeHtml.test.js +101 -0
  712. package/dist/types/utils/sanitizeHtml.test.js.map +1 -0
  713. package/dist/types/utils/scheduler.js +85 -0
  714. package/dist/types/utils/scheduler.js.map +1 -0
  715. package/dist/types/utils/scheduler.test.js +41 -0
  716. package/dist/types/utils/scheduler.test.js.map +1 -0
  717. package/dist/types/utils/searchParams.js +8 -0
  718. package/dist/types/utils/searchParams.js.map +1 -0
  719. package/dist/types/utils/sleep.js +6 -0
  720. package/dist/types/utils/sleep.js.map +1 -0
  721. package/dist/types/utils/slug.test.js +129 -0
  722. package/dist/types/utils/slug.test.js.map +1 -0
  723. package/dist/types/utils/slugs.js +55 -0
  724. package/dist/types/utils/slugs.js.map +1 -0
  725. package/dist/types/utils/subtotals.js +4 -0
  726. package/dist/types/utils/subtotals.js.map +1 -0
  727. package/dist/types/utils/time.js +25 -0
  728. package/dist/types/utils/time.js.map +1 -0
  729. package/dist/types/utils/timeFrames.js +529 -0
  730. package/dist/types/utils/timeFrames.js.map +1 -0
  731. package/dist/types/utils/timeFrames.test.js +50 -0
  732. package/dist/types/utils/timeFrames.test.js.map +1 -0
  733. package/dist/types/utils/virtualView.js +98 -0
  734. package/dist/types/utils/virtualView.js.map +1 -0
  735. package/dist/types/utils/warehouse.js +57 -0
  736. package/dist/types/utils/warehouse.js.map +1 -0
  737. package/dist/types/visualizations/CartesianChartDataModel.js +515 -0
  738. package/dist/types/visualizations/CartesianChartDataModel.js.map +1 -0
  739. package/dist/types/visualizations/PieChartDataModel.js +258 -0
  740. package/dist/types/visualizations/PieChartDataModel.js.map +1 -0
  741. package/dist/types/visualizations/TableDataModel.js +96 -0
  742. package/dist/types/visualizations/TableDataModel.js.map +1 -0
  743. package/dist/types/visualizations/chartTransformations.js +107 -0
  744. package/dist/types/visualizations/chartTransformations.js.map +1 -0
  745. package/dist/types/visualizations/helpers/getCartesianAxisFormatterConfig.js +142 -0
  746. package/dist/types/visualizations/helpers/getCartesianAxisFormatterConfig.js.map +1 -0
  747. package/dist/types/visualizations/types/IResultsRunner.js +2 -0
  748. package/dist/types/visualizations/types/IResultsRunner.js.map +1 -0
  749. package/dist/types/visualizations/types/index.js +78 -0
  750. package/dist/types/visualizations/types/index.js.map +1 -0
  751. package/package.json +1 -1
  752. package/dist/tsconfig.types.tsbuildinfo +0 -1
@@ -0,0 +1,1417 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "version": {
6
+ "type": "number",
7
+ "enum": [2]
8
+ },
9
+ "models": {
10
+ "type": "array",
11
+ "items": {
12
+ "type": "object",
13
+ "properties": {
14
+ "name": {
15
+ "type": "string"
16
+ },
17
+ "description": {
18
+ "type": "string"
19
+ },
20
+ "docs": {
21
+ "type": "object",
22
+ "properties": {
23
+ "show": {
24
+ "type": "boolean"
25
+ }
26
+ }
27
+ },
28
+ "tests": {
29
+ "type": "array",
30
+ "items": {
31
+ "anyOf": [
32
+ {
33
+ "type": "object"
34
+ },
35
+ {
36
+ "type": "string"
37
+ }
38
+ ]
39
+ }
40
+ },
41
+ "data_tests": {
42
+ "type": "array",
43
+ "items": {
44
+ "anyOf": [
45
+ {
46
+ "type": "object"
47
+ },
48
+ {
49
+ "type": "string"
50
+ }
51
+ ]
52
+ }
53
+ },
54
+ "meta": {
55
+ "type": "object",
56
+ "properties": {
57
+ "joins": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "object",
61
+ "properties": {
62
+ "join": {
63
+ "type": "string"
64
+ },
65
+ "sql_on": {
66
+ "type": "string"
67
+ },
68
+ "always": {
69
+ "type": "boolean"
70
+ },
71
+ "type": {
72
+ "type": "string",
73
+ "enum": [
74
+ "inner",
75
+ "left",
76
+ "right",
77
+ "full"
78
+ ]
79
+ },
80
+ "hidden": {
81
+ "type": "boolean"
82
+ },
83
+ "alias": {
84
+ "type": "string"
85
+ },
86
+ "label": {
87
+ "type": "string"
88
+ },
89
+ "fields": {
90
+ "type": "array",
91
+ "items": {
92
+ "type": "string"
93
+ }
94
+ },
95
+ "relationship": {
96
+ "type": "string",
97
+ "enum": [
98
+ "one-to-many",
99
+ "many-to-one",
100
+ "one-to-one",
101
+ "many-to-many"
102
+ ]
103
+ }
104
+ },
105
+ "required": ["join", "sql_on"]
106
+ }
107
+ },
108
+ "order_fields_by": {
109
+ "type": "string",
110
+ "enum": ["index", "label"]
111
+ },
112
+ "group_details": {
113
+ "type": "object",
114
+ "description": "Set up group_details so you can group your dimensions and metrics in the sidebar using the groups parameter. You can create nested groups up to 3 levels",
115
+ "patternProperties": {
116
+ "^[a-zA-Z0-9_]+$": {
117
+ "type": "object",
118
+ "properties": {
119
+ "label": {
120
+ "type": "string",
121
+ "minLength": 1
122
+ },
123
+ "description": {
124
+ "type": "string"
125
+ }
126
+ },
127
+ "required": ["label"]
128
+ }
129
+ }
130
+ },
131
+ "metrics": {
132
+ "type": "object",
133
+ "patternProperties": {
134
+ "^[a-z0-9_]+$": {
135
+ "type": "object",
136
+ "properties": {
137
+ "type": {
138
+ "type": "string",
139
+ "enum": [
140
+ "percentile",
141
+ "median",
142
+ "average",
143
+ "boolean",
144
+ "count",
145
+ "count_distinct",
146
+ "date",
147
+ "max",
148
+ "min",
149
+ "number",
150
+ "string",
151
+ "sum",
152
+ "percent_of_previous",
153
+ "percent_of_total",
154
+ "running_total"
155
+ ]
156
+ },
157
+ "label": {
158
+ "type": "string",
159
+ "minLength": 1
160
+ },
161
+ "description": {
162
+ "type": "string",
163
+ "minLength": 1
164
+ },
165
+ "sql": {
166
+ "type": "string",
167
+ "minLength": 1
168
+ },
169
+ "hidden": {
170
+ "type": "boolean"
171
+ },
172
+ "round": {
173
+ "description": "Rounds the metric to the specified number of decimal places",
174
+ "type": "number",
175
+ "minimum": 0
176
+ },
177
+ "format": {
178
+ "type": "string"
179
+ },
180
+ "percentile": {
181
+ "type": "number"
182
+ },
183
+ "compact": {
184
+ "type": "string",
185
+ "enum": [
186
+ "thousands",
187
+ "millions",
188
+ "billions",
189
+ "trillions",
190
+ "thousand",
191
+ "million",
192
+ "billion",
193
+ "trillion",
194
+ "K",
195
+ "M",
196
+ "B",
197
+ "T",
198
+ "kilobytes",
199
+ "megabytes",
200
+ "gigabytes",
201
+ "terabytes",
202
+ "petabytes",
203
+ "kilobyte",
204
+ "megabyte",
205
+ "gigabyte",
206
+ "terabyte",
207
+ "petabyte",
208
+ "KB",
209
+ "MB",
210
+ "GB",
211
+ "TB",
212
+ "PB",
213
+ "kibibytes",
214
+ "mebibytes",
215
+ "gibibytes",
216
+ "tebibytes",
217
+ "pebibytes",
218
+ "kibibyte",
219
+ "mebibyte",
220
+ "gibibyte",
221
+ "tebibyte",
222
+ "pebibyte",
223
+ "KiB",
224
+ "MiB",
225
+ "GiB",
226
+ "TiB",
227
+ "PiB"
228
+ ]
229
+ },
230
+ "urls": {
231
+ "type": "array",
232
+ "items": {
233
+ "type": "object",
234
+ "properties": {
235
+ "url": {
236
+ "type": "string"
237
+ },
238
+ "label": {
239
+ "type": "string"
240
+ }
241
+ }
242
+ }
243
+ },
244
+ "tags": {
245
+ "oneOf": [
246
+ {
247
+ "type": "string"
248
+ },
249
+ {
250
+ "type": "array",
251
+ "items": {
252
+ "type": "string"
253
+ }
254
+ }
255
+ ]
256
+ },
257
+ "show_underlying_values": {
258
+ "type": "array",
259
+ "items": {
260
+ "type": "string"
261
+ }
262
+ },
263
+ "groups": {
264
+ "type": "array",
265
+ "description": "Groups are used to group dimensions and metrics in the sidebar. You can create nested groups up to 3 levels",
266
+ "items": {
267
+ "type": "string",
268
+ "minLength": 1
269
+ },
270
+ "maxItems": 3
271
+ },
272
+ "default_time_dimension": {
273
+ "type": "object",
274
+ "description": "Specifies the default time dimension field and interval to use for time-based analysis on this metric. If specified, both field and interval are required. If there is already a default time dimension set in the model, this will override it.",
275
+ "properties": {
276
+ "field": {
277
+ "type": "string",
278
+ "description": "The name of the field to use as the default time dimension"
279
+ },
280
+ "interval": {
281
+ "type": "string",
282
+ "enum": [
283
+ "DAY",
284
+ "WEEK",
285
+ "MONTH",
286
+ "YEAR"
287
+ ],
288
+ "description": "The default time interval to use when analyzing this time dimension"
289
+ }
290
+ },
291
+ "required": [
292
+ "field",
293
+ "interval"
294
+ ]
295
+ },
296
+ "spotlight": {
297
+ "type": "object",
298
+ "description": "Set the visibility and/or categories of a metric in Spotlight",
299
+ "properties": {
300
+ "visibility": {
301
+ "type": "string",
302
+ "enum": ["show", "hide"]
303
+ },
304
+ "categories": {
305
+ "type": "array",
306
+ "items": {
307
+ "type": "string"
308
+ },
309
+ "description": "An array of categories for the metric in Spotlight"
310
+ }
311
+ },
312
+ "anyOf": [
313
+ {
314
+ "required": [
315
+ "visibility"
316
+ ]
317
+ },
318
+ {
319
+ "required": [
320
+ "categories"
321
+ ]
322
+ }
323
+ ]
324
+ }
325
+ },
326
+ "required": ["type", "sql"]
327
+ }
328
+ }
329
+ },
330
+ "default_time_dimension": {
331
+ "type": "object",
332
+ "description": "Specifies the default time dimension field and interval to use for time-based analysis (on any metric in the model). If specified, both field and interval are required.",
333
+ "properties": {
334
+ "field": {
335
+ "type": "string",
336
+ "description": "The name of the field to use as the default time dimension"
337
+ },
338
+ "interval": {
339
+ "type": "string",
340
+ "enum": [
341
+ "DAY",
342
+ "WEEK",
343
+ "MONTH",
344
+ "YEAR"
345
+ ],
346
+ "description": "The default time interval to use when analyzing this time dimension"
347
+ }
348
+ },
349
+ "required": ["field", "interval"]
350
+ },
351
+ "spotlight": {
352
+ "type": "object",
353
+ "description": "Set the visibility and/or categories of a metric in Spotlight",
354
+ "properties": {
355
+ "visibility": {
356
+ "type": "string",
357
+ "enum": ["show", "hide"]
358
+ },
359
+ "categories": {
360
+ "type": "array",
361
+ "items": {
362
+ "type": "string"
363
+ },
364
+ "description": "An optional array of categories for all metrics in this model in Spotlight"
365
+ }
366
+ },
367
+ "anyOf": [
368
+ { "required": ["visibility"] },
369
+ { "required": ["categories"] }
370
+ ]
371
+ },
372
+ "primary_key": {
373
+ "oneOf": [
374
+ {
375
+ "type": "string"
376
+ },
377
+ {
378
+ "type": "array",
379
+ "items": {
380
+ "type": "string"
381
+ }
382
+ }
383
+ ]
384
+ },
385
+ "sql_where": {
386
+ "type": "string"
387
+ },
388
+ "sql_filter": {
389
+ "type": "string"
390
+ },
391
+ "sql_from": {
392
+ "type": "string"
393
+ },
394
+ "required_attributes": {
395
+ "type": "object",
396
+ "properties": {},
397
+ "additionalProperties": {
398
+ "oneOf": [
399
+ {
400
+ "type": "array",
401
+ "items": {
402
+ "type": "string"
403
+ }
404
+ },
405
+ {
406
+ "type": "string"
407
+ }
408
+ ]
409
+ }
410
+ },
411
+ "parameters": {
412
+ "type": ["object", "null"],
413
+ "description": "Define parameters that can be used in SQL queries",
414
+ "patternProperties": {
415
+ "^[a-zA-Z0-9_-]+$": {
416
+ "type": "object",
417
+ "properties": {
418
+ "label": {
419
+ "description": "The label of the parameter as it will be displayed in the UI",
420
+ "type": "string"
421
+ },
422
+ "type": {
423
+ "description": "The data type of the parameter (defaults to 'string' for backwards compatibility)",
424
+ "type": "string",
425
+ "enum": ["string", "number"],
426
+ "default": "string"
427
+ },
428
+ "description": {
429
+ "description": "A description of the parameter",
430
+ "type": "string"
431
+ },
432
+ "options": {
433
+ "description": "A list of possible values for the parameter",
434
+ "type": "array",
435
+ "items": {
436
+ "type": ["string", "number"]
437
+ }
438
+ },
439
+ "default": {
440
+ "description": "The default value(s) for the parameter",
441
+ "oneOf": [
442
+ {
443
+ "type": [
444
+ "string",
445
+ "number"
446
+ ]
447
+ },
448
+ {
449
+ "type": "array",
450
+ "items": {
451
+ "type": [
452
+ "string",
453
+ "number"
454
+ ]
455
+ }
456
+ }
457
+ ]
458
+ },
459
+ "multiple": {
460
+ "description": "Whether the parameter input will be a multi select",
461
+ "type": "boolean"
462
+ },
463
+ "allow_custom_values": {
464
+ "description": "Whether users can input custom values beyond predefined options",
465
+ "type": "boolean"
466
+ },
467
+ "options_from_dimension": {
468
+ "description": "Get parameter options from a dimension in a model",
469
+ "type": "object",
470
+ "properties": {
471
+ "model": {
472
+ "description": "The model containing the dimension",
473
+ "type": "string"
474
+ },
475
+ "dimension": {
476
+ "description": "The dimension to get options from",
477
+ "type": "string"
478
+ }
479
+ },
480
+ "required": [
481
+ "model",
482
+ "dimension"
483
+ ]
484
+ }
485
+ },
486
+ "required": ["label"]
487
+ }
488
+ }
489
+ },
490
+ "default_filters": {
491
+ "type": "array",
492
+ "description": "Default filters that are automatically applied when exploring this model",
493
+ "items": {
494
+ "type": "object",
495
+ "additionalProperties": {
496
+ "type": "string"
497
+ },
498
+ "properties": {
499
+ "required": {
500
+ "type": "boolean",
501
+ "description": "If true, this filter cannot be removed by users"
502
+ }
503
+ }
504
+ }
505
+ },
506
+ "required_filters": {
507
+ "type": "array",
508
+ "description": "Alias for default_filters (deprecated, use default_filters instead)",
509
+ "items": {
510
+ "type": "object",
511
+ "additionalProperties": {
512
+ "type": "string"
513
+ },
514
+ "properties": {
515
+ "required": {
516
+ "type": "boolean",
517
+ "description": "If true, this filter cannot be removed by users"
518
+ }
519
+ }
520
+ }
521
+ },
522
+ "explores": {
523
+ "type": "object",
524
+ "description": "Defines custom explores for this model",
525
+ "patternProperties": {
526
+ "^[a-zA-Z0-9_]+$": {
527
+ "type": "object",
528
+ "properties": {
529
+ "default_filters": {
530
+ "type": "array",
531
+ "description": "Default filters that are automatically applied when exploring this explore",
532
+ "items": {
533
+ "type": "object",
534
+ "additionalProperties": {
535
+ "type": "string"
536
+ },
537
+ "properties": {
538
+ "required": {
539
+ "type": "boolean",
540
+ "description": "If true, this filter cannot be removed by users"
541
+ }
542
+ }
543
+ }
544
+ },
545
+ "required_filters": {
546
+ "type": "array",
547
+ "description": "Alias for default_filters (deprecated, use default_filters instead)",
548
+ "items": {
549
+ "type": "object",
550
+ "additionalProperties": {
551
+ "type": "string"
552
+ },
553
+ "properties": {
554
+ "required": {
555
+ "type": "boolean",
556
+ "description": "If true, this filter cannot be removed by users"
557
+ }
558
+ }
559
+ }
560
+ }
561
+ }
562
+ }
563
+ }
564
+ }
565
+ }
566
+ },
567
+ "columns": {
568
+ "type": "array",
569
+ "items": {
570
+ "type": "object",
571
+ "properties": {
572
+ "name": {
573
+ "type": "string"
574
+ },
575
+ "description": {
576
+ "type": "string"
577
+ },
578
+ "quote": {
579
+ "type": "boolean"
580
+ },
581
+ "tests": {
582
+ "type": "array",
583
+ "items": {
584
+ "anyOf": [
585
+ {
586
+ "type": "object"
587
+ },
588
+ {
589
+ "type": "string"
590
+ }
591
+ ]
592
+ }
593
+ },
594
+ "data_tests": {
595
+ "type": "array",
596
+ "items": {
597
+ "anyOf": [
598
+ {
599
+ "type": "object"
600
+ },
601
+ {
602
+ "type": "string"
603
+ }
604
+ ]
605
+ }
606
+ },
607
+ "tags": {
608
+ "type": "array",
609
+ "items": {
610
+ "type": "string"
611
+ }
612
+ },
613
+ "meta": {
614
+ "type": "object",
615
+ "properties": {
616
+ "metrics": {
617
+ "type": "object",
618
+ "patternProperties": {
619
+ "^[a-z0-9_]+$": {
620
+ "type": "object",
621
+ "properties": {
622
+ "type": {
623
+ "type": "string",
624
+ "enum": [
625
+ "percentile",
626
+ "median",
627
+ "average",
628
+ "boolean",
629
+ "count",
630
+ "count_distinct",
631
+ "date",
632
+ "max",
633
+ "min",
634
+ "number",
635
+ "string",
636
+ "sum",
637
+ "percent_of_previous",
638
+ "percent_of_total",
639
+ "running_total"
640
+ ]
641
+ },
642
+ "label": {
643
+ "type": "string",
644
+ "minLength": 1
645
+ },
646
+ "description": {
647
+ "type": "string",
648
+ "minLength": 1
649
+ },
650
+ "sql": {
651
+ "type": "string",
652
+ "minLength": 1
653
+ },
654
+ "hidden": {
655
+ "type": "boolean"
656
+ },
657
+ "round": {
658
+ "type": "number",
659
+ "minimum": 0
660
+ },
661
+ "format": {
662
+ "type": "string"
663
+ },
664
+ "percentile": {
665
+ "type": "number"
666
+ },
667
+ "compact": {
668
+ "type": "string",
669
+ "enum": [
670
+ "thousands",
671
+ "millions",
672
+ "billions",
673
+ "trillions",
674
+ "thousand",
675
+ "million",
676
+ "billion",
677
+ "trillion",
678
+ "K",
679
+ "M",
680
+ "B",
681
+ "T",
682
+ "kilobytes",
683
+ "megabytes",
684
+ "gigabytes",
685
+ "terabytes",
686
+ "petabytes",
687
+ "kilobyte",
688
+ "megabyte",
689
+ "gigabyte",
690
+ "terabyte",
691
+ "petabyte",
692
+ "KB",
693
+ "MB",
694
+ "GB",
695
+ "TB",
696
+ "PB",
697
+ "kibibytes",
698
+ "mebibytes",
699
+ "gibibytes",
700
+ "tebibytes",
701
+ "pebibytes",
702
+ "kibibyte",
703
+ "mebibyte",
704
+ "gibibyte",
705
+ "tebibyte",
706
+ "pebibyte",
707
+ "KiB",
708
+ "MiB",
709
+ "GiB",
710
+ "TiB",
711
+ "PiB"
712
+ ]
713
+ },
714
+ "urls": {
715
+ "type": "array",
716
+ "items": {
717
+ "type": "object",
718
+ "properties": {
719
+ "url": {
720
+ "type": "string"
721
+ },
722
+ "label": {
723
+ "type": "string"
724
+ }
725
+ }
726
+ }
727
+ },
728
+ "tags": {
729
+ "oneOf": [
730
+ {
731
+ "type": "string"
732
+ },
733
+ {
734
+ "type": "array",
735
+ "items": {
736
+ "type": "string"
737
+ }
738
+ }
739
+ ]
740
+ },
741
+ "show_underlying_values": {
742
+ "type": "array",
743
+ "items": {
744
+ "type": "string"
745
+ }
746
+ },
747
+ "groups": {
748
+ "type": "array",
749
+ "description": "Groups are used to group dimensions and metrics in the sidebar. You can create nested groups up to 3 levels",
750
+ "items": {
751
+ "type": "string",
752
+ "minLength": 1
753
+ },
754
+ "maxItems": 3
755
+ },
756
+ "default_time_dimension": {
757
+ "type": "object",
758
+ "description": "Specifies the default time dimension field and interval to use for time-based analysis on this metric. If specified, both field and interval are required. If there is already a default time dimension set in the model, this will override it.",
759
+ "properties": {
760
+ "field": {
761
+ "type": "string",
762
+ "description": "The name of the field to use as the default time dimension"
763
+ },
764
+ "interval": {
765
+ "type": "string",
766
+ "enum": [
767
+ "DAY",
768
+ "WEEK",
769
+ "MONTH",
770
+ "YEAR"
771
+ ],
772
+ "description": "The default time interval to use when analyzing this time dimension"
773
+ }
774
+ },
775
+ "required": [
776
+ "field",
777
+ "interval"
778
+ ]
779
+ },
780
+ "spotlight": {
781
+ "type": "object",
782
+ "description": "Set the visibility and/or categories of a metric in Spotlight",
783
+ "properties": {
784
+ "visibility": {
785
+ "type": "string",
786
+ "enum": [
787
+ "show",
788
+ "hide"
789
+ ]
790
+ },
791
+ "categories": {
792
+ "type": "array",
793
+ "items": {
794
+ "type": "string"
795
+ },
796
+ "description": "An array of categories for the metric in Spotlight"
797
+ }
798
+ },
799
+ "anyOf": [
800
+ {
801
+ "required": [
802
+ "visibility"
803
+ ]
804
+ },
805
+ {
806
+ "required": [
807
+ "categories"
808
+ ]
809
+ }
810
+ ]
811
+ }
812
+ },
813
+ "required": ["type"]
814
+ }
815
+ }
816
+ },
817
+ "dimension": {
818
+ "type": "object",
819
+ "properties": {
820
+ "type": {
821
+ "type": "string",
822
+ "enum": [
823
+ "string",
824
+ "number",
825
+ "timestamp",
826
+ "date",
827
+ "boolean"
828
+ ]
829
+ },
830
+ "label": {
831
+ "type": "string",
832
+ "minLength": 1
833
+ },
834
+ "description": {
835
+ "type": "string",
836
+ "minLength": 1
837
+ },
838
+ "sql": {
839
+ "type": "string",
840
+ "minLength": 1
841
+ },
842
+ "hidden": {
843
+ "type": "boolean"
844
+ },
845
+ "round": {
846
+ "type": "number",
847
+ "minimum": 0
848
+ },
849
+ "format": {
850
+ "type": "string"
851
+ },
852
+ "time_intervals": {
853
+ "anyOf": [
854
+ {
855
+ "type": "array",
856
+ "items": {
857
+ "type": "string",
858
+ "enum": [
859
+ "RAW",
860
+ "DAY",
861
+ "WEEK",
862
+ "MONTH",
863
+ "QUARTER",
864
+ "YEAR",
865
+ "HOUR",
866
+ "MINUTE",
867
+ "SECOND",
868
+ "MILLISECOND",
869
+ "WEEK_NUM",
870
+ "MONTH_NUM",
871
+ "MONTH_NAME",
872
+ "DAY_OF_WEEK_NAME",
873
+ "QUARTER_NAME",
874
+ "DAY_OF_WEEK_INDEX",
875
+ "DAY_OF_MONTH_NUM",
876
+ "DAY_OF_YEAR_NUM",
877
+ "QUARTER_NUM",
878
+ "YEAR_NUM",
879
+ "HOUR_OF_DAY_NUM",
880
+ "MINUTE_OF_HOUR_NUM"
881
+ ]
882
+ }
883
+ },
884
+ {
885
+ "type": "string",
886
+ "enum": [
887
+ "default",
888
+ "OFF"
889
+ ]
890
+ }
891
+ ]
892
+ },
893
+ "groups": {
894
+ "type": "array",
895
+ "description": "Groups are used to group dimensions and metrics in the sidebar. You can create nested groups up to 3 levels",
896
+ "items": {
897
+ "type": "string",
898
+ "minLength": 1
899
+ },
900
+ "maxItems": 3
901
+ },
902
+ "compact": {
903
+ "type": "string",
904
+ "enum": [
905
+ "thousands",
906
+ "millions",
907
+ "billions",
908
+ "trillions",
909
+ "thousand",
910
+ "million",
911
+ "billion",
912
+ "trillion",
913
+ "K",
914
+ "M",
915
+ "B",
916
+ "T",
917
+ "kilobytes",
918
+ "megabytes",
919
+ "gigabytes",
920
+ "terabytes",
921
+ "petabytes",
922
+ "kilobyte",
923
+ "megabyte",
924
+ "gigabyte",
925
+ "terabyte",
926
+ "petabyte",
927
+ "KB",
928
+ "MB",
929
+ "GB",
930
+ "TB",
931
+ "PB",
932
+ "kibibytes",
933
+ "mebibytes",
934
+ "gibibytes",
935
+ "tebibytes",
936
+ "pebibytes",
937
+ "kibibyte",
938
+ "mebibyte",
939
+ "gibibyte",
940
+ "tebibyte",
941
+ "pebibyte",
942
+ "KiB",
943
+ "MiB",
944
+ "GiB",
945
+ "TiB",
946
+ "PiB"
947
+ ]
948
+ },
949
+ "urls": {
950
+ "type": "array",
951
+ "items": {
952
+ "type": "object",
953
+ "properties": {
954
+ "url": {
955
+ "type": "string"
956
+ },
957
+ "label": {
958
+ "type": "string"
959
+ }
960
+ }
961
+ }
962
+ },
963
+ "tags": {
964
+ "oneOf": [
965
+ {
966
+ "type": "string"
967
+ },
968
+ {
969
+ "type": "array",
970
+ "items": {
971
+ "type": "string"
972
+ }
973
+ }
974
+ ]
975
+ },
976
+ "required_attributes": {
977
+ "type": "object",
978
+ "properties": {},
979
+ "additionalProperties": {
980
+ "oneOf": [
981
+ {
982
+ "type": "array",
983
+ "items": {
984
+ "type": "string"
985
+ }
986
+ },
987
+ {
988
+ "type": "string"
989
+ }
990
+ ]
991
+ }
992
+ }
993
+ }
994
+ },
995
+ "additional_dimensions": {
996
+ "type": "object",
997
+ "patternProperties": {
998
+ "^[a-z0-9_]+$": {
999
+ "type": "object",
1000
+ "properties": {
1001
+ "type": {
1002
+ "type": "string",
1003
+ "enum": [
1004
+ "string",
1005
+ "number",
1006
+ "timestamp",
1007
+ "date",
1008
+ "boolean"
1009
+ ]
1010
+ },
1011
+ "label": {
1012
+ "type": "string",
1013
+ "minLength": 1
1014
+ },
1015
+ "description": {
1016
+ "type": "string",
1017
+ "minLength": 1
1018
+ },
1019
+ "sql": {
1020
+ "type": "string",
1021
+ "minLength": 1
1022
+ },
1023
+ "time_intervals": {
1024
+ "anyOf": [
1025
+ {
1026
+ "type": "array",
1027
+ "items": {
1028
+ "type": "string",
1029
+ "enum": [
1030
+ "RAW",
1031
+ "DAY",
1032
+ "WEEK",
1033
+ "MONTH",
1034
+ "QUARTER",
1035
+ "YEAR",
1036
+ "HOUR",
1037
+ "MINUTE",
1038
+ "SECOND",
1039
+ "MILLISECOND",
1040
+ "WEEK_NUM",
1041
+ "MONTH_NUM",
1042
+ "MONTH_NAME",
1043
+ "DAY_OF_WEEK_NAME",
1044
+ "QUARTER_NAME",
1045
+ "DAY_OF_WEEK_INDEX",
1046
+ "DAY_OF_MONTH_NUM",
1047
+ "DAY_OF_YEAR_NUM",
1048
+ "QUARTER_NUM",
1049
+ "YEAR_NUM",
1050
+ "HOUR_OF_DAY_NUM",
1051
+ "MINUTE_OF_HOUR_NUM"
1052
+ ]
1053
+ }
1054
+ },
1055
+ {
1056
+ "type": "string",
1057
+ "enum": [
1058
+ "default",
1059
+ "OFF"
1060
+ ]
1061
+ }
1062
+ ]
1063
+ },
1064
+ "hidden": {
1065
+ "type": "boolean"
1066
+ },
1067
+ "round": {
1068
+ "type": "number",
1069
+ "minimum": 0
1070
+ },
1071
+ "format": {
1072
+ "type": "string"
1073
+ },
1074
+ "compact": {
1075
+ "type": "string",
1076
+ "enum": [
1077
+ "thousands",
1078
+ "millions",
1079
+ "billions",
1080
+ "trillions",
1081
+ "thousand",
1082
+ "million",
1083
+ "billion",
1084
+ "trillion",
1085
+ "K",
1086
+ "M",
1087
+ "B",
1088
+ "T",
1089
+ "kilobytes",
1090
+ "megabytes",
1091
+ "gigabytes",
1092
+ "terabytes",
1093
+ "petabytes",
1094
+ "kilobyte",
1095
+ "megabyte",
1096
+ "gigabyte",
1097
+ "terabyte",
1098
+ "petabyte",
1099
+ "KB",
1100
+ "MB",
1101
+ "GB",
1102
+ "TB",
1103
+ "PB",
1104
+ "kibibytes",
1105
+ "mebibytes",
1106
+ "gibibytes",
1107
+ "tebibytes",
1108
+ "pebibytes",
1109
+ "kibibyte",
1110
+ "mebibyte",
1111
+ "gibibyte",
1112
+ "tebibyte",
1113
+ "pebibyte",
1114
+ "KiB",
1115
+ "MiB",
1116
+ "GiB",
1117
+ "TiB",
1118
+ "PiB"
1119
+ ]
1120
+ },
1121
+ "group_label": {
1122
+ "type": "string"
1123
+ },
1124
+ "urls": {
1125
+ "type": "array",
1126
+ "items": {
1127
+ "type": "object",
1128
+ "properties": {
1129
+ "url": {
1130
+ "type": "string"
1131
+ },
1132
+ "label": {
1133
+ "type": "string"
1134
+ }
1135
+ }
1136
+ }
1137
+ },
1138
+ "tags": {
1139
+ "oneOf": [
1140
+ {
1141
+ "type": "string"
1142
+ },
1143
+ {
1144
+ "type": "array",
1145
+ "items": {
1146
+ "type": "string"
1147
+ }
1148
+ }
1149
+ ]
1150
+ },
1151
+ "required_attributes": {
1152
+ "type": "object",
1153
+ "properties": {},
1154
+ "additionalProperties": {
1155
+ "oneOf": [
1156
+ {
1157
+ "type": "array",
1158
+ "items": {
1159
+ "type": "string"
1160
+ }
1161
+ },
1162
+ {
1163
+ "type": "string"
1164
+ }
1165
+ ]
1166
+ }
1167
+ }
1168
+ }
1169
+ }
1170
+ }
1171
+ }
1172
+ }
1173
+ }
1174
+ }
1175
+ }
1176
+ }
1177
+ },
1178
+ "required": ["name"]
1179
+ }
1180
+ },
1181
+ "metrics": {
1182
+ "type": "array",
1183
+ "items": {
1184
+ "type": "object",
1185
+ "properties": {
1186
+ "name": {
1187
+ "type": "string"
1188
+ },
1189
+ "model": {
1190
+ "type": "string"
1191
+ },
1192
+ "label": {
1193
+ "type": "string"
1194
+ },
1195
+ "description": {
1196
+ "type": "string"
1197
+ },
1198
+ "type": {
1199
+ "type": "string"
1200
+ },
1201
+ "sql": {
1202
+ "type": "string"
1203
+ },
1204
+ "timestamp": {
1205
+ "type": "string"
1206
+ },
1207
+ "time_grains": {
1208
+ "type": "array",
1209
+ "items": {
1210
+ "type": "string"
1211
+ }
1212
+ },
1213
+ "dimensions": {
1214
+ "type": "array",
1215
+ "items": {
1216
+ "type": "string"
1217
+ }
1218
+ },
1219
+ "filters": {
1220
+ "type": "array",
1221
+ "items": {
1222
+ "type": "object"
1223
+ }
1224
+ },
1225
+ "meta": {
1226
+ "type": "object",
1227
+ "properties": {
1228
+ "hidden": {
1229
+ "type": "boolean"
1230
+ },
1231
+ "round": {
1232
+ "type": "number",
1233
+ "minimum": 0
1234
+ },
1235
+ "format": {
1236
+ "type": "string"
1237
+ },
1238
+ "compact": {
1239
+ "type": "string",
1240
+ "enum": [
1241
+ "thousands",
1242
+ "millions",
1243
+ "billions",
1244
+ "trillions",
1245
+ "thousand",
1246
+ "million",
1247
+ "billion",
1248
+ "trillion",
1249
+ "K",
1250
+ "M",
1251
+ "B",
1252
+ "T",
1253
+ "kilobytes",
1254
+ "megabytes",
1255
+ "gigabytes",
1256
+ "terabytes",
1257
+ "petabytes",
1258
+ "kilobyte",
1259
+ "megabyte",
1260
+ "gigabyte",
1261
+ "terabyte",
1262
+ "petabyte",
1263
+ "KB",
1264
+ "MB",
1265
+ "GB",
1266
+ "TB",
1267
+ "PB",
1268
+ "kibibytes",
1269
+ "mebibytes",
1270
+ "gibibytes",
1271
+ "tebibytes",
1272
+ "pebibytes",
1273
+ "kibibyte",
1274
+ "mebibyte",
1275
+ "gibibyte",
1276
+ "tebibyte",
1277
+ "pebibyte",
1278
+ "KiB",
1279
+ "MiB",
1280
+ "GiB",
1281
+ "TiB",
1282
+ "PiB"
1283
+ ]
1284
+ },
1285
+ "urls": {
1286
+ "type": "array",
1287
+ "items": {
1288
+ "type": "object",
1289
+ "properties": {
1290
+ "url": {
1291
+ "type": "string"
1292
+ },
1293
+ "label": {
1294
+ "type": "string"
1295
+ }
1296
+ }
1297
+ }
1298
+ },
1299
+ "tags": {
1300
+ "oneOf": [
1301
+ {
1302
+ "type": "string"
1303
+ },
1304
+ {
1305
+ "type": "array",
1306
+ "items": {
1307
+ "type": "string"
1308
+ }
1309
+ }
1310
+ ]
1311
+ },
1312
+ "show_underlying_values": {
1313
+ "type": "array",
1314
+ "items": {
1315
+ "type": "string"
1316
+ }
1317
+ },
1318
+ "default_time_dimension": {
1319
+ "type": "object",
1320
+ "description": "Specifies the default time dimension field and interval to use for time-based analysis on this metric. If specified, both field and interval are required. If there is already a default time dimension set in the model, this will override it.",
1321
+ "properties": {
1322
+ "field": {
1323
+ "type": "string",
1324
+ "description": "The name of the field to use as the default time dimension"
1325
+ },
1326
+ "interval": {
1327
+ "type": "string",
1328
+ "enum": [
1329
+ "DAY",
1330
+ "WEEK",
1331
+ "MONTH",
1332
+ "YEAR"
1333
+ ],
1334
+ "description": "The default time interval to use when analyzing this time dimension"
1335
+ }
1336
+ },
1337
+ "required": ["field", "interval"]
1338
+ },
1339
+ "spotlight": {
1340
+ "type": "object",
1341
+ "description": "Set the visibility and/or categories of a metric in Spotlight",
1342
+ "properties": {
1343
+ "visibility": {
1344
+ "type": "string",
1345
+ "enum": ["show", "hide"]
1346
+ },
1347
+ "categories": {
1348
+ "type": "array",
1349
+ "items": {
1350
+ "type": "string"
1351
+ },
1352
+ "description": "An array of categories for the metric in Spotlight"
1353
+ }
1354
+ },
1355
+ "anyOf": [
1356
+ { "required": ["visibility"] },
1357
+ { "required": ["categories"] }
1358
+ ]
1359
+ }
1360
+ }
1361
+ }
1362
+ },
1363
+ "required": ["name"]
1364
+ }
1365
+ },
1366
+ "seeds": {
1367
+ "type": "array",
1368
+ "items": {
1369
+ "type": "object"
1370
+ }
1371
+ },
1372
+ "snapshots": {
1373
+ "type": "array",
1374
+ "items": {
1375
+ "type": "object"
1376
+ }
1377
+ },
1378
+ "tests": {
1379
+ "type": "array",
1380
+ "items": {
1381
+ "type": "object"
1382
+ }
1383
+ },
1384
+ "unit_tests": {
1385
+ "type": "array",
1386
+ "items": {
1387
+ "type": "object"
1388
+ }
1389
+ },
1390
+ "sources": {
1391
+ "type": "array",
1392
+ "items": {
1393
+ "type": "object"
1394
+ }
1395
+ },
1396
+ "analyses": {
1397
+ "type": "array",
1398
+ "items": {
1399
+ "type": "object"
1400
+ }
1401
+ },
1402
+ "exposures": {
1403
+ "type": "array",
1404
+ "items": {
1405
+ "type": "object"
1406
+ }
1407
+ },
1408
+ "macros": {
1409
+ "type": "array",
1410
+ "items": {
1411
+ "type": "object"
1412
+ }
1413
+ }
1414
+ },
1415
+ "additionalProperties": false,
1416
+ "required": []
1417
+ }