@lightdash/common 2.228.1 → 2.229.0

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 (2452) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/esm/.tsbuildinfo +1 -1
  3. package/dist/types/.tsbuildinfo +1 -1
  4. package/package.json +1 -1
  5. package/dist/cjs/authorization/canMutateVerifiedContent.test.d.ts +0 -2
  6. package/dist/cjs/authorization/canMutateVerifiedContent.test.d.ts.map +0 -1
  7. package/dist/cjs/authorization/canMutateVerifiedContent.test.js +0 -42
  8. package/dist/cjs/authorization/canMutateVerifiedContent.test.js.map +0 -1
  9. package/dist/cjs/authorization/collapseAbilityRules.test.d.ts +0 -2
  10. package/dist/cjs/authorization/collapseAbilityRules.test.d.ts.map +0 -1
  11. package/dist/cjs/authorization/collapseAbilityRules.test.js +0 -308
  12. package/dist/cjs/authorization/collapseAbilityRules.test.js.map +0 -1
  13. package/dist/cjs/authorization/embedPermissions.test.d.ts +0 -2
  14. package/dist/cjs/authorization/embedPermissions.test.d.ts.map +0 -1
  15. package/dist/cjs/authorization/embedPermissions.test.js +0 -233
  16. package/dist/cjs/authorization/embedPermissions.test.js.map +0 -1
  17. package/dist/cjs/authorization/getDashboardDeleteAccess.test.d.ts +0 -2
  18. package/dist/cjs/authorization/getDashboardDeleteAccess.test.d.ts.map +0 -1
  19. package/dist/cjs/authorization/getDashboardDeleteAccess.test.js +0 -127
  20. package/dist/cjs/authorization/getDashboardDeleteAccess.test.js.map +0 -1
  21. package/dist/cjs/authorization/getUserAbilityBuilder.test.d.ts +0 -2
  22. package/dist/cjs/authorization/getUserAbilityBuilder.test.d.ts.map +0 -1
  23. package/dist/cjs/authorization/getUserAbilityBuilder.test.js +0 -771
  24. package/dist/cjs/authorization/getUserAbilityBuilder.test.js.map +0 -1
  25. package/dist/cjs/authorization/index.mock.d.ts +0 -41
  26. package/dist/cjs/authorization/index.mock.d.ts.map +0 -1
  27. package/dist/cjs/authorization/index.mock.js +0 -47
  28. package/dist/cjs/authorization/index.mock.js.map +0 -1
  29. package/dist/cjs/authorization/index.test.d.ts +0 -2
  30. package/dist/cjs/authorization/index.test.d.ts.map +0 -1
  31. package/dist/cjs/authorization/index.test.js +0 -252
  32. package/dist/cjs/authorization/index.test.js.map +0 -1
  33. package/dist/cjs/authorization/jwtAbility.test.d.ts +0 -2
  34. package/dist/cjs/authorization/jwtAbility.test.d.ts.map +0 -1
  35. package/dist/cjs/authorization/jwtAbility.test.js +0 -594
  36. package/dist/cjs/authorization/jwtAbility.test.js.map +0 -1
  37. package/dist/cjs/authorization/organizationMemberAbility.mock.d.ts +0 -8
  38. package/dist/cjs/authorization/organizationMemberAbility.mock.d.ts.map +0 -1
  39. package/dist/cjs/authorization/organizationMemberAbility.mock.js +0 -39
  40. package/dist/cjs/authorization/organizationMemberAbility.mock.js.map +0 -1
  41. package/dist/cjs/authorization/organizationMemberAbility.test.d.ts +0 -2
  42. package/dist/cjs/authorization/organizationMemberAbility.test.d.ts.map +0 -1
  43. package/dist/cjs/authorization/organizationMemberAbility.test.js +0 -1486
  44. package/dist/cjs/authorization/organizationMemberAbility.test.js.map +0 -1
  45. package/dist/cjs/authorization/parseScopes.test.d.ts +0 -2
  46. package/dist/cjs/authorization/parseScopes.test.d.ts.map +0 -1
  47. package/dist/cjs/authorization/parseScopes.test.js +0 -125
  48. package/dist/cjs/authorization/parseScopes.test.js.map +0 -1
  49. package/dist/cjs/authorization/projectMemberAbility.mock.d.ts +0 -7
  50. package/dist/cjs/authorization/projectMemberAbility.mock.d.ts.map +0 -1
  51. package/dist/cjs/authorization/projectMemberAbility.mock.js +0 -30
  52. package/dist/cjs/authorization/projectMemberAbility.mock.js.map +0 -1
  53. package/dist/cjs/authorization/projectMemberAbility.test.d.ts +0 -2
  54. package/dist/cjs/authorization/projectMemberAbility.test.d.ts.map +0 -1
  55. package/dist/cjs/authorization/projectMemberAbility.test.js +0 -1191
  56. package/dist/cjs/authorization/projectMemberAbility.test.js.map +0 -1
  57. package/dist/cjs/authorization/roadmapAccess.test.d.ts +0 -2
  58. package/dist/cjs/authorization/roadmapAccess.test.d.ts.map +0 -1
  59. package/dist/cjs/authorization/roadmapAccess.test.js +0 -161
  60. package/dist/cjs/authorization/roadmapAccess.test.js.map +0 -1
  61. package/dist/cjs/authorization/rolePresets.test.d.ts +0 -2
  62. package/dist/cjs/authorization/rolePresets.test.d.ts.map +0 -1
  63. package/dist/cjs/authorization/rolePresets.test.js +0 -67
  64. package/dist/cjs/authorization/rolePresets.test.js.map +0 -1
  65. package/dist/cjs/authorization/roleToScopeMapping.test.d.ts +0 -2
  66. package/dist/cjs/authorization/roleToScopeMapping.test.d.ts.map +0 -1
  67. package/dist/cjs/authorization/roleToScopeMapping.test.js +0 -625
  68. package/dist/cjs/authorization/roleToScopeMapping.test.js.map +0 -1
  69. package/dist/cjs/authorization/roleToScopeMapping.testUtils.d.ts +0 -1615
  70. package/dist/cjs/authorization/roleToScopeMapping.testUtils.d.ts.map +0 -1
  71. package/dist/cjs/authorization/roleToScopeMapping.testUtils.js +0 -345
  72. package/dist/cjs/authorization/roleToScopeMapping.testUtils.js.map +0 -1
  73. package/dist/cjs/authorization/roleToScopeParity.test.d.ts +0 -2
  74. package/dist/cjs/authorization/roleToScopeParity.test.d.ts.map +0 -1
  75. package/dist/cjs/authorization/roleToScopeParity.test.js +0 -337
  76. package/dist/cjs/authorization/roleToScopeParity.test.js.map +0 -1
  77. package/dist/cjs/authorization/scopeAbilityBuilder.test.d.ts +0 -2
  78. package/dist/cjs/authorization/scopeAbilityBuilder.test.d.ts.map +0 -1
  79. package/dist/cjs/authorization/scopeAbilityBuilder.test.js +0 -1873
  80. package/dist/cjs/authorization/scopeAbilityBuilder.test.js.map +0 -1
  81. package/dist/cjs/authorization/scopes.level.test.d.ts +0 -2
  82. package/dist/cjs/authorization/scopes.level.test.d.ts.map +0 -1
  83. package/dist/cjs/authorization/scopes.level.test.js +0 -57
  84. package/dist/cjs/authorization/scopes.level.test.js.map +0 -1
  85. package/dist/cjs/authorization/scopes.test.d.ts +0 -2
  86. package/dist/cjs/authorization/scopes.test.d.ts.map +0 -1
  87. package/dist/cjs/authorization/scopes.test.js +0 -199
  88. package/dist/cjs/authorization/scopes.test.js.map +0 -1
  89. package/dist/cjs/authorization/serviceAccountAbility.test.d.ts +0 -2
  90. package/dist/cjs/authorization/serviceAccountAbility.test.d.ts.map +0 -1
  91. package/dist/cjs/authorization/serviceAccountAbility.test.js +0 -224
  92. package/dist/cjs/authorization/serviceAccountAbility.test.js.map +0 -1
  93. package/dist/cjs/authorization/space/customRoleProjectRole.test.d.ts +0 -2
  94. package/dist/cjs/authorization/space/customRoleProjectRole.test.d.ts.map +0 -1
  95. package/dist/cjs/authorization/space/customRoleProjectRole.test.js +0 -56
  96. package/dist/cjs/authorization/space/customRoleProjectRole.test.js.map +0 -1
  97. package/dist/cjs/authorization/space/spaceAccessResolver.test.d.ts +0 -2
  98. package/dist/cjs/authorization/space/spaceAccessResolver.test.d.ts.map +0 -1
  99. package/dist/cjs/authorization/space/spaceAccessResolver.test.js +0 -709
  100. package/dist/cjs/authorization/space/spaceAccessResolver.test.js.map +0 -1
  101. package/dist/cjs/compiler/exploreCompiler.mock.d.ts +0 -78
  102. package/dist/cjs/compiler/exploreCompiler.mock.d.ts.map +0 -1
  103. package/dist/cjs/compiler/exploreCompiler.mock.js +0 -2451
  104. package/dist/cjs/compiler/exploreCompiler.mock.js.map +0 -1
  105. package/dist/cjs/compiler/exploreCompiler.test.d.ts +0 -2
  106. package/dist/cjs/compiler/exploreCompiler.test.d.ts.map +0 -1
  107. package/dist/cjs/compiler/exploreCompiler.test.js +0 -1755
  108. package/dist/cjs/compiler/exploreCompiler.test.js.map +0 -1
  109. package/dist/cjs/compiler/fieldSetExpander.test.d.ts +0 -2
  110. package/dist/cjs/compiler/fieldSetExpander.test.d.ts.map +0 -1
  111. package/dist/cjs/compiler/fieldSetExpander.test.js +0 -206
  112. package/dist/cjs/compiler/fieldSetExpander.test.js.map +0 -1
  113. package/dist/cjs/compiler/filtersCompiler.mock.d.ts +0 -586
  114. package/dist/cjs/compiler/filtersCompiler.mock.d.ts.map +0 -1
  115. package/dist/cjs/compiler/filtersCompiler.mock.js +0 -795
  116. package/dist/cjs/compiler/filtersCompiler.mock.js.map +0 -1
  117. package/dist/cjs/compiler/filtersCompiler.test.d.ts +0 -2
  118. package/dist/cjs/compiler/filtersCompiler.test.d.ts.map +0 -1
  119. package/dist/cjs/compiler/filtersCompiler.test.js +0 -2197
  120. package/dist/cjs/compiler/filtersCompiler.test.js.map +0 -1
  121. package/dist/cjs/compiler/joinInflation.test.d.ts +0 -2
  122. package/dist/cjs/compiler/joinInflation.test.d.ts.map +0 -1
  123. package/dist/cjs/compiler/joinInflation.test.js +0 -30
  124. package/dist/cjs/compiler/joinInflation.test.js.map +0 -1
  125. package/dist/cjs/compiler/lightdashModelConverter.test.d.ts +0 -2
  126. package/dist/cjs/compiler/lightdashModelConverter.test.d.ts.map +0 -1
  127. package/dist/cjs/compiler/lightdashModelConverter.test.js +0 -37
  128. package/dist/cjs/compiler/lightdashModelConverter.test.js.map +0 -1
  129. package/dist/cjs/compiler/lightdashProjectConfig.test.d.ts +0 -2
  130. package/dist/cjs/compiler/lightdashProjectConfig.test.d.ts.map +0 -1
  131. package/dist/cjs/compiler/lightdashProjectConfig.test.js +0 -96
  132. package/dist/cjs/compiler/lightdashProjectConfig.test.js.map +0 -1
  133. package/dist/cjs/compiler/parameters.test.d.ts +0 -2
  134. package/dist/cjs/compiler/parameters.test.d.ts.map +0 -1
  135. package/dist/cjs/compiler/parameters.test.js +0 -589
  136. package/dist/cjs/compiler/parameters.test.js.map +0 -1
  137. package/dist/cjs/compiler/translator.mock.d.ts +0 -159
  138. package/dist/cjs/compiler/translator.mock.d.ts.map +0 -1
  139. package/dist/cjs/compiler/translator.mock.js +0 -2236
  140. package/dist/cjs/compiler/translator.mock.js.map +0 -1
  141. package/dist/cjs/compiler/translator.test.d.ts +0 -2
  142. package/dist/cjs/compiler/translator.test.d.ts.map +0 -1
  143. package/dist/cjs/compiler/translator.test.js +0 -2687
  144. package/dist/cjs/compiler/translator.test.js.map +0 -1
  145. package/dist/cjs/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.d.ts +0 -65
  146. package/dist/cjs/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.d.ts.map +0 -1
  147. package/dist/cjs/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.js +0 -223
  148. package/dist/cjs/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.js.map +0 -1
  149. package/dist/cjs/dbt/DbtSchemaEditor/DbtSchemaEditor.test.d.ts +0 -2
  150. package/dist/cjs/dbt/DbtSchemaEditor/DbtSchemaEditor.test.d.ts.map +0 -1
  151. package/dist/cjs/dbt/DbtSchemaEditor/DbtSchemaEditor.test.js +0 -278
  152. package/dist/cjs/dbt/DbtSchemaEditor/DbtSchemaEditor.test.js.map +0 -1
  153. package/dist/cjs/dbt/manifest.test.d.ts +0 -2
  154. package/dist/cjs/dbt/manifest.test.d.ts.map +0 -1
  155. package/dist/cjs/dbt/manifest.test.js +0 -418
  156. package/dist/cjs/dbt/manifest.test.js.map +0 -1
  157. package/dist/cjs/dbt/metricFlow.test.d.ts +0 -2
  158. package/dist/cjs/dbt/metricFlow.test.d.ts.map +0 -1
  159. package/dist/cjs/dbt/metricFlow.test.js +0 -1345
  160. package/dist/cjs/dbt/metricFlow.test.js.map +0 -1
  161. package/dist/cjs/dbt/validation.csp.test.d.ts +0 -1
  162. package/dist/cjs/dbt/validation.csp.test.d.ts.map +0 -1
  163. package/dist/cjs/dbt/validation.csp.test.js +0 -66
  164. package/dist/cjs/dbt/validation.csp.test.js.map +0 -1
  165. package/dist/cjs/dbt/validation.test.d.ts +0 -2
  166. package/dist/cjs/dbt/validation.test.d.ts.map +0 -1
  167. package/dist/cjs/dbt/validation.test.js +0 -204
  168. package/dist/cjs/dbt/validation.test.js.map +0 -1
  169. package/dist/cjs/ee/AiAgent/aiAgentReviewClassifierTypes.test.d.ts +0 -2
  170. package/dist/cjs/ee/AiAgent/aiAgentReviewClassifierTypes.test.d.ts.map +0 -1
  171. package/dist/cjs/ee/AiAgent/aiAgentReviewClassifierTypes.test.js +0 -548
  172. package/dist/cjs/ee/AiAgent/aiAgentReviewClassifierTypes.test.js.map +0 -1
  173. package/dist/cjs/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.test.d.ts +0 -2
  174. package/dist/cjs/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.test.d.ts.map +0 -1
  175. package/dist/cjs/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.test.js +0 -56
  176. package/dist/cjs/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.test.js.map +0 -1
  177. package/dist/cjs/ee/AiAgent/dashboardContext.test.d.ts +0 -2
  178. package/dist/cjs/ee/AiAgent/dashboardContext.test.d.ts.map +0 -1
  179. package/dist/cjs/ee/AiAgent/dashboardContext.test.js +0 -61
  180. package/dist/cjs/ee/AiAgent/dashboardContext.test.js.map +0 -1
  181. package/dist/cjs/ee/AiAgent/filterExploreByTags.test.d.ts +0 -2
  182. package/dist/cjs/ee/AiAgent/filterExploreByTags.test.d.ts.map +0 -1
  183. package/dist/cjs/ee/AiAgent/filterExploreByTags.test.js +0 -636
  184. package/dist/cjs/ee/AiAgent/filterExploreByTags.test.js.map +0 -1
  185. package/dist/cjs/ee/AiAgent/projectContext.test.d.ts +0 -2
  186. package/dist/cjs/ee/AiAgent/projectContext.test.d.ts.map +0 -1
  187. package/dist/cjs/ee/AiAgent/projectContext.test.js +0 -534
  188. package/dist/cjs/ee/AiAgent/projectContext.test.js.map +0 -1
  189. package/dist/cjs/ee/AiAgent/schemas/McpSchemaCompatLayer.test.d.ts +0 -2
  190. package/dist/cjs/ee/AiAgent/schemas/McpSchemaCompatLayer.test.d.ts.map +0 -1
  191. package/dist/cjs/ee/AiAgent/schemas/McpSchemaCompatLayer.test.js +0 -544
  192. package/dist/cjs/ee/AiAgent/schemas/McpSchemaCompatLayer.test.js.map +0 -1
  193. package/dist/cjs/ee/AiAgent/schemas/defineTool.test.d.ts +0 -2
  194. package/dist/cjs/ee/AiAgent/schemas/defineTool.test.d.ts.map +0 -1
  195. package/dist/cjs/ee/AiAgent/schemas/defineTool.test.js +0 -283
  196. package/dist/cjs/ee/AiAgent/schemas/defineTool.test.js.map +0 -1
  197. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/examples.test.d.ts +0 -2
  198. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/examples.test.d.ts.map +0 -1
  199. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/examples.test.js +0 -88
  200. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/examples.test.js.map +0 -1
  201. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/expressionSchemas.test.d.ts +0 -2
  202. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/expressionSchemas.test.d.ts.map +0 -1
  203. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/expressionSchemas.test.js +0 -387
  204. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/expressionSchemas.test.js.map +0 -1
  205. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/operators.test.d.ts +0 -2
  206. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/operators.test.d.ts.map +0 -1
  207. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/operators.test.js +0 -16
  208. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/operators.test.js.map +0 -1
  209. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/parse.test.d.ts +0 -2
  210. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/parse.test.d.ts.map +0 -1
  211. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/parse.test.js +0 -365
  212. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/parse.test.js.map +0 -1
  213. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/resolvedArgs.test.d.ts +0 -2
  214. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/resolvedArgs.test.d.ts.map +0 -1
  215. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/resolvedArgs.test.js +0 -220
  216. package/dist/cjs/ee/AiAgent/schemas/filterExpressions/resolvedArgs.test.js.map +0 -1
  217. package/dist/cjs/ee/AiAgent/schemas/persistedRunQueryArgs.test.d.ts +0 -2
  218. package/dist/cjs/ee/AiAgent/schemas/persistedRunQueryArgs.test.d.ts.map +0 -1
  219. package/dist/cjs/ee/AiAgent/schemas/persistedRunQueryArgs.test.js +0 -100
  220. package/dist/cjs/ee/AiAgent/schemas/persistedRunQueryArgs.test.js.map +0 -1
  221. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts +0 -2
  222. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts.map +0 -1
  223. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js +0 -154
  224. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js.map +0 -1
  225. package/dist/cjs/ee/AiAgent/schemas/toolSchemaBuilder.test.d.ts +0 -2
  226. package/dist/cjs/ee/AiAgent/schemas/toolSchemaBuilder.test.d.ts.map +0 -1
  227. package/dist/cjs/ee/AiAgent/schemas/toolSchemaBuilder.test.js +0 -21
  228. package/dist/cjs/ee/AiAgent/schemas/toolSchemaBuilder.test.js.map +0 -1
  229. package/dist/cjs/ee/AiAgent/schemas/tools/builtInToolResultGuard.test.d.ts +0 -2
  230. package/dist/cjs/ee/AiAgent/schemas/tools/builtInToolResultGuard.test.d.ts.map +0 -1
  231. package/dist/cjs/ee/AiAgent/schemas/tools/builtInToolResultGuard.test.js +0 -36
  232. package/dist/cjs/ee/AiAgent/schemas/tools/builtInToolResultGuard.test.js.map +0 -1
  233. package/dist/cjs/ee/AiAgent/schemas/tools/toolComposerQueryArgs.test.d.ts +0 -2
  234. package/dist/cjs/ee/AiAgent/schemas/tools/toolComposerQueryArgs.test.d.ts.map +0 -1
  235. package/dist/cjs/ee/AiAgent/schemas/tools/toolComposerQueryArgs.test.js +0 -98
  236. package/dist/cjs/ee/AiAgent/schemas/tools/toolComposerQueryArgs.test.js.map +0 -1
  237. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.test.d.ts +0 -2
  238. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.test.d.ts.map +0 -1
  239. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.test.js +0 -60
  240. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.test.js.map +0 -1
  241. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.test.d.ts +0 -2
  242. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.test.d.ts.map +0 -1
  243. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.test.js +0 -9
  244. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.test.js.map +0 -1
  245. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.d.ts +0 -2
  246. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.d.ts.map +0 -1
  247. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.js +0 -68
  248. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.js.map +0 -1
  249. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.d.ts +0 -2
  250. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.d.ts.map +0 -1
  251. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.js +0 -27
  252. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.js.map +0 -1
  253. package/dist/cjs/ee/AiAgent/schemas/tools/toolJsonSchemaEncoding.test.d.ts +0 -2
  254. package/dist/cjs/ee/AiAgent/schemas/tools/toolJsonSchemaEncoding.test.d.ts.map +0 -1
  255. package/dist/cjs/ee/AiAgent/schemas/tools/toolJsonSchemaEncoding.test.js +0 -176
  256. package/dist/cjs/ee/AiAgent/schemas/tools/toolJsonSchemaEncoding.test.js.map +0 -1
  257. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunQueryArgs.test.d.ts +0 -2
  258. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunQueryArgs.test.d.ts.map +0 -1
  259. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunQueryArgs.test.js +0 -388
  260. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunQueryArgs.test.js.map +0 -1
  261. package/dist/cjs/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.test.d.ts +0 -2
  262. package/dist/cjs/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.test.d.ts.map +0 -1
  263. package/dist/cjs/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.test.js +0 -88
  264. package/dist/cjs/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.test.js.map +0 -1
  265. package/dist/cjs/ee/AiAgent/schemas/tools/toolUpdateUserNameArgs.test.d.ts +0 -2
  266. package/dist/cjs/ee/AiAgent/schemas/tools/toolUpdateUserNameArgs.test.d.ts.map +0 -1
  267. package/dist/cjs/ee/AiAgent/schemas/tools/toolUpdateUserNameArgs.test.js +0 -34
  268. package/dist/cjs/ee/AiAgent/schemas/tools/toolUpdateUserNameArgs.test.js.map +0 -1
  269. package/dist/cjs/ee/AiAgent/schemas/zod4BehaviorCompatibility.test.d.ts +0 -2
  270. package/dist/cjs/ee/AiAgent/schemas/zod4BehaviorCompatibility.test.d.ts.map +0 -1
  271. package/dist/cjs/ee/AiAgent/schemas/zod4BehaviorCompatibility.test.js +0 -98
  272. package/dist/cjs/ee/AiAgent/schemas/zod4BehaviorCompatibility.test.js.map +0 -1
  273. package/dist/cjs/ee/AiAgent/utils.test.d.ts +0 -2
  274. package/dist/cjs/ee/AiAgent/utils.test.d.ts.map +0 -1
  275. package/dist/cjs/ee/AiAgent/utils.test.js +0 -544
  276. package/dist/cjs/ee/AiAgent/utils.test.js.map +0 -1
  277. package/dist/cjs/ee/aiDeepResearch/markdown.test.d.ts +0 -2
  278. package/dist/cjs/ee/aiDeepResearch/markdown.test.d.ts.map +0 -1
  279. package/dist/cjs/ee/aiDeepResearch/markdown.test.js +0 -331
  280. package/dist/cjs/ee/aiDeepResearch/markdown.test.js.map +0 -1
  281. package/dist/cjs/ee/aiDeepResearch/types.test.d.ts +0 -2
  282. package/dist/cjs/ee/aiDeepResearch/types.test.d.ts.map +0 -1
  283. package/dist/cjs/ee/aiDeepResearch/types.test.js +0 -9
  284. package/dist/cjs/ee/aiDeepResearch/types.test.js.map +0 -1
  285. package/dist/cjs/ee/aiWriteback/mcpTask.test.d.ts +0 -2
  286. package/dist/cjs/ee/aiWriteback/mcpTask.test.d.ts.map +0 -1
  287. package/dist/cjs/ee/aiWriteback/mcpTask.test.js +0 -36
  288. package/dist/cjs/ee/aiWriteback/mcpTask.test.js.map +0 -1
  289. package/dist/cjs/ee/apps/chartTypeIcons.test.d.ts +0 -2
  290. package/dist/cjs/ee/apps/chartTypeIcons.test.d.ts.map +0 -1
  291. package/dist/cjs/ee/apps/chartTypeIcons.test.js +0 -30
  292. package/dist/cjs/ee/apps/chartTypeIcons.test.js.map +0 -1
  293. package/dist/cjs/ee/apps/code.test.d.ts +0 -2
  294. package/dist/cjs/ee/apps/code.test.d.ts.map +0 -1
  295. package/dist/cjs/ee/apps/code.test.js +0 -512
  296. package/dist/cjs/ee/apps/code.test.js.map +0 -1
  297. package/dist/cjs/ee/apps/customChartTypeSerializer.test.d.ts +0 -2
  298. package/dist/cjs/ee/apps/customChartTypeSerializer.test.d.ts.map +0 -1
  299. package/dist/cjs/ee/apps/customChartTypeSerializer.test.js +0 -147
  300. package/dist/cjs/ee/apps/customChartTypeSerializer.test.js.map +0 -1
  301. package/dist/cjs/ee/apps/dataAppVizSchemaChanges.test.d.ts +0 -2
  302. package/dist/cjs/ee/apps/dataAppVizSchemaChanges.test.d.ts.map +0 -1
  303. package/dist/cjs/ee/apps/dataAppVizSchemaChanges.test.js +0 -155
  304. package/dist/cjs/ee/apps/dataAppVizSchemaChanges.test.js.map +0 -1
  305. package/dist/cjs/ee/apps/dataReferenceChecker.test.d.ts +0 -2
  306. package/dist/cjs/ee/apps/dataReferenceChecker.test.d.ts.map +0 -1
  307. package/dist/cjs/ee/apps/dataReferenceChecker.test.js +0 -382
  308. package/dist/cjs/ee/apps/dataReferenceChecker.test.js.map +0 -1
  309. package/dist/cjs/ee/apps/dataReferences.test.d.ts +0 -2
  310. package/dist/cjs/ee/apps/dataReferences.test.d.ts.map +0 -1
  311. package/dist/cjs/ee/apps/dataReferences.test.js +0 -609
  312. package/dist/cjs/ee/apps/dataReferences.test.js.map +0 -1
  313. package/dist/cjs/ee/apps/dataReferencesDocs.test.d.ts +0 -2
  314. package/dist/cjs/ee/apps/dataReferencesDocs.test.d.ts.map +0 -1
  315. package/dist/cjs/ee/apps/dataReferencesDocs.test.js +0 -141
  316. package/dist/cjs/ee/apps/dataReferencesDocs.test.js.map +0 -1
  317. package/dist/cjs/ee/apps/deliveryCapture.test.d.ts +0 -2
  318. package/dist/cjs/ee/apps/deliveryCapture.test.d.ts.map +0 -1
  319. package/dist/cjs/ee/apps/deliveryCapture.test.js +0 -207
  320. package/dist/cjs/ee/apps/deliveryCapture.test.js.map +0 -1
  321. package/dist/cjs/ee/apps/elementReference.test.d.ts +0 -2
  322. package/dist/cjs/ee/apps/elementReference.test.d.ts.map +0 -1
  323. package/dist/cjs/ee/apps/elementReference.test.js +0 -36
  324. package/dist/cjs/ee/apps/elementReference.test.js.map +0 -1
  325. package/dist/cjs/ee/apps/registry.test.d.ts +0 -2
  326. package/dist/cjs/ee/apps/registry.test.d.ts.map +0 -1
  327. package/dist/cjs/ee/apps/registry.test.js +0 -92
  328. package/dist/cjs/ee/apps/registry.test.js.map +0 -1
  329. package/dist/cjs/ee/apps/types.test.d.ts +0 -2
  330. package/dist/cjs/ee/apps/types.test.d.ts.map +0 -1
  331. package/dist/cjs/ee/apps/types.test.js +0 -443
  332. package/dist/cjs/ee/apps/types.test.js.map +0 -1
  333. package/dist/cjs/ee/embed/index.test.d.ts +0 -2
  334. package/dist/cjs/ee/embed/index.test.d.ts.map +0 -1
  335. package/dist/cjs/ee/embed/index.test.js +0 -159
  336. package/dist/cjs/ee/embed/index.test.js.map +0 -1
  337. package/dist/cjs/ee/homepage/schema.test.d.ts +0 -2
  338. package/dist/cjs/ee/homepage/schema.test.d.ts.map +0 -1
  339. package/dist/cjs/ee/homepage/schema.test.js +0 -340
  340. package/dist/cjs/ee/homepage/schema.test.js.map +0 -1
  341. package/dist/cjs/ee/homepage/verifiedSource.schema.test.d.ts +0 -2
  342. package/dist/cjs/ee/homepage/verifiedSource.schema.test.d.ts.map +0 -1
  343. package/dist/cjs/ee/homepage/verifiedSource.schema.test.js +0 -29
  344. package/dist/cjs/ee/homepage/verifiedSource.schema.test.js.map +0 -1
  345. package/dist/cjs/ee/mcp/tasks.test.d.ts +0 -2
  346. package/dist/cjs/ee/mcp/tasks.test.d.ts.map +0 -1
  347. package/dist/cjs/ee/mcp/tasks.test.js +0 -52
  348. package/dist/cjs/ee/mcp/tasks.test.js.map +0 -1
  349. package/dist/cjs/ee/preAggregates/dimensionEligibility.test.d.ts +0 -2
  350. package/dist/cjs/ee/preAggregates/dimensionEligibility.test.d.ts.map +0 -1
  351. package/dist/cjs/ee/preAggregates/dimensionEligibility.test.js +0 -218
  352. package/dist/cjs/ee/preAggregates/dimensionEligibility.test.js.map +0 -1
  353. package/dist/cjs/ee/preAggregates/metricEligibility.test.d.ts +0 -2
  354. package/dist/cjs/ee/preAggregates/metricEligibility.test.d.ts.map +0 -1
  355. package/dist/cjs/ee/preAggregates/metricEligibility.test.js +0 -376
  356. package/dist/cjs/ee/preAggregates/metricEligibility.test.js.map +0 -1
  357. package/dist/cjs/ee/preAggregates/numberMetricDependencies.test.d.ts +0 -2
  358. package/dist/cjs/ee/preAggregates/numberMetricDependencies.test.d.ts.map +0 -1
  359. package/dist/cjs/ee/preAggregates/numberMetricDependencies.test.js +0 -107
  360. package/dist/cjs/ee/preAggregates/numberMetricDependencies.test.js.map +0 -1
  361. package/dist/cjs/ee/types/aiReviewNotification.test.d.ts +0 -2
  362. package/dist/cjs/ee/types/aiReviewNotification.test.d.ts.map +0 -1
  363. package/dist/cjs/ee/types/aiReviewNotification.test.js +0 -119
  364. package/dist/cjs/ee/types/aiReviewNotification.test.js.map +0 -1
  365. package/dist/cjs/ee/types/managedAgentPolicy.test.d.ts +0 -2
  366. package/dist/cjs/ee/types/managedAgentPolicy.test.d.ts.map +0 -1
  367. package/dist/cjs/ee/types/managedAgentPolicy.test.js +0 -50
  368. package/dist/cjs/ee/types/managedAgentPolicy.test.js.map +0 -1
  369. package/dist/cjs/ee/types/managedAgentSpaceScope.test.d.ts +0 -2
  370. package/dist/cjs/ee/types/managedAgentSpaceScope.test.d.ts.map +0 -1
  371. package/dist/cjs/ee/types/managedAgentSpaceScope.test.js +0 -47
  372. package/dist/cjs/ee/types/managedAgentSpaceScope.test.js.map +0 -1
  373. package/dist/cjs/index.barrel.test.d.ts +0 -2
  374. package/dist/cjs/index.barrel.test.d.ts.map +0 -1
  375. package/dist/cjs/index.barrel.test.js +0 -65
  376. package/dist/cjs/index.barrel.test.js.map +0 -1
  377. package/dist/cjs/index.mock.d.ts +0 -8
  378. package/dist/cjs/index.mock.d.ts.map +0 -1
  379. package/dist/cjs/index.mock.js +0 -47
  380. package/dist/cjs/index.mock.js.map +0 -1
  381. package/dist/cjs/index.test.d.ts +0 -2
  382. package/dist/cjs/index.test.d.ts.map +0 -1
  383. package/dist/cjs/index.test.js +0 -204
  384. package/dist/cjs/index.test.js.map +0 -1
  385. package/dist/cjs/lightdash/LightdashModelEditor.test.d.ts +0 -2
  386. package/dist/cjs/lightdash/LightdashModelEditor.test.d.ts.map +0 -1
  387. package/dist/cjs/lightdash/LightdashModelEditor.test.js +0 -195
  388. package/dist/cjs/lightdash/LightdashModelEditor.test.js.map +0 -1
  389. package/dist/cjs/lightdash/loader.test.d.ts +0 -2
  390. package/dist/cjs/lightdash/loader.test.d.ts.map +0 -1
  391. package/dist/cjs/lightdash/loader.test.js +0 -75
  392. package/dist/cjs/lightdash/loader.test.js.map +0 -1
  393. package/dist/cjs/packageExports.test.d.ts +0 -2
  394. package/dist/cjs/packageExports.test.d.ts.map +0 -1
  395. package/dist/cjs/packageExports.test.js +0 -43
  396. package/dist/cjs/packageExports.test.js.map +0 -1
  397. package/dist/cjs/parameters/reservedParameters.test.d.ts +0 -2
  398. package/dist/cjs/parameters/reservedParameters.test.d.ts.map +0 -1
  399. package/dist/cjs/parameters/reservedParameters.test.js +0 -103
  400. package/dist/cjs/parameters/reservedParameters.test.js.map +0 -1
  401. package/dist/cjs/pivot/buildWarehouseTotals.test.d.ts +0 -2
  402. package/dist/cjs/pivot/buildWarehouseTotals.test.d.ts.map +0 -1
  403. package/dist/cjs/pivot/buildWarehouseTotals.test.js +0 -44
  404. package/dist/cjs/pivot/buildWarehouseTotals.test.js.map +0 -1
  405. package/dist/cjs/pivot/deriveDataAppVizPivotConfig.test.d.ts +0 -2
  406. package/dist/cjs/pivot/deriveDataAppVizPivotConfig.test.d.ts.map +0 -1
  407. package/dist/cjs/pivot/deriveDataAppVizPivotConfig.test.js +0 -33
  408. package/dist/cjs/pivot/deriveDataAppVizPivotConfig.test.js.map +0 -1
  409. package/dist/cjs/pivot/derivePivotConfigFromChart.mock.d.ts +0 -8
  410. package/dist/cjs/pivot/derivePivotConfigFromChart.mock.d.ts.map +0 -1
  411. package/dist/cjs/pivot/derivePivotConfigFromChart.mock.js +0 -115
  412. package/dist/cjs/pivot/derivePivotConfigFromChart.mock.js.map +0 -1
  413. package/dist/cjs/pivot/derivePivotConfigFromChart.test.d.ts +0 -2
  414. package/dist/cjs/pivot/derivePivotConfigFromChart.test.d.ts.map +0 -1
  415. package/dist/cjs/pivot/derivePivotConfigFromChart.test.js +0 -1421
  416. package/dist/cjs/pivot/derivePivotConfigFromChart.test.js.map +0 -1
  417. package/dist/cjs/pivot/pivotColumnName.test.d.ts +0 -2
  418. package/dist/cjs/pivot/pivotColumnName.test.d.ts.map +0 -1
  419. package/dist/cjs/pivot/pivotColumnName.test.js +0 -49
  420. package/dist/cjs/pivot/pivotColumnName.test.js.map +0 -1
  421. package/dist/cjs/pivot/pivotConfig.test.d.ts +0 -2
  422. package/dist/cjs/pivot/pivotConfig.test.d.ts.map +0 -1
  423. package/dist/cjs/pivot/pivotConfig.test.js +0 -230
  424. package/dist/cjs/pivot/pivotConfig.test.js.map +0 -1
  425. package/dist/cjs/pivot/pivotQueryResults.mock.d.ts +0 -14
  426. package/dist/cjs/pivot/pivotQueryResults.mock.d.ts.map +0 -1
  427. package/dist/cjs/pivot/pivotQueryResults.mock.js +0 -2086
  428. package/dist/cjs/pivot/pivotQueryResults.mock.js.map +0 -1
  429. package/dist/cjs/pivot/pivotQueryResults.test.d.ts +0 -2
  430. package/dist/cjs/pivot/pivotQueryResults.test.d.ts.map +0 -1
  431. package/dist/cjs/pivot/pivotQueryResults.test.js +0 -1678
  432. package/dist/cjs/pivot/pivotQueryResults.test.js.map +0 -1
  433. package/dist/cjs/pivot/pivotResultsAsCsv.test.d.ts +0 -2
  434. package/dist/cjs/pivot/pivotResultsAsCsv.test.d.ts.map +0 -1
  435. package/dist/cjs/pivot/pivotResultsAsCsv.test.js +0 -266
  436. package/dist/cjs/pivot/pivotResultsAsCsv.test.js.map +0 -1
  437. package/dist/cjs/pivot/timeIntervalToExcelNumFmt.test.d.ts +0 -2
  438. package/dist/cjs/pivot/timeIntervalToExcelNumFmt.test.d.ts.map +0 -1
  439. package/dist/cjs/pivot/timeIntervalToExcelNumFmt.test.js +0 -56
  440. package/dist/cjs/pivot/timeIntervalToExcelNumFmt.test.js.map +0 -1
  441. package/dist/cjs/preAggregates/definition.test.d.ts +0 -2
  442. package/dist/cjs/preAggregates/definition.test.d.ts.map +0 -1
  443. package/dist/cjs/preAggregates/definition.test.js +0 -293
  444. package/dist/cjs/preAggregates/definition.test.js.map +0 -1
  445. package/dist/cjs/preAggregates/schema.test.d.ts +0 -2
  446. package/dist/cjs/preAggregates/schema.test.d.ts.map +0 -1
  447. package/dist/cjs/preAggregates/schema.test.js +0 -228
  448. package/dist/cjs/preAggregates/schema.test.js.map +0 -1
  449. package/dist/cjs/schemas/generateChartAsCodeSchema.test.d.ts +0 -2
  450. package/dist/cjs/schemas/generateChartAsCodeSchema.test.d.ts.map +0 -1
  451. package/dist/cjs/schemas/generateChartAsCodeSchema.test.js +0 -179
  452. package/dist/cjs/schemas/generateChartAsCodeSchema.test.js.map +0 -1
  453. package/dist/cjs/schemas/generateDashboardAsCodeSchema.test.d.ts +0 -2
  454. package/dist/cjs/schemas/generateDashboardAsCodeSchema.test.d.ts.map +0 -1
  455. package/dist/cjs/schemas/generateDashboardAsCodeSchema.test.js +0 -507
  456. package/dist/cjs/schemas/generateDashboardAsCodeSchema.test.js.map +0 -1
  457. package/dist/cjs/templating/liquidSql.test.d.ts +0 -2
  458. package/dist/cjs/templating/liquidSql.test.d.ts.map +0 -1
  459. package/dist/cjs/templating/liquidSql.test.js +0 -399
  460. package/dist/cjs/templating/liquidSql.test.js.map +0 -1
  461. package/dist/cjs/templating/template.mock.d.ts +0 -45
  462. package/dist/cjs/templating/template.mock.d.ts.map +0 -1
  463. package/dist/cjs/templating/template.mock.js +0 -48
  464. package/dist/cjs/templating/template.mock.js.map +0 -1
  465. package/dist/cjs/templating/template.test.d.ts +0 -2
  466. package/dist/cjs/templating/template.test.d.ts.map +0 -1
  467. package/dist/cjs/templating/template.test.js +0 -23
  468. package/dist/cjs/templating/template.test.js.map +0 -1
  469. package/dist/cjs/types/api/notifications.test.d.ts +0 -2
  470. package/dist/cjs/types/api/notifications.test.d.ts.map +0 -1
  471. package/dist/cjs/types/api/notifications.test.js +0 -7
  472. package/dist/cjs/types/api/notifications.test.js.map +0 -1
  473. package/dist/cjs/types/applyDimensionOverrides.test.d.ts +0 -2
  474. package/dist/cjs/types/applyDimensionOverrides.test.d.ts.map +0 -1
  475. package/dist/cjs/types/applyDimensionOverrides.test.js +0 -582
  476. package/dist/cjs/types/applyDimensionOverrides.test.js.map +0 -1
  477. package/dist/cjs/types/applyMetricOverrides.test.d.ts +0 -2
  478. package/dist/cjs/types/applyMetricOverrides.test.d.ts.map +0 -1
  479. package/dist/cjs/types/applyMetricOverrides.test.js +0 -82
  480. package/dist/cjs/types/applyMetricOverrides.test.js.map +0 -1
  481. package/dist/cjs/types/contentAsCode/base.test.d.ts +0 -2
  482. package/dist/cjs/types/contentAsCode/base.test.d.ts.map +0 -1
  483. package/dist/cjs/types/contentAsCode/base.test.js +0 -61
  484. package/dist/cjs/types/contentAsCode/base.test.js.map +0 -1
  485. package/dist/cjs/types/contentAsCode/draftRebase.test.d.ts +0 -2
  486. package/dist/cjs/types/contentAsCode/draftRebase.test.d.ts.map +0 -1
  487. package/dist/cjs/types/contentAsCode/draftRebase.test.js +0 -117
  488. package/dist/cjs/types/contentAsCode/draftRebase.test.js.map +0 -1
  489. package/dist/cjs/types/contentAsCode/parsers.test.d.ts +0 -2
  490. package/dist/cjs/types/contentAsCode/parsers.test.d.ts.map +0 -1
  491. package/dist/cjs/types/contentAsCode/parsers.test.js +0 -46
  492. package/dist/cjs/types/contentAsCode/parsers.test.js.map +0 -1
  493. package/dist/cjs/types/dataRetention.test.d.ts +0 -2
  494. package/dist/cjs/types/dataRetention.test.d.ts.map +0 -1
  495. package/dist/cjs/types/dataRetention.test.js +0 -57
  496. package/dist/cjs/types/dataRetention.test.js.map +0 -1
  497. package/dist/cjs/types/dataTimezonePreview.test.d.ts +0 -2
  498. package/dist/cjs/types/dataTimezonePreview.test.d.ts.map +0 -1
  499. package/dist/cjs/types/dataTimezonePreview.test.js +0 -108
  500. package/dist/cjs/types/dataTimezonePreview.test.js.map +0 -1
  501. package/dist/cjs/types/dbt.test.d.ts +0 -2
  502. package/dist/cjs/types/dbt.test.d.ts.map +0 -1
  503. package/dist/cjs/types/dbt.test.js +0 -391
  504. package/dist/cjs/types/dbt.test.js.map +0 -1
  505. package/dist/cjs/types/errors.test.d.ts +0 -2
  506. package/dist/cjs/types/errors.test.d.ts.map +0 -1
  507. package/dist/cjs/types/errors.test.js +0 -16
  508. package/dist/cjs/types/errors.test.js.map +0 -1
  509. package/dist/cjs/types/field.test.d.ts +0 -2
  510. package/dist/cjs/types/field.test.d.ts.map +0 -1
  511. package/dist/cjs/types/field.test.js +0 -85
  512. package/dist/cjs/types/field.test.js.map +0 -1
  513. package/dist/cjs/types/filter.test.d.ts +0 -2
  514. package/dist/cjs/types/filter.test.d.ts.map +0 -1
  515. package/dist/cjs/types/filter.test.js +0 -399
  516. package/dist/cjs/types/filter.test.js.map +0 -1
  517. package/dist/cjs/types/filterGrammar.test.d.ts +0 -2
  518. package/dist/cjs/types/filterGrammar.test.d.ts.map +0 -1
  519. package/dist/cjs/types/filterGrammar.test.js +0 -748
  520. package/dist/cjs/types/filterGrammar.test.js.map +0 -1
  521. package/dist/cjs/types/filterGrammarConversion.test.d.ts +0 -2
  522. package/dist/cjs/types/filterGrammarConversion.test.d.ts.map +0 -1
  523. package/dist/cjs/types/filterGrammarConversion.test.js +0 -310
  524. package/dist/cjs/types/filterGrammarConversion.test.js.map +0 -1
  525. package/dist/cjs/types/gitIntegration.test.d.ts +0 -2
  526. package/dist/cjs/types/gitIntegration.test.d.ts.map +0 -1
  527. package/dist/cjs/types/gitIntegration.test.js +0 -53
  528. package/dist/cjs/types/gitIntegration.test.js.map +0 -1
  529. package/dist/cjs/types/jira.test.d.ts +0 -2
  530. package/dist/cjs/types/jira.test.d.ts.map +0 -1
  531. package/dist/cjs/types/jira.test.js +0 -13
  532. package/dist/cjs/types/jira.test.js.map +0 -1
  533. package/dist/cjs/types/linear.test.d.ts +0 -2
  534. package/dist/cjs/types/linear.test.d.ts.map +0 -1
  535. package/dist/cjs/types/linear.test.js +0 -15
  536. package/dist/cjs/types/linear.test.js.map +0 -1
  537. package/dist/cjs/types/mergeQuery.test.d.ts +0 -2
  538. package/dist/cjs/types/mergeQuery.test.d.ts.map +0 -1
  539. package/dist/cjs/types/mergeQuery.test.js +0 -387
  540. package/dist/cjs/types/mergeQuery.test.js.map +0 -1
  541. package/dist/cjs/types/organizationSettings.test.d.ts +0 -2
  542. package/dist/cjs/types/organizationSettings.test.d.ts.map +0 -1
  543. package/dist/cjs/types/organizationSettings.test.js +0 -107
  544. package/dist/cjs/types/organizationSettings.test.js.map +0 -1
  545. package/dist/cjs/types/periodOverPeriodComparison.test.d.ts +0 -2
  546. package/dist/cjs/types/periodOverPeriodComparison.test.d.ts.map +0 -1
  547. package/dist/cjs/types/periodOverPeriodComparison.test.js +0 -101
  548. package/dist/cjs/types/periodOverPeriodComparison.test.js.map +0 -1
  549. package/dist/cjs/types/projects.test.d.ts +0 -2
  550. package/dist/cjs/types/projects.test.d.ts.map +0 -1
  551. package/dist/cjs/types/projects.test.js +0 -321
  552. package/dist/cjs/types/projects.test.js.map +0 -1
  553. package/dist/cjs/types/savedCharts.test.d.ts +0 -2
  554. package/dist/cjs/types/savedCharts.test.d.ts.map +0 -1
  555. package/dist/cjs/types/savedCharts.test.js +0 -138
  556. package/dist/cjs/types/savedCharts.test.js.map +0 -1
  557. package/dist/cjs/types/scheduler.test.d.ts +0 -2
  558. package/dist/cjs/types/scheduler.test.d.ts.map +0 -1
  559. package/dist/cjs/types/scheduler.test.js +0 -38
  560. package/dist/cjs/types/scheduler.test.js.map +0 -1
  561. package/dist/cjs/types/schedulerTaskList.test.d.ts +0 -2
  562. package/dist/cjs/types/schedulerTaskList.test.d.ts.map +0 -1
  563. package/dist/cjs/types/schedulerTaskList.test.js +0 -18
  564. package/dist/cjs/types/schedulerTaskList.test.js.map +0 -1
  565. package/dist/cjs/types/userAvatars.test.d.ts +0 -2
  566. package/dist/cjs/types/userAvatars.test.d.ts.map +0 -1
  567. package/dist/cjs/types/userAvatars.test.js +0 -126
  568. package/dist/cjs/types/userAvatars.test.js.map +0 -1
  569. package/dist/cjs/types/userWarehouseCredentials.test.d.ts +0 -2
  570. package/dist/cjs/types/userWarehouseCredentials.test.d.ts.map +0 -1
  571. package/dist/cjs/types/userWarehouseCredentials.test.js +0 -82
  572. package/dist/cjs/types/userWarehouseCredentials.test.js.map +0 -1
  573. package/dist/cjs/types/warehouse.test.d.ts +0 -2
  574. package/dist/cjs/types/warehouse.test.d.ts.map +0 -1
  575. package/dist/cjs/types/warehouse.test.js +0 -106
  576. package/dist/cjs/types/warehouse.test.js.map +0 -1
  577. package/dist/cjs/utils/accessors.test.d.ts +0 -2
  578. package/dist/cjs/utils/accessors.test.d.ts.map +0 -1
  579. package/dist/cjs/utils/accessors.test.js +0 -47
  580. package/dist/cjs/utils/accessors.test.js.map +0 -1
  581. package/dist/cjs/utils/additionalMetrics.test.d.ts +0 -2
  582. package/dist/cjs/utils/additionalMetrics.test.d.ts.map +0 -1
  583. package/dist/cjs/utils/additionalMetrics.test.js +0 -338
  584. package/dist/cjs/utils/additionalMetrics.test.js.map +0 -1
  585. package/dist/cjs/utils/applyChartFilterOverrides.test.d.ts +0 -2
  586. package/dist/cjs/utils/applyChartFilterOverrides.test.d.ts.map +0 -1
  587. package/dist/cjs/utils/applyChartFilterOverrides.test.js +0 -218
  588. package/dist/cjs/utils/applyChartFilterOverrides.test.js.map +0 -1
  589. package/dist/cjs/utils/bigNumber.test.d.ts +0 -2
  590. package/dist/cjs/utils/bigNumber.test.d.ts.map +0 -1
  591. package/dist/cjs/utils/bigNumber.test.js +0 -104
  592. package/dist/cjs/utils/bigNumber.test.js.map +0 -1
  593. package/dist/cjs/utils/booleanConverter.test.d.ts +0 -2
  594. package/dist/cjs/utils/booleanConverter.test.d.ts.map +0 -1
  595. package/dist/cjs/utils/booleanConverter.test.js +0 -61
  596. package/dist/cjs/utils/booleanConverter.test.js.map +0 -1
  597. package/dist/cjs/utils/chartValidation.test.d.ts +0 -2
  598. package/dist/cjs/utils/chartValidation.test.d.ts.map +0 -1
  599. package/dist/cjs/utils/chartValidation.test.js +0 -47
  600. package/dist/cjs/utils/chartValidation.test.js.map +0 -1
  601. package/dist/cjs/utils/charts.test.d.ts +0 -2
  602. package/dist/cjs/utils/charts.test.d.ts.map +0 -1
  603. package/dist/cjs/utils/charts.test.js +0 -46
  604. package/dist/cjs/utils/charts.test.js.map +0 -1
  605. package/dist/cjs/utils/colors.test.d.ts +0 -2
  606. package/dist/cjs/utils/colors.test.d.ts.map +0 -1
  607. package/dist/cjs/utils/colors.test.js +0 -87
  608. package/dist/cjs/utils/colors.test.js.map +0 -1
  609. package/dist/cjs/utils/conditionalFormatExpressions.test.d.ts +0 -2
  610. package/dist/cjs/utils/conditionalFormatExpressions.test.d.ts.map +0 -1
  611. package/dist/cjs/utils/conditionalFormatExpressions.test.js +0 -163
  612. package/dist/cjs/utils/conditionalFormatExpressions.test.js.map +0 -1
  613. package/dist/cjs/utils/conditionalFormatting.test.d.ts +0 -2
  614. package/dist/cjs/utils/conditionalFormatting.test.d.ts.map +0 -1
  615. package/dist/cjs/utils/conditionalFormatting.test.js +0 -361
  616. package/dist/cjs/utils/conditionalFormatting.test.js.map +0 -1
  617. package/dist/cjs/utils/connectionChanges.test.d.ts +0 -2
  618. package/dist/cjs/utils/connectionChanges.test.d.ts.map +0 -1
  619. package/dist/cjs/utils/connectionChanges.test.js +0 -168
  620. package/dist/cjs/utils/connectionChanges.test.js.map +0 -1
  621. package/dist/cjs/utils/customDimensions.test.d.ts +0 -2
  622. package/dist/cjs/utils/customDimensions.test.d.ts.map +0 -1
  623. package/dist/cjs/utils/customDimensions.test.js +0 -234
  624. package/dist/cjs/utils/customDimensions.test.js.map +0 -1
  625. package/dist/cjs/utils/dashboard.test.d.ts +0 -2
  626. package/dist/cjs/utils/dashboard.test.d.ts.map +0 -1
  627. package/dist/cjs/utils/dashboard.test.js +0 -83
  628. package/dist/cjs/utils/dashboard.test.js.map +0 -1
  629. package/dist/cjs/utils/dateZoom.test.d.ts +0 -2
  630. package/dist/cjs/utils/dateZoom.test.d.ts.map +0 -1
  631. package/dist/cjs/utils/dateZoom.test.js +0 -1036
  632. package/dist/cjs/utils/dateZoom.test.js.map +0 -1
  633. package/dist/cjs/utils/dbt.test.d.ts +0 -2
  634. package/dist/cjs/utils/dbt.test.d.ts.map +0 -1
  635. package/dist/cjs/utils/dbt.test.js +0 -41
  636. package/dist/cjs/utils/dbt.test.js.map +0 -1
  637. package/dist/cjs/utils/dependencyGraph.test.d.ts +0 -2
  638. package/dist/cjs/utils/dependencyGraph.test.d.ts.map +0 -1
  639. package/dist/cjs/utils/dependencyGraph.test.js +0 -115
  640. package/dist/cjs/utils/dependencyGraph.test.js.map +0 -1
  641. package/dist/cjs/utils/email.test.d.ts +0 -2
  642. package/dist/cjs/utils/email.test.d.ts.map +0 -1
  643. package/dist/cjs/utils/email.test.js +0 -91
  644. package/dist/cjs/utils/email.test.js.map +0 -1
  645. package/dist/cjs/utils/exportTabs.test.d.ts +0 -2
  646. package/dist/cjs/utils/exportTabs.test.d.ts.map +0 -1
  647. package/dist/cjs/utils/exportTabs.test.js +0 -123
  648. package/dist/cjs/utils/exportTabs.test.js.map +0 -1
  649. package/dist/cjs/utils/fields.mock.d.ts +0 -20
  650. package/dist/cjs/utils/fields.mock.d.ts.map +0 -1
  651. package/dist/cjs/utils/fields.mock.js +0 -256
  652. package/dist/cjs/utils/fields.mock.js.map +0 -1
  653. package/dist/cjs/utils/fields.test.d.ts +0 -2
  654. package/dist/cjs/utils/fields.test.d.ts.map +0 -1
  655. package/dist/cjs/utils/fields.test.js +0 -282
  656. package/dist/cjs/utils/fields.test.js.map +0 -1
  657. package/dist/cjs/utils/filterLabels.test.d.ts +0 -2
  658. package/dist/cjs/utils/filterLabels.test.d.ts.map +0 -1
  659. package/dist/cjs/utils/filterLabels.test.js +0 -81
  660. package/dist/cjs/utils/filterLabels.test.js.map +0 -1
  661. package/dist/cjs/utils/filterLabelsGolden.test.d.ts +0 -2
  662. package/dist/cjs/utils/filterLabelsGolden.test.d.ts.map +0 -1
  663. package/dist/cjs/utils/filterLabelsGolden.test.js +0 -87
  664. package/dist/cjs/utils/filterLabelsGolden.test.js.map +0 -1
  665. package/dist/cjs/utils/filters.mock.d.ts +0 -28
  666. package/dist/cjs/utils/filters.mock.d.ts.map +0 -1
  667. package/dist/cjs/utils/filters.mock.js +0 -540
  668. package/dist/cjs/utils/filters.mock.js.map +0 -1
  669. package/dist/cjs/utils/filters.test.d.ts +0 -2
  670. package/dist/cjs/utils/filters.test.d.ts.map +0 -1
  671. package/dist/cjs/utils/filters.test.js +0 -1986
  672. package/dist/cjs/utils/filters.test.js.map +0 -1
  673. package/dist/cjs/utils/formatting.mock.d.ts +0 -6
  674. package/dist/cjs/utils/formatting.mock.d.ts.map +0 -1
  675. package/dist/cjs/utils/formatting.mock.js +0 -38
  676. package/dist/cjs/utils/formatting.mock.js.map +0 -1
  677. package/dist/cjs/utils/formatting.test.d.ts +0 -2
  678. package/dist/cjs/utils/formatting.test.d.ts.map +0 -1
  679. package/dist/cjs/utils/formatting.test.js +0 -2631
  680. package/dist/cjs/utils/formatting.test.js.map +0 -1
  681. package/dist/cjs/utils/github.test.d.ts +0 -2
  682. package/dist/cjs/utils/github.test.d.ts.map +0 -1
  683. package/dist/cjs/utils/github.test.js +0 -25
  684. package/dist/cjs/utils/github.test.js.map +0 -1
  685. package/dist/cjs/utils/i18n/chartAsCode.test.d.ts +0 -2
  686. package/dist/cjs/utils/i18n/chartAsCode.test.d.ts.map +0 -1
  687. package/dist/cjs/utils/i18n/chartAsCode.test.js +0 -367
  688. package/dist/cjs/utils/i18n/chartAsCode.test.js.map +0 -1
  689. package/dist/cjs/utils/i18n/dashboardAsCode.test.d.ts +0 -2
  690. package/dist/cjs/utils/i18n/dashboardAsCode.test.d.ts.map +0 -1
  691. package/dist/cjs/utils/i18n/dashboardAsCode.test.js +0 -169
  692. package/dist/cjs/utils/i18n/dashboardAsCode.test.js.map +0 -1
  693. package/dist/cjs/utils/i18n/uiStrings.test.d.ts +0 -2
  694. package/dist/cjs/utils/i18n/uiStrings.test.d.ts.map +0 -1
  695. package/dist/cjs/utils/i18n/uiStrings.test.js +0 -44
  696. package/dist/cjs/utils/i18n/uiStrings.test.js.map +0 -1
  697. package/dist/cjs/utils/loadLightdashProjectConfig.mock.d.ts +0 -24
  698. package/dist/cjs/utils/loadLightdashProjectConfig.mock.d.ts.map +0 -1
  699. package/dist/cjs/utils/loadLightdashProjectConfig.mock.js +0 -204
  700. package/dist/cjs/utils/loadLightdashProjectConfig.mock.js.map +0 -1
  701. package/dist/cjs/utils/loadLightdashProjectConfig.test.d.ts +0 -2
  702. package/dist/cjs/utils/loadLightdashProjectConfig.test.d.ts.map +0 -1
  703. package/dist/cjs/utils/loadLightdashProjectConfig.test.js +0 -223
  704. package/dist/cjs/utils/loadLightdashProjectConfig.test.js.map +0 -1
  705. package/dist/cjs/utils/mergeQueryItems.test.d.ts +0 -2
  706. package/dist/cjs/utils/mergeQueryItems.test.d.ts.map +0 -1
  707. package/dist/cjs/utils/mergeQueryItems.test.js +0 -68
  708. package/dist/cjs/utils/mergeQueryItems.test.js.map +0 -1
  709. package/dist/cjs/utils/metricsExplorer.test.d.ts +0 -2
  710. package/dist/cjs/utils/metricsExplorer.test.d.ts.map +0 -1
  711. package/dist/cjs/utils/metricsExplorer.test.js +0 -178
  712. package/dist/cjs/utils/metricsExplorer.test.js.map +0 -1
  713. package/dist/cjs/utils/normalizeCellRawForFilter.test.d.ts +0 -2
  714. package/dist/cjs/utils/normalizeCellRawForFilter.test.d.ts.map +0 -1
  715. package/dist/cjs/utils/normalizeCellRawForFilter.test.js +0 -65
  716. package/dist/cjs/utils/normalizeCellRawForFilter.test.js.map +0 -1
  717. package/dist/cjs/utils/oauth.test.d.ts +0 -2
  718. package/dist/cjs/utils/oauth.test.d.ts.map +0 -1
  719. package/dist/cjs/utils/oauth.test.js +0 -91
  720. package/dist/cjs/utils/oauth.test.js.map +0 -1
  721. package/dist/cjs/utils/previewDeployWorkflow.test.d.ts +0 -2
  722. package/dist/cjs/utils/previewDeployWorkflow.test.d.ts.map +0 -1
  723. package/dist/cjs/utils/previewDeployWorkflow.test.js +0 -175
  724. package/dist/cjs/utils/previewDeployWorkflow.test.js.map +0 -1
  725. package/dist/cjs/utils/projectMemberRole.test.d.ts +0 -2
  726. package/dist/cjs/utils/projectMemberRole.test.d.ts.map +0 -1
  727. package/dist/cjs/utils/projectMemberRole.test.js +0 -38
  728. package/dist/cjs/utils/projectMemberRole.test.js.map +0 -1
  729. package/dist/cjs/utils/queryHistoryList.test.d.ts +0 -2
  730. package/dist/cjs/utils/queryHistoryList.test.d.ts.map +0 -1
  731. package/dist/cjs/utils/queryHistoryList.test.js +0 -91
  732. package/dist/cjs/utils/queryHistoryList.test.js.map +0 -1
  733. package/dist/cjs/utils/resolveQueryTimezone.test.d.ts +0 -2
  734. package/dist/cjs/utils/resolveQueryTimezone.test.d.ts.map +0 -1
  735. package/dist/cjs/utils/resolveQueryTimezone.test.js +0 -153
  736. package/dist/cjs/utils/resolveQueryTimezone.test.js.map +0 -1
  737. package/dist/cjs/utils/resultColumns.test.d.ts +0 -2
  738. package/dist/cjs/utils/resultColumns.test.d.ts.map +0 -1
  739. package/dist/cjs/utils/resultColumns.test.js +0 -193
  740. package/dist/cjs/utils/resultColumns.test.js.map +0 -1
  741. package/dist/cjs/utils/sanitizeHtml.test.d.ts +0 -2
  742. package/dist/cjs/utils/sanitizeHtml.test.d.ts.map +0 -1
  743. package/dist/cjs/utils/sanitizeHtml.test.js +0 -200
  744. package/dist/cjs/utils/sanitizeHtml.test.js.map +0 -1
  745. package/dist/cjs/utils/scheduler.test.d.ts +0 -2
  746. package/dist/cjs/utils/scheduler.test.d.ts.map +0 -1
  747. package/dist/cjs/utils/scheduler.test.js +0 -63
  748. package/dist/cjs/utils/scheduler.test.js.map +0 -1
  749. package/dist/cjs/utils/searchParams.test.d.ts +0 -2
  750. package/dist/cjs/utils/searchParams.test.d.ts.map +0 -1
  751. package/dist/cjs/utils/searchParams.test.js +0 -22
  752. package/dist/cjs/utils/searchParams.test.js.map +0 -1
  753. package/dist/cjs/utils/slack.test.d.ts +0 -2
  754. package/dist/cjs/utils/slack.test.d.ts.map +0 -1
  755. package/dist/cjs/utils/slack.test.js +0 -102
  756. package/dist/cjs/utils/slack.test.js.map +0 -1
  757. package/dist/cjs/utils/slug.test.d.ts +0 -2
  758. package/dist/cjs/utils/slug.test.d.ts.map +0 -1
  759. package/dist/cjs/utils/slug.test.js +0 -131
  760. package/dist/cjs/utils/slug.test.js.map +0 -1
  761. package/dist/cjs/utils/tableCalculationFunctions.test.d.ts +0 -2
  762. package/dist/cjs/utils/tableCalculationFunctions.test.d.ts.map +0 -1
  763. package/dist/cjs/utils/tableCalculationFunctions.test.js +0 -946
  764. package/dist/cjs/utils/tableCalculationFunctions.test.js.map +0 -1
  765. package/dist/cjs/utils/tableCalculationFunctions.utility.test.d.ts +0 -2
  766. package/dist/cjs/utils/tableCalculationFunctions.utility.test.d.ts.map +0 -1
  767. package/dist/cjs/utils/tableCalculationFunctions.utility.test.js +0 -86
  768. package/dist/cjs/utils/tableCalculationFunctions.utility.test.js.map +0 -1
  769. package/dist/cjs/utils/timeFrames.test.d.ts +0 -2
  770. package/dist/cjs/utils/timeFrames.test.d.ts.map +0 -1
  771. package/dist/cjs/utils/timeFrames.test.js +0 -862
  772. package/dist/cjs/utils/timeFrames.test.js.map +0 -1
  773. package/dist/cjs/utils/virtualView.test.d.ts +0 -2
  774. package/dist/cjs/utils/virtualView.test.d.ts.map +0 -1
  775. package/dist/cjs/utils/virtualView.test.js +0 -156
  776. package/dist/cjs/utils/virtualView.test.js.map +0 -1
  777. package/dist/cjs/utils/warehouse.test.d.ts +0 -2
  778. package/dist/cjs/utils/warehouse.test.d.ts.map +0 -1
  779. package/dist/cjs/utils/warehouse.test.js +0 -46
  780. package/dist/cjs/utils/warehouse.test.js.map +0 -1
  781. package/dist/cjs/utils/warehouseLocation.test.d.ts +0 -2
  782. package/dist/cjs/utils/warehouseLocation.test.d.ts.map +0 -1
  783. package/dist/cjs/utils/warehouseLocation.test.js +0 -167
  784. package/dist/cjs/utils/warehouseLocation.test.js.map +0 -1
  785. package/dist/cjs/utils/warehouseResourceLimits.test.d.ts +0 -2
  786. package/dist/cjs/utils/warehouseResourceLimits.test.d.ts.map +0 -1
  787. package/dist/cjs/utils/warehouseResourceLimits.test.js +0 -17
  788. package/dist/cjs/utils/warehouseResourceLimits.test.js.map +0 -1
  789. package/dist/cjs/utils/zodJsonSchema.test.d.ts +0 -2
  790. package/dist/cjs/utils/zodJsonSchema.test.d.ts.map +0 -1
  791. package/dist/cjs/utils/zodJsonSchema.test.js +0 -143
  792. package/dist/cjs/utils/zodJsonSchema.test.js.map +0 -1
  793. package/dist/cjs/visualizations/BigNumberDataModel.test.d.ts +0 -2
  794. package/dist/cjs/visualizations/BigNumberDataModel.test.d.ts.map +0 -1
  795. package/dist/cjs/visualizations/BigNumberDataModel.test.js +0 -346
  796. package/dist/cjs/visualizations/BigNumberDataModel.test.js.map +0 -1
  797. package/dist/cjs/visualizations/CartesianChartDataModel.test.d.ts +0 -2
  798. package/dist/cjs/visualizations/CartesianChartDataModel.test.d.ts.map +0 -1
  799. package/dist/cjs/visualizations/CartesianChartDataModel.test.js +0 -223
  800. package/dist/cjs/visualizations/CartesianChartDataModel.test.js.map +0 -1
  801. package/dist/cjs/visualizations/TableDataModel.test.d.ts +0 -2
  802. package/dist/cjs/visualizations/TableDataModel.test.d.ts.map +0 -1
  803. package/dist/cjs/visualizations/TableDataModel.test.js +0 -64
  804. package/dist/cjs/visualizations/TableDataModel.test.js.map +0 -1
  805. package/dist/cjs/visualizations/helpers/styles/barChartStyles.test.d.ts +0 -2
  806. package/dist/cjs/visualizations/helpers/styles/barChartStyles.test.d.ts.map +0 -1
  807. package/dist/cjs/visualizations/helpers/styles/barChartStyles.test.js +0 -76
  808. package/dist/cjs/visualizations/helpers/styles/barChartStyles.test.js.map +0 -1
  809. package/dist/cjs/visualizations/helpers/styles/pieChartStyles.test.d.ts +0 -2
  810. package/dist/cjs/visualizations/helpers/styles/pieChartStyles.test.d.ts.map +0 -1
  811. package/dist/cjs/visualizations/helpers/styles/pieChartStyles.test.js +0 -31
  812. package/dist/cjs/visualizations/helpers/styles/pieChartStyles.test.js.map +0 -1
  813. package/dist/cjs/visualizations/helpers/styles/valueLabelStyles.test.d.ts +0 -2
  814. package/dist/cjs/visualizations/helpers/styles/valueLabelStyles.test.d.ts.map +0 -1
  815. package/dist/cjs/visualizations/helpers/styles/valueLabelStyles.test.js +0 -39
  816. package/dist/cjs/visualizations/helpers/styles/valueLabelStyles.test.js.map +0 -1
  817. package/dist/cjs/visualizations/helpers/tooltipFormatter.test.d.ts +0 -2
  818. package/dist/cjs/visualizations/helpers/tooltipFormatter.test.d.ts.map +0 -1
  819. package/dist/cjs/visualizations/helpers/tooltipFormatter.test.js +0 -287
  820. package/dist/cjs/visualizations/helpers/tooltipFormatter.test.js.map +0 -1
  821. package/dist/esm/authorization/canMutateVerifiedContent.test.d.ts +0 -2
  822. package/dist/esm/authorization/canMutateVerifiedContent.test.d.ts.map +0 -1
  823. package/dist/esm/authorization/canMutateVerifiedContent.test.js +0 -40
  824. package/dist/esm/authorization/canMutateVerifiedContent.test.js.map +0 -1
  825. package/dist/esm/authorization/collapseAbilityRules.test.d.ts +0 -2
  826. package/dist/esm/authorization/collapseAbilityRules.test.d.ts.map +0 -1
  827. package/dist/esm/authorization/collapseAbilityRules.test.js +0 -306
  828. package/dist/esm/authorization/collapseAbilityRules.test.js.map +0 -1
  829. package/dist/esm/authorization/embedPermissions.test.d.ts +0 -2
  830. package/dist/esm/authorization/embedPermissions.test.d.ts.map +0 -1
  831. package/dist/esm/authorization/embedPermissions.test.js +0 -230
  832. package/dist/esm/authorization/embedPermissions.test.js.map +0 -1
  833. package/dist/esm/authorization/getDashboardDeleteAccess.test.d.ts +0 -2
  834. package/dist/esm/authorization/getDashboardDeleteAccess.test.d.ts.map +0 -1
  835. package/dist/esm/authorization/getDashboardDeleteAccess.test.js +0 -125
  836. package/dist/esm/authorization/getDashboardDeleteAccess.test.js.map +0 -1
  837. package/dist/esm/authorization/getUserAbilityBuilder.test.d.ts +0 -2
  838. package/dist/esm/authorization/getUserAbilityBuilder.test.d.ts.map +0 -1
  839. package/dist/esm/authorization/getUserAbilityBuilder.test.js +0 -768
  840. package/dist/esm/authorization/getUserAbilityBuilder.test.js.map +0 -1
  841. package/dist/esm/authorization/index.mock.d.ts +0 -41
  842. package/dist/esm/authorization/index.mock.d.ts.map +0 -1
  843. package/dist/esm/authorization/index.mock.js +0 -44
  844. package/dist/esm/authorization/index.mock.js.map +0 -1
  845. package/dist/esm/authorization/index.test.d.ts +0 -2
  846. package/dist/esm/authorization/index.test.d.ts.map +0 -1
  847. package/dist/esm/authorization/index.test.js +0 -250
  848. package/dist/esm/authorization/index.test.js.map +0 -1
  849. package/dist/esm/authorization/jwtAbility.test.d.ts +0 -2
  850. package/dist/esm/authorization/jwtAbility.test.d.ts.map +0 -1
  851. package/dist/esm/authorization/jwtAbility.test.js +0 -592
  852. package/dist/esm/authorization/jwtAbility.test.js.map +0 -1
  853. package/dist/esm/authorization/organizationMemberAbility.mock.d.ts +0 -8
  854. package/dist/esm/authorization/organizationMemberAbility.mock.d.ts.map +0 -1
  855. package/dist/esm/authorization/organizationMemberAbility.mock.js +0 -36
  856. package/dist/esm/authorization/organizationMemberAbility.mock.js.map +0 -1
  857. package/dist/esm/authorization/organizationMemberAbility.test.d.ts +0 -2
  858. package/dist/esm/authorization/organizationMemberAbility.test.d.ts.map +0 -1
  859. package/dist/esm/authorization/organizationMemberAbility.test.js +0 -1483
  860. package/dist/esm/authorization/organizationMemberAbility.test.js.map +0 -1
  861. package/dist/esm/authorization/parseScopes.test.d.ts +0 -2
  862. package/dist/esm/authorization/parseScopes.test.d.ts.map +0 -1
  863. package/dist/esm/authorization/parseScopes.test.js +0 -123
  864. package/dist/esm/authorization/parseScopes.test.js.map +0 -1
  865. package/dist/esm/authorization/projectMemberAbility.mock.d.ts +0 -7
  866. package/dist/esm/authorization/projectMemberAbility.mock.d.ts.map +0 -1
  867. package/dist/esm/authorization/projectMemberAbility.mock.js +0 -27
  868. package/dist/esm/authorization/projectMemberAbility.mock.js.map +0 -1
  869. package/dist/esm/authorization/projectMemberAbility.test.d.ts +0 -2
  870. package/dist/esm/authorization/projectMemberAbility.test.d.ts.map +0 -1
  871. package/dist/esm/authorization/projectMemberAbility.test.js +0 -1189
  872. package/dist/esm/authorization/projectMemberAbility.test.js.map +0 -1
  873. package/dist/esm/authorization/roadmapAccess.test.d.ts +0 -2
  874. package/dist/esm/authorization/roadmapAccess.test.d.ts.map +0 -1
  875. package/dist/esm/authorization/roadmapAccess.test.js +0 -159
  876. package/dist/esm/authorization/roadmapAccess.test.js.map +0 -1
  877. package/dist/esm/authorization/rolePresets.test.d.ts +0 -2
  878. package/dist/esm/authorization/rolePresets.test.d.ts.map +0 -1
  879. package/dist/esm/authorization/rolePresets.test.js +0 -65
  880. package/dist/esm/authorization/rolePresets.test.js.map +0 -1
  881. package/dist/esm/authorization/roleToScopeMapping.test.d.ts +0 -2
  882. package/dist/esm/authorization/roleToScopeMapping.test.d.ts.map +0 -1
  883. package/dist/esm/authorization/roleToScopeMapping.test.js +0 -623
  884. package/dist/esm/authorization/roleToScopeMapping.test.js.map +0 -1
  885. package/dist/esm/authorization/roleToScopeMapping.testUtils.d.ts +0 -1615
  886. package/dist/esm/authorization/roleToScopeMapping.testUtils.d.ts.map +0 -1
  887. package/dist/esm/authorization/roleToScopeMapping.testUtils.js +0 -335
  888. package/dist/esm/authorization/roleToScopeMapping.testUtils.js.map +0 -1
  889. package/dist/esm/authorization/roleToScopeParity.test.d.ts +0 -2
  890. package/dist/esm/authorization/roleToScopeParity.test.d.ts.map +0 -1
  891. package/dist/esm/authorization/roleToScopeParity.test.js +0 -335
  892. package/dist/esm/authorization/roleToScopeParity.test.js.map +0 -1
  893. package/dist/esm/authorization/scopeAbilityBuilder.test.d.ts +0 -2
  894. package/dist/esm/authorization/scopeAbilityBuilder.test.d.ts.map +0 -1
  895. package/dist/esm/authorization/scopeAbilityBuilder.test.js +0 -1871
  896. package/dist/esm/authorization/scopeAbilityBuilder.test.js.map +0 -1
  897. package/dist/esm/authorization/scopes.level.test.d.ts +0 -2
  898. package/dist/esm/authorization/scopes.level.test.d.ts.map +0 -1
  899. package/dist/esm/authorization/scopes.level.test.js +0 -55
  900. package/dist/esm/authorization/scopes.level.test.js.map +0 -1
  901. package/dist/esm/authorization/scopes.test.d.ts +0 -2
  902. package/dist/esm/authorization/scopes.test.d.ts.map +0 -1
  903. package/dist/esm/authorization/scopes.test.js +0 -197
  904. package/dist/esm/authorization/scopes.test.js.map +0 -1
  905. package/dist/esm/authorization/serviceAccountAbility.test.d.ts +0 -2
  906. package/dist/esm/authorization/serviceAccountAbility.test.d.ts.map +0 -1
  907. package/dist/esm/authorization/serviceAccountAbility.test.js +0 -222
  908. package/dist/esm/authorization/serviceAccountAbility.test.js.map +0 -1
  909. package/dist/esm/authorization/space/customRoleProjectRole.test.d.ts +0 -2
  910. package/dist/esm/authorization/space/customRoleProjectRole.test.d.ts.map +0 -1
  911. package/dist/esm/authorization/space/customRoleProjectRole.test.js +0 -54
  912. package/dist/esm/authorization/space/customRoleProjectRole.test.js.map +0 -1
  913. package/dist/esm/authorization/space/spaceAccessResolver.test.d.ts +0 -2
  914. package/dist/esm/authorization/space/spaceAccessResolver.test.d.ts.map +0 -1
  915. package/dist/esm/authorization/space/spaceAccessResolver.test.js +0 -707
  916. package/dist/esm/authorization/space/spaceAccessResolver.test.js.map +0 -1
  917. package/dist/esm/compiler/exploreCompiler.mock.d.ts +0 -78
  918. package/dist/esm/compiler/exploreCompiler.mock.d.ts.map +0 -1
  919. package/dist/esm/compiler/exploreCompiler.mock.js +0 -2446
  920. package/dist/esm/compiler/exploreCompiler.mock.js.map +0 -1
  921. package/dist/esm/compiler/exploreCompiler.test.d.ts +0 -2
  922. package/dist/esm/compiler/exploreCompiler.test.d.ts.map +0 -1
  923. package/dist/esm/compiler/exploreCompiler.test.js +0 -1753
  924. package/dist/esm/compiler/exploreCompiler.test.js.map +0 -1
  925. package/dist/esm/compiler/fieldSetExpander.test.d.ts +0 -2
  926. package/dist/esm/compiler/fieldSetExpander.test.d.ts.map +0 -1
  927. package/dist/esm/compiler/fieldSetExpander.test.js +0 -204
  928. package/dist/esm/compiler/fieldSetExpander.test.js.map +0 -1
  929. package/dist/esm/compiler/filtersCompiler.mock.d.ts +0 -586
  930. package/dist/esm/compiler/filtersCompiler.mock.d.ts.map +0 -1
  931. package/dist/esm/compiler/filtersCompiler.mock.js +0 -791
  932. package/dist/esm/compiler/filtersCompiler.mock.js.map +0 -1
  933. package/dist/esm/compiler/filtersCompiler.test.d.ts +0 -2
  934. package/dist/esm/compiler/filtersCompiler.test.d.ts.map +0 -1
  935. package/dist/esm/compiler/filtersCompiler.test.js +0 -2194
  936. package/dist/esm/compiler/filtersCompiler.test.js.map +0 -1
  937. package/dist/esm/compiler/joinInflation.test.d.ts +0 -2
  938. package/dist/esm/compiler/joinInflation.test.d.ts.map +0 -1
  939. package/dist/esm/compiler/joinInflation.test.js +0 -28
  940. package/dist/esm/compiler/joinInflation.test.js.map +0 -1
  941. package/dist/esm/compiler/lightdashModelConverter.test.d.ts +0 -2
  942. package/dist/esm/compiler/lightdashModelConverter.test.d.ts.map +0 -1
  943. package/dist/esm/compiler/lightdashModelConverter.test.js +0 -35
  944. package/dist/esm/compiler/lightdashModelConverter.test.js.map +0 -1
  945. package/dist/esm/compiler/lightdashProjectConfig.test.d.ts +0 -2
  946. package/dist/esm/compiler/lightdashProjectConfig.test.d.ts.map +0 -1
  947. package/dist/esm/compiler/lightdashProjectConfig.test.js +0 -94
  948. package/dist/esm/compiler/lightdashProjectConfig.test.js.map +0 -1
  949. package/dist/esm/compiler/parameters.test.d.ts +0 -2
  950. package/dist/esm/compiler/parameters.test.d.ts.map +0 -1
  951. package/dist/esm/compiler/parameters.test.js +0 -587
  952. package/dist/esm/compiler/parameters.test.js.map +0 -1
  953. package/dist/esm/compiler/translator.mock.d.ts +0 -159
  954. package/dist/esm/compiler/translator.mock.d.ts.map +0 -1
  955. package/dist/esm/compiler/translator.mock.js +0 -2232
  956. package/dist/esm/compiler/translator.mock.js.map +0 -1
  957. package/dist/esm/compiler/translator.test.d.ts +0 -2
  958. package/dist/esm/compiler/translator.test.d.ts.map +0 -1
  959. package/dist/esm/compiler/translator.test.js +0 -2685
  960. package/dist/esm/compiler/translator.test.js.map +0 -1
  961. package/dist/esm/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.d.ts +0 -65
  962. package/dist/esm/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.d.ts.map +0 -1
  963. package/dist/esm/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.js +0 -220
  964. package/dist/esm/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.js.map +0 -1
  965. package/dist/esm/dbt/DbtSchemaEditor/DbtSchemaEditor.test.d.ts +0 -2
  966. package/dist/esm/dbt/DbtSchemaEditor/DbtSchemaEditor.test.d.ts.map +0 -1
  967. package/dist/esm/dbt/DbtSchemaEditor/DbtSchemaEditor.test.js +0 -275
  968. package/dist/esm/dbt/DbtSchemaEditor/DbtSchemaEditor.test.js.map +0 -1
  969. package/dist/esm/dbt/manifest.test.d.ts +0 -2
  970. package/dist/esm/dbt/manifest.test.d.ts.map +0 -1
  971. package/dist/esm/dbt/manifest.test.js +0 -416
  972. package/dist/esm/dbt/manifest.test.js.map +0 -1
  973. package/dist/esm/dbt/metricFlow.test.d.ts +0 -2
  974. package/dist/esm/dbt/metricFlow.test.d.ts.map +0 -1
  975. package/dist/esm/dbt/metricFlow.test.js +0 -1343
  976. package/dist/esm/dbt/metricFlow.test.js.map +0 -1
  977. package/dist/esm/dbt/validation.csp.test.d.ts +0 -1
  978. package/dist/esm/dbt/validation.csp.test.d.ts.map +0 -1
  979. package/dist/esm/dbt/validation.csp.test.js +0 -33
  980. package/dist/esm/dbt/validation.csp.test.js.map +0 -1
  981. package/dist/esm/dbt/validation.test.d.ts +0 -2
  982. package/dist/esm/dbt/validation.test.d.ts.map +0 -1
  983. package/dist/esm/dbt/validation.test.js +0 -201
  984. package/dist/esm/dbt/validation.test.js.map +0 -1
  985. package/dist/esm/ee/AiAgent/aiAgentReviewClassifierTypes.test.d.ts +0 -2
  986. package/dist/esm/ee/AiAgent/aiAgentReviewClassifierTypes.test.d.ts.map +0 -1
  987. package/dist/esm/ee/AiAgent/aiAgentReviewClassifierTypes.test.js +0 -546
  988. package/dist/esm/ee/AiAgent/aiAgentReviewClassifierTypes.test.js.map +0 -1
  989. package/dist/esm/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.test.d.ts +0 -2
  990. package/dist/esm/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.test.d.ts.map +0 -1
  991. package/dist/esm/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.test.js +0 -54
  992. package/dist/esm/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.test.js.map +0 -1
  993. package/dist/esm/ee/AiAgent/dashboardContext.test.d.ts +0 -2
  994. package/dist/esm/ee/AiAgent/dashboardContext.test.d.ts.map +0 -1
  995. package/dist/esm/ee/AiAgent/dashboardContext.test.js +0 -59
  996. package/dist/esm/ee/AiAgent/dashboardContext.test.js.map +0 -1
  997. package/dist/esm/ee/AiAgent/filterExploreByTags.test.d.ts +0 -2
  998. package/dist/esm/ee/AiAgent/filterExploreByTags.test.d.ts.map +0 -1
  999. package/dist/esm/ee/AiAgent/filterExploreByTags.test.js +0 -634
  1000. package/dist/esm/ee/AiAgent/filterExploreByTags.test.js.map +0 -1
  1001. package/dist/esm/ee/AiAgent/projectContext.test.d.ts +0 -2
  1002. package/dist/esm/ee/AiAgent/projectContext.test.d.ts.map +0 -1
  1003. package/dist/esm/ee/AiAgent/projectContext.test.js +0 -532
  1004. package/dist/esm/ee/AiAgent/projectContext.test.js.map +0 -1
  1005. package/dist/esm/ee/AiAgent/schemas/McpSchemaCompatLayer.test.d.ts +0 -2
  1006. package/dist/esm/ee/AiAgent/schemas/McpSchemaCompatLayer.test.d.ts.map +0 -1
  1007. package/dist/esm/ee/AiAgent/schemas/McpSchemaCompatLayer.test.js +0 -541
  1008. package/dist/esm/ee/AiAgent/schemas/McpSchemaCompatLayer.test.js.map +0 -1
  1009. package/dist/esm/ee/AiAgent/schemas/defineTool.test.d.ts +0 -2
  1010. package/dist/esm/ee/AiAgent/schemas/defineTool.test.d.ts.map +0 -1
  1011. package/dist/esm/ee/AiAgent/schemas/defineTool.test.js +0 -281
  1012. package/dist/esm/ee/AiAgent/schemas/defineTool.test.js.map +0 -1
  1013. package/dist/esm/ee/AiAgent/schemas/filterExpressions/examples.test.d.ts +0 -2
  1014. package/dist/esm/ee/AiAgent/schemas/filterExpressions/examples.test.d.ts.map +0 -1
  1015. package/dist/esm/ee/AiAgent/schemas/filterExpressions/examples.test.js +0 -86
  1016. package/dist/esm/ee/AiAgent/schemas/filterExpressions/examples.test.js.map +0 -1
  1017. package/dist/esm/ee/AiAgent/schemas/filterExpressions/expressionSchemas.test.d.ts +0 -2
  1018. package/dist/esm/ee/AiAgent/schemas/filterExpressions/expressionSchemas.test.d.ts.map +0 -1
  1019. package/dist/esm/ee/AiAgent/schemas/filterExpressions/expressionSchemas.test.js +0 -384
  1020. package/dist/esm/ee/AiAgent/schemas/filterExpressions/expressionSchemas.test.js.map +0 -1
  1021. package/dist/esm/ee/AiAgent/schemas/filterExpressions/operators.test.d.ts +0 -2
  1022. package/dist/esm/ee/AiAgent/schemas/filterExpressions/operators.test.d.ts.map +0 -1
  1023. package/dist/esm/ee/AiAgent/schemas/filterExpressions/operators.test.js +0 -14
  1024. package/dist/esm/ee/AiAgent/schemas/filterExpressions/operators.test.js.map +0 -1
  1025. package/dist/esm/ee/AiAgent/schemas/filterExpressions/parse.test.d.ts +0 -2
  1026. package/dist/esm/ee/AiAgent/schemas/filterExpressions/parse.test.d.ts.map +0 -1
  1027. package/dist/esm/ee/AiAgent/schemas/filterExpressions/parse.test.js +0 -362
  1028. package/dist/esm/ee/AiAgent/schemas/filterExpressions/parse.test.js.map +0 -1
  1029. package/dist/esm/ee/AiAgent/schemas/filterExpressions/resolvedArgs.test.d.ts +0 -2
  1030. package/dist/esm/ee/AiAgent/schemas/filterExpressions/resolvedArgs.test.d.ts.map +0 -1
  1031. package/dist/esm/ee/AiAgent/schemas/filterExpressions/resolvedArgs.test.js +0 -218
  1032. package/dist/esm/ee/AiAgent/schemas/filterExpressions/resolvedArgs.test.js.map +0 -1
  1033. package/dist/esm/ee/AiAgent/schemas/persistedRunQueryArgs.test.d.ts +0 -2
  1034. package/dist/esm/ee/AiAgent/schemas/persistedRunQueryArgs.test.d.ts.map +0 -1
  1035. package/dist/esm/ee/AiAgent/schemas/persistedRunQueryArgs.test.js +0 -98
  1036. package/dist/esm/ee/AiAgent/schemas/persistedRunQueryArgs.test.js.map +0 -1
  1037. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts +0 -2
  1038. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts.map +0 -1
  1039. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js +0 -152
  1040. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js.map +0 -1
  1041. package/dist/esm/ee/AiAgent/schemas/toolSchemaBuilder.test.d.ts +0 -2
  1042. package/dist/esm/ee/AiAgent/schemas/toolSchemaBuilder.test.d.ts.map +0 -1
  1043. package/dist/esm/ee/AiAgent/schemas/toolSchemaBuilder.test.js +0 -19
  1044. package/dist/esm/ee/AiAgent/schemas/toolSchemaBuilder.test.js.map +0 -1
  1045. package/dist/esm/ee/AiAgent/schemas/tools/builtInToolResultGuard.test.d.ts +0 -2
  1046. package/dist/esm/ee/AiAgent/schemas/tools/builtInToolResultGuard.test.d.ts.map +0 -1
  1047. package/dist/esm/ee/AiAgent/schemas/tools/builtInToolResultGuard.test.js +0 -34
  1048. package/dist/esm/ee/AiAgent/schemas/tools/builtInToolResultGuard.test.js.map +0 -1
  1049. package/dist/esm/ee/AiAgent/schemas/tools/toolComposerQueryArgs.test.d.ts +0 -2
  1050. package/dist/esm/ee/AiAgent/schemas/tools/toolComposerQueryArgs.test.d.ts.map +0 -1
  1051. package/dist/esm/ee/AiAgent/schemas/tools/toolComposerQueryArgs.test.js +0 -96
  1052. package/dist/esm/ee/AiAgent/schemas/tools/toolComposerQueryArgs.test.js.map +0 -1
  1053. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.test.d.ts +0 -2
  1054. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.test.d.ts.map +0 -1
  1055. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.test.js +0 -58
  1056. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.test.js.map +0 -1
  1057. package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.test.d.ts +0 -2
  1058. package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.test.d.ts.map +0 -1
  1059. package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.test.js +0 -7
  1060. package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.test.js.map +0 -1
  1061. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.d.ts +0 -2
  1062. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.d.ts.map +0 -1
  1063. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.js +0 -66
  1064. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.js.map +0 -1
  1065. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.d.ts +0 -2
  1066. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.d.ts.map +0 -1
  1067. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.js +0 -25
  1068. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.js.map +0 -1
  1069. package/dist/esm/ee/AiAgent/schemas/tools/toolJsonSchemaEncoding.test.d.ts +0 -2
  1070. package/dist/esm/ee/AiAgent/schemas/tools/toolJsonSchemaEncoding.test.d.ts.map +0 -1
  1071. package/dist/esm/ee/AiAgent/schemas/tools/toolJsonSchemaEncoding.test.js +0 -173
  1072. package/dist/esm/ee/AiAgent/schemas/tools/toolJsonSchemaEncoding.test.js.map +0 -1
  1073. package/dist/esm/ee/AiAgent/schemas/tools/toolRunQueryArgs.test.d.ts +0 -2
  1074. package/dist/esm/ee/AiAgent/schemas/tools/toolRunQueryArgs.test.d.ts.map +0 -1
  1075. package/dist/esm/ee/AiAgent/schemas/tools/toolRunQueryArgs.test.js +0 -386
  1076. package/dist/esm/ee/AiAgent/schemas/tools/toolRunQueryArgs.test.js.map +0 -1
  1077. package/dist/esm/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.test.d.ts +0 -2
  1078. package/dist/esm/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.test.d.ts.map +0 -1
  1079. package/dist/esm/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.test.js +0 -86
  1080. package/dist/esm/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.test.js.map +0 -1
  1081. package/dist/esm/ee/AiAgent/schemas/tools/toolUpdateUserNameArgs.test.d.ts +0 -2
  1082. package/dist/esm/ee/AiAgent/schemas/tools/toolUpdateUserNameArgs.test.d.ts.map +0 -1
  1083. package/dist/esm/ee/AiAgent/schemas/tools/toolUpdateUserNameArgs.test.js +0 -32
  1084. package/dist/esm/ee/AiAgent/schemas/tools/toolUpdateUserNameArgs.test.js.map +0 -1
  1085. package/dist/esm/ee/AiAgent/schemas/zod4BehaviorCompatibility.test.d.ts +0 -2
  1086. package/dist/esm/ee/AiAgent/schemas/zod4BehaviorCompatibility.test.d.ts.map +0 -1
  1087. package/dist/esm/ee/AiAgent/schemas/zod4BehaviorCompatibility.test.js +0 -96
  1088. package/dist/esm/ee/AiAgent/schemas/zod4BehaviorCompatibility.test.js.map +0 -1
  1089. package/dist/esm/ee/AiAgent/utils.test.d.ts +0 -2
  1090. package/dist/esm/ee/AiAgent/utils.test.d.ts.map +0 -1
  1091. package/dist/esm/ee/AiAgent/utils.test.js +0 -542
  1092. package/dist/esm/ee/AiAgent/utils.test.js.map +0 -1
  1093. package/dist/esm/ee/aiDeepResearch/markdown.test.d.ts +0 -2
  1094. package/dist/esm/ee/aiDeepResearch/markdown.test.d.ts.map +0 -1
  1095. package/dist/esm/ee/aiDeepResearch/markdown.test.js +0 -329
  1096. package/dist/esm/ee/aiDeepResearch/markdown.test.js.map +0 -1
  1097. package/dist/esm/ee/aiDeepResearch/types.test.d.ts +0 -2
  1098. package/dist/esm/ee/aiDeepResearch/types.test.d.ts.map +0 -1
  1099. package/dist/esm/ee/aiDeepResearch/types.test.js +0 -7
  1100. package/dist/esm/ee/aiDeepResearch/types.test.js.map +0 -1
  1101. package/dist/esm/ee/aiWriteback/mcpTask.test.d.ts +0 -2
  1102. package/dist/esm/ee/aiWriteback/mcpTask.test.d.ts.map +0 -1
  1103. package/dist/esm/ee/aiWriteback/mcpTask.test.js +0 -34
  1104. package/dist/esm/ee/aiWriteback/mcpTask.test.js.map +0 -1
  1105. package/dist/esm/ee/apps/chartTypeIcons.test.d.ts +0 -2
  1106. package/dist/esm/ee/apps/chartTypeIcons.test.d.ts.map +0 -1
  1107. package/dist/esm/ee/apps/chartTypeIcons.test.js +0 -28
  1108. package/dist/esm/ee/apps/chartTypeIcons.test.js.map +0 -1
  1109. package/dist/esm/ee/apps/code.test.d.ts +0 -2
  1110. package/dist/esm/ee/apps/code.test.d.ts.map +0 -1
  1111. package/dist/esm/ee/apps/code.test.js +0 -510
  1112. package/dist/esm/ee/apps/code.test.js.map +0 -1
  1113. package/dist/esm/ee/apps/customChartTypeSerializer.test.d.ts +0 -2
  1114. package/dist/esm/ee/apps/customChartTypeSerializer.test.d.ts.map +0 -1
  1115. package/dist/esm/ee/apps/customChartTypeSerializer.test.js +0 -145
  1116. package/dist/esm/ee/apps/customChartTypeSerializer.test.js.map +0 -1
  1117. package/dist/esm/ee/apps/dataAppVizSchemaChanges.test.d.ts +0 -2
  1118. package/dist/esm/ee/apps/dataAppVizSchemaChanges.test.d.ts.map +0 -1
  1119. package/dist/esm/ee/apps/dataAppVizSchemaChanges.test.js +0 -153
  1120. package/dist/esm/ee/apps/dataAppVizSchemaChanges.test.js.map +0 -1
  1121. package/dist/esm/ee/apps/dataReferenceChecker.test.d.ts +0 -2
  1122. package/dist/esm/ee/apps/dataReferenceChecker.test.d.ts.map +0 -1
  1123. package/dist/esm/ee/apps/dataReferenceChecker.test.js +0 -380
  1124. package/dist/esm/ee/apps/dataReferenceChecker.test.js.map +0 -1
  1125. package/dist/esm/ee/apps/dataReferences.test.d.ts +0 -2
  1126. package/dist/esm/ee/apps/dataReferences.test.d.ts.map +0 -1
  1127. package/dist/esm/ee/apps/dataReferences.test.js +0 -607
  1128. package/dist/esm/ee/apps/dataReferences.test.js.map +0 -1
  1129. package/dist/esm/ee/apps/dataReferencesDocs.test.d.ts +0 -2
  1130. package/dist/esm/ee/apps/dataReferencesDocs.test.d.ts.map +0 -1
  1131. package/dist/esm/ee/apps/dataReferencesDocs.test.js +0 -139
  1132. package/dist/esm/ee/apps/dataReferencesDocs.test.js.map +0 -1
  1133. package/dist/esm/ee/apps/deliveryCapture.test.d.ts +0 -2
  1134. package/dist/esm/ee/apps/deliveryCapture.test.d.ts.map +0 -1
  1135. package/dist/esm/ee/apps/deliveryCapture.test.js +0 -205
  1136. package/dist/esm/ee/apps/deliveryCapture.test.js.map +0 -1
  1137. package/dist/esm/ee/apps/elementReference.test.d.ts +0 -2
  1138. package/dist/esm/ee/apps/elementReference.test.d.ts.map +0 -1
  1139. package/dist/esm/ee/apps/elementReference.test.js +0 -34
  1140. package/dist/esm/ee/apps/elementReference.test.js.map +0 -1
  1141. package/dist/esm/ee/apps/registry.test.d.ts +0 -2
  1142. package/dist/esm/ee/apps/registry.test.d.ts.map +0 -1
  1143. package/dist/esm/ee/apps/registry.test.js +0 -90
  1144. package/dist/esm/ee/apps/registry.test.js.map +0 -1
  1145. package/dist/esm/ee/apps/types.test.d.ts +0 -2
  1146. package/dist/esm/ee/apps/types.test.d.ts.map +0 -1
  1147. package/dist/esm/ee/apps/types.test.js +0 -441
  1148. package/dist/esm/ee/apps/types.test.js.map +0 -1
  1149. package/dist/esm/ee/embed/index.test.d.ts +0 -2
  1150. package/dist/esm/ee/embed/index.test.d.ts.map +0 -1
  1151. package/dist/esm/ee/embed/index.test.js +0 -157
  1152. package/dist/esm/ee/embed/index.test.js.map +0 -1
  1153. package/dist/esm/ee/homepage/schema.test.d.ts +0 -2
  1154. package/dist/esm/ee/homepage/schema.test.d.ts.map +0 -1
  1155. package/dist/esm/ee/homepage/schema.test.js +0 -338
  1156. package/dist/esm/ee/homepage/schema.test.js.map +0 -1
  1157. package/dist/esm/ee/homepage/verifiedSource.schema.test.d.ts +0 -2
  1158. package/dist/esm/ee/homepage/verifiedSource.schema.test.d.ts.map +0 -1
  1159. package/dist/esm/ee/homepage/verifiedSource.schema.test.js +0 -27
  1160. package/dist/esm/ee/homepage/verifiedSource.schema.test.js.map +0 -1
  1161. package/dist/esm/ee/mcp/tasks.test.d.ts +0 -2
  1162. package/dist/esm/ee/mcp/tasks.test.d.ts.map +0 -1
  1163. package/dist/esm/ee/mcp/tasks.test.js +0 -50
  1164. package/dist/esm/ee/mcp/tasks.test.js.map +0 -1
  1165. package/dist/esm/ee/preAggregates/dimensionEligibility.test.d.ts +0 -2
  1166. package/dist/esm/ee/preAggregates/dimensionEligibility.test.d.ts.map +0 -1
  1167. package/dist/esm/ee/preAggregates/dimensionEligibility.test.js +0 -216
  1168. package/dist/esm/ee/preAggregates/dimensionEligibility.test.js.map +0 -1
  1169. package/dist/esm/ee/preAggregates/metricEligibility.test.d.ts +0 -2
  1170. package/dist/esm/ee/preAggregates/metricEligibility.test.d.ts.map +0 -1
  1171. package/dist/esm/ee/preAggregates/metricEligibility.test.js +0 -374
  1172. package/dist/esm/ee/preAggregates/metricEligibility.test.js.map +0 -1
  1173. package/dist/esm/ee/preAggregates/numberMetricDependencies.test.d.ts +0 -2
  1174. package/dist/esm/ee/preAggregates/numberMetricDependencies.test.d.ts.map +0 -1
  1175. package/dist/esm/ee/preAggregates/numberMetricDependencies.test.js +0 -105
  1176. package/dist/esm/ee/preAggregates/numberMetricDependencies.test.js.map +0 -1
  1177. package/dist/esm/ee/types/aiReviewNotification.test.d.ts +0 -2
  1178. package/dist/esm/ee/types/aiReviewNotification.test.d.ts.map +0 -1
  1179. package/dist/esm/ee/types/aiReviewNotification.test.js +0 -117
  1180. package/dist/esm/ee/types/aiReviewNotification.test.js.map +0 -1
  1181. package/dist/esm/ee/types/managedAgentPolicy.test.d.ts +0 -2
  1182. package/dist/esm/ee/types/managedAgentPolicy.test.d.ts.map +0 -1
  1183. package/dist/esm/ee/types/managedAgentPolicy.test.js +0 -48
  1184. package/dist/esm/ee/types/managedAgentPolicy.test.js.map +0 -1
  1185. package/dist/esm/ee/types/managedAgentSpaceScope.test.d.ts +0 -2
  1186. package/dist/esm/ee/types/managedAgentSpaceScope.test.d.ts.map +0 -1
  1187. package/dist/esm/ee/types/managedAgentSpaceScope.test.js +0 -45
  1188. package/dist/esm/ee/types/managedAgentSpaceScope.test.js.map +0 -1
  1189. package/dist/esm/index.barrel.test.d.ts +0 -2
  1190. package/dist/esm/index.barrel.test.d.ts.map +0 -1
  1191. package/dist/esm/index.barrel.test.js +0 -62
  1192. package/dist/esm/index.barrel.test.js.map +0 -1
  1193. package/dist/esm/index.mock.d.ts +0 -8
  1194. package/dist/esm/index.mock.d.ts.map +0 -1
  1195. package/dist/esm/index.mock.js +0 -44
  1196. package/dist/esm/index.mock.js.map +0 -1
  1197. package/dist/esm/index.test.d.ts +0 -2
  1198. package/dist/esm/index.test.d.ts.map +0 -1
  1199. package/dist/esm/index.test.js +0 -201
  1200. package/dist/esm/index.test.js.map +0 -1
  1201. package/dist/esm/lightdash/LightdashModelEditor.test.d.ts +0 -2
  1202. package/dist/esm/lightdash/LightdashModelEditor.test.d.ts.map +0 -1
  1203. package/dist/esm/lightdash/LightdashModelEditor.test.js +0 -193
  1204. package/dist/esm/lightdash/LightdashModelEditor.test.js.map +0 -1
  1205. package/dist/esm/lightdash/loader.test.d.ts +0 -2
  1206. package/dist/esm/lightdash/loader.test.d.ts.map +0 -1
  1207. package/dist/esm/lightdash/loader.test.js +0 -72
  1208. package/dist/esm/lightdash/loader.test.js.map +0 -1
  1209. package/dist/esm/packageExports.test.d.ts +0 -2
  1210. package/dist/esm/packageExports.test.d.ts.map +0 -1
  1211. package/dist/esm/packageExports.test.js +0 -40
  1212. package/dist/esm/packageExports.test.js.map +0 -1
  1213. package/dist/esm/parameters/reservedParameters.test.d.ts +0 -2
  1214. package/dist/esm/parameters/reservedParameters.test.d.ts.map +0 -1
  1215. package/dist/esm/parameters/reservedParameters.test.js +0 -101
  1216. package/dist/esm/parameters/reservedParameters.test.js.map +0 -1
  1217. package/dist/esm/pivot/buildWarehouseTotals.test.d.ts +0 -2
  1218. package/dist/esm/pivot/buildWarehouseTotals.test.d.ts.map +0 -1
  1219. package/dist/esm/pivot/buildWarehouseTotals.test.js +0 -42
  1220. package/dist/esm/pivot/buildWarehouseTotals.test.js.map +0 -1
  1221. package/dist/esm/pivot/deriveDataAppVizPivotConfig.test.d.ts +0 -2
  1222. package/dist/esm/pivot/deriveDataAppVizPivotConfig.test.d.ts.map +0 -1
  1223. package/dist/esm/pivot/deriveDataAppVizPivotConfig.test.js +0 -31
  1224. package/dist/esm/pivot/deriveDataAppVizPivotConfig.test.js.map +0 -1
  1225. package/dist/esm/pivot/derivePivotConfigFromChart.mock.d.ts +0 -8
  1226. package/dist/esm/pivot/derivePivotConfigFromChart.mock.d.ts.map +0 -1
  1227. package/dist/esm/pivot/derivePivotConfigFromChart.mock.js +0 -112
  1228. package/dist/esm/pivot/derivePivotConfigFromChart.mock.js.map +0 -1
  1229. package/dist/esm/pivot/derivePivotConfigFromChart.test.d.ts +0 -2
  1230. package/dist/esm/pivot/derivePivotConfigFromChart.test.d.ts.map +0 -1
  1231. package/dist/esm/pivot/derivePivotConfigFromChart.test.js +0 -1419
  1232. package/dist/esm/pivot/derivePivotConfigFromChart.test.js.map +0 -1
  1233. package/dist/esm/pivot/pivotColumnName.test.d.ts +0 -2
  1234. package/dist/esm/pivot/pivotColumnName.test.d.ts.map +0 -1
  1235. package/dist/esm/pivot/pivotColumnName.test.js +0 -47
  1236. package/dist/esm/pivot/pivotColumnName.test.js.map +0 -1
  1237. package/dist/esm/pivot/pivotConfig.test.d.ts +0 -2
  1238. package/dist/esm/pivot/pivotConfig.test.d.ts.map +0 -1
  1239. package/dist/esm/pivot/pivotConfig.test.js +0 -228
  1240. package/dist/esm/pivot/pivotConfig.test.js.map +0 -1
  1241. package/dist/esm/pivot/pivotQueryResults.mock.d.ts +0 -14
  1242. package/dist/esm/pivot/pivotQueryResults.mock.d.ts.map +0 -1
  1243. package/dist/esm/pivot/pivotQueryResults.mock.js +0 -2082
  1244. package/dist/esm/pivot/pivotQueryResults.mock.js.map +0 -1
  1245. package/dist/esm/pivot/pivotQueryResults.test.d.ts +0 -2
  1246. package/dist/esm/pivot/pivotQueryResults.test.d.ts.map +0 -1
  1247. package/dist/esm/pivot/pivotQueryResults.test.js +0 -1676
  1248. package/dist/esm/pivot/pivotQueryResults.test.js.map +0 -1
  1249. package/dist/esm/pivot/pivotResultsAsCsv.test.d.ts +0 -2
  1250. package/dist/esm/pivot/pivotResultsAsCsv.test.d.ts.map +0 -1
  1251. package/dist/esm/pivot/pivotResultsAsCsv.test.js +0 -264
  1252. package/dist/esm/pivot/pivotResultsAsCsv.test.js.map +0 -1
  1253. package/dist/esm/pivot/timeIntervalToExcelNumFmt.test.d.ts +0 -2
  1254. package/dist/esm/pivot/timeIntervalToExcelNumFmt.test.d.ts.map +0 -1
  1255. package/dist/esm/pivot/timeIntervalToExcelNumFmt.test.js +0 -54
  1256. package/dist/esm/pivot/timeIntervalToExcelNumFmt.test.js.map +0 -1
  1257. package/dist/esm/preAggregates/definition.test.d.ts +0 -2
  1258. package/dist/esm/preAggregates/definition.test.d.ts.map +0 -1
  1259. package/dist/esm/preAggregates/definition.test.js +0 -291
  1260. package/dist/esm/preAggregates/definition.test.js.map +0 -1
  1261. package/dist/esm/preAggregates/schema.test.d.ts +0 -2
  1262. package/dist/esm/preAggregates/schema.test.d.ts.map +0 -1
  1263. package/dist/esm/preAggregates/schema.test.js +0 -225
  1264. package/dist/esm/preAggregates/schema.test.js.map +0 -1
  1265. package/dist/esm/schemas/generateChartAsCodeSchema.test.d.ts +0 -2
  1266. package/dist/esm/schemas/generateChartAsCodeSchema.test.d.ts.map +0 -1
  1267. package/dist/esm/schemas/generateChartAsCodeSchema.test.js +0 -177
  1268. package/dist/esm/schemas/generateChartAsCodeSchema.test.js.map +0 -1
  1269. package/dist/esm/schemas/generateDashboardAsCodeSchema.test.d.ts +0 -2
  1270. package/dist/esm/schemas/generateDashboardAsCodeSchema.test.d.ts.map +0 -1
  1271. package/dist/esm/schemas/generateDashboardAsCodeSchema.test.js +0 -504
  1272. package/dist/esm/schemas/generateDashboardAsCodeSchema.test.js.map +0 -1
  1273. package/dist/esm/templating/liquidSql.test.d.ts +0 -2
  1274. package/dist/esm/templating/liquidSql.test.d.ts.map +0 -1
  1275. package/dist/esm/templating/liquidSql.test.js +0 -397
  1276. package/dist/esm/templating/liquidSql.test.js.map +0 -1
  1277. package/dist/esm/templating/template.mock.d.ts +0 -45
  1278. package/dist/esm/templating/template.mock.d.ts.map +0 -1
  1279. package/dist/esm/templating/template.mock.js +0 -45
  1280. package/dist/esm/templating/template.mock.js.map +0 -1
  1281. package/dist/esm/templating/template.test.d.ts +0 -2
  1282. package/dist/esm/templating/template.test.d.ts.map +0 -1
  1283. package/dist/esm/templating/template.test.js +0 -21
  1284. package/dist/esm/templating/template.test.js.map +0 -1
  1285. package/dist/esm/types/api/notifications.test.d.ts +0 -2
  1286. package/dist/esm/types/api/notifications.test.d.ts.map +0 -1
  1287. package/dist/esm/types/api/notifications.test.js +0 -5
  1288. package/dist/esm/types/api/notifications.test.js.map +0 -1
  1289. package/dist/esm/types/applyDimensionOverrides.test.d.ts +0 -2
  1290. package/dist/esm/types/applyDimensionOverrides.test.d.ts.map +0 -1
  1291. package/dist/esm/types/applyDimensionOverrides.test.js +0 -579
  1292. package/dist/esm/types/applyDimensionOverrides.test.js.map +0 -1
  1293. package/dist/esm/types/applyMetricOverrides.test.d.ts +0 -2
  1294. package/dist/esm/types/applyMetricOverrides.test.d.ts.map +0 -1
  1295. package/dist/esm/types/applyMetricOverrides.test.js +0 -80
  1296. package/dist/esm/types/applyMetricOverrides.test.js.map +0 -1
  1297. package/dist/esm/types/contentAsCode/base.test.d.ts +0 -2
  1298. package/dist/esm/types/contentAsCode/base.test.d.ts.map +0 -1
  1299. package/dist/esm/types/contentAsCode/base.test.js +0 -59
  1300. package/dist/esm/types/contentAsCode/base.test.js.map +0 -1
  1301. package/dist/esm/types/contentAsCode/draftRebase.test.d.ts +0 -2
  1302. package/dist/esm/types/contentAsCode/draftRebase.test.d.ts.map +0 -1
  1303. package/dist/esm/types/contentAsCode/draftRebase.test.js +0 -115
  1304. package/dist/esm/types/contentAsCode/draftRebase.test.js.map +0 -1
  1305. package/dist/esm/types/contentAsCode/parsers.test.d.ts +0 -2
  1306. package/dist/esm/types/contentAsCode/parsers.test.d.ts.map +0 -1
  1307. package/dist/esm/types/contentAsCode/parsers.test.js +0 -44
  1308. package/dist/esm/types/contentAsCode/parsers.test.js.map +0 -1
  1309. package/dist/esm/types/dataRetention.test.d.ts +0 -2
  1310. package/dist/esm/types/dataRetention.test.d.ts.map +0 -1
  1311. package/dist/esm/types/dataRetention.test.js +0 -55
  1312. package/dist/esm/types/dataRetention.test.js.map +0 -1
  1313. package/dist/esm/types/dataTimezonePreview.test.d.ts +0 -2
  1314. package/dist/esm/types/dataTimezonePreview.test.d.ts.map +0 -1
  1315. package/dist/esm/types/dataTimezonePreview.test.js +0 -106
  1316. package/dist/esm/types/dataTimezonePreview.test.js.map +0 -1
  1317. package/dist/esm/types/dbt.test.d.ts +0 -2
  1318. package/dist/esm/types/dbt.test.d.ts.map +0 -1
  1319. package/dist/esm/types/dbt.test.js +0 -389
  1320. package/dist/esm/types/dbt.test.js.map +0 -1
  1321. package/dist/esm/types/errors.test.d.ts +0 -2
  1322. package/dist/esm/types/errors.test.d.ts.map +0 -1
  1323. package/dist/esm/types/errors.test.js +0 -14
  1324. package/dist/esm/types/errors.test.js.map +0 -1
  1325. package/dist/esm/types/field.test.d.ts +0 -2
  1326. package/dist/esm/types/field.test.d.ts.map +0 -1
  1327. package/dist/esm/types/field.test.js +0 -83
  1328. package/dist/esm/types/field.test.js.map +0 -1
  1329. package/dist/esm/types/filter.test.d.ts +0 -2
  1330. package/dist/esm/types/filter.test.d.ts.map +0 -1
  1331. package/dist/esm/types/filter.test.js +0 -396
  1332. package/dist/esm/types/filter.test.js.map +0 -1
  1333. package/dist/esm/types/filterGrammar.test.d.ts +0 -2
  1334. package/dist/esm/types/filterGrammar.test.d.ts.map +0 -1
  1335. package/dist/esm/types/filterGrammar.test.js +0 -745
  1336. package/dist/esm/types/filterGrammar.test.js.map +0 -1
  1337. package/dist/esm/types/filterGrammarConversion.test.d.ts +0 -2
  1338. package/dist/esm/types/filterGrammarConversion.test.d.ts.map +0 -1
  1339. package/dist/esm/types/filterGrammarConversion.test.js +0 -308
  1340. package/dist/esm/types/filterGrammarConversion.test.js.map +0 -1
  1341. package/dist/esm/types/gitIntegration.test.d.ts +0 -2
  1342. package/dist/esm/types/gitIntegration.test.d.ts.map +0 -1
  1343. package/dist/esm/types/gitIntegration.test.js +0 -51
  1344. package/dist/esm/types/gitIntegration.test.js.map +0 -1
  1345. package/dist/esm/types/jira.test.d.ts +0 -2
  1346. package/dist/esm/types/jira.test.d.ts.map +0 -1
  1347. package/dist/esm/types/jira.test.js +0 -11
  1348. package/dist/esm/types/jira.test.js.map +0 -1
  1349. package/dist/esm/types/linear.test.d.ts +0 -2
  1350. package/dist/esm/types/linear.test.d.ts.map +0 -1
  1351. package/dist/esm/types/linear.test.js +0 -13
  1352. package/dist/esm/types/linear.test.js.map +0 -1
  1353. package/dist/esm/types/mergeQuery.test.d.ts +0 -2
  1354. package/dist/esm/types/mergeQuery.test.d.ts.map +0 -1
  1355. package/dist/esm/types/mergeQuery.test.js +0 -385
  1356. package/dist/esm/types/mergeQuery.test.js.map +0 -1
  1357. package/dist/esm/types/organizationSettings.test.d.ts +0 -2
  1358. package/dist/esm/types/organizationSettings.test.d.ts.map +0 -1
  1359. package/dist/esm/types/organizationSettings.test.js +0 -105
  1360. package/dist/esm/types/organizationSettings.test.js.map +0 -1
  1361. package/dist/esm/types/periodOverPeriodComparison.test.d.ts +0 -2
  1362. package/dist/esm/types/periodOverPeriodComparison.test.d.ts.map +0 -1
  1363. package/dist/esm/types/periodOverPeriodComparison.test.js +0 -99
  1364. package/dist/esm/types/periodOverPeriodComparison.test.js.map +0 -1
  1365. package/dist/esm/types/projects.test.d.ts +0 -2
  1366. package/dist/esm/types/projects.test.d.ts.map +0 -1
  1367. package/dist/esm/types/projects.test.js +0 -319
  1368. package/dist/esm/types/projects.test.js.map +0 -1
  1369. package/dist/esm/types/savedCharts.test.d.ts +0 -2
  1370. package/dist/esm/types/savedCharts.test.d.ts.map +0 -1
  1371. package/dist/esm/types/savedCharts.test.js +0 -136
  1372. package/dist/esm/types/savedCharts.test.js.map +0 -1
  1373. package/dist/esm/types/scheduler.test.d.ts +0 -2
  1374. package/dist/esm/types/scheduler.test.d.ts.map +0 -1
  1375. package/dist/esm/types/scheduler.test.js +0 -36
  1376. package/dist/esm/types/scheduler.test.js.map +0 -1
  1377. package/dist/esm/types/schedulerTaskList.test.d.ts +0 -2
  1378. package/dist/esm/types/schedulerTaskList.test.d.ts.map +0 -1
  1379. package/dist/esm/types/schedulerTaskList.test.js +0 -16
  1380. package/dist/esm/types/schedulerTaskList.test.js.map +0 -1
  1381. package/dist/esm/types/userAvatars.test.d.ts +0 -2
  1382. package/dist/esm/types/userAvatars.test.d.ts.map +0 -1
  1383. package/dist/esm/types/userAvatars.test.js +0 -124
  1384. package/dist/esm/types/userAvatars.test.js.map +0 -1
  1385. package/dist/esm/types/userWarehouseCredentials.test.d.ts +0 -2
  1386. package/dist/esm/types/userWarehouseCredentials.test.d.ts.map +0 -1
  1387. package/dist/esm/types/userWarehouseCredentials.test.js +0 -80
  1388. package/dist/esm/types/userWarehouseCredentials.test.js.map +0 -1
  1389. package/dist/esm/types/warehouse.test.d.ts +0 -2
  1390. package/dist/esm/types/warehouse.test.d.ts.map +0 -1
  1391. package/dist/esm/types/warehouse.test.js +0 -104
  1392. package/dist/esm/types/warehouse.test.js.map +0 -1
  1393. package/dist/esm/utils/accessors.test.d.ts +0 -2
  1394. package/dist/esm/utils/accessors.test.d.ts.map +0 -1
  1395. package/dist/esm/utils/accessors.test.js +0 -45
  1396. package/dist/esm/utils/accessors.test.js.map +0 -1
  1397. package/dist/esm/utils/additionalMetrics.test.d.ts +0 -2
  1398. package/dist/esm/utils/additionalMetrics.test.d.ts.map +0 -1
  1399. package/dist/esm/utils/additionalMetrics.test.js +0 -336
  1400. package/dist/esm/utils/additionalMetrics.test.js.map +0 -1
  1401. package/dist/esm/utils/applyChartFilterOverrides.test.d.ts +0 -2
  1402. package/dist/esm/utils/applyChartFilterOverrides.test.d.ts.map +0 -1
  1403. package/dist/esm/utils/applyChartFilterOverrides.test.js +0 -216
  1404. package/dist/esm/utils/applyChartFilterOverrides.test.js.map +0 -1
  1405. package/dist/esm/utils/bigNumber.test.d.ts +0 -2
  1406. package/dist/esm/utils/bigNumber.test.d.ts.map +0 -1
  1407. package/dist/esm/utils/bigNumber.test.js +0 -102
  1408. package/dist/esm/utils/bigNumber.test.js.map +0 -1
  1409. package/dist/esm/utils/booleanConverter.test.d.ts +0 -2
  1410. package/dist/esm/utils/booleanConverter.test.d.ts.map +0 -1
  1411. package/dist/esm/utils/booleanConverter.test.js +0 -59
  1412. package/dist/esm/utils/booleanConverter.test.js.map +0 -1
  1413. package/dist/esm/utils/chartValidation.test.d.ts +0 -2
  1414. package/dist/esm/utils/chartValidation.test.d.ts.map +0 -1
  1415. package/dist/esm/utils/chartValidation.test.js +0 -45
  1416. package/dist/esm/utils/chartValidation.test.js.map +0 -1
  1417. package/dist/esm/utils/charts.test.d.ts +0 -2
  1418. package/dist/esm/utils/charts.test.d.ts.map +0 -1
  1419. package/dist/esm/utils/charts.test.js +0 -44
  1420. package/dist/esm/utils/charts.test.js.map +0 -1
  1421. package/dist/esm/utils/colors.test.d.ts +0 -2
  1422. package/dist/esm/utils/colors.test.d.ts.map +0 -1
  1423. package/dist/esm/utils/colors.test.js +0 -85
  1424. package/dist/esm/utils/colors.test.js.map +0 -1
  1425. package/dist/esm/utils/conditionalFormatExpressions.test.d.ts +0 -2
  1426. package/dist/esm/utils/conditionalFormatExpressions.test.d.ts.map +0 -1
  1427. package/dist/esm/utils/conditionalFormatExpressions.test.js +0 -161
  1428. package/dist/esm/utils/conditionalFormatExpressions.test.js.map +0 -1
  1429. package/dist/esm/utils/conditionalFormatting.test.d.ts +0 -2
  1430. package/dist/esm/utils/conditionalFormatting.test.d.ts.map +0 -1
  1431. package/dist/esm/utils/conditionalFormatting.test.js +0 -359
  1432. package/dist/esm/utils/conditionalFormatting.test.js.map +0 -1
  1433. package/dist/esm/utils/connectionChanges.test.d.ts +0 -2
  1434. package/dist/esm/utils/connectionChanges.test.d.ts.map +0 -1
  1435. package/dist/esm/utils/connectionChanges.test.js +0 -166
  1436. package/dist/esm/utils/connectionChanges.test.js.map +0 -1
  1437. package/dist/esm/utils/customDimensions.test.d.ts +0 -2
  1438. package/dist/esm/utils/customDimensions.test.d.ts.map +0 -1
  1439. package/dist/esm/utils/customDimensions.test.js +0 -232
  1440. package/dist/esm/utils/customDimensions.test.js.map +0 -1
  1441. package/dist/esm/utils/dashboard.test.d.ts +0 -2
  1442. package/dist/esm/utils/dashboard.test.d.ts.map +0 -1
  1443. package/dist/esm/utils/dashboard.test.js +0 -81
  1444. package/dist/esm/utils/dashboard.test.js.map +0 -1
  1445. package/dist/esm/utils/dateZoom.test.d.ts +0 -2
  1446. package/dist/esm/utils/dateZoom.test.d.ts.map +0 -1
  1447. package/dist/esm/utils/dateZoom.test.js +0 -1034
  1448. package/dist/esm/utils/dateZoom.test.js.map +0 -1
  1449. package/dist/esm/utils/dbt.test.d.ts +0 -2
  1450. package/dist/esm/utils/dbt.test.d.ts.map +0 -1
  1451. package/dist/esm/utils/dbt.test.js +0 -39
  1452. package/dist/esm/utils/dbt.test.js.map +0 -1
  1453. package/dist/esm/utils/dependencyGraph.test.d.ts +0 -2
  1454. package/dist/esm/utils/dependencyGraph.test.d.ts.map +0 -1
  1455. package/dist/esm/utils/dependencyGraph.test.js +0 -113
  1456. package/dist/esm/utils/dependencyGraph.test.js.map +0 -1
  1457. package/dist/esm/utils/email.test.d.ts +0 -2
  1458. package/dist/esm/utils/email.test.d.ts.map +0 -1
  1459. package/dist/esm/utils/email.test.js +0 -89
  1460. package/dist/esm/utils/email.test.js.map +0 -1
  1461. package/dist/esm/utils/exportTabs.test.d.ts +0 -2
  1462. package/dist/esm/utils/exportTabs.test.d.ts.map +0 -1
  1463. package/dist/esm/utils/exportTabs.test.js +0 -121
  1464. package/dist/esm/utils/exportTabs.test.js.map +0 -1
  1465. package/dist/esm/utils/fields.mock.d.ts +0 -20
  1466. package/dist/esm/utils/fields.mock.d.ts.map +0 -1
  1467. package/dist/esm/utils/fields.mock.js +0 -252
  1468. package/dist/esm/utils/fields.mock.js.map +0 -1
  1469. package/dist/esm/utils/fields.test.d.ts +0 -2
  1470. package/dist/esm/utils/fields.test.d.ts.map +0 -1
  1471. package/dist/esm/utils/fields.test.js +0 -280
  1472. package/dist/esm/utils/fields.test.js.map +0 -1
  1473. package/dist/esm/utils/filterLabels.test.d.ts +0 -2
  1474. package/dist/esm/utils/filterLabels.test.d.ts.map +0 -1
  1475. package/dist/esm/utils/filterLabels.test.js +0 -79
  1476. package/dist/esm/utils/filterLabels.test.js.map +0 -1
  1477. package/dist/esm/utils/filterLabelsGolden.test.d.ts +0 -2
  1478. package/dist/esm/utils/filterLabelsGolden.test.d.ts.map +0 -1
  1479. package/dist/esm/utils/filterLabelsGolden.test.js +0 -85
  1480. package/dist/esm/utils/filterLabelsGolden.test.js.map +0 -1
  1481. package/dist/esm/utils/filters.mock.d.ts +0 -28
  1482. package/dist/esm/utils/filters.mock.d.ts.map +0 -1
  1483. package/dist/esm/utils/filters.mock.js +0 -533
  1484. package/dist/esm/utils/filters.mock.js.map +0 -1
  1485. package/dist/esm/utils/filters.test.d.ts +0 -2
  1486. package/dist/esm/utils/filters.test.d.ts.map +0 -1
  1487. package/dist/esm/utils/filters.test.js +0 -1984
  1488. package/dist/esm/utils/filters.test.js.map +0 -1
  1489. package/dist/esm/utils/formatting.mock.d.ts +0 -6
  1490. package/dist/esm/utils/formatting.mock.d.ts.map +0 -1
  1491. package/dist/esm/utils/formatting.mock.js +0 -35
  1492. package/dist/esm/utils/formatting.mock.js.map +0 -1
  1493. package/dist/esm/utils/formatting.test.d.ts +0 -2
  1494. package/dist/esm/utils/formatting.test.d.ts.map +0 -1
  1495. package/dist/esm/utils/formatting.test.js +0 -2628
  1496. package/dist/esm/utils/formatting.test.js.map +0 -1
  1497. package/dist/esm/utils/github.test.d.ts +0 -2
  1498. package/dist/esm/utils/github.test.d.ts.map +0 -1
  1499. package/dist/esm/utils/github.test.js +0 -23
  1500. package/dist/esm/utils/github.test.js.map +0 -1
  1501. package/dist/esm/utils/i18n/chartAsCode.test.d.ts +0 -2
  1502. package/dist/esm/utils/i18n/chartAsCode.test.d.ts.map +0 -1
  1503. package/dist/esm/utils/i18n/chartAsCode.test.js +0 -365
  1504. package/dist/esm/utils/i18n/chartAsCode.test.js.map +0 -1
  1505. package/dist/esm/utils/i18n/dashboardAsCode.test.d.ts +0 -2
  1506. package/dist/esm/utils/i18n/dashboardAsCode.test.d.ts.map +0 -1
  1507. package/dist/esm/utils/i18n/dashboardAsCode.test.js +0 -167
  1508. package/dist/esm/utils/i18n/dashboardAsCode.test.js.map +0 -1
  1509. package/dist/esm/utils/i18n/uiStrings.test.d.ts +0 -2
  1510. package/dist/esm/utils/i18n/uiStrings.test.d.ts.map +0 -1
  1511. package/dist/esm/utils/i18n/uiStrings.test.js +0 -42
  1512. package/dist/esm/utils/i18n/uiStrings.test.js.map +0 -1
  1513. package/dist/esm/utils/loadLightdashProjectConfig.mock.d.ts +0 -24
  1514. package/dist/esm/utils/loadLightdashProjectConfig.mock.d.ts.map +0 -1
  1515. package/dist/esm/utils/loadLightdashProjectConfig.mock.js +0 -201
  1516. package/dist/esm/utils/loadLightdashProjectConfig.mock.js.map +0 -1
  1517. package/dist/esm/utils/loadLightdashProjectConfig.test.d.ts +0 -2
  1518. package/dist/esm/utils/loadLightdashProjectConfig.test.d.ts.map +0 -1
  1519. package/dist/esm/utils/loadLightdashProjectConfig.test.js +0 -221
  1520. package/dist/esm/utils/loadLightdashProjectConfig.test.js.map +0 -1
  1521. package/dist/esm/utils/mergeQueryItems.test.d.ts +0 -2
  1522. package/dist/esm/utils/mergeQueryItems.test.d.ts.map +0 -1
  1523. package/dist/esm/utils/mergeQueryItems.test.js +0 -66
  1524. package/dist/esm/utils/mergeQueryItems.test.js.map +0 -1
  1525. package/dist/esm/utils/metricsExplorer.test.d.ts +0 -2
  1526. package/dist/esm/utils/metricsExplorer.test.d.ts.map +0 -1
  1527. package/dist/esm/utils/metricsExplorer.test.js +0 -175
  1528. package/dist/esm/utils/metricsExplorer.test.js.map +0 -1
  1529. package/dist/esm/utils/normalizeCellRawForFilter.test.d.ts +0 -2
  1530. package/dist/esm/utils/normalizeCellRawForFilter.test.d.ts.map +0 -1
  1531. package/dist/esm/utils/normalizeCellRawForFilter.test.js +0 -63
  1532. package/dist/esm/utils/normalizeCellRawForFilter.test.js.map +0 -1
  1533. package/dist/esm/utils/oauth.test.d.ts +0 -2
  1534. package/dist/esm/utils/oauth.test.d.ts.map +0 -1
  1535. package/dist/esm/utils/oauth.test.js +0 -89
  1536. package/dist/esm/utils/oauth.test.js.map +0 -1
  1537. package/dist/esm/utils/previewDeployWorkflow.test.d.ts +0 -2
  1538. package/dist/esm/utils/previewDeployWorkflow.test.d.ts.map +0 -1
  1539. package/dist/esm/utils/previewDeployWorkflow.test.js +0 -173
  1540. package/dist/esm/utils/previewDeployWorkflow.test.js.map +0 -1
  1541. package/dist/esm/utils/projectMemberRole.test.d.ts +0 -2
  1542. package/dist/esm/utils/projectMemberRole.test.d.ts.map +0 -1
  1543. package/dist/esm/utils/projectMemberRole.test.js +0 -36
  1544. package/dist/esm/utils/projectMemberRole.test.js.map +0 -1
  1545. package/dist/esm/utils/queryHistoryList.test.d.ts +0 -2
  1546. package/dist/esm/utils/queryHistoryList.test.d.ts.map +0 -1
  1547. package/dist/esm/utils/queryHistoryList.test.js +0 -89
  1548. package/dist/esm/utils/queryHistoryList.test.js.map +0 -1
  1549. package/dist/esm/utils/resolveQueryTimezone.test.d.ts +0 -2
  1550. package/dist/esm/utils/resolveQueryTimezone.test.d.ts.map +0 -1
  1551. package/dist/esm/utils/resolveQueryTimezone.test.js +0 -151
  1552. package/dist/esm/utils/resolveQueryTimezone.test.js.map +0 -1
  1553. package/dist/esm/utils/resultColumns.test.d.ts +0 -2
  1554. package/dist/esm/utils/resultColumns.test.d.ts.map +0 -1
  1555. package/dist/esm/utils/resultColumns.test.js +0 -191
  1556. package/dist/esm/utils/resultColumns.test.js.map +0 -1
  1557. package/dist/esm/utils/sanitizeHtml.test.d.ts +0 -2
  1558. package/dist/esm/utils/sanitizeHtml.test.d.ts.map +0 -1
  1559. package/dist/esm/utils/sanitizeHtml.test.js +0 -198
  1560. package/dist/esm/utils/sanitizeHtml.test.js.map +0 -1
  1561. package/dist/esm/utils/scheduler.test.d.ts +0 -2
  1562. package/dist/esm/utils/scheduler.test.d.ts.map +0 -1
  1563. package/dist/esm/utils/scheduler.test.js +0 -61
  1564. package/dist/esm/utils/scheduler.test.js.map +0 -1
  1565. package/dist/esm/utils/searchParams.test.d.ts +0 -2
  1566. package/dist/esm/utils/searchParams.test.d.ts.map +0 -1
  1567. package/dist/esm/utils/searchParams.test.js +0 -20
  1568. package/dist/esm/utils/searchParams.test.js.map +0 -1
  1569. package/dist/esm/utils/slack.test.d.ts +0 -2
  1570. package/dist/esm/utils/slack.test.d.ts.map +0 -1
  1571. package/dist/esm/utils/slack.test.js +0 -100
  1572. package/dist/esm/utils/slack.test.js.map +0 -1
  1573. package/dist/esm/utils/slug.test.d.ts +0 -2
  1574. package/dist/esm/utils/slug.test.d.ts.map +0 -1
  1575. package/dist/esm/utils/slug.test.js +0 -129
  1576. package/dist/esm/utils/slug.test.js.map +0 -1
  1577. package/dist/esm/utils/tableCalculationFunctions.test.d.ts +0 -2
  1578. package/dist/esm/utils/tableCalculationFunctions.test.d.ts.map +0 -1
  1579. package/dist/esm/utils/tableCalculationFunctions.test.js +0 -944
  1580. package/dist/esm/utils/tableCalculationFunctions.test.js.map +0 -1
  1581. package/dist/esm/utils/tableCalculationFunctions.utility.test.d.ts +0 -2
  1582. package/dist/esm/utils/tableCalculationFunctions.utility.test.d.ts.map +0 -1
  1583. package/dist/esm/utils/tableCalculationFunctions.utility.test.js +0 -84
  1584. package/dist/esm/utils/tableCalculationFunctions.utility.test.js.map +0 -1
  1585. package/dist/esm/utils/timeFrames.test.d.ts +0 -2
  1586. package/dist/esm/utils/timeFrames.test.d.ts.map +0 -1
  1587. package/dist/esm/utils/timeFrames.test.js +0 -860
  1588. package/dist/esm/utils/timeFrames.test.js.map +0 -1
  1589. package/dist/esm/utils/virtualView.test.d.ts +0 -2
  1590. package/dist/esm/utils/virtualView.test.d.ts.map +0 -1
  1591. package/dist/esm/utils/virtualView.test.js +0 -154
  1592. package/dist/esm/utils/virtualView.test.js.map +0 -1
  1593. package/dist/esm/utils/warehouse.test.d.ts +0 -2
  1594. package/dist/esm/utils/warehouse.test.d.ts.map +0 -1
  1595. package/dist/esm/utils/warehouse.test.js +0 -44
  1596. package/dist/esm/utils/warehouse.test.js.map +0 -1
  1597. package/dist/esm/utils/warehouseLocation.test.d.ts +0 -2
  1598. package/dist/esm/utils/warehouseLocation.test.d.ts.map +0 -1
  1599. package/dist/esm/utils/warehouseLocation.test.js +0 -165
  1600. package/dist/esm/utils/warehouseLocation.test.js.map +0 -1
  1601. package/dist/esm/utils/warehouseResourceLimits.test.d.ts +0 -2
  1602. package/dist/esm/utils/warehouseResourceLimits.test.d.ts.map +0 -1
  1603. package/dist/esm/utils/warehouseResourceLimits.test.js +0 -15
  1604. package/dist/esm/utils/warehouseResourceLimits.test.js.map +0 -1
  1605. package/dist/esm/utils/zodJsonSchema.test.d.ts +0 -2
  1606. package/dist/esm/utils/zodJsonSchema.test.d.ts.map +0 -1
  1607. package/dist/esm/utils/zodJsonSchema.test.js +0 -141
  1608. package/dist/esm/utils/zodJsonSchema.test.js.map +0 -1
  1609. package/dist/esm/visualizations/BigNumberDataModel.test.d.ts +0 -2
  1610. package/dist/esm/visualizations/BigNumberDataModel.test.d.ts.map +0 -1
  1611. package/dist/esm/visualizations/BigNumberDataModel.test.js +0 -344
  1612. package/dist/esm/visualizations/BigNumberDataModel.test.js.map +0 -1
  1613. package/dist/esm/visualizations/CartesianChartDataModel.test.d.ts +0 -2
  1614. package/dist/esm/visualizations/CartesianChartDataModel.test.d.ts.map +0 -1
  1615. package/dist/esm/visualizations/CartesianChartDataModel.test.js +0 -221
  1616. package/dist/esm/visualizations/CartesianChartDataModel.test.js.map +0 -1
  1617. package/dist/esm/visualizations/TableDataModel.test.d.ts +0 -2
  1618. package/dist/esm/visualizations/TableDataModel.test.d.ts.map +0 -1
  1619. package/dist/esm/visualizations/TableDataModel.test.js +0 -62
  1620. package/dist/esm/visualizations/TableDataModel.test.js.map +0 -1
  1621. package/dist/esm/visualizations/helpers/styles/barChartStyles.test.d.ts +0 -2
  1622. package/dist/esm/visualizations/helpers/styles/barChartStyles.test.d.ts.map +0 -1
  1623. package/dist/esm/visualizations/helpers/styles/barChartStyles.test.js +0 -74
  1624. package/dist/esm/visualizations/helpers/styles/barChartStyles.test.js.map +0 -1
  1625. package/dist/esm/visualizations/helpers/styles/pieChartStyles.test.d.ts +0 -2
  1626. package/dist/esm/visualizations/helpers/styles/pieChartStyles.test.d.ts.map +0 -1
  1627. package/dist/esm/visualizations/helpers/styles/pieChartStyles.test.js +0 -29
  1628. package/dist/esm/visualizations/helpers/styles/pieChartStyles.test.js.map +0 -1
  1629. package/dist/esm/visualizations/helpers/styles/valueLabelStyles.test.d.ts +0 -2
  1630. package/dist/esm/visualizations/helpers/styles/valueLabelStyles.test.d.ts.map +0 -1
  1631. package/dist/esm/visualizations/helpers/styles/valueLabelStyles.test.js +0 -37
  1632. package/dist/esm/visualizations/helpers/styles/valueLabelStyles.test.js.map +0 -1
  1633. package/dist/esm/visualizations/helpers/tooltipFormatter.test.d.ts +0 -2
  1634. package/dist/esm/visualizations/helpers/tooltipFormatter.test.d.ts.map +0 -1
  1635. package/dist/esm/visualizations/helpers/tooltipFormatter.test.js +0 -285
  1636. package/dist/esm/visualizations/helpers/tooltipFormatter.test.js.map +0 -1
  1637. package/dist/types/authorization/canMutateVerifiedContent.test.d.ts +0 -2
  1638. package/dist/types/authorization/canMutateVerifiedContent.test.d.ts.map +0 -1
  1639. package/dist/types/authorization/canMutateVerifiedContent.test.js +0 -40
  1640. package/dist/types/authorization/canMutateVerifiedContent.test.js.map +0 -1
  1641. package/dist/types/authorization/collapseAbilityRules.test.d.ts +0 -2
  1642. package/dist/types/authorization/collapseAbilityRules.test.d.ts.map +0 -1
  1643. package/dist/types/authorization/collapseAbilityRules.test.js +0 -306
  1644. package/dist/types/authorization/collapseAbilityRules.test.js.map +0 -1
  1645. package/dist/types/authorization/embedPermissions.test.d.ts +0 -2
  1646. package/dist/types/authorization/embedPermissions.test.d.ts.map +0 -1
  1647. package/dist/types/authorization/embedPermissions.test.js +0 -230
  1648. package/dist/types/authorization/embedPermissions.test.js.map +0 -1
  1649. package/dist/types/authorization/getDashboardDeleteAccess.test.d.ts +0 -2
  1650. package/dist/types/authorization/getDashboardDeleteAccess.test.d.ts.map +0 -1
  1651. package/dist/types/authorization/getDashboardDeleteAccess.test.js +0 -125
  1652. package/dist/types/authorization/getDashboardDeleteAccess.test.js.map +0 -1
  1653. package/dist/types/authorization/getUserAbilityBuilder.test.d.ts +0 -2
  1654. package/dist/types/authorization/getUserAbilityBuilder.test.d.ts.map +0 -1
  1655. package/dist/types/authorization/getUserAbilityBuilder.test.js +0 -768
  1656. package/dist/types/authorization/getUserAbilityBuilder.test.js.map +0 -1
  1657. package/dist/types/authorization/index.mock.d.ts +0 -41
  1658. package/dist/types/authorization/index.mock.d.ts.map +0 -1
  1659. package/dist/types/authorization/index.mock.js +0 -44
  1660. package/dist/types/authorization/index.mock.js.map +0 -1
  1661. package/dist/types/authorization/index.test.d.ts +0 -2
  1662. package/dist/types/authorization/index.test.d.ts.map +0 -1
  1663. package/dist/types/authorization/index.test.js +0 -250
  1664. package/dist/types/authorization/index.test.js.map +0 -1
  1665. package/dist/types/authorization/jwtAbility.test.d.ts +0 -2
  1666. package/dist/types/authorization/jwtAbility.test.d.ts.map +0 -1
  1667. package/dist/types/authorization/jwtAbility.test.js +0 -592
  1668. package/dist/types/authorization/jwtAbility.test.js.map +0 -1
  1669. package/dist/types/authorization/organizationMemberAbility.mock.d.ts +0 -8
  1670. package/dist/types/authorization/organizationMemberAbility.mock.d.ts.map +0 -1
  1671. package/dist/types/authorization/organizationMemberAbility.mock.js +0 -36
  1672. package/dist/types/authorization/organizationMemberAbility.mock.js.map +0 -1
  1673. package/dist/types/authorization/organizationMemberAbility.test.d.ts +0 -2
  1674. package/dist/types/authorization/organizationMemberAbility.test.d.ts.map +0 -1
  1675. package/dist/types/authorization/organizationMemberAbility.test.js +0 -1483
  1676. package/dist/types/authorization/organizationMemberAbility.test.js.map +0 -1
  1677. package/dist/types/authorization/parseScopes.test.d.ts +0 -2
  1678. package/dist/types/authorization/parseScopes.test.d.ts.map +0 -1
  1679. package/dist/types/authorization/parseScopes.test.js +0 -123
  1680. package/dist/types/authorization/parseScopes.test.js.map +0 -1
  1681. package/dist/types/authorization/projectMemberAbility.mock.d.ts +0 -7
  1682. package/dist/types/authorization/projectMemberAbility.mock.d.ts.map +0 -1
  1683. package/dist/types/authorization/projectMemberAbility.mock.js +0 -27
  1684. package/dist/types/authorization/projectMemberAbility.mock.js.map +0 -1
  1685. package/dist/types/authorization/projectMemberAbility.test.d.ts +0 -2
  1686. package/dist/types/authorization/projectMemberAbility.test.d.ts.map +0 -1
  1687. package/dist/types/authorization/projectMemberAbility.test.js +0 -1189
  1688. package/dist/types/authorization/projectMemberAbility.test.js.map +0 -1
  1689. package/dist/types/authorization/roadmapAccess.test.d.ts +0 -2
  1690. package/dist/types/authorization/roadmapAccess.test.d.ts.map +0 -1
  1691. package/dist/types/authorization/roadmapAccess.test.js +0 -159
  1692. package/dist/types/authorization/roadmapAccess.test.js.map +0 -1
  1693. package/dist/types/authorization/rolePresets.test.d.ts +0 -2
  1694. package/dist/types/authorization/rolePresets.test.d.ts.map +0 -1
  1695. package/dist/types/authorization/rolePresets.test.js +0 -65
  1696. package/dist/types/authorization/rolePresets.test.js.map +0 -1
  1697. package/dist/types/authorization/roleToScopeMapping.test.d.ts +0 -2
  1698. package/dist/types/authorization/roleToScopeMapping.test.d.ts.map +0 -1
  1699. package/dist/types/authorization/roleToScopeMapping.test.js +0 -623
  1700. package/dist/types/authorization/roleToScopeMapping.test.js.map +0 -1
  1701. package/dist/types/authorization/roleToScopeMapping.testUtils.d.ts +0 -1615
  1702. package/dist/types/authorization/roleToScopeMapping.testUtils.d.ts.map +0 -1
  1703. package/dist/types/authorization/roleToScopeMapping.testUtils.js +0 -335
  1704. package/dist/types/authorization/roleToScopeMapping.testUtils.js.map +0 -1
  1705. package/dist/types/authorization/roleToScopeParity.test.d.ts +0 -2
  1706. package/dist/types/authorization/roleToScopeParity.test.d.ts.map +0 -1
  1707. package/dist/types/authorization/roleToScopeParity.test.js +0 -335
  1708. package/dist/types/authorization/roleToScopeParity.test.js.map +0 -1
  1709. package/dist/types/authorization/scopeAbilityBuilder.test.d.ts +0 -2
  1710. package/dist/types/authorization/scopeAbilityBuilder.test.d.ts.map +0 -1
  1711. package/dist/types/authorization/scopeAbilityBuilder.test.js +0 -1871
  1712. package/dist/types/authorization/scopeAbilityBuilder.test.js.map +0 -1
  1713. package/dist/types/authorization/scopes.level.test.d.ts +0 -2
  1714. package/dist/types/authorization/scopes.level.test.d.ts.map +0 -1
  1715. package/dist/types/authorization/scopes.level.test.js +0 -55
  1716. package/dist/types/authorization/scopes.level.test.js.map +0 -1
  1717. package/dist/types/authorization/scopes.test.d.ts +0 -2
  1718. package/dist/types/authorization/scopes.test.d.ts.map +0 -1
  1719. package/dist/types/authorization/scopes.test.js +0 -197
  1720. package/dist/types/authorization/scopes.test.js.map +0 -1
  1721. package/dist/types/authorization/serviceAccountAbility.test.d.ts +0 -2
  1722. package/dist/types/authorization/serviceAccountAbility.test.d.ts.map +0 -1
  1723. package/dist/types/authorization/serviceAccountAbility.test.js +0 -222
  1724. package/dist/types/authorization/serviceAccountAbility.test.js.map +0 -1
  1725. package/dist/types/authorization/space/customRoleProjectRole.test.d.ts +0 -2
  1726. package/dist/types/authorization/space/customRoleProjectRole.test.d.ts.map +0 -1
  1727. package/dist/types/authorization/space/customRoleProjectRole.test.js +0 -54
  1728. package/dist/types/authorization/space/customRoleProjectRole.test.js.map +0 -1
  1729. package/dist/types/authorization/space/spaceAccessResolver.test.d.ts +0 -2
  1730. package/dist/types/authorization/space/spaceAccessResolver.test.d.ts.map +0 -1
  1731. package/dist/types/authorization/space/spaceAccessResolver.test.js +0 -707
  1732. package/dist/types/authorization/space/spaceAccessResolver.test.js.map +0 -1
  1733. package/dist/types/compiler/exploreCompiler.mock.d.ts +0 -78
  1734. package/dist/types/compiler/exploreCompiler.mock.d.ts.map +0 -1
  1735. package/dist/types/compiler/exploreCompiler.mock.js +0 -2446
  1736. package/dist/types/compiler/exploreCompiler.mock.js.map +0 -1
  1737. package/dist/types/compiler/exploreCompiler.test.d.ts +0 -2
  1738. package/dist/types/compiler/exploreCompiler.test.d.ts.map +0 -1
  1739. package/dist/types/compiler/exploreCompiler.test.js +0 -1753
  1740. package/dist/types/compiler/exploreCompiler.test.js.map +0 -1
  1741. package/dist/types/compiler/fieldSetExpander.test.d.ts +0 -2
  1742. package/dist/types/compiler/fieldSetExpander.test.d.ts.map +0 -1
  1743. package/dist/types/compiler/fieldSetExpander.test.js +0 -204
  1744. package/dist/types/compiler/fieldSetExpander.test.js.map +0 -1
  1745. package/dist/types/compiler/filtersCompiler.mock.d.ts +0 -586
  1746. package/dist/types/compiler/filtersCompiler.mock.d.ts.map +0 -1
  1747. package/dist/types/compiler/filtersCompiler.mock.js +0 -791
  1748. package/dist/types/compiler/filtersCompiler.mock.js.map +0 -1
  1749. package/dist/types/compiler/filtersCompiler.test.d.ts +0 -2
  1750. package/dist/types/compiler/filtersCompiler.test.d.ts.map +0 -1
  1751. package/dist/types/compiler/filtersCompiler.test.js +0 -2194
  1752. package/dist/types/compiler/filtersCompiler.test.js.map +0 -1
  1753. package/dist/types/compiler/joinInflation.test.d.ts +0 -2
  1754. package/dist/types/compiler/joinInflation.test.d.ts.map +0 -1
  1755. package/dist/types/compiler/joinInflation.test.js +0 -28
  1756. package/dist/types/compiler/joinInflation.test.js.map +0 -1
  1757. package/dist/types/compiler/lightdashModelConverter.test.d.ts +0 -2
  1758. package/dist/types/compiler/lightdashModelConverter.test.d.ts.map +0 -1
  1759. package/dist/types/compiler/lightdashModelConverter.test.js +0 -35
  1760. package/dist/types/compiler/lightdashModelConverter.test.js.map +0 -1
  1761. package/dist/types/compiler/lightdashProjectConfig.test.d.ts +0 -2
  1762. package/dist/types/compiler/lightdashProjectConfig.test.d.ts.map +0 -1
  1763. package/dist/types/compiler/lightdashProjectConfig.test.js +0 -94
  1764. package/dist/types/compiler/lightdashProjectConfig.test.js.map +0 -1
  1765. package/dist/types/compiler/parameters.test.d.ts +0 -2
  1766. package/dist/types/compiler/parameters.test.d.ts.map +0 -1
  1767. package/dist/types/compiler/parameters.test.js +0 -587
  1768. package/dist/types/compiler/parameters.test.js.map +0 -1
  1769. package/dist/types/compiler/translator.mock.d.ts +0 -159
  1770. package/dist/types/compiler/translator.mock.d.ts.map +0 -1
  1771. package/dist/types/compiler/translator.mock.js +0 -2232
  1772. package/dist/types/compiler/translator.mock.js.map +0 -1
  1773. package/dist/types/compiler/translator.test.d.ts +0 -2
  1774. package/dist/types/compiler/translator.test.d.ts.map +0 -1
  1775. package/dist/types/compiler/translator.test.js +0 -2685
  1776. package/dist/types/compiler/translator.test.js.map +0 -1
  1777. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.d.ts +0 -65
  1778. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.d.ts.map +0 -1
  1779. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.js +0 -220
  1780. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.js.map +0 -1
  1781. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.test.d.ts +0 -2
  1782. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.test.d.ts.map +0 -1
  1783. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.test.js +0 -275
  1784. package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.test.js.map +0 -1
  1785. package/dist/types/dbt/manifest.test.d.ts +0 -2
  1786. package/dist/types/dbt/manifest.test.d.ts.map +0 -1
  1787. package/dist/types/dbt/manifest.test.js +0 -416
  1788. package/dist/types/dbt/manifest.test.js.map +0 -1
  1789. package/dist/types/dbt/metricFlow.test.d.ts +0 -2
  1790. package/dist/types/dbt/metricFlow.test.d.ts.map +0 -1
  1791. package/dist/types/dbt/metricFlow.test.js +0 -1343
  1792. package/dist/types/dbt/metricFlow.test.js.map +0 -1
  1793. package/dist/types/dbt/validation.csp.test.d.ts +0 -1
  1794. package/dist/types/dbt/validation.csp.test.d.ts.map +0 -1
  1795. package/dist/types/dbt/validation.csp.test.js +0 -33
  1796. package/dist/types/dbt/validation.csp.test.js.map +0 -1
  1797. package/dist/types/dbt/validation.test.d.ts +0 -2
  1798. package/dist/types/dbt/validation.test.d.ts.map +0 -1
  1799. package/dist/types/dbt/validation.test.js +0 -201
  1800. package/dist/types/dbt/validation.test.js.map +0 -1
  1801. package/dist/types/ee/AiAgent/aiAgentReviewClassifierTypes.test.d.ts +0 -2
  1802. package/dist/types/ee/AiAgent/aiAgentReviewClassifierTypes.test.d.ts.map +0 -1
  1803. package/dist/types/ee/AiAgent/aiAgentReviewClassifierTypes.test.js +0 -546
  1804. package/dist/types/ee/AiAgent/aiAgentReviewClassifierTypes.test.js.map +0 -1
  1805. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.test.d.ts +0 -2
  1806. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.test.d.ts.map +0 -1
  1807. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.test.js +0 -54
  1808. package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.test.js.map +0 -1
  1809. package/dist/types/ee/AiAgent/dashboardContext.test.d.ts +0 -2
  1810. package/dist/types/ee/AiAgent/dashboardContext.test.d.ts.map +0 -1
  1811. package/dist/types/ee/AiAgent/dashboardContext.test.js +0 -59
  1812. package/dist/types/ee/AiAgent/dashboardContext.test.js.map +0 -1
  1813. package/dist/types/ee/AiAgent/filterExploreByTags.test.d.ts +0 -2
  1814. package/dist/types/ee/AiAgent/filterExploreByTags.test.d.ts.map +0 -1
  1815. package/dist/types/ee/AiAgent/filterExploreByTags.test.js +0 -634
  1816. package/dist/types/ee/AiAgent/filterExploreByTags.test.js.map +0 -1
  1817. package/dist/types/ee/AiAgent/projectContext.test.d.ts +0 -2
  1818. package/dist/types/ee/AiAgent/projectContext.test.d.ts.map +0 -1
  1819. package/dist/types/ee/AiAgent/projectContext.test.js +0 -532
  1820. package/dist/types/ee/AiAgent/projectContext.test.js.map +0 -1
  1821. package/dist/types/ee/AiAgent/schemas/McpSchemaCompatLayer.test.d.ts +0 -2
  1822. package/dist/types/ee/AiAgent/schemas/McpSchemaCompatLayer.test.d.ts.map +0 -1
  1823. package/dist/types/ee/AiAgent/schemas/McpSchemaCompatLayer.test.js +0 -541
  1824. package/dist/types/ee/AiAgent/schemas/McpSchemaCompatLayer.test.js.map +0 -1
  1825. package/dist/types/ee/AiAgent/schemas/defineTool.test.d.ts +0 -2
  1826. package/dist/types/ee/AiAgent/schemas/defineTool.test.d.ts.map +0 -1
  1827. package/dist/types/ee/AiAgent/schemas/defineTool.test.js +0 -281
  1828. package/dist/types/ee/AiAgent/schemas/defineTool.test.js.map +0 -1
  1829. package/dist/types/ee/AiAgent/schemas/filterExpressions/examples.test.d.ts +0 -2
  1830. package/dist/types/ee/AiAgent/schemas/filterExpressions/examples.test.d.ts.map +0 -1
  1831. package/dist/types/ee/AiAgent/schemas/filterExpressions/examples.test.js +0 -86
  1832. package/dist/types/ee/AiAgent/schemas/filterExpressions/examples.test.js.map +0 -1
  1833. package/dist/types/ee/AiAgent/schemas/filterExpressions/expressionSchemas.test.d.ts +0 -2
  1834. package/dist/types/ee/AiAgent/schemas/filterExpressions/expressionSchemas.test.d.ts.map +0 -1
  1835. package/dist/types/ee/AiAgent/schemas/filterExpressions/expressionSchemas.test.js +0 -384
  1836. package/dist/types/ee/AiAgent/schemas/filterExpressions/expressionSchemas.test.js.map +0 -1
  1837. package/dist/types/ee/AiAgent/schemas/filterExpressions/operators.test.d.ts +0 -2
  1838. package/dist/types/ee/AiAgent/schemas/filterExpressions/operators.test.d.ts.map +0 -1
  1839. package/dist/types/ee/AiAgent/schemas/filterExpressions/operators.test.js +0 -14
  1840. package/dist/types/ee/AiAgent/schemas/filterExpressions/operators.test.js.map +0 -1
  1841. package/dist/types/ee/AiAgent/schemas/filterExpressions/parse.test.d.ts +0 -2
  1842. package/dist/types/ee/AiAgent/schemas/filterExpressions/parse.test.d.ts.map +0 -1
  1843. package/dist/types/ee/AiAgent/schemas/filterExpressions/parse.test.js +0 -362
  1844. package/dist/types/ee/AiAgent/schemas/filterExpressions/parse.test.js.map +0 -1
  1845. package/dist/types/ee/AiAgent/schemas/filterExpressions/resolvedArgs.test.d.ts +0 -2
  1846. package/dist/types/ee/AiAgent/schemas/filterExpressions/resolvedArgs.test.d.ts.map +0 -1
  1847. package/dist/types/ee/AiAgent/schemas/filterExpressions/resolvedArgs.test.js +0 -218
  1848. package/dist/types/ee/AiAgent/schemas/filterExpressions/resolvedArgs.test.js.map +0 -1
  1849. package/dist/types/ee/AiAgent/schemas/persistedRunQueryArgs.test.d.ts +0 -2
  1850. package/dist/types/ee/AiAgent/schemas/persistedRunQueryArgs.test.d.ts.map +0 -1
  1851. package/dist/types/ee/AiAgent/schemas/persistedRunQueryArgs.test.js +0 -98
  1852. package/dist/types/ee/AiAgent/schemas/persistedRunQueryArgs.test.js.map +0 -1
  1853. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts +0 -2
  1854. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts.map +0 -1
  1855. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js +0 -152
  1856. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js.map +0 -1
  1857. package/dist/types/ee/AiAgent/schemas/toolSchemaBuilder.test.d.ts +0 -2
  1858. package/dist/types/ee/AiAgent/schemas/toolSchemaBuilder.test.d.ts.map +0 -1
  1859. package/dist/types/ee/AiAgent/schemas/toolSchemaBuilder.test.js +0 -19
  1860. package/dist/types/ee/AiAgent/schemas/toolSchemaBuilder.test.js.map +0 -1
  1861. package/dist/types/ee/AiAgent/schemas/tools/builtInToolResultGuard.test.d.ts +0 -2
  1862. package/dist/types/ee/AiAgent/schemas/tools/builtInToolResultGuard.test.d.ts.map +0 -1
  1863. package/dist/types/ee/AiAgent/schemas/tools/builtInToolResultGuard.test.js +0 -34
  1864. package/dist/types/ee/AiAgent/schemas/tools/builtInToolResultGuard.test.js.map +0 -1
  1865. package/dist/types/ee/AiAgent/schemas/tools/toolComposerQueryArgs.test.d.ts +0 -2
  1866. package/dist/types/ee/AiAgent/schemas/tools/toolComposerQueryArgs.test.d.ts.map +0 -1
  1867. package/dist/types/ee/AiAgent/schemas/tools/toolComposerQueryArgs.test.js +0 -96
  1868. package/dist/types/ee/AiAgent/schemas/tools/toolComposerQueryArgs.test.js.map +0 -1
  1869. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.test.d.ts +0 -2
  1870. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.test.d.ts.map +0 -1
  1871. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.test.js +0 -58
  1872. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.test.js.map +0 -1
  1873. package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.test.d.ts +0 -2
  1874. package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.test.d.ts.map +0 -1
  1875. package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.test.js +0 -7
  1876. package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.test.js.map +0 -1
  1877. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.d.ts +0 -2
  1878. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.d.ts.map +0 -1
  1879. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.js +0 -66
  1880. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.js.map +0 -1
  1881. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.d.ts +0 -2
  1882. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.d.ts.map +0 -1
  1883. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.js +0 -25
  1884. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.js.map +0 -1
  1885. package/dist/types/ee/AiAgent/schemas/tools/toolJsonSchemaEncoding.test.d.ts +0 -2
  1886. package/dist/types/ee/AiAgent/schemas/tools/toolJsonSchemaEncoding.test.d.ts.map +0 -1
  1887. package/dist/types/ee/AiAgent/schemas/tools/toolJsonSchemaEncoding.test.js +0 -173
  1888. package/dist/types/ee/AiAgent/schemas/tools/toolJsonSchemaEncoding.test.js.map +0 -1
  1889. package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.test.d.ts +0 -2
  1890. package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.test.d.ts.map +0 -1
  1891. package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.test.js +0 -386
  1892. package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.test.js.map +0 -1
  1893. package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.test.d.ts +0 -2
  1894. package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.test.d.ts.map +0 -1
  1895. package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.test.js +0 -86
  1896. package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.test.js.map +0 -1
  1897. package/dist/types/ee/AiAgent/schemas/tools/toolUpdateUserNameArgs.test.d.ts +0 -2
  1898. package/dist/types/ee/AiAgent/schemas/tools/toolUpdateUserNameArgs.test.d.ts.map +0 -1
  1899. package/dist/types/ee/AiAgent/schemas/tools/toolUpdateUserNameArgs.test.js +0 -32
  1900. package/dist/types/ee/AiAgent/schemas/tools/toolUpdateUserNameArgs.test.js.map +0 -1
  1901. package/dist/types/ee/AiAgent/schemas/zod4BehaviorCompatibility.test.d.ts +0 -2
  1902. package/dist/types/ee/AiAgent/schemas/zod4BehaviorCompatibility.test.d.ts.map +0 -1
  1903. package/dist/types/ee/AiAgent/schemas/zod4BehaviorCompatibility.test.js +0 -96
  1904. package/dist/types/ee/AiAgent/schemas/zod4BehaviorCompatibility.test.js.map +0 -1
  1905. package/dist/types/ee/AiAgent/utils.test.d.ts +0 -2
  1906. package/dist/types/ee/AiAgent/utils.test.d.ts.map +0 -1
  1907. package/dist/types/ee/AiAgent/utils.test.js +0 -542
  1908. package/dist/types/ee/AiAgent/utils.test.js.map +0 -1
  1909. package/dist/types/ee/aiDeepResearch/markdown.test.d.ts +0 -2
  1910. package/dist/types/ee/aiDeepResearch/markdown.test.d.ts.map +0 -1
  1911. package/dist/types/ee/aiDeepResearch/markdown.test.js +0 -329
  1912. package/dist/types/ee/aiDeepResearch/markdown.test.js.map +0 -1
  1913. package/dist/types/ee/aiDeepResearch/types.test.d.ts +0 -2
  1914. package/dist/types/ee/aiDeepResearch/types.test.d.ts.map +0 -1
  1915. package/dist/types/ee/aiDeepResearch/types.test.js +0 -7
  1916. package/dist/types/ee/aiDeepResearch/types.test.js.map +0 -1
  1917. package/dist/types/ee/aiWriteback/mcpTask.test.d.ts +0 -2
  1918. package/dist/types/ee/aiWriteback/mcpTask.test.d.ts.map +0 -1
  1919. package/dist/types/ee/aiWriteback/mcpTask.test.js +0 -34
  1920. package/dist/types/ee/aiWriteback/mcpTask.test.js.map +0 -1
  1921. package/dist/types/ee/apps/chartTypeIcons.test.d.ts +0 -2
  1922. package/dist/types/ee/apps/chartTypeIcons.test.d.ts.map +0 -1
  1923. package/dist/types/ee/apps/chartTypeIcons.test.js +0 -28
  1924. package/dist/types/ee/apps/chartTypeIcons.test.js.map +0 -1
  1925. package/dist/types/ee/apps/code.test.d.ts +0 -2
  1926. package/dist/types/ee/apps/code.test.d.ts.map +0 -1
  1927. package/dist/types/ee/apps/code.test.js +0 -510
  1928. package/dist/types/ee/apps/code.test.js.map +0 -1
  1929. package/dist/types/ee/apps/customChartTypeSerializer.test.d.ts +0 -2
  1930. package/dist/types/ee/apps/customChartTypeSerializer.test.d.ts.map +0 -1
  1931. package/dist/types/ee/apps/customChartTypeSerializer.test.js +0 -145
  1932. package/dist/types/ee/apps/customChartTypeSerializer.test.js.map +0 -1
  1933. package/dist/types/ee/apps/dataAppVizSchemaChanges.test.d.ts +0 -2
  1934. package/dist/types/ee/apps/dataAppVizSchemaChanges.test.d.ts.map +0 -1
  1935. package/dist/types/ee/apps/dataAppVizSchemaChanges.test.js +0 -153
  1936. package/dist/types/ee/apps/dataAppVizSchemaChanges.test.js.map +0 -1
  1937. package/dist/types/ee/apps/dataReferenceChecker.test.d.ts +0 -2
  1938. package/dist/types/ee/apps/dataReferenceChecker.test.d.ts.map +0 -1
  1939. package/dist/types/ee/apps/dataReferenceChecker.test.js +0 -380
  1940. package/dist/types/ee/apps/dataReferenceChecker.test.js.map +0 -1
  1941. package/dist/types/ee/apps/dataReferences.test.d.ts +0 -2
  1942. package/dist/types/ee/apps/dataReferences.test.d.ts.map +0 -1
  1943. package/dist/types/ee/apps/dataReferences.test.js +0 -607
  1944. package/dist/types/ee/apps/dataReferences.test.js.map +0 -1
  1945. package/dist/types/ee/apps/dataReferencesDocs.test.d.ts +0 -2
  1946. package/dist/types/ee/apps/dataReferencesDocs.test.d.ts.map +0 -1
  1947. package/dist/types/ee/apps/dataReferencesDocs.test.js +0 -139
  1948. package/dist/types/ee/apps/dataReferencesDocs.test.js.map +0 -1
  1949. package/dist/types/ee/apps/deliveryCapture.test.d.ts +0 -2
  1950. package/dist/types/ee/apps/deliveryCapture.test.d.ts.map +0 -1
  1951. package/dist/types/ee/apps/deliveryCapture.test.js +0 -205
  1952. package/dist/types/ee/apps/deliveryCapture.test.js.map +0 -1
  1953. package/dist/types/ee/apps/elementReference.test.d.ts +0 -2
  1954. package/dist/types/ee/apps/elementReference.test.d.ts.map +0 -1
  1955. package/dist/types/ee/apps/elementReference.test.js +0 -34
  1956. package/dist/types/ee/apps/elementReference.test.js.map +0 -1
  1957. package/dist/types/ee/apps/registry.test.d.ts +0 -2
  1958. package/dist/types/ee/apps/registry.test.d.ts.map +0 -1
  1959. package/dist/types/ee/apps/registry.test.js +0 -90
  1960. package/dist/types/ee/apps/registry.test.js.map +0 -1
  1961. package/dist/types/ee/apps/types.test.d.ts +0 -2
  1962. package/dist/types/ee/apps/types.test.d.ts.map +0 -1
  1963. package/dist/types/ee/apps/types.test.js +0 -441
  1964. package/dist/types/ee/apps/types.test.js.map +0 -1
  1965. package/dist/types/ee/embed/index.test.d.ts +0 -2
  1966. package/dist/types/ee/embed/index.test.d.ts.map +0 -1
  1967. package/dist/types/ee/embed/index.test.js +0 -157
  1968. package/dist/types/ee/embed/index.test.js.map +0 -1
  1969. package/dist/types/ee/homepage/schema.test.d.ts +0 -2
  1970. package/dist/types/ee/homepage/schema.test.d.ts.map +0 -1
  1971. package/dist/types/ee/homepage/schema.test.js +0 -338
  1972. package/dist/types/ee/homepage/schema.test.js.map +0 -1
  1973. package/dist/types/ee/homepage/verifiedSource.schema.test.d.ts +0 -2
  1974. package/dist/types/ee/homepage/verifiedSource.schema.test.d.ts.map +0 -1
  1975. package/dist/types/ee/homepage/verifiedSource.schema.test.js +0 -27
  1976. package/dist/types/ee/homepage/verifiedSource.schema.test.js.map +0 -1
  1977. package/dist/types/ee/mcp/tasks.test.d.ts +0 -2
  1978. package/dist/types/ee/mcp/tasks.test.d.ts.map +0 -1
  1979. package/dist/types/ee/mcp/tasks.test.js +0 -50
  1980. package/dist/types/ee/mcp/tasks.test.js.map +0 -1
  1981. package/dist/types/ee/preAggregates/dimensionEligibility.test.d.ts +0 -2
  1982. package/dist/types/ee/preAggregates/dimensionEligibility.test.d.ts.map +0 -1
  1983. package/dist/types/ee/preAggregates/dimensionEligibility.test.js +0 -216
  1984. package/dist/types/ee/preAggregates/dimensionEligibility.test.js.map +0 -1
  1985. package/dist/types/ee/preAggregates/metricEligibility.test.d.ts +0 -2
  1986. package/dist/types/ee/preAggregates/metricEligibility.test.d.ts.map +0 -1
  1987. package/dist/types/ee/preAggregates/metricEligibility.test.js +0 -374
  1988. package/dist/types/ee/preAggregates/metricEligibility.test.js.map +0 -1
  1989. package/dist/types/ee/preAggregates/numberMetricDependencies.test.d.ts +0 -2
  1990. package/dist/types/ee/preAggregates/numberMetricDependencies.test.d.ts.map +0 -1
  1991. package/dist/types/ee/preAggregates/numberMetricDependencies.test.js +0 -105
  1992. package/dist/types/ee/preAggregates/numberMetricDependencies.test.js.map +0 -1
  1993. package/dist/types/ee/types/aiReviewNotification.test.d.ts +0 -2
  1994. package/dist/types/ee/types/aiReviewNotification.test.d.ts.map +0 -1
  1995. package/dist/types/ee/types/aiReviewNotification.test.js +0 -117
  1996. package/dist/types/ee/types/aiReviewNotification.test.js.map +0 -1
  1997. package/dist/types/ee/types/managedAgentPolicy.test.d.ts +0 -2
  1998. package/dist/types/ee/types/managedAgentPolicy.test.d.ts.map +0 -1
  1999. package/dist/types/ee/types/managedAgentPolicy.test.js +0 -48
  2000. package/dist/types/ee/types/managedAgentPolicy.test.js.map +0 -1
  2001. package/dist/types/ee/types/managedAgentSpaceScope.test.d.ts +0 -2
  2002. package/dist/types/ee/types/managedAgentSpaceScope.test.d.ts.map +0 -1
  2003. package/dist/types/ee/types/managedAgentSpaceScope.test.js +0 -45
  2004. package/dist/types/ee/types/managedAgentSpaceScope.test.js.map +0 -1
  2005. package/dist/types/index.barrel.test.d.ts +0 -2
  2006. package/dist/types/index.barrel.test.d.ts.map +0 -1
  2007. package/dist/types/index.barrel.test.js +0 -62
  2008. package/dist/types/index.barrel.test.js.map +0 -1
  2009. package/dist/types/index.mock.d.ts +0 -8
  2010. package/dist/types/index.mock.d.ts.map +0 -1
  2011. package/dist/types/index.mock.js +0 -44
  2012. package/dist/types/index.mock.js.map +0 -1
  2013. package/dist/types/index.test.d.ts +0 -2
  2014. package/dist/types/index.test.d.ts.map +0 -1
  2015. package/dist/types/index.test.js +0 -201
  2016. package/dist/types/index.test.js.map +0 -1
  2017. package/dist/types/lightdash/LightdashModelEditor.test.d.ts +0 -2
  2018. package/dist/types/lightdash/LightdashModelEditor.test.d.ts.map +0 -1
  2019. package/dist/types/lightdash/LightdashModelEditor.test.js +0 -193
  2020. package/dist/types/lightdash/LightdashModelEditor.test.js.map +0 -1
  2021. package/dist/types/lightdash/loader.test.d.ts +0 -2
  2022. package/dist/types/lightdash/loader.test.d.ts.map +0 -1
  2023. package/dist/types/lightdash/loader.test.js +0 -72
  2024. package/dist/types/lightdash/loader.test.js.map +0 -1
  2025. package/dist/types/packageExports.test.d.ts +0 -2
  2026. package/dist/types/packageExports.test.d.ts.map +0 -1
  2027. package/dist/types/packageExports.test.js +0 -40
  2028. package/dist/types/packageExports.test.js.map +0 -1
  2029. package/dist/types/parameters/reservedParameters.test.d.ts +0 -2
  2030. package/dist/types/parameters/reservedParameters.test.d.ts.map +0 -1
  2031. package/dist/types/parameters/reservedParameters.test.js +0 -101
  2032. package/dist/types/parameters/reservedParameters.test.js.map +0 -1
  2033. package/dist/types/pivot/buildWarehouseTotals.test.d.ts +0 -2
  2034. package/dist/types/pivot/buildWarehouseTotals.test.d.ts.map +0 -1
  2035. package/dist/types/pivot/buildWarehouseTotals.test.js +0 -42
  2036. package/dist/types/pivot/buildWarehouseTotals.test.js.map +0 -1
  2037. package/dist/types/pivot/deriveDataAppVizPivotConfig.test.d.ts +0 -2
  2038. package/dist/types/pivot/deriveDataAppVizPivotConfig.test.d.ts.map +0 -1
  2039. package/dist/types/pivot/deriveDataAppVizPivotConfig.test.js +0 -31
  2040. package/dist/types/pivot/deriveDataAppVizPivotConfig.test.js.map +0 -1
  2041. package/dist/types/pivot/derivePivotConfigFromChart.mock.d.ts +0 -8
  2042. package/dist/types/pivot/derivePivotConfigFromChart.mock.d.ts.map +0 -1
  2043. package/dist/types/pivot/derivePivotConfigFromChart.mock.js +0 -112
  2044. package/dist/types/pivot/derivePivotConfigFromChart.mock.js.map +0 -1
  2045. package/dist/types/pivot/derivePivotConfigFromChart.test.d.ts +0 -2
  2046. package/dist/types/pivot/derivePivotConfigFromChart.test.d.ts.map +0 -1
  2047. package/dist/types/pivot/derivePivotConfigFromChart.test.js +0 -1419
  2048. package/dist/types/pivot/derivePivotConfigFromChart.test.js.map +0 -1
  2049. package/dist/types/pivot/pivotColumnName.test.d.ts +0 -2
  2050. package/dist/types/pivot/pivotColumnName.test.d.ts.map +0 -1
  2051. package/dist/types/pivot/pivotColumnName.test.js +0 -47
  2052. package/dist/types/pivot/pivotColumnName.test.js.map +0 -1
  2053. package/dist/types/pivot/pivotConfig.test.d.ts +0 -2
  2054. package/dist/types/pivot/pivotConfig.test.d.ts.map +0 -1
  2055. package/dist/types/pivot/pivotConfig.test.js +0 -228
  2056. package/dist/types/pivot/pivotConfig.test.js.map +0 -1
  2057. package/dist/types/pivot/pivotQueryResults.mock.d.ts +0 -14
  2058. package/dist/types/pivot/pivotQueryResults.mock.d.ts.map +0 -1
  2059. package/dist/types/pivot/pivotQueryResults.mock.js +0 -2082
  2060. package/dist/types/pivot/pivotQueryResults.mock.js.map +0 -1
  2061. package/dist/types/pivot/pivotQueryResults.test.d.ts +0 -2
  2062. package/dist/types/pivot/pivotQueryResults.test.d.ts.map +0 -1
  2063. package/dist/types/pivot/pivotQueryResults.test.js +0 -1676
  2064. package/dist/types/pivot/pivotQueryResults.test.js.map +0 -1
  2065. package/dist/types/pivot/pivotResultsAsCsv.test.d.ts +0 -2
  2066. package/dist/types/pivot/pivotResultsAsCsv.test.d.ts.map +0 -1
  2067. package/dist/types/pivot/pivotResultsAsCsv.test.js +0 -264
  2068. package/dist/types/pivot/pivotResultsAsCsv.test.js.map +0 -1
  2069. package/dist/types/pivot/timeIntervalToExcelNumFmt.test.d.ts +0 -2
  2070. package/dist/types/pivot/timeIntervalToExcelNumFmt.test.d.ts.map +0 -1
  2071. package/dist/types/pivot/timeIntervalToExcelNumFmt.test.js +0 -54
  2072. package/dist/types/pivot/timeIntervalToExcelNumFmt.test.js.map +0 -1
  2073. package/dist/types/preAggregates/definition.test.d.ts +0 -2
  2074. package/dist/types/preAggregates/definition.test.d.ts.map +0 -1
  2075. package/dist/types/preAggregates/definition.test.js +0 -291
  2076. package/dist/types/preAggregates/definition.test.js.map +0 -1
  2077. package/dist/types/preAggregates/schema.test.d.ts +0 -2
  2078. package/dist/types/preAggregates/schema.test.d.ts.map +0 -1
  2079. package/dist/types/preAggregates/schema.test.js +0 -225
  2080. package/dist/types/preAggregates/schema.test.js.map +0 -1
  2081. package/dist/types/schemas/generateChartAsCodeSchema.test.d.ts +0 -2
  2082. package/dist/types/schemas/generateChartAsCodeSchema.test.d.ts.map +0 -1
  2083. package/dist/types/schemas/generateChartAsCodeSchema.test.js +0 -177
  2084. package/dist/types/schemas/generateChartAsCodeSchema.test.js.map +0 -1
  2085. package/dist/types/schemas/generateDashboardAsCodeSchema.test.d.ts +0 -2
  2086. package/dist/types/schemas/generateDashboardAsCodeSchema.test.d.ts.map +0 -1
  2087. package/dist/types/schemas/generateDashboardAsCodeSchema.test.js +0 -504
  2088. package/dist/types/schemas/generateDashboardAsCodeSchema.test.js.map +0 -1
  2089. package/dist/types/templating/liquidSql.test.d.ts +0 -2
  2090. package/dist/types/templating/liquidSql.test.d.ts.map +0 -1
  2091. package/dist/types/templating/liquidSql.test.js +0 -397
  2092. package/dist/types/templating/liquidSql.test.js.map +0 -1
  2093. package/dist/types/templating/template.mock.d.ts +0 -45
  2094. package/dist/types/templating/template.mock.d.ts.map +0 -1
  2095. package/dist/types/templating/template.mock.js +0 -45
  2096. package/dist/types/templating/template.mock.js.map +0 -1
  2097. package/dist/types/templating/template.test.d.ts +0 -2
  2098. package/dist/types/templating/template.test.d.ts.map +0 -1
  2099. package/dist/types/templating/template.test.js +0 -21
  2100. package/dist/types/templating/template.test.js.map +0 -1
  2101. package/dist/types/types/api/notifications.test.d.ts +0 -2
  2102. package/dist/types/types/api/notifications.test.d.ts.map +0 -1
  2103. package/dist/types/types/api/notifications.test.js +0 -5
  2104. package/dist/types/types/api/notifications.test.js.map +0 -1
  2105. package/dist/types/types/applyDimensionOverrides.test.d.ts +0 -2
  2106. package/dist/types/types/applyDimensionOverrides.test.d.ts.map +0 -1
  2107. package/dist/types/types/applyDimensionOverrides.test.js +0 -579
  2108. package/dist/types/types/applyDimensionOverrides.test.js.map +0 -1
  2109. package/dist/types/types/applyMetricOverrides.test.d.ts +0 -2
  2110. package/dist/types/types/applyMetricOverrides.test.d.ts.map +0 -1
  2111. package/dist/types/types/applyMetricOverrides.test.js +0 -80
  2112. package/dist/types/types/applyMetricOverrides.test.js.map +0 -1
  2113. package/dist/types/types/contentAsCode/base.test.d.ts +0 -2
  2114. package/dist/types/types/contentAsCode/base.test.d.ts.map +0 -1
  2115. package/dist/types/types/contentAsCode/base.test.js +0 -59
  2116. package/dist/types/types/contentAsCode/base.test.js.map +0 -1
  2117. package/dist/types/types/contentAsCode/draftRebase.test.d.ts +0 -2
  2118. package/dist/types/types/contentAsCode/draftRebase.test.d.ts.map +0 -1
  2119. package/dist/types/types/contentAsCode/draftRebase.test.js +0 -115
  2120. package/dist/types/types/contentAsCode/draftRebase.test.js.map +0 -1
  2121. package/dist/types/types/contentAsCode/parsers.test.d.ts +0 -2
  2122. package/dist/types/types/contentAsCode/parsers.test.d.ts.map +0 -1
  2123. package/dist/types/types/contentAsCode/parsers.test.js +0 -44
  2124. package/dist/types/types/contentAsCode/parsers.test.js.map +0 -1
  2125. package/dist/types/types/dataRetention.test.d.ts +0 -2
  2126. package/dist/types/types/dataRetention.test.d.ts.map +0 -1
  2127. package/dist/types/types/dataRetention.test.js +0 -55
  2128. package/dist/types/types/dataRetention.test.js.map +0 -1
  2129. package/dist/types/types/dataTimezonePreview.test.d.ts +0 -2
  2130. package/dist/types/types/dataTimezonePreview.test.d.ts.map +0 -1
  2131. package/dist/types/types/dataTimezonePreview.test.js +0 -106
  2132. package/dist/types/types/dataTimezonePreview.test.js.map +0 -1
  2133. package/dist/types/types/dbt.test.d.ts +0 -2
  2134. package/dist/types/types/dbt.test.d.ts.map +0 -1
  2135. package/dist/types/types/dbt.test.js +0 -389
  2136. package/dist/types/types/dbt.test.js.map +0 -1
  2137. package/dist/types/types/errors.test.d.ts +0 -2
  2138. package/dist/types/types/errors.test.d.ts.map +0 -1
  2139. package/dist/types/types/errors.test.js +0 -14
  2140. package/dist/types/types/errors.test.js.map +0 -1
  2141. package/dist/types/types/field.test.d.ts +0 -2
  2142. package/dist/types/types/field.test.d.ts.map +0 -1
  2143. package/dist/types/types/field.test.js +0 -83
  2144. package/dist/types/types/field.test.js.map +0 -1
  2145. package/dist/types/types/filter.test.d.ts +0 -2
  2146. package/dist/types/types/filter.test.d.ts.map +0 -1
  2147. package/dist/types/types/filter.test.js +0 -396
  2148. package/dist/types/types/filter.test.js.map +0 -1
  2149. package/dist/types/types/filterGrammar.test.d.ts +0 -2
  2150. package/dist/types/types/filterGrammar.test.d.ts.map +0 -1
  2151. package/dist/types/types/filterGrammar.test.js +0 -745
  2152. package/dist/types/types/filterGrammar.test.js.map +0 -1
  2153. package/dist/types/types/filterGrammarConversion.test.d.ts +0 -2
  2154. package/dist/types/types/filterGrammarConversion.test.d.ts.map +0 -1
  2155. package/dist/types/types/filterGrammarConversion.test.js +0 -308
  2156. package/dist/types/types/filterGrammarConversion.test.js.map +0 -1
  2157. package/dist/types/types/gitIntegration.test.d.ts +0 -2
  2158. package/dist/types/types/gitIntegration.test.d.ts.map +0 -1
  2159. package/dist/types/types/gitIntegration.test.js +0 -51
  2160. package/dist/types/types/gitIntegration.test.js.map +0 -1
  2161. package/dist/types/types/jira.test.d.ts +0 -2
  2162. package/dist/types/types/jira.test.d.ts.map +0 -1
  2163. package/dist/types/types/jira.test.js +0 -11
  2164. package/dist/types/types/jira.test.js.map +0 -1
  2165. package/dist/types/types/linear.test.d.ts +0 -2
  2166. package/dist/types/types/linear.test.d.ts.map +0 -1
  2167. package/dist/types/types/linear.test.js +0 -13
  2168. package/dist/types/types/linear.test.js.map +0 -1
  2169. package/dist/types/types/mergeQuery.test.d.ts +0 -2
  2170. package/dist/types/types/mergeQuery.test.d.ts.map +0 -1
  2171. package/dist/types/types/mergeQuery.test.js +0 -385
  2172. package/dist/types/types/mergeQuery.test.js.map +0 -1
  2173. package/dist/types/types/organizationSettings.test.d.ts +0 -2
  2174. package/dist/types/types/organizationSettings.test.d.ts.map +0 -1
  2175. package/dist/types/types/organizationSettings.test.js +0 -105
  2176. package/dist/types/types/organizationSettings.test.js.map +0 -1
  2177. package/dist/types/types/periodOverPeriodComparison.test.d.ts +0 -2
  2178. package/dist/types/types/periodOverPeriodComparison.test.d.ts.map +0 -1
  2179. package/dist/types/types/periodOverPeriodComparison.test.js +0 -99
  2180. package/dist/types/types/periodOverPeriodComparison.test.js.map +0 -1
  2181. package/dist/types/types/projects.test.d.ts +0 -2
  2182. package/dist/types/types/projects.test.d.ts.map +0 -1
  2183. package/dist/types/types/projects.test.js +0 -319
  2184. package/dist/types/types/projects.test.js.map +0 -1
  2185. package/dist/types/types/savedCharts.test.d.ts +0 -2
  2186. package/dist/types/types/savedCharts.test.d.ts.map +0 -1
  2187. package/dist/types/types/savedCharts.test.js +0 -136
  2188. package/dist/types/types/savedCharts.test.js.map +0 -1
  2189. package/dist/types/types/scheduler.test.d.ts +0 -2
  2190. package/dist/types/types/scheduler.test.d.ts.map +0 -1
  2191. package/dist/types/types/scheduler.test.js +0 -36
  2192. package/dist/types/types/scheduler.test.js.map +0 -1
  2193. package/dist/types/types/schedulerTaskList.test.d.ts +0 -2
  2194. package/dist/types/types/schedulerTaskList.test.d.ts.map +0 -1
  2195. package/dist/types/types/schedulerTaskList.test.js +0 -16
  2196. package/dist/types/types/schedulerTaskList.test.js.map +0 -1
  2197. package/dist/types/types/userAvatars.test.d.ts +0 -2
  2198. package/dist/types/types/userAvatars.test.d.ts.map +0 -1
  2199. package/dist/types/types/userAvatars.test.js +0 -124
  2200. package/dist/types/types/userAvatars.test.js.map +0 -1
  2201. package/dist/types/types/userWarehouseCredentials.test.d.ts +0 -2
  2202. package/dist/types/types/userWarehouseCredentials.test.d.ts.map +0 -1
  2203. package/dist/types/types/userWarehouseCredentials.test.js +0 -80
  2204. package/dist/types/types/userWarehouseCredentials.test.js.map +0 -1
  2205. package/dist/types/types/warehouse.test.d.ts +0 -2
  2206. package/dist/types/types/warehouse.test.d.ts.map +0 -1
  2207. package/dist/types/types/warehouse.test.js +0 -104
  2208. package/dist/types/types/warehouse.test.js.map +0 -1
  2209. package/dist/types/utils/accessors.test.d.ts +0 -2
  2210. package/dist/types/utils/accessors.test.d.ts.map +0 -1
  2211. package/dist/types/utils/accessors.test.js +0 -45
  2212. package/dist/types/utils/accessors.test.js.map +0 -1
  2213. package/dist/types/utils/additionalMetrics.test.d.ts +0 -2
  2214. package/dist/types/utils/additionalMetrics.test.d.ts.map +0 -1
  2215. package/dist/types/utils/additionalMetrics.test.js +0 -336
  2216. package/dist/types/utils/additionalMetrics.test.js.map +0 -1
  2217. package/dist/types/utils/applyChartFilterOverrides.test.d.ts +0 -2
  2218. package/dist/types/utils/applyChartFilterOverrides.test.d.ts.map +0 -1
  2219. package/dist/types/utils/applyChartFilterOverrides.test.js +0 -216
  2220. package/dist/types/utils/applyChartFilterOverrides.test.js.map +0 -1
  2221. package/dist/types/utils/bigNumber.test.d.ts +0 -2
  2222. package/dist/types/utils/bigNumber.test.d.ts.map +0 -1
  2223. package/dist/types/utils/bigNumber.test.js +0 -102
  2224. package/dist/types/utils/bigNumber.test.js.map +0 -1
  2225. package/dist/types/utils/booleanConverter.test.d.ts +0 -2
  2226. package/dist/types/utils/booleanConverter.test.d.ts.map +0 -1
  2227. package/dist/types/utils/booleanConverter.test.js +0 -59
  2228. package/dist/types/utils/booleanConverter.test.js.map +0 -1
  2229. package/dist/types/utils/chartValidation.test.d.ts +0 -2
  2230. package/dist/types/utils/chartValidation.test.d.ts.map +0 -1
  2231. package/dist/types/utils/chartValidation.test.js +0 -45
  2232. package/dist/types/utils/chartValidation.test.js.map +0 -1
  2233. package/dist/types/utils/charts.test.d.ts +0 -2
  2234. package/dist/types/utils/charts.test.d.ts.map +0 -1
  2235. package/dist/types/utils/charts.test.js +0 -44
  2236. package/dist/types/utils/charts.test.js.map +0 -1
  2237. package/dist/types/utils/colors.test.d.ts +0 -2
  2238. package/dist/types/utils/colors.test.d.ts.map +0 -1
  2239. package/dist/types/utils/colors.test.js +0 -85
  2240. package/dist/types/utils/colors.test.js.map +0 -1
  2241. package/dist/types/utils/conditionalFormatExpressions.test.d.ts +0 -2
  2242. package/dist/types/utils/conditionalFormatExpressions.test.d.ts.map +0 -1
  2243. package/dist/types/utils/conditionalFormatExpressions.test.js +0 -161
  2244. package/dist/types/utils/conditionalFormatExpressions.test.js.map +0 -1
  2245. package/dist/types/utils/conditionalFormatting.test.d.ts +0 -2
  2246. package/dist/types/utils/conditionalFormatting.test.d.ts.map +0 -1
  2247. package/dist/types/utils/conditionalFormatting.test.js +0 -359
  2248. package/dist/types/utils/conditionalFormatting.test.js.map +0 -1
  2249. package/dist/types/utils/connectionChanges.test.d.ts +0 -2
  2250. package/dist/types/utils/connectionChanges.test.d.ts.map +0 -1
  2251. package/dist/types/utils/connectionChanges.test.js +0 -166
  2252. package/dist/types/utils/connectionChanges.test.js.map +0 -1
  2253. package/dist/types/utils/customDimensions.test.d.ts +0 -2
  2254. package/dist/types/utils/customDimensions.test.d.ts.map +0 -1
  2255. package/dist/types/utils/customDimensions.test.js +0 -232
  2256. package/dist/types/utils/customDimensions.test.js.map +0 -1
  2257. package/dist/types/utils/dashboard.test.d.ts +0 -2
  2258. package/dist/types/utils/dashboard.test.d.ts.map +0 -1
  2259. package/dist/types/utils/dashboard.test.js +0 -81
  2260. package/dist/types/utils/dashboard.test.js.map +0 -1
  2261. package/dist/types/utils/dateZoom.test.d.ts +0 -2
  2262. package/dist/types/utils/dateZoom.test.d.ts.map +0 -1
  2263. package/dist/types/utils/dateZoom.test.js +0 -1034
  2264. package/dist/types/utils/dateZoom.test.js.map +0 -1
  2265. package/dist/types/utils/dbt.test.d.ts +0 -2
  2266. package/dist/types/utils/dbt.test.d.ts.map +0 -1
  2267. package/dist/types/utils/dbt.test.js +0 -39
  2268. package/dist/types/utils/dbt.test.js.map +0 -1
  2269. package/dist/types/utils/dependencyGraph.test.d.ts +0 -2
  2270. package/dist/types/utils/dependencyGraph.test.d.ts.map +0 -1
  2271. package/dist/types/utils/dependencyGraph.test.js +0 -113
  2272. package/dist/types/utils/dependencyGraph.test.js.map +0 -1
  2273. package/dist/types/utils/email.test.d.ts +0 -2
  2274. package/dist/types/utils/email.test.d.ts.map +0 -1
  2275. package/dist/types/utils/email.test.js +0 -89
  2276. package/dist/types/utils/email.test.js.map +0 -1
  2277. package/dist/types/utils/exportTabs.test.d.ts +0 -2
  2278. package/dist/types/utils/exportTabs.test.d.ts.map +0 -1
  2279. package/dist/types/utils/exportTabs.test.js +0 -121
  2280. package/dist/types/utils/exportTabs.test.js.map +0 -1
  2281. package/dist/types/utils/fields.mock.d.ts +0 -20
  2282. package/dist/types/utils/fields.mock.d.ts.map +0 -1
  2283. package/dist/types/utils/fields.mock.js +0 -252
  2284. package/dist/types/utils/fields.mock.js.map +0 -1
  2285. package/dist/types/utils/fields.test.d.ts +0 -2
  2286. package/dist/types/utils/fields.test.d.ts.map +0 -1
  2287. package/dist/types/utils/fields.test.js +0 -280
  2288. package/dist/types/utils/fields.test.js.map +0 -1
  2289. package/dist/types/utils/filterLabels.test.d.ts +0 -2
  2290. package/dist/types/utils/filterLabels.test.d.ts.map +0 -1
  2291. package/dist/types/utils/filterLabels.test.js +0 -79
  2292. package/dist/types/utils/filterLabels.test.js.map +0 -1
  2293. package/dist/types/utils/filterLabelsGolden.test.d.ts +0 -2
  2294. package/dist/types/utils/filterLabelsGolden.test.d.ts.map +0 -1
  2295. package/dist/types/utils/filterLabelsGolden.test.js +0 -85
  2296. package/dist/types/utils/filterLabelsGolden.test.js.map +0 -1
  2297. package/dist/types/utils/filters.mock.d.ts +0 -28
  2298. package/dist/types/utils/filters.mock.d.ts.map +0 -1
  2299. package/dist/types/utils/filters.mock.js +0 -533
  2300. package/dist/types/utils/filters.mock.js.map +0 -1
  2301. package/dist/types/utils/filters.test.d.ts +0 -2
  2302. package/dist/types/utils/filters.test.d.ts.map +0 -1
  2303. package/dist/types/utils/filters.test.js +0 -1984
  2304. package/dist/types/utils/filters.test.js.map +0 -1
  2305. package/dist/types/utils/formatting.mock.d.ts +0 -6
  2306. package/dist/types/utils/formatting.mock.d.ts.map +0 -1
  2307. package/dist/types/utils/formatting.mock.js +0 -35
  2308. package/dist/types/utils/formatting.mock.js.map +0 -1
  2309. package/dist/types/utils/formatting.test.d.ts +0 -2
  2310. package/dist/types/utils/formatting.test.d.ts.map +0 -1
  2311. package/dist/types/utils/formatting.test.js +0 -2628
  2312. package/dist/types/utils/formatting.test.js.map +0 -1
  2313. package/dist/types/utils/github.test.d.ts +0 -2
  2314. package/dist/types/utils/github.test.d.ts.map +0 -1
  2315. package/dist/types/utils/github.test.js +0 -23
  2316. package/dist/types/utils/github.test.js.map +0 -1
  2317. package/dist/types/utils/i18n/chartAsCode.test.d.ts +0 -2
  2318. package/dist/types/utils/i18n/chartAsCode.test.d.ts.map +0 -1
  2319. package/dist/types/utils/i18n/chartAsCode.test.js +0 -365
  2320. package/dist/types/utils/i18n/chartAsCode.test.js.map +0 -1
  2321. package/dist/types/utils/i18n/dashboardAsCode.test.d.ts +0 -2
  2322. package/dist/types/utils/i18n/dashboardAsCode.test.d.ts.map +0 -1
  2323. package/dist/types/utils/i18n/dashboardAsCode.test.js +0 -167
  2324. package/dist/types/utils/i18n/dashboardAsCode.test.js.map +0 -1
  2325. package/dist/types/utils/i18n/uiStrings.test.d.ts +0 -2
  2326. package/dist/types/utils/i18n/uiStrings.test.d.ts.map +0 -1
  2327. package/dist/types/utils/i18n/uiStrings.test.js +0 -42
  2328. package/dist/types/utils/i18n/uiStrings.test.js.map +0 -1
  2329. package/dist/types/utils/loadLightdashProjectConfig.mock.d.ts +0 -24
  2330. package/dist/types/utils/loadLightdashProjectConfig.mock.d.ts.map +0 -1
  2331. package/dist/types/utils/loadLightdashProjectConfig.mock.js +0 -201
  2332. package/dist/types/utils/loadLightdashProjectConfig.mock.js.map +0 -1
  2333. package/dist/types/utils/loadLightdashProjectConfig.test.d.ts +0 -2
  2334. package/dist/types/utils/loadLightdashProjectConfig.test.d.ts.map +0 -1
  2335. package/dist/types/utils/loadLightdashProjectConfig.test.js +0 -221
  2336. package/dist/types/utils/loadLightdashProjectConfig.test.js.map +0 -1
  2337. package/dist/types/utils/mergeQueryItems.test.d.ts +0 -2
  2338. package/dist/types/utils/mergeQueryItems.test.d.ts.map +0 -1
  2339. package/dist/types/utils/mergeQueryItems.test.js +0 -66
  2340. package/dist/types/utils/mergeQueryItems.test.js.map +0 -1
  2341. package/dist/types/utils/metricsExplorer.test.d.ts +0 -2
  2342. package/dist/types/utils/metricsExplorer.test.d.ts.map +0 -1
  2343. package/dist/types/utils/metricsExplorer.test.js +0 -175
  2344. package/dist/types/utils/metricsExplorer.test.js.map +0 -1
  2345. package/dist/types/utils/normalizeCellRawForFilter.test.d.ts +0 -2
  2346. package/dist/types/utils/normalizeCellRawForFilter.test.d.ts.map +0 -1
  2347. package/dist/types/utils/normalizeCellRawForFilter.test.js +0 -63
  2348. package/dist/types/utils/normalizeCellRawForFilter.test.js.map +0 -1
  2349. package/dist/types/utils/oauth.test.d.ts +0 -2
  2350. package/dist/types/utils/oauth.test.d.ts.map +0 -1
  2351. package/dist/types/utils/oauth.test.js +0 -89
  2352. package/dist/types/utils/oauth.test.js.map +0 -1
  2353. package/dist/types/utils/previewDeployWorkflow.test.d.ts +0 -2
  2354. package/dist/types/utils/previewDeployWorkflow.test.d.ts.map +0 -1
  2355. package/dist/types/utils/previewDeployWorkflow.test.js +0 -173
  2356. package/dist/types/utils/previewDeployWorkflow.test.js.map +0 -1
  2357. package/dist/types/utils/projectMemberRole.test.d.ts +0 -2
  2358. package/dist/types/utils/projectMemberRole.test.d.ts.map +0 -1
  2359. package/dist/types/utils/projectMemberRole.test.js +0 -36
  2360. package/dist/types/utils/projectMemberRole.test.js.map +0 -1
  2361. package/dist/types/utils/queryHistoryList.test.d.ts +0 -2
  2362. package/dist/types/utils/queryHistoryList.test.d.ts.map +0 -1
  2363. package/dist/types/utils/queryHistoryList.test.js +0 -89
  2364. package/dist/types/utils/queryHistoryList.test.js.map +0 -1
  2365. package/dist/types/utils/resolveQueryTimezone.test.d.ts +0 -2
  2366. package/dist/types/utils/resolveQueryTimezone.test.d.ts.map +0 -1
  2367. package/dist/types/utils/resolveQueryTimezone.test.js +0 -151
  2368. package/dist/types/utils/resolveQueryTimezone.test.js.map +0 -1
  2369. package/dist/types/utils/resultColumns.test.d.ts +0 -2
  2370. package/dist/types/utils/resultColumns.test.d.ts.map +0 -1
  2371. package/dist/types/utils/resultColumns.test.js +0 -191
  2372. package/dist/types/utils/resultColumns.test.js.map +0 -1
  2373. package/dist/types/utils/sanitizeHtml.test.d.ts +0 -2
  2374. package/dist/types/utils/sanitizeHtml.test.d.ts.map +0 -1
  2375. package/dist/types/utils/sanitizeHtml.test.js +0 -198
  2376. package/dist/types/utils/sanitizeHtml.test.js.map +0 -1
  2377. package/dist/types/utils/scheduler.test.d.ts +0 -2
  2378. package/dist/types/utils/scheduler.test.d.ts.map +0 -1
  2379. package/dist/types/utils/scheduler.test.js +0 -61
  2380. package/dist/types/utils/scheduler.test.js.map +0 -1
  2381. package/dist/types/utils/searchParams.test.d.ts +0 -2
  2382. package/dist/types/utils/searchParams.test.d.ts.map +0 -1
  2383. package/dist/types/utils/searchParams.test.js +0 -20
  2384. package/dist/types/utils/searchParams.test.js.map +0 -1
  2385. package/dist/types/utils/slack.test.d.ts +0 -2
  2386. package/dist/types/utils/slack.test.d.ts.map +0 -1
  2387. package/dist/types/utils/slack.test.js +0 -100
  2388. package/dist/types/utils/slack.test.js.map +0 -1
  2389. package/dist/types/utils/slug.test.d.ts +0 -2
  2390. package/dist/types/utils/slug.test.d.ts.map +0 -1
  2391. package/dist/types/utils/slug.test.js +0 -129
  2392. package/dist/types/utils/slug.test.js.map +0 -1
  2393. package/dist/types/utils/tableCalculationFunctions.test.d.ts +0 -2
  2394. package/dist/types/utils/tableCalculationFunctions.test.d.ts.map +0 -1
  2395. package/dist/types/utils/tableCalculationFunctions.test.js +0 -944
  2396. package/dist/types/utils/tableCalculationFunctions.test.js.map +0 -1
  2397. package/dist/types/utils/tableCalculationFunctions.utility.test.d.ts +0 -2
  2398. package/dist/types/utils/tableCalculationFunctions.utility.test.d.ts.map +0 -1
  2399. package/dist/types/utils/tableCalculationFunctions.utility.test.js +0 -84
  2400. package/dist/types/utils/tableCalculationFunctions.utility.test.js.map +0 -1
  2401. package/dist/types/utils/timeFrames.test.d.ts +0 -2
  2402. package/dist/types/utils/timeFrames.test.d.ts.map +0 -1
  2403. package/dist/types/utils/timeFrames.test.js +0 -860
  2404. package/dist/types/utils/timeFrames.test.js.map +0 -1
  2405. package/dist/types/utils/virtualView.test.d.ts +0 -2
  2406. package/dist/types/utils/virtualView.test.d.ts.map +0 -1
  2407. package/dist/types/utils/virtualView.test.js +0 -154
  2408. package/dist/types/utils/virtualView.test.js.map +0 -1
  2409. package/dist/types/utils/warehouse.test.d.ts +0 -2
  2410. package/dist/types/utils/warehouse.test.d.ts.map +0 -1
  2411. package/dist/types/utils/warehouse.test.js +0 -44
  2412. package/dist/types/utils/warehouse.test.js.map +0 -1
  2413. package/dist/types/utils/warehouseLocation.test.d.ts +0 -2
  2414. package/dist/types/utils/warehouseLocation.test.d.ts.map +0 -1
  2415. package/dist/types/utils/warehouseLocation.test.js +0 -165
  2416. package/dist/types/utils/warehouseLocation.test.js.map +0 -1
  2417. package/dist/types/utils/warehouseResourceLimits.test.d.ts +0 -2
  2418. package/dist/types/utils/warehouseResourceLimits.test.d.ts.map +0 -1
  2419. package/dist/types/utils/warehouseResourceLimits.test.js +0 -15
  2420. package/dist/types/utils/warehouseResourceLimits.test.js.map +0 -1
  2421. package/dist/types/utils/zodJsonSchema.test.d.ts +0 -2
  2422. package/dist/types/utils/zodJsonSchema.test.d.ts.map +0 -1
  2423. package/dist/types/utils/zodJsonSchema.test.js +0 -141
  2424. package/dist/types/utils/zodJsonSchema.test.js.map +0 -1
  2425. package/dist/types/visualizations/BigNumberDataModel.test.d.ts +0 -2
  2426. package/dist/types/visualizations/BigNumberDataModel.test.d.ts.map +0 -1
  2427. package/dist/types/visualizations/BigNumberDataModel.test.js +0 -344
  2428. package/dist/types/visualizations/BigNumberDataModel.test.js.map +0 -1
  2429. package/dist/types/visualizations/CartesianChartDataModel.test.d.ts +0 -2
  2430. package/dist/types/visualizations/CartesianChartDataModel.test.d.ts.map +0 -1
  2431. package/dist/types/visualizations/CartesianChartDataModel.test.js +0 -221
  2432. package/dist/types/visualizations/CartesianChartDataModel.test.js.map +0 -1
  2433. package/dist/types/visualizations/TableDataModel.test.d.ts +0 -2
  2434. package/dist/types/visualizations/TableDataModel.test.d.ts.map +0 -1
  2435. package/dist/types/visualizations/TableDataModel.test.js +0 -62
  2436. package/dist/types/visualizations/TableDataModel.test.js.map +0 -1
  2437. package/dist/types/visualizations/helpers/styles/barChartStyles.test.d.ts +0 -2
  2438. package/dist/types/visualizations/helpers/styles/barChartStyles.test.d.ts.map +0 -1
  2439. package/dist/types/visualizations/helpers/styles/barChartStyles.test.js +0 -74
  2440. package/dist/types/visualizations/helpers/styles/barChartStyles.test.js.map +0 -1
  2441. package/dist/types/visualizations/helpers/styles/pieChartStyles.test.d.ts +0 -2
  2442. package/dist/types/visualizations/helpers/styles/pieChartStyles.test.d.ts.map +0 -1
  2443. package/dist/types/visualizations/helpers/styles/pieChartStyles.test.js +0 -29
  2444. package/dist/types/visualizations/helpers/styles/pieChartStyles.test.js.map +0 -1
  2445. package/dist/types/visualizations/helpers/styles/valueLabelStyles.test.d.ts +0 -2
  2446. package/dist/types/visualizations/helpers/styles/valueLabelStyles.test.d.ts.map +0 -1
  2447. package/dist/types/visualizations/helpers/styles/valueLabelStyles.test.js +0 -37
  2448. package/dist/types/visualizations/helpers/styles/valueLabelStyles.test.js.map +0 -1
  2449. package/dist/types/visualizations/helpers/tooltipFormatter.test.d.ts +0 -2
  2450. package/dist/types/visualizations/helpers/tooltipFormatter.test.d.ts.map +0 -1
  2451. package/dist/types/visualizations/helpers/tooltipFormatter.test.js +0 -285
  2452. package/dist/types/visualizations/helpers/tooltipFormatter.test.js.map +0 -1
@@ -1,2628 +0,0 @@
1
- import dayjs from 'dayjs';
2
- import moment from 'moment';
3
- import momentTz from 'moment-timezone';
4
- import { Compact, CustomFormatType, DimensionType, FieldType, Format, MetricType, NumberSeparator, TableCalculationType, } from '../types/field';
5
- import { TimeFrames } from '../types/timeFrames';
6
- import { convertCustomMetricToDbt } from './convertCustomMetricsToYaml';
7
- import { applyCustomFormat, applyDefaultFormat, convertCustomFormatToFormatExpression, currencies, formatDate, formatItemValue, formatNumberValue, formatTemporalCellForSpreadsheet, formatTimestamp, formatValueWithExpression, getCustomFormatFromLegacy, getEffectiveSeparator, getFieldFormatOverrideProps, getFormatExpression, getFormatExpressionLocale, getFormatterTimezone, isCalendarValueItem, isItemTimezoneAffected, isMomentInput, isTimestampString, isUnambiguousTemporalString, parseCalendarValueUTC, parseTimestampValueUTC, separatorToNumfmtLocale, shouldShiftItemTimezone, toIsoWithProjectOffset, } from './formatting';
8
- import { additionalMetric, dimension, metric, tableCalculation, } from './formatting.mock';
9
- describe('Formatting', () => {
10
- describe('getFormatterTimezone (unified shift decision)', () => {
11
- const tz = 'America/Anchorage';
12
- const tsString = '2025-01-15T17:00:00.000Z';
13
- const dateOnly = '2025-01-15';
14
- test('returns undefined when no project timezone is supplied', () => {
15
- expect(getFormatterTimezone({ ...dimension, type: DimensionType.TIMESTAMP }, tsString, undefined)).toBeUndefined();
16
- });
17
- test('TIMESTAMP dimension shifts by shape (value-independent)', () => {
18
- const item = { ...dimension, type: DimensionType.TIMESTAMP };
19
- expect(getFormatterTimezone(item, tsString, tz)).toEqual(tz);
20
- // shape says shift even for a value the by-value gate would reject
21
- expect(getFormatterTimezone(item, 12345, tz)).toEqual(tz);
22
- });
23
- test('bare DATE dimension never shifts (calendar guard)', () => {
24
- expect(getFormatterTimezone({ ...dimension, type: DimensionType.DATE }, dateOnly, tz)).toBeUndefined();
25
- });
26
- test('DATE dimension truncated from a TIMESTAMP base does NOT shift (GLITCH-452: real DATE)', () => {
27
- const dateBaseTs = {
28
- ...dimension,
29
- type: DimensionType.DATE,
30
- timeIntervalBaseDimensionType: DimensionType.TIMESTAMP,
31
- };
32
- // GLITCH-452: the cast makes this a real DATE (calendar value), so it
33
- // is no longer a bucketed instant and must not be timezone-shifted.
34
- expect(getFormatterTimezone(dateBaseTs, tsString, tz)).toBeUndefined();
35
- });
36
- test('skipTimezoneConversion opts out even for a TIMESTAMP', () => {
37
- const skipTzDim = {
38
- ...dimension,
39
- type: DimensionType.TIMESTAMP,
40
- skipTimezoneConversion: true,
41
- };
42
- expect(getFormatterTimezone(skipTzDim, tsString, tz)).toBeUndefined();
43
- });
44
- test('MIN/MAX over a timestamp shifts via the by-value fallback', () => {
45
- const maxMetric = { ...additionalMetric, type: MetricType.MAX };
46
- expect(getFormatterTimezone(maxMetric, tsString, tz)).toEqual(tz);
47
- expect(getFormatterTimezone(maxMetric, new Date(tsString), tz)).toEqual(tz);
48
- });
49
- test('MIN/MAX over a calendar date does NOT shift (date-only value)', () => {
50
- expect(getFormatterTimezone({ ...additionalMetric, type: MetricType.MAX }, dateOnly, tz)).toBeUndefined();
51
- });
52
- test('MIN/MAX over a number does NOT shift', () => {
53
- expect(getFormatterTimezone({ ...additionalMetric, type: MetricType.MAX }, 42, tz)).toBeUndefined();
54
- });
55
- // With a known base type the decision no longer depends on the value
56
- // shape — a DATE base never shifts even for a midnight ISO instant.
57
- test('MIN/MAX with a DATE base does NOT shift, even for a midnight ISO value', () => {
58
- const item = {
59
- ...metric,
60
- type: MetricType.MAX,
61
- baseDimensionType: DimensionType.DATE,
62
- };
63
- expect(getFormatterTimezone(item, '2025-01-15T00:00:00.000Z', tz)).toBeUndefined();
64
- expect(getFormatterTimezone(item, new Date('2025-01-15T00:00:00.000Z'), tz)).toBeUndefined();
65
- });
66
- test('MIN/MAX with a TIMESTAMP base shifts (unchanged)', () => {
67
- const item = {
68
- ...metric,
69
- type: MetricType.MAX,
70
- baseDimensionType: DimensionType.TIMESTAMP,
71
- };
72
- expect(getFormatterTimezone(item, tsString, tz)).toEqual(tz);
73
- });
74
- test('MIN/MAX with no known base falls back to value shape (unchanged)', () => {
75
- const item = { ...metric, type: MetricType.MAX };
76
- expect(getFormatterTimezone(item, tsString, tz)).toEqual(tz);
77
- expect(getFormatterTimezone(item, dateOnly, tz)).toBeUndefined();
78
- });
79
- test('STRING item carrying a timestamp value does NOT shift', () => {
80
- // The by-value fallback is scoped to MIN/MAX; a known non-temporal
81
- // type is trusted even when the value looks like an instant.
82
- expect(getFormatterTimezone({ ...dimension, type: DimensionType.STRING }, tsString, tz)).toBeUndefined();
83
- expect(getFormatterTimezone({ ...dimension, type: DimensionType.STRING }, new Date(tsString), tz)).toBeUndefined();
84
- });
85
- test('DATE table calc does NOT shift even with a midnight-ISO value', () => {
86
- // The bug: a date-typed table calc whose value arrives as a full
87
- // timestamp must stay a calendar day (no off-by-one under -ve UTC).
88
- const dateTableCalc = {
89
- name: 'date_tc',
90
- displayName: 'date_tc',
91
- sql: '${orders.order_date_day}',
92
- type: TableCalculationType.DATE,
93
- };
94
- expect(getFormatterTimezone(dateTableCalc, tsString, tz)).toBeUndefined();
95
- });
96
- test('TIMESTAMP table calc shifts', () => {
97
- const tsTableCalc = {
98
- name: 'ts_tc',
99
- displayName: 'ts_tc',
100
- sql: '${orders.order_date_day}',
101
- type: TableCalculationType.TIMESTAMP,
102
- };
103
- expect(getFormatterTimezone(tsTableCalc, tsString, tz)).toEqual(tz);
104
- });
105
- });
106
- describe('convert legacy Format type', () => {
107
- [Format.KM, Format.MI].forEach((format) => {
108
- test(`when it is ${format.toUpperCase()} getCustomFormatFromLegacy should return the correct CustomFormat options`, () => {
109
- expect(getCustomFormatFromLegacy({ format })).toEqual({
110
- type: CustomFormatType.NUMBER,
111
- suffix: ` ${format}`,
112
- compact: undefined,
113
- round: undefined,
114
- });
115
- });
116
- });
117
- [Format.EUR, Format.GBP, Format.USD].forEach((format) => {
118
- test(`when it is ${format.toUpperCase()} getCustomFormatFromLegacy should return the correct CustomFormat options`, () => {
119
- expect(getCustomFormatFromLegacy({ format })).toEqual({
120
- type: CustomFormatType.CURRENCY,
121
- currency: format.toUpperCase(),
122
- compact: undefined,
123
- round: undefined,
124
- });
125
- });
126
- });
127
- test(`when it is ${Format.PERCENT.toUpperCase()} getCustomFormatFromLegacy should return the correct CustomFormat options`, () => {
128
- expect(getCustomFormatFromLegacy({ format: Format.PERCENT })).toEqual({
129
- type: CustomFormatType.PERCENT,
130
- compact: undefined,
131
- round: undefined,
132
- });
133
- });
134
- test(`when it is ${Format.ID.toUpperCase()} getCustomFormatFromLegacy should return the correct CustomFormat options`, () => {
135
- expect(getCustomFormatFromLegacy({ format: Format.ID })).toEqual({
136
- type: CustomFormatType.ID,
137
- });
138
- });
139
- test(`when it is ${Format.SI.toUpperCase()} getCustomFormatFromLegacy should return the correct CustomFormat options`, () => {
140
- expect(getCustomFormatFromLegacy({ format: Format.SI })).toEqual({
141
- type: CustomFormatType.NUMBER,
142
- compact: Compact.AUTO,
143
- round: undefined,
144
- });
145
- });
146
- });
147
- describe('applying CustomFormat to value', () => {
148
- describe('timezone threading (GLITCH-498)', () => {
149
- const utcInstant = new Date('2025-01-15T17:00:00.000Z'); // 06:00 in Pago_Pago (UTC-11)
150
- const tz = 'Pacific/Pago_Pago';
151
- test('TIMESTAMP format shifts a Date value into the timezone', () => {
152
- expect(applyCustomFormat(utcInstant, { type: CustomFormatType.TIMESTAMP }, tz)).toEqual('2025-01-15, 06:00:00:000 (-11:00)');
153
- });
154
- test('TIMESTAMP format shifts a timestamp string into the timezone', () => {
155
- expect(applyCustomFormat('2025-01-15 17:00:00', { type: CustomFormatType.TIMESTAMP }, tz)).toEqual('2025-01-15, 06:00:00:000 (-11:00)');
156
- });
157
- test('early Date branch (non-temporal format type) shifts via formatTimestamp', () => {
158
- // value is a Date and format.type is PERCENT -> hits the early
159
- // `value instanceof Date` branch (formatting.ts:708-715)
160
- expect(applyCustomFormat(utcInstant, { type: CustomFormatType.PERCENT }, tz)).toEqual('2025-01-15, 06:00:00:000 (-11:00)');
161
- });
162
- test('CUSTOM expression on a timestamp string shifts into the timezone', () => {
163
- expect(applyCustomFormat('2025-01-15 17:00:00', {
164
- type: CustomFormatType.CUSTOM,
165
- custom: 'yyyy-mm-dd hh:mm:ss',
166
- }, tz)).toEqual('2025-01-15 06:00:00');
167
- });
168
- test('DATE format on a date-only string does NOT shift (by-value gate)', () => {
169
- // isTimestampString('2025-01-15') === false -> no time component ->
170
- // effectiveTimezone is undefined -> calendar day is preserved
171
- expect(applyCustomFormat('2025-01-15', { type: CustomFormatType.DATE }, tz)).toEqual('2025-01-15');
172
- });
173
- test('numeric formats ignore timezone (no-op)', () => {
174
- expect(applyCustomFormat(5000, { type: CustomFormatType.NUMBER }, tz)).toEqual('5,000');
175
- expect(applyCustomFormat(0.05, { type: CustomFormatType.PERCENT }, tz)).toEqual('5%');
176
- });
177
- });
178
- // A custom date format on a month dimension double-counted a month for
179
- // viewers in a summer-DST timezone. In tz-aware mode month values arrive
180
- // as bare `YYYY-MM-DD` strings; the custom-format path parsed them in the
181
- // viewer's local zone but read back UTC fields, rolling post-DST months
182
- // back one (e.g. Apr -> Mar, giving two "Mar" bars). vitest runs in
183
- // TZ=UTC where the two parses match, so override moment's default zone.
184
- describe('custom date format across a DST boundary', () => {
185
- afterEach(() => momentTz.tz.setDefault());
186
- // Both are UTC+0 in winter, UTC+1 from ~Mar 29 (DST) — the boundary
187
- // that split correct (Jan-Mar) from shifted (Apr+) months.
188
- test.each(['Europe/London', 'Europe/Lisbon'])('month-truncated date-only values keep their own month in %s', (viewerZone) => {
189
- momentTz.tz.setDefault(viewerZone);
190
- const months = [
191
- ['2026-01-01', 'Jan'],
192
- ['2026-02-01', 'Feb'],
193
- ['2026-03-01', 'Mar'],
194
- ['2026-04-01', 'Apr'], // pre-fix rolled back to 'Mar'
195
- ['2026-05-01', 'May'],
196
- ['2026-06-01', 'Jun'],
197
- ];
198
- months.forEach(([value, expected]) => {
199
- expect(formatValueWithExpression('mmm', value)).toEqual(expected);
200
- });
201
- });
202
- test('offset-less timestamp strings are not shifted across the boundary', () => {
203
- momentTz.tz.setDefault('Europe/London');
204
- expect(formatValueWithExpression('mmm', '2026-04-01T00:00:00')).toEqual('Apr');
205
- });
206
- test('Z-suffixed values remain correct', () => {
207
- momentTz.tz.setDefault('Europe/London');
208
- expect(formatValueWithExpression('mmm', '2026-04-01T00:00:00Z')).toEqual('Apr');
209
- });
210
- test('formatItemValue on a DATE month dimension does not duplicate a month', () => {
211
- momentTz.tz.setDefault('Europe/London');
212
- const monthDimension = {
213
- ...dimension,
214
- type: DimensionType.DATE,
215
- timeInterval: TimeFrames.MONTH,
216
- format: 'mmm',
217
- };
218
- // Mirrors the axis formatter: convertToUTC=true, project tz='UTC'.
219
- const labels = ['2026-03-01', '2026-04-01', '2026-05-01'].map((value) => formatItemValue(monthDimension, value, true, undefined, 'UTC', 'UTC'));
220
- expect(labels).toEqual(['Mar', 'Apr', 'May']);
221
- });
222
- });
223
- describe('when using legacy format', () => {
224
- test('if Format is legacy distance unit it should return the right format', () => {
225
- expect(applyCustomFormat(5, getCustomFormatFromLegacy({ format: Format.KM }))).toEqual('5 km');
226
- expect(applyCustomFormat(5, getCustomFormatFromLegacy({
227
- format: Format.MI,
228
- }))).toEqual('5 mi');
229
- });
230
- test('if Format is currency unit it should return the right format', () => {
231
- expect(applyCustomFormat(5, {
232
- type: CustomFormatType.CURRENCY,
233
- currency: Format.USD,
234
- })).toEqual('$5.00');
235
- expect(applyCustomFormat(5, {
236
- type: CustomFormatType.CURRENCY,
237
- currency: Format.GBP,
238
- })).toEqual('£5.00');
239
- expect(applyCustomFormat(5, {
240
- type: CustomFormatType.CURRENCY,
241
- currency: Format.EUR,
242
- })).toEqual('€5.00');
243
- expect(applyCustomFormat(5, {
244
- type: CustomFormatType.CURRENCY,
245
- currency: Format.JPY,
246
- })).toEqual('¥5');
247
- expect(applyCustomFormat(5, {
248
- type: CustomFormatType.CURRENCY,
249
- currency: Format.DKK,
250
- })).toEqual('DKK 5.00');
251
- });
252
- test('if Format is percent it should return the right format', () => {
253
- const percentFormat = {
254
- type: CustomFormatType.PERCENT,
255
- };
256
- expect(applyCustomFormat(5, percentFormat)).toEqual('500%');
257
- expect(applyCustomFormat(0.05, percentFormat)).toEqual('5%');
258
- expect(applyCustomFormat('5', percentFormat)).toEqual('500%');
259
- expect(applyCustomFormat('foo', percentFormat)).toEqual('foo');
260
- expect(applyCustomFormat(false, percentFormat)).toEqual('false');
261
- });
262
- test('if Format is undefined it should return the right format', () => {
263
- expect(applyCustomFormat(1103)).toEqual('1,103');
264
- expect(applyCustomFormat(5)).toEqual('5');
265
- });
266
- test('if Format is id it should return the right format', () => {
267
- // ids are not comma separated
268
- expect(applyCustomFormat(1019, { type: CustomFormatType.ID })).toEqual('1019');
269
- });
270
- });
271
- describe('when applying round', () => {
272
- test('if round is undefined and custom format is not number format it should keep up to 3 decimal places', () => {
273
- expect(applyCustomFormat(5.9)).toEqual('5.9');
274
- expect(applyCustomFormat(5.99)).toEqual('5.99');
275
- expect(applyCustomFormat(5.999)).toEqual('5.999');
276
- expect(applyCustomFormat(5.9999)).toEqual('6');
277
- expect(applyCustomFormat(5.99999)).toEqual('6');
278
- expect(applyCustomFormat(5.9, {
279
- type: CustomFormatType.CURRENCY,
280
- currency: Format.USD,
281
- })).toEqual('$5.90');
282
- });
283
- test('if round is undefined and format is number it should keep up to 3 decimal places', () => {
284
- expect(applyCustomFormat(5.9, { type: CustomFormatType.NUMBER })).toEqual('5.9');
285
- });
286
- test('when round zero it should return the right round', () => {
287
- const roundZeroFormat = {
288
- type: CustomFormatType.NUMBER,
289
- round: 0,
290
- };
291
- expect(applyCustomFormat(1, roundZeroFormat)).toEqual('1');
292
- expect(applyCustomFormat(10, roundZeroFormat)).toEqual('10');
293
- expect(applyCustomFormat(100, roundZeroFormat)).toEqual('100');
294
- expect(applyCustomFormat(5, roundZeroFormat)).toEqual('5');
295
- expect(applyCustomFormat(5.001, roundZeroFormat)).toEqual('5');
296
- expect(applyCustomFormat(0.001, roundZeroFormat)).toEqual('0');
297
- expect(applyCustomFormat(1000, roundZeroFormat)).toEqual('1,000');
298
- expect(applyCustomFormat(10000, roundZeroFormat)).toEqual('10,000');
299
- expect(applyCustomFormat(100000, roundZeroFormat)).toEqual('100,000');
300
- expect(applyCustomFormat(1000000, roundZeroFormat)).toEqual('1,000,000');
301
- expect(applyCustomFormat(5.9999999, roundZeroFormat)).toEqual('6');
302
- });
303
- test('when round is positive number it should return the right round', () => {
304
- const roundTwoFormat = {
305
- type: CustomFormatType.NUMBER,
306
- round: 2,
307
- };
308
- expect(applyCustomFormat(5, roundTwoFormat)).toEqual('5.00');
309
- expect(applyCustomFormat('foo', roundTwoFormat)).toEqual('foo');
310
- expect(applyCustomFormat(5.001, roundTwoFormat)).toEqual('5.00');
311
- expect(applyCustomFormat(5.555, roundTwoFormat)).toEqual('5.56');
312
- expect(applyCustomFormat(5.5555, roundTwoFormat)).toEqual('5.56');
313
- expect(applyCustomFormat(5.9999999, roundTwoFormat)).toEqual('6.00');
314
- expect(applyCustomFormat(false, roundTwoFormat)).toEqual('false');
315
- const roundTenFormat = {
316
- type: CustomFormatType.NUMBER,
317
- round: 10,
318
- };
319
- expect(applyCustomFormat(5, roundTenFormat)).toEqual('5.0000000000');
320
- expect(applyCustomFormat(5.001, roundTenFormat)).toEqual('5.0010000000');
321
- expect(applyCustomFormat(5.9999999, roundTenFormat)).toEqual('5.9999999000');
322
- });
323
- test('when round is negative number it should return the right round', () => {
324
- const number = 123456789.12345;
325
- expect(formatNumberValue(number, {
326
- type: CustomFormatType.DEFAULT,
327
- round: -1,
328
- })).toEqual('123,456,790');
329
- expect(formatNumberValue(number, {
330
- type: CustomFormatType.DEFAULT,
331
- round: -2,
332
- })).toEqual('123,456,800');
333
- expect(formatNumberValue(number, {
334
- type: CustomFormatType.DEFAULT,
335
- round: -3,
336
- })).toEqual('123,457,000');
337
- expect(formatNumberValue(number, {
338
- type: CustomFormatType.DEFAULT,
339
- round: -99,
340
- })).toEqual('100,000,000');
341
- });
342
- });
343
- test('applyCustomFormat should return the right format and round', () => {
344
- expect(applyCustomFormat(5, {
345
- type: CustomFormatType.NUMBER,
346
- suffix: ` ${Format.KM}`,
347
- round: 2,
348
- })).toEqual('5.00 km');
349
- expect(applyCustomFormat(5, {
350
- type: CustomFormatType.NUMBER,
351
- suffix: ` ${Format.KM}`,
352
- round: -2,
353
- })).toEqual('5 km');
354
- expect(applyCustomFormat(5, {
355
- type: CustomFormatType.NUMBER,
356
- suffix: ` ${Format.MI}`,
357
- round: 4,
358
- })).toEqual('5.0000 mi');
359
- expect(applyCustomFormat(5, {
360
- type: CustomFormatType.NUMBER,
361
- suffix: ` ${Format.MI}`,
362
- round: -4,
363
- })).toEqual('5 mi');
364
- expect(applyCustomFormat(5, {
365
- type: CustomFormatType.CURRENCY,
366
- currency: Format.USD,
367
- round: 2,
368
- })).toEqual('$5.00');
369
- expect(applyCustomFormat(5.0, {
370
- type: CustomFormatType.CURRENCY,
371
- currency: Format.USD,
372
- round: 0,
373
- })).toEqual('$5');
374
- expect(applyCustomFormat(5, {
375
- type: CustomFormatType.CURRENCY,
376
- currency: Format.USD,
377
- round: -2,
378
- })).toEqual('$5');
379
- expect(applyCustomFormat(5.25, {
380
- type: CustomFormatType.CURRENCY,
381
- currency: Format.USD,
382
- round: -1,
383
- })).toEqual('$5');
384
- expect(applyCustomFormat('5.0000', {
385
- type: CustomFormatType.CURRENCY,
386
- currency: Format.USD,
387
- round: 2,
388
- })).toEqual('$5.00');
389
- expect(applyCustomFormat(5, {
390
- type: CustomFormatType.CURRENCY,
391
- currency: Format.GBP,
392
- round: 2,
393
- })).toEqual('£5.00');
394
- expect(applyCustomFormat(5, {
395
- type: CustomFormatType.CURRENCY,
396
- currency: Format.GBP,
397
- round: -2,
398
- })).toEqual('£5');
399
- expect(applyCustomFormat(5.25, {
400
- type: CustomFormatType.CURRENCY,
401
- currency: Format.GBP,
402
- round: -2,
403
- })).toEqual('£5');
404
- expect(applyCustomFormat(5, {
405
- type: CustomFormatType.CURRENCY,
406
- currency: Format.EUR,
407
- round: 2,
408
- })).toEqual('€5.00');
409
- expect(applyCustomFormat(5, {
410
- type: CustomFormatType.CURRENCY,
411
- currency: Format.EUR,
412
- round: -2,
413
- })).toEqual('€5');
414
- expect(applyCustomFormat(5.25, {
415
- type: CustomFormatType.CURRENCY,
416
- currency: Format.EUR,
417
- round: -1,
418
- })).toEqual('€5');
419
- expect(applyCustomFormat(5, {
420
- type: CustomFormatType.PERCENT,
421
- round: 2,
422
- })).toEqual('500.00%');
423
- expect(applyCustomFormat(0.05, {
424
- type: CustomFormatType.PERCENT,
425
- round: 2,
426
- })).toEqual('5.00%');
427
- expect(applyCustomFormat('5', {
428
- type: CustomFormatType.PERCENT,
429
- round: 2,
430
- })).toEqual('500.00%');
431
- expect(applyCustomFormat(0.0511, {
432
- type: CustomFormatType.PERCENT,
433
- round: 2,
434
- })).toEqual('5.11%');
435
- expect(applyCustomFormat(0.0511, {
436
- type: CustomFormatType.PERCENT,
437
- round: 4,
438
- })).toEqual('5.1100%');
439
- expect(applyCustomFormat('foo', {
440
- type: CustomFormatType.PERCENT,
441
- round: 2,
442
- })).toEqual('foo');
443
- expect(applyCustomFormat(false, {
444
- type: CustomFormatType.PERCENT,
445
- round: 2,
446
- })).toEqual('false');
447
- expect(applyCustomFormat(0.05, {
448
- type: CustomFormatType.PERCENT,
449
- round: -2,
450
- })).toEqual('5%');
451
- expect(applyCustomFormat('5', {
452
- type: CustomFormatType.PERCENT,
453
- round: -2,
454
- })).toEqual('500%');
455
- });
456
- describe('when applying compact', () => {
457
- const { AUTO, THOUSANDS: K, MILLIONS: M, BILLIONS: B, TRILLIONS: T, } = Compact;
458
- const autoConfig = {
459
- type: CustomFormatType.NUMBER,
460
- compact: AUTO,
461
- };
462
- const thousandsConfig = {
463
- type: CustomFormatType.NUMBER,
464
- compact: K,
465
- };
466
- const millionsConfig = {
467
- type: CustomFormatType.NUMBER,
468
- compact: M,
469
- };
470
- const billionsConfig = {
471
- type: CustomFormatType.NUMBER,
472
- compact: B,
473
- };
474
- const trillionsConfig = {
475
- type: CustomFormatType.NUMBER,
476
- compact: T,
477
- };
478
- test('it should return the right style', () => {
479
- expect(applyCustomFormat(5, thousandsConfig)).toEqual('0.005K');
480
- expect(applyCustomFormat(5, millionsConfig)).toEqual('0M');
481
- expect(applyCustomFormat(500000, billionsConfig)).toEqual('0.001B');
482
- expect(applyCustomFormat(5, billionsConfig)).toEqual('0B');
483
- expect(applyCustomFormat(5000000000, trillionsConfig)).toEqual('0.005T');
484
- });
485
- test('it should dynamically pick the compact style', () => {
486
- expect(applyCustomFormat(999, autoConfig)).toEqual('999');
487
- expect(applyCustomFormat(1000, autoConfig)).toEqual('1K');
488
- expect(applyCustomFormat(1200, autoConfig)).toEqual('1.2K');
489
- expect(applyCustomFormat(1200000, autoConfig)).toEqual('1.2M');
490
- expect(applyCustomFormat(-1200000, autoConfig)).toEqual('-1.2M');
491
- });
492
- test('it should apply dynamic compact with round, separators, prefix and suffix', () => {
493
- expect(applyCustomFormat(1200, { ...autoConfig, round: 0 })).toEqual('1K');
494
- expect(applyCustomFormat(1234567890123456, {
495
- ...autoConfig,
496
- separator: NumberSeparator.COMMA_PERIOD,
497
- prefix: '~',
498
- suffix: ' total',
499
- })).toEqual('~1,234.568T total');
500
- });
501
- test('it should apply dynamic compact with currency', () => {
502
- expect(applyCustomFormat(1200, {
503
- type: CustomFormatType.CURRENCY,
504
- compact: AUTO,
505
- currency: 'USD',
506
- round: 1,
507
- })).toEqual('$1.2K');
508
- });
509
- test('when applying round it should return the right style', () => {
510
- expect(applyCustomFormat(5, { ...millionsConfig, round: 2 })).toEqual('0.00M');
511
- expect(applyCustomFormat(5400000, { ...millionsConfig, round: 0 })).toEqual('5M');
512
- expect(applyCustomFormat(4956789123, {
513
- ...trillionsConfig,
514
- round: -1,
515
- })).toEqual('0.005T');
516
- });
517
- test('with legacy distance format it should return the right format', () => {
518
- expect(applyCustomFormat(5000, getCustomFormatFromLegacy({
519
- compact: K,
520
- round: 2,
521
- format: Format.KM,
522
- }))).toEqual('5.00K km');
523
- expect(applyCustomFormat(50000, getCustomFormatFromLegacy({
524
- compact: K,
525
- round: 4,
526
- format: Format.MI,
527
- }))).toEqual('50.0000K mi');
528
- });
529
- test('with legacy currency format it should return the right format', () => {
530
- expect(applyCustomFormat(5000, getCustomFormatFromLegacy({
531
- compact: K,
532
- round: 2,
533
- format: Format.USD,
534
- }))).toEqual('$5.00K');
535
- expect(applyCustomFormat(5000000, getCustomFormatFromLegacy({
536
- compact: K,
537
- round: 2,
538
- format: Format.USD,
539
- }))).toEqual('$5,000.00K');
540
- expect(applyCustomFormat(5000000, getCustomFormatFromLegacy({
541
- compact: M,
542
- round: 2,
543
- format: Format.USD,
544
- }))).toEqual('$5.00M');
545
- expect(applyCustomFormat(4, getCustomFormatFromLegacy({
546
- compact: K,
547
- round: 2,
548
- format: Format.USD,
549
- }))).toEqual('$0.00K');
550
- expect(applyCustomFormat(4, getCustomFormatFromLegacy({
551
- compact: K,
552
- round: 3,
553
- format: Format.USD,
554
- }))).toEqual('$0.004K');
555
- expect(applyCustomFormat(4000, getCustomFormatFromLegacy({
556
- compact: K,
557
- format: Format.USD,
558
- }))).toEqual('$4.00K');
559
- expect(applyCustomFormat(5000000, getCustomFormatFromLegacy({
560
- compact: M,
561
- round: 2,
562
- format: Format.USD,
563
- }))).toEqual('$5.00M');
564
- expect(applyCustomFormat(5000000000, getCustomFormatFromLegacy({
565
- compact: M,
566
- round: 2,
567
- format: Format.USD,
568
- }))).toEqual('$5,000.00M');
569
- expect(applyCustomFormat(5000000000, getCustomFormatFromLegacy({
570
- compact: B,
571
- round: 2,
572
- format: Format.USD,
573
- }))).toEqual('$5.00B');
574
- expect(applyCustomFormat(5000.0, getCustomFormatFromLegacy({
575
- compact: K,
576
- round: 0,
577
- format: Format.USD,
578
- }))).toEqual('$5K');
579
- expect(applyCustomFormat('5000', getCustomFormatFromLegacy({
580
- compact: K,
581
- round: 2,
582
- format: Format.USD,
583
- }))).toEqual('$5.00K');
584
- expect(applyCustomFormat(5000, getCustomFormatFromLegacy({
585
- compact: K,
586
- round: 2,
587
- format: Format.GBP,
588
- }))).toEqual('£5.00K');
589
- expect(applyCustomFormat(5000, getCustomFormatFromLegacy({
590
- compact: K,
591
- round: 2,
592
- format: Format.EUR,
593
- }))).toEqual('€5.00K');
594
- });
595
- test('with legacy percent format it should return the right format', () => {
596
- expect(applyCustomFormat(0.05, getCustomFormatFromLegacy({
597
- compact: K,
598
- round: 2,
599
- format: Format.PERCENT,
600
- }))).toEqual('5.00%');
601
- });
602
- test('suports compact alias', () => {
603
- expect(applyCustomFormat(1000, {
604
- type: CustomFormatType.NUMBER,
605
- compact: 'K',
606
- })).toEqual('1K');
607
- expect(applyCustomFormat(1000, {
608
- type: CustomFormatType.NUMBER,
609
- compact: 'thousand',
610
- })).toEqual('1K');
611
- expect(applyCustomFormat(1000000, {
612
- type: CustomFormatType.NUMBER,
613
- compact: 'M',
614
- })).toEqual('1M');
615
- expect(applyCustomFormat(1000000, {
616
- type: CustomFormatType.NUMBER,
617
- compact: 'million',
618
- })).toEqual('1M');
619
- expect(applyCustomFormat(1000000000, {
620
- type: CustomFormatType.NUMBER,
621
- compact: 'B',
622
- })).toEqual('1B');
623
- expect(applyCustomFormat(1000000000, {
624
- type: CustomFormatType.NUMBER,
625
- compact: 'billion',
626
- })).toEqual('1B');
627
- expect(applyCustomFormat(1000000000000, {
628
- type: CustomFormatType.NUMBER,
629
- compact: 'T',
630
- })).toEqual('1T');
631
- expect(applyCustomFormat(1000000000000, {
632
- type: CustomFormatType.NUMBER,
633
- compact: 'trillion',
634
- })).toEqual('1T');
635
- });
636
- });
637
- });
638
- describe('isTimestampString', () => {
639
- test('true only for strings with a date AND a time component', () => {
640
- expect(isTimestampString('2018-10-31T06:44:22.667Z')).toBe(true);
641
- expect(isTimestampString('2020-08-11 16:44:00')).toBe(true);
642
- });
643
- test('false for date-only, numbers, Dates, and non-temporal strings', () => {
644
- // bare date — must not be timezone-shifted, so excluded
645
- expect(isTimestampString('2018-10-31')).toBe(false);
646
- // date-shaped but no time component
647
- expect(isTimestampString('2018-13-99')).toBe(false);
648
- expect(isTimestampString('42')).toBe(false);
649
- expect(isTimestampString(5000)).toBe(false);
650
- expect(isTimestampString('hello')).toBe(false);
651
- // type-guard is for strings only; Date instances are handled separately
652
- expect(isTimestampString(new Date('2018-10-31T06:44:22.667Z'))).toBe(false);
653
- expect(isTimestampString(undefined)).toBe(false);
654
- });
655
- });
656
- describe('isCalendarValueItem', () => {
657
- const dateBaseColumn = {
658
- ...dimension,
659
- type: DimensionType.DATE,
660
- };
661
- const dateOverDateDay = {
662
- ...dimension,
663
- type: DimensionType.DATE,
664
- timeInterval: TimeFrames.DAY,
665
- timeIntervalBaseDimensionType: DimensionType.DATE,
666
- };
667
- const dateOverDateWeek = {
668
- ...dimension,
669
- type: DimensionType.DATE,
670
- timeInterval: TimeFrames.WEEK,
671
- timeIntervalBaseDimensionType: DimensionType.DATE,
672
- };
673
- const dateOverTimestampDay = {
674
- ...dimension,
675
- type: DimensionType.DATE,
676
- timeInterval: TimeFrames.DAY,
677
- timeIntervalBaseDimensionType: DimensionType.TIMESTAMP,
678
- };
679
- const timestampRaw = {
680
- ...dimension,
681
- type: DimensionType.TIMESTAMP,
682
- };
683
- const timestampHour = {
684
- ...dimension,
685
- type: DimensionType.TIMESTAMP,
686
- timeInterval: TimeFrames.HOUR,
687
- timeIntervalBaseDimensionType: DimensionType.TIMESTAMP,
688
- };
689
- const dateMetric = {
690
- ...metric,
691
- type: MetricType.DATE,
692
- };
693
- test('treats wall-clock DATE values as calendar values', () => {
694
- // plain DATE column (no interval, base undefined)
695
- expect(isCalendarValueItem(dateBaseColumn)).toBe(true);
696
- // DATE truncated from a DATE base — any grain
697
- expect(isCalendarValueItem(dateOverDateDay)).toBe(true);
698
- expect(isCalendarValueItem(dateOverDateWeek)).toBe(true);
699
- // GLITCH-452: a DATE truncated from a TIMESTAMP base now compiles to a
700
- // real DATE (CAST(... AS DATE)), so it is a calendar value too.
701
- expect(isCalendarValueItem(dateOverTimestampDay)).toBe(true);
702
- // A date-typed metric (MetricType.DATE) — not a Dimension, still calendar
703
- expect(isCalendarValueItem(dateMetric)).toBe(true);
704
- });
705
- test('treats real instants as non-calendar values', () => {
706
- // plain + sub-day TIMESTAMP are real instants
707
- expect(isCalendarValueItem(timestampRaw)).toBe(false);
708
- expect(isCalendarValueItem(timestampHour)).toBe(false);
709
- });
710
- test('skipTimezoneConversion does not make a TIMESTAMP a calendar value', () => {
711
- // The trap: convert_timezone:false is TZ-immune but still an instant.
712
- const timestampRawOptOut = {
713
- ...timestampRaw,
714
- skipTimezoneConversion: true,
715
- };
716
- // A DATE stays a calendar value regardless of the marker
717
- const dateOptOut = {
718
- ...dateOverDateDay,
719
- skipTimezoneConversion: true,
720
- };
721
- expect(isCalendarValueItem(timestampRawOptOut)).toBe(false);
722
- expect(isCalendarValueItem(dateOptOut)).toBe(true);
723
- });
724
- test('non-temporal items and undefined are not calendar values', () => {
725
- expect(isCalendarValueItem(undefined)).toBe(false);
726
- expect(isCalendarValueItem(dimension)).toBe(false); // STRING
727
- expect(isCalendarValueItem(metric)).toBe(false); // COUNT
728
- });
729
- test('classifies table calculations by their declared type', () => {
730
- // Table calcs are not fields, but their `type` is reliable, so a
731
- // DATE table calc is a calendar value (must not shift) while a
732
- // TIMESTAMP one is a real instant.
733
- const dateTableCalc = {
734
- name: 'date_tc',
735
- displayName: 'date_tc',
736
- sql: '${orders.order_date_day}',
737
- type: TableCalculationType.DATE,
738
- };
739
- const timestampTableCalc = {
740
- name: 'ts_tc',
741
- displayName: 'ts_tc',
742
- sql: '${orders.order_date_day}',
743
- type: TableCalculationType.TIMESTAMP,
744
- };
745
- expect(isCalendarValueItem(dateTableCalc)).toBe(true);
746
- expect(isCalendarValueItem(timestampTableCalc)).toBe(false);
747
- });
748
- });
749
- describe('isItemTimezoneAffected', () => {
750
- const timestampBase = {
751
- ...dimension,
752
- type: DimensionType.TIMESTAMP,
753
- };
754
- const timestampHour = {
755
- ...dimension,
756
- type: DimensionType.TIMESTAMP,
757
- timeInterval: TimeFrames.HOUR,
758
- timeIntervalBaseDimensionType: DimensionType.TIMESTAMP,
759
- };
760
- const dateOverTimestampDay = {
761
- ...dimension,
762
- type: DimensionType.DATE,
763
- timeInterval: TimeFrames.DAY,
764
- timeIntervalBaseDimensionType: DimensionType.TIMESTAMP,
765
- };
766
- const dateBase = {
767
- ...dimension,
768
- type: DimensionType.DATE,
769
- };
770
- const dateOverDateDay = {
771
- ...dimension,
772
- type: DimensionType.DATE,
773
- timeInterval: TimeFrames.DAY,
774
- timeIntervalBaseDimensionType: DimensionType.DATE,
775
- };
776
- test('any grain of a TIMESTAMP base is timezone-affected', () => {
777
- expect(isItemTimezoneAffected(timestampBase)).toBe(true);
778
- expect(isItemTimezoneAffected(timestampHour)).toBe(true);
779
- // GLITCH-452: a day-or-coarser trunc of a TIMESTAMP base compiles to
780
- // a real DATE but is still shifted server-side, so it IS affected.
781
- expect(isItemTimezoneAffected(dateOverTimestampDay)).toBe(true);
782
- });
783
- test('DATE bases are not timezone-affected', () => {
784
- expect(isItemTimezoneAffected(dateBase)).toBe(false);
785
- expect(isItemTimezoneAffected(dateOverDateDay)).toBe(false);
786
- });
787
- test('skipTimezoneConversion opts out a TIMESTAMP base', () => {
788
- const timestampBaseOptOut = {
789
- ...timestampBase,
790
- skipTimezoneConversion: true,
791
- };
792
- const dateOverTimestampDayOptOut = {
793
- ...dateOverTimestampDay,
794
- skipTimezoneConversion: true,
795
- };
796
- expect(isItemTimezoneAffected(timestampBaseOptOut)).toBe(false);
797
- expect(isItemTimezoneAffected(dateOverTimestampDayOptOut)).toBe(false);
798
- });
799
- test('non-dimensions classify by their resolved type', () => {
800
- const maxMetric = { ...metric, type: MetricType.MAX };
801
- expect(isItemTimezoneAffected(undefined)).toBe(false);
802
- expect(isItemTimezoneAffected(dimension)).toBe(false); // STRING
803
- expect(isItemTimezoneAffected(metric)).toBe(false); // COUNT
804
- expect(isItemTimezoneAffected(maxMetric)).toBe(false);
805
- });
806
- });
807
- describe('formatItemValue', () => {
808
- test('formatItemValue should return the right format when field is undefined', () => {
809
- expect(formatItemValue(undefined, undefined)).toEqual('-');
810
- expect(formatItemValue(undefined, null)).toEqual('∅');
811
- expect(formatItemValue(undefined, '5')).toEqual('5');
812
- expect(formatItemValue(undefined, 5)).toEqual('5');
813
- });
814
- test('formatItemValue serialises a structured cell of a string dimension as JSON', () => {
815
- expect(formatItemValue({ ...dimension, type: DimensionType.STRING }, { city: 'NYC', tags: ['gift'] })).toEqual('{"city":"NYC","tags":["gift"]}');
816
- expect(formatItemValue({ ...dimension, type: DimensionType.STRING }, [
817
- 'gift',
818
- 'rush',
819
- ])).toEqual('["gift","rush"]');
820
- });
821
- test('formatItemValue should return the right format when field is Dimension', () => {
822
- expect(formatItemValue(dimension, undefined)).toEqual('-');
823
- expect(formatItemValue(dimension, null)).toEqual('∅');
824
- expect(formatItemValue({ ...dimension, type: DimensionType.STRING }, '5')).toEqual('5');
825
- expect(formatItemValue({ ...dimension, type: DimensionType.NUMBER }, 5)).toEqual('5');
826
- expect(formatItemValue({ ...dimension, type: DimensionType.STRING }, 132323123)).toEqual('132323123');
827
- expect(formatItemValue({ ...dimension, type: DimensionType.BOOLEAN }, true)).toEqual('True');
828
- expect(formatItemValue({
829
- ...dimension,
830
- type: DimensionType.DATE,
831
- }, new Date('2021-03-10T00:00:00.000Z'))).toEqual('2021-03-10');
832
- expect(formatItemValue({
833
- ...dimension,
834
- type: DimensionType.TIMESTAMP,
835
- }, new Date('2021-03-10T00:00:00.000Z'))).toEqual('2021-03-10, 00:00:00:000 (+00:00)');
836
- expect(formatItemValue({
837
- ...dimension,
838
- timeInterval: TimeFrames.YEAR_NUM,
839
- type: DimensionType.NUMBER,
840
- }, 2021)).toEqual('2021');
841
- });
842
- test('formatItemValue DATE ignores display timezone for DATE-backed dimensions', () => {
843
- const value = new Date('2026-03-03T00:00:00.000Z');
844
- // DATE base: timezone must be ignored (no day-shift in negative offsets)
845
- expect(formatItemValue({
846
- ...dimension,
847
- type: DimensionType.DATE,
848
- timeInterval: TimeFrames.DAY,
849
- timeIntervalBaseDimensionType: DimensionType.DATE,
850
- }, value, false, undefined, 'Pacific/Pago_Pago')).toEqual('2026-03-03');
851
- // TIMESTAMP base: GLITCH-452 — now a real DATE (calendar value), so the
852
- // display timezone no longer applies (no negative-offset roll-back).
853
- expect(formatItemValue({
854
- ...dimension,
855
- type: DimensionType.DATE,
856
- timeInterval: TimeFrames.DAY,
857
- timeIntervalBaseDimensionType: DimensionType.TIMESTAMP,
858
- }, value, false, undefined, 'Pacific/Pago_Pago')).toEqual('2026-03-03');
859
- });
860
- test('formatItemValue DATE ignores display timezone for plain DATE columns and DATE metrics', () => {
861
- const value = new Date('2026-03-03T00:00:00.000Z');
862
- // Plain DATE column (no interval, base undefined) is a calendar
863
- // value — a negative-offset zone must NOT roll the day back.
864
- expect(formatItemValue({ ...dimension, type: DimensionType.DATE }, value, false, undefined, 'Pacific/Pago_Pago')).toEqual('2026-03-03');
865
- // A date-typed metric (MetricType.DATE) is likewise a calendar value.
866
- expect(formatItemValue({ ...metric, type: MetricType.DATE }, value, false, undefined, 'Pacific/Pago_Pago')).toEqual('2026-03-03');
867
- });
868
- test('formatItemValue ignores display timezone when skipTimezoneConversion is set', () => {
869
- const value = new Date('2026-03-03T01:30:00.000Z');
870
- // TIMESTAMP dim with skipTimezoneConversion renders in raw UTC
871
- expect(formatItemValue({
872
- ...dimension,
873
- type: DimensionType.TIMESTAMP,
874
- skipTimezoneConversion: true,
875
- }, value, false, undefined, 'Pacific/Pago_Pago')).toEqual('2026-03-03, 01:30:00:000 (+00:00)');
876
- // DATE-base-TIMESTAMP child also opts out
877
- expect(formatItemValue({
878
- ...dimension,
879
- type: DimensionType.DATE,
880
- timeInterval: TimeFrames.DAY,
881
- timeIntervalBaseDimensionType: DimensionType.TIMESTAMP,
882
- skipTimezoneConversion: true,
883
- }, value, false, undefined, 'Pacific/Pago_Pago')).toEqual('2026-03-03');
884
- // Sanity: same dim without the marker (default) still shifts
885
- expect(formatItemValue({
886
- ...dimension,
887
- type: DimensionType.TIMESTAMP,
888
- }, value, false, undefined, 'Pacific/Pago_Pago')).toEqual('2026-03-02, 14:30:00:000 (-11:00)');
889
- });
890
- test('shouldShiftItemTimezone respects skipTimezoneConversion', () => {
891
- // The function is part of the public formatting surface used by
892
- // pivot exports + Google Sheets — opt-out must short-circuit.
893
- const tsBase = {
894
- ...dimension,
895
- type: DimensionType.TIMESTAMP,
896
- };
897
- const tsBaseOptOut = {
898
- ...tsBase,
899
- skipTimezoneConversion: true,
900
- };
901
- expect(shouldShiftItemTimezone(tsBase)).toBe(true);
902
- expect(shouldShiftItemTimezone(tsBaseOptOut)).toBe(false);
903
- const dateOverTs = {
904
- ...dimension,
905
- type: DimensionType.DATE,
906
- timeIntervalBaseDimensionType: DimensionType.TIMESTAMP,
907
- };
908
- const dateOverTsOptOut = {
909
- ...dateOverTs,
910
- skipTimezoneConversion: true,
911
- };
912
- // GLITCH-452: a DATE-over-TIMESTAMP trunc is now a real DATE — it no
913
- // longer shifts (only TIMESTAMP instants do).
914
- expect(shouldShiftItemTimezone(dateOverTs)).toBe(false);
915
- expect(shouldShiftItemTimezone(dateOverTsOptOut)).toBe(false);
916
- });
917
- test('shouldShiftItemTimezone classifies table calcs by type', () => {
918
- // Non-field items are keyed off getItemType: a TIMESTAMP table calc
919
- // is a real instant (shift), a DATE one is a calendar value (stay).
920
- const tsTableCalc = {
921
- name: 'ts_tc',
922
- displayName: 'ts_tc',
923
- sql: '${orders.order_date_day}',
924
- type: TableCalculationType.TIMESTAMP,
925
- };
926
- const dateTableCalc = {
927
- name: 'date_tc',
928
- displayName: 'date_tc',
929
- sql: '${orders.order_date_day}',
930
- type: TableCalculationType.DATE,
931
- };
932
- expect(shouldShiftItemTimezone(tsTableCalc)).toBe(true);
933
- expect(shouldShiftItemTimezone(dateTableCalc)).toBe(false);
934
- });
935
- test('formatItemValue should return the right format when field is Metric', () => {
936
- expect(formatItemValue(metric, undefined)).toEqual('-');
937
- expect(formatItemValue(metric, null)).toEqual('∅');
938
- expect(formatItemValue({ ...metric, type: MetricType.AVERAGE }, 5)).toEqual('5');
939
- expect(formatItemValue({ ...metric, type: MetricType.COUNT }, 5)).toEqual('5');
940
- expect(formatItemValue({ ...metric, type: MetricType.COUNT_DISTINCT }, 5)).toEqual('5');
941
- expect(formatItemValue({ ...metric, type: MetricType.SUM }, 5)).toEqual('5');
942
- expect(formatItemValue({ ...metric, type: MetricType.MIN }, 5000)).toEqual('5,000');
943
- expect(formatItemValue({ ...metric, type: MetricType.MAX }, 5000)).toEqual('5,000');
944
- expect(formatItemValue({ ...metric, type: MetricType.MIN }, new Date('2021-03-10T00:00:00.000Z'))).toEqual('2021-03-10, 00:00:00:000 (+00:00)');
945
- expect(formatItemValue({ ...metric, type: MetricType.MAX }, new Date('2021-03-10T00:00:00.000Z'))).toEqual('2021-03-10, 00:00:00:000 (+00:00)');
946
- expect(formatItemValue({
947
- ...metric,
948
- type: MetricType.NUMBER,
949
- round: 2,
950
- }, '1.123456123123')).toEqual('1.12');
951
- expect(formatItemValue({
952
- ...metric,
953
- type: MetricType.NUMBER,
954
- compact: Compact.THOUSANDS,
955
- }, 1000)).toEqual('1K');
956
- });
957
- test('formatItemValue MIN/MAX timestamps format in project tz from a Date OR an ISO string (GLITCH-485)', () => {
958
- const maxMetric = { ...metric, type: MetricType.MAX };
959
- const isoString = '2018-10-31T06:44:22.667Z';
960
- const asDate = new Date(isoString);
961
- const tz = 'Asia/Tokyo'; // +09:00, no DST
962
- // Fresh queries deliver a Date (already formatted); cached results
963
- // rehydrate from S3 as ISO strings and must format identically —
964
- // not fall through and show the raw UTC value.
965
- const fromDate = formatItemValue(maxMetric, asDate, false, undefined, tz);
966
- const fromString = formatItemValue(maxMetric, isoString, false, undefined, tz);
967
- expect(fromDate).toEqual('2018-10-31, 15:44:22:667 (+09:00)');
968
- expect(fromString).toEqual(fromDate);
969
- });
970
- test('formatItemValue MIN/MAX does not coerce non-timestamp values (GLITCH-485)', () => {
971
- const tz = 'Pacific/Pago_Pago'; // -11:00, exposes any wrong shift
972
- // Numeric aggregations stay numbers — fresh (number) or cached (string)
973
- expect(formatItemValue({ ...metric, type: MetricType.MAX }, 5000, false, undefined, tz)).toEqual('5,000');
974
- expect(formatItemValue({ ...metric, type: MetricType.MIN }, '42', false, undefined, tz)).toEqual('42');
975
- // A date-only aggregate is a wall-clock date — never tz-shifted
976
- expect(formatItemValue({ ...metric, type: MetricType.MAX }, '2018-10-31', false, undefined, tz)).toEqual('2018-10-31');
977
- });
978
- describe('formatItemValue MIN/MAX with a known base type', () => {
979
- const tz = 'Pacific/Pago_Pago'; // -11:00, exposes any wrong shift
980
- test('DATE base renders an unshifted calendar date at the base grain', () => {
981
- const dayMax = {
982
- ...metric,
983
- type: MetricType.MAX,
984
- baseDimensionType: DimensionType.DATE,
985
- baseDimensionTimeInterval: TimeFrames.DAY,
986
- };
987
- const monthMax = {
988
- ...dayMax,
989
- baseDimensionTimeInterval: TimeFrames.MONTH,
990
- };
991
- const yearMax = {
992
- ...dayMax,
993
- baseDimensionTimeInterval: TimeFrames.YEAR,
994
- };
995
- // Both the fresh Date and the cached midnight-ISO string render
996
- // the bare day, unshifted.
997
- expect(formatItemValue(dayMax, '2026-03-03T00:00:00.000Z', false, undefined, tz)).toEqual('2026-03-03');
998
- expect(formatItemValue(dayMax, new Date('2026-03-03T00:00:00.000Z'), false, undefined, tz)).toEqual('2026-03-03');
999
- // Coarser grains follow the base dimension's format.
1000
- expect(formatItemValue(monthMax, '2026-03-01T00:00:00.000Z', false, undefined, tz)).toEqual('2026-03');
1001
- expect(formatItemValue(yearMax, '2026-01-01T00:00:00.000Z', false, undefined, tz)).toEqual('2026');
1002
- });
1003
- test('TIMESTAMP base still shifts into the project tz (unchanged)', () => {
1004
- const tsMax = {
1005
- ...metric,
1006
- type: MetricType.MAX,
1007
- baseDimensionType: DimensionType.TIMESTAMP,
1008
- };
1009
- expect(formatItemValue(tsMax, '2018-10-31T06:44:22.667Z', false, undefined, 'Asia/Tokyo')).toEqual('2018-10-31, 15:44:22:667 (+09:00)');
1010
- });
1011
- test('DATE base with a date/timestamp formatOptions still renders the bare date (UI custom metric)', () => {
1012
- // The UI auto-stamps formatOptions {type: date} on a MAX over a
1013
- // date dim. Without this fix the ISO value falls through
1014
- // applyCustomFormat and renders raw. A timestamp formatOptions on a
1015
- // calendar value is likewise rendered as the bare date.
1016
- const dateFmt = {
1017
- ...metric,
1018
- type: MetricType.MAX,
1019
- baseDimensionType: DimensionType.DATE,
1020
- baseDimensionTimeInterval: TimeFrames.DAY,
1021
- formatOptions: {
1022
- type: CustomFormatType.DATE,
1023
- timeInterval: TimeFrames.DAY,
1024
- },
1025
- };
1026
- expect(formatItemValue(dateFmt, '2025-01-15T00:00:00.000Z', false, undefined, tz)).toEqual('2025-01-15');
1027
- expect(formatItemValue({
1028
- ...dateFmt,
1029
- formatOptions: {
1030
- type: CustomFormatType.TIMESTAMP,
1031
- timeInterval: TimeFrames.RAW,
1032
- },
1033
- }, '2025-01-15T00:00:00.000Z', false, undefined, tz)).toEqual('2025-01-15');
1034
- });
1035
- test('DATE base with a numeric value is NOT rendered as a date (soundness)', () => {
1036
- const dateMax = {
1037
- ...metric,
1038
- type: MetricType.MAX,
1039
- baseDimensionType: DimensionType.DATE,
1040
- };
1041
- expect(formatItemValue(dateMax, 5000, false, undefined, tz)).toEqual('5,000');
1042
- });
1043
- test('flag off (no timezone) is byte-identical to an unknown base', () => {
1044
- // With no timezone the DATE-base branch is skipped, so a known
1045
- // base renders exactly like today's shape-based path.
1046
- const value = '2026-03-03T00:00:00.000Z';
1047
- const dateMax = {
1048
- ...metric,
1049
- type: MetricType.MAX,
1050
- baseDimensionType: DimensionType.DATE,
1051
- baseDimensionTimeInterval: TimeFrames.DAY,
1052
- };
1053
- const unknownMax = { ...metric, type: MetricType.MAX };
1054
- expect(formatItemValue(dateMax, value)).toEqual(formatItemValue(unknownMax, value));
1055
- });
1056
- });
1057
- test('formatItemValue shifts a custom-format timestamp into the project tz (GLITCH-492)', () => {
1058
- // A TIMESTAMP field with a custom date format expression must still
1059
- // render in the project timezone — the expression controls HOW the
1060
- // value is rendered, not WHICH zone it is rendered in.
1061
- const tsWithFormat = {
1062
- ...dimension,
1063
- type: DimensionType.TIMESTAMP,
1064
- format: 'yyyy-mm-dd hh:mm:ss',
1065
- };
1066
- const value = new Date('2024-01-14T20:00:00.000Z'); // 15:00 in NY (EST)
1067
- expect(formatItemValue(tsWithFormat, value, false, undefined, 'America/New_York')).toEqual('2024-01-14 15:00:00');
1068
- });
1069
- test('formatItemValue custom-format timestamp stays UTC when flag is off (GLITCH-492)', () => {
1070
- // Flag-off orgs receive no timezone (the API sends a null
1071
- // resolvedTimezone), and an explicit UTC project must also not
1072
- // shift — output stays bit-identical to the raw value.
1073
- const tsWithFormat = {
1074
- ...dimension,
1075
- type: DimensionType.TIMESTAMP,
1076
- format: 'yyyy-mm-dd hh:mm:ss',
1077
- };
1078
- const value = new Date('2024-01-14T20:00:00.000Z');
1079
- expect(formatItemValue(tsWithFormat, value, false, undefined)).toEqual('2024-01-14 20:00:00');
1080
- expect(formatItemValue(tsWithFormat, value, false, undefined, 'UTC')).toEqual('2024-01-14 20:00:00');
1081
- });
1082
- test('formatItemValue shifts a parameterized custom-format timestamp into the project tz (GLITCH-492)', () => {
1083
- const tsWithFormat = {
1084
- ...dimension,
1085
- type: DimensionType.TIMESTAMP,
1086
- format: '${ld.parameters.style=="long"?"yyyy-mm-dd hh:mm:ss":"yyyy-mm-dd"}',
1087
- };
1088
- const value = new Date('2024-01-14T20:00:00.000Z'); // 15:00 in NY (EST)
1089
- expect(formatItemValue(tsWithFormat, value, false, { style: 'long' }, 'America/New_York')).toEqual('2024-01-14 15:00:00');
1090
- });
1091
- test('formatItemValue custom-format timestamp respects skipTimezoneConversion (GLITCH-492)', () => {
1092
- const tsWithFormat = {
1093
- ...dimension,
1094
- type: DimensionType.TIMESTAMP,
1095
- skipTimezoneConversion: true,
1096
- format: 'yyyy-mm-dd hh:mm:ss',
1097
- };
1098
- const value = new Date('2024-01-14T20:00:00.000Z');
1099
- expect(formatItemValue(tsWithFormat, value, false, undefined, 'America/New_York')).toEqual('2024-01-14 20:00:00');
1100
- });
1101
- test('formatItemValue does not shift a calendar DATE with a CUSTOM format (GLITCH-492)', () => {
1102
- // A bare calendar date has no instant — applying the project tz
1103
- // would drag it across midnight (off-by-one in negative offsets).
1104
- // The CUSTOM-format branch must honour the same calendar guard as
1105
- // the default DATE render.
1106
- const dateWithCustom = {
1107
- ...dimension,
1108
- type: DimensionType.DATE,
1109
- formatOptions: {
1110
- type: CustomFormatType.CUSTOM,
1111
- custom: 'yyyy-mm-dd',
1112
- },
1113
- };
1114
- const value = new Date('2024-01-15T00:00:00.000Z');
1115
- expect(formatItemValue(dateWithCustom, value, false, undefined, 'America/New_York')).toEqual('2024-01-15');
1116
- });
1117
- describe('formatItemValue timestamp handling', () => {
1118
- const mockTimestampField = {
1119
- type: DimensionType.TIMESTAMP,
1120
- name: 'test_timestamp',
1121
- table: 'test',
1122
- fieldType: FieldType.DIMENSION,
1123
- label: 'Test Timestamp',
1124
- sql: 'test.timestamp',
1125
- tableLabel: 'Test',
1126
- hidden: false,
1127
- };
1128
- test('should handle valid timestamp formats', () => {
1129
- const validTimestamps = [
1130
- '2020-08-11T16:44:00Z',
1131
- '2020-08-11 16:44:00',
1132
- '2020-08-11T16:44:00.123Z',
1133
- new Date('2020-08-11T16:44:00Z'),
1134
- moment('2020-08-11T16:44:00Z'),
1135
- ];
1136
- validTimestamps.forEach((timestamp) => {
1137
- const result = formatItemValue(mockTimestampField, timestamp);
1138
- expect(result).not.toBe('NaT');
1139
- expect(result).not.toContain('Invalid');
1140
- });
1141
- });
1142
- test('should return NaT for invalid formats', () => {
1143
- const invalidTimestamps = [
1144
- 'invalid-date-string',
1145
- '2020-13-45',
1146
- '2020-08-11T25:00:00',
1147
- '',
1148
- 'not-a-date',
1149
- '2025-07-08 23:59:58.656000 Asia/Bangkok',
1150
- ];
1151
- invalidTimestamps.forEach((timestamp) => {
1152
- const result = formatItemValue(mockTimestampField, timestamp);
1153
- expect(result).toBe('NaT');
1154
- });
1155
- });
1156
- });
1157
- });
1158
- describe('additional metric formatting', () => {
1159
- describe('timezone shifting for MIN/MAX (GLITCH-498)', () => {
1160
- // MIN/MAX values arrive from query results as ISO datetime
1161
- // STRINGS (not Date objects), which is the case the explore table
1162
- // renders. Each must shift into the project timezone like the
1163
- // underlying dimension does.
1164
- test('TIMESTAMP format shifts a string value into the timezone', () => {
1165
- expect(formatItemValue({
1166
- ...additionalMetric,
1167
- type: MetricType.MAX,
1168
- formatOptions: {
1169
- type: CustomFormatType.TIMESTAMP,
1170
- timeInterval: TimeFrames.RAW,
1171
- },
1172
- }, '2025-01-15T17:00:00.000Z', false, undefined, 'America/Anchorage')).toEqual('2025-01-15, 08:00:00:000 (-09:00)');
1173
- });
1174
- test('TIMESTAMP format shifts a Date value into the timezone', () => {
1175
- expect(formatItemValue({
1176
- ...additionalMetric,
1177
- type: MetricType.MIN,
1178
- formatOptions: { type: CustomFormatType.TIMESTAMP },
1179
- }, new Date('2025-01-15T17:00:00.000Z'), false, undefined, 'Asia/Tokyo')).toEqual('2025-01-16, 02:00:00:000 (+09:00)');
1180
- });
1181
- test('CUSTOM expression shifts a string value into the timezone', () => {
1182
- expect(formatItemValue({
1183
- ...additionalMetric,
1184
- type: MetricType.MAX,
1185
- formatOptions: {
1186
- type: CustomFormatType.CUSTOM,
1187
- custom: 'yyyy-mm-dd hh:mm:ss',
1188
- },
1189
- }, '2025-01-15T17:00:00.000Z', false, undefined, 'America/Anchorage')).toEqual('2025-01-15 08:00:00');
1190
- });
1191
- test('no timezone is bit-identical to pre-fix behaviour (flag-off parity)', () => {
1192
- // With no timezone the string still hits the valueIsNaN guard
1193
- // and renders raw, exactly as before this change.
1194
- expect(formatItemValue({
1195
- ...additionalMetric,
1196
- type: MetricType.MAX,
1197
- formatOptions: {
1198
- type: CustomFormatType.TIMESTAMP,
1199
- timeInterval: TimeFrames.RAW,
1200
- },
1201
- }, '2025-01-15T17:00:00.000Z')).toEqual('2025-01-15T17:00:00.000Z');
1202
- });
1203
- test('DATE format over a date-only string is not shifted', () => {
1204
- // The by-value gate leaves a date-only string alone, so a
1205
- // MIN/MAX over a real DATE column keeps its calendar day.
1206
- expect(formatItemValue({
1207
- ...additionalMetric,
1208
- type: MetricType.MAX,
1209
- formatOptions: { type: CustomFormatType.DATE },
1210
- }, '2021-03-10', false, undefined, 'Pacific/Pago_Pago')).toEqual('2021-03-10');
1211
- });
1212
- });
1213
- test('format additional metric with custom format DATE', () => {
1214
- expect(formatItemValue({
1215
- ...additionalMetric,
1216
- type: MetricType.MIN,
1217
- formatOptions: { type: CustomFormatType.DATE },
1218
- }, new Date('2021-03-10T00:00:00.000Z'))).toEqual('2021-03-10');
1219
- expect(formatItemValue({
1220
- ...additionalMetric,
1221
- type: MetricType.MAX,
1222
- formatOptions: {
1223
- type: CustomFormatType.DATE,
1224
- timeInterval: TimeFrames.DAY,
1225
- },
1226
- }, new Date('2021-03-10T00:00:00.000Z'))).toEqual('2021-03-10');
1227
- expect(formatItemValue({
1228
- ...additionalMetric,
1229
- type: MetricType.MIN,
1230
- formatOptions: {
1231
- type: CustomFormatType.DATE,
1232
- timeInterval: TimeFrames.YEAR,
1233
- },
1234
- }, new Date('2021-03-10T00:00:00.000Z'))).toEqual('2021');
1235
- expect(formatItemValue({
1236
- ...additionalMetric,
1237
- type: MetricType.MAX,
1238
- formatOptions: {
1239
- type: CustomFormatType.DATE,
1240
- timeInterval: TimeFrames.MONTH,
1241
- },
1242
- }, new Date('2021-03-10T00:00:00.000Z'))).toEqual('2021-03');
1243
- });
1244
- test('format additional metric with custom format TIMESTAMP', () => {
1245
- expect(formatItemValue({
1246
- ...additionalMetric,
1247
- type: MetricType.MIN,
1248
- formatOptions: { type: CustomFormatType.TIMESTAMP },
1249
- }, new Date('2021-03-10T00:00:00.000Z'))).toEqual('2021-03-10, 00:00:00:000 (+00:00)');
1250
- expect(formatItemValue({
1251
- ...additionalMetric,
1252
- type: MetricType.MAX,
1253
- formatOptions: {
1254
- type: CustomFormatType.TIMESTAMP,
1255
- timeInterval: TimeFrames.HOUR,
1256
- },
1257
- }, new Date('2021-03-10T00:00:00.000Z'))).toEqual('2021-03-10, 00 (+00:00)');
1258
- expect(formatItemValue({
1259
- ...additionalMetric,
1260
- type: MetricType.MIN,
1261
- formatOptions: {
1262
- type: CustomFormatType.TIMESTAMP,
1263
- timeInterval: TimeFrames.MINUTE,
1264
- },
1265
- }, new Date('2021-03-10T00:00:00.000Z'))).toEqual('2021-03-10, 00:00 (+00:00)');
1266
- expect(formatItemValue({
1267
- ...additionalMetric,
1268
- type: MetricType.MAX,
1269
- formatOptions: {
1270
- type: CustomFormatType.TIMESTAMP,
1271
- timeInterval: TimeFrames.SECOND,
1272
- },
1273
- }, new Date('2021-03-10T00:00:00.000Z'))).toEqual('2021-03-10, 00:00:00 (+00:00)');
1274
- });
1275
- });
1276
- describe('format item value', () => {
1277
- test('formatItemValue should return the right format when field is undefined', () => {
1278
- expect(formatItemValue(undefined, undefined)).toEqual('-');
1279
- expect(formatItemValue(undefined, null)).toEqual('∅');
1280
- expect(formatItemValue(undefined, '5')).toEqual('5');
1281
- expect(formatItemValue(undefined, 5)).toEqual('5');
1282
- });
1283
- test('formatItemValue should return the right format when field is table calculation', () => {
1284
- expect(formatItemValue(tableCalculation, undefined)).toEqual('-');
1285
- expect(formatItemValue(tableCalculation, null)).toEqual('∅');
1286
- expect(formatItemValue(tableCalculation, '5')).toEqual('5');
1287
- expect(formatItemValue(tableCalculation, 5)).toEqual('5');
1288
- });
1289
- });
1290
- describe('format table calculation', () => {
1291
- test('table calculation with default format', () => {
1292
- const defaultFormat = {
1293
- ...tableCalculation,
1294
- format: { type: CustomFormatType.DEFAULT },
1295
- };
1296
- expect(formatItemValue(defaultFormat, undefined)).toEqual('-');
1297
- expect(formatItemValue(defaultFormat, null)).toEqual('∅');
1298
- expect(formatItemValue(defaultFormat, '5')).toEqual('5');
1299
- expect(formatItemValue(defaultFormat, 5)).toEqual('5');
1300
- });
1301
- test('table calculation with default format and extra arguments', () => {
1302
- // This round or separator should not affect default format
1303
- const withExtraFormat = {
1304
- ...tableCalculation,
1305
- format: {
1306
- type: CustomFormatType.DEFAULT,
1307
- round: 2,
1308
- separator: NumberSeparator.COMMA_PERIOD,
1309
- },
1310
- };
1311
- expect(formatItemValue(withExtraFormat, undefined)).toEqual('-');
1312
- expect(formatItemValue(withExtraFormat, null)).toEqual('∅');
1313
- expect(formatItemValue(withExtraFormat, '5')).toEqual('5');
1314
- expect(formatItemValue(withExtraFormat, 5)).toEqual('5');
1315
- });
1316
- test('table calculation with percent format', () => {
1317
- const percentFormat = {
1318
- ...tableCalculation,
1319
- format: { type: CustomFormatType.PERCENT },
1320
- };
1321
- expect(formatItemValue(percentFormat, undefined)).toEqual('-');
1322
- expect(formatItemValue(percentFormat, null)).toEqual('∅');
1323
- expect(formatItemValue(percentFormat, '0.05')).toEqual('5%');
1324
- expect(formatItemValue(percentFormat, 0.05)).toEqual('5%');
1325
- expect(formatItemValue(percentFormat, 1)).toEqual('100%');
1326
- expect(formatItemValue(percentFormat, 5)).toEqual('500%');
1327
- expect(formatItemValue(percentFormat, '0.05123')).toEqual('5.123%');
1328
- });
1329
- test('table calculation with percent format and round', () => {
1330
- const percentFormat = {
1331
- ...tableCalculation,
1332
- format: { type: CustomFormatType.PERCENT, round: 1 },
1333
- };
1334
- expect(formatItemValue(percentFormat, undefined)).toEqual('-');
1335
- expect(formatItemValue(percentFormat, null)).toEqual('∅');
1336
- expect(formatItemValue(percentFormat, '0.05')).toEqual('5.0%');
1337
- expect(formatItemValue(percentFormat, 0.05)).toEqual('5.0%');
1338
- expect(formatItemValue(percentFormat, 1)).toEqual('100.0%');
1339
- expect(formatItemValue(percentFormat, 5)).toEqual('500.0%');
1340
- expect(formatItemValue(percentFormat, '0.05123')).toEqual('5.1%');
1341
- });
1342
- test('table calculation with percent format and number separator', () => {
1343
- const percentFormat = {
1344
- ...tableCalculation,
1345
- format: {
1346
- type: CustomFormatType.PERCENT,
1347
- round: 2,
1348
- separator: NumberSeparator.PERIOD_COMMA,
1349
- },
1350
- };
1351
- expect(formatItemValue(percentFormat, undefined)).toEqual('-');
1352
- expect(formatItemValue(percentFormat, null)).toEqual('∅');
1353
- expect(formatItemValue(percentFormat, '0.05')).toEqual('5,00%');
1354
- expect(formatItemValue(percentFormat, '0.05123')).toEqual('5,12%');
1355
- });
1356
- test('format number separator', () => {
1357
- const number = 123456789.12345;
1358
- expect(formatNumberValue(number, {
1359
- type: CustomFormatType.DEFAULT,
1360
- round: 0,
1361
- separator: NumberSeparator.COMMA_PERIOD,
1362
- })).toEqual('123,456,789');
1363
- expect(formatNumberValue(number, {
1364
- type: CustomFormatType.DEFAULT,
1365
- round: 0,
1366
- separator: NumberSeparator.PERIOD_COMMA,
1367
- })).toEqual('123.456.789');
1368
- expect(formatNumberValue(number, {
1369
- type: CustomFormatType.DEFAULT,
1370
- round: 2,
1371
- separator: NumberSeparator.SPACE_PERIOD,
1372
- })).toEqual('123 456 789.12');
1373
- expect(formatNumberValue(number, {
1374
- type: CustomFormatType.DEFAULT,
1375
- round: 2,
1376
- separator: NumberSeparator.NO_SEPARATOR_PERIOD,
1377
- })).toEqual('123456789.12');
1378
- expect(formatNumberValue(number, {
1379
- type: CustomFormatType.DEFAULT,
1380
- round: 2,
1381
- separator: NumberSeparator.APOSTROPHE_PERIOD,
1382
- })).toEqual("123'456'789.12");
1383
- });
1384
- test('available currencies', () => {
1385
- const symbols = currencies.map((currency) => {
1386
- const format = Intl.NumberFormat(undefined, {
1387
- style: 'currency',
1388
- currency,
1389
- });
1390
- return format.format(1).replace(' ', ' ');
1391
- });
1392
- expect(symbols).toEqual([
1393
- '$1.00',
1394
- '€1.00',
1395
- '£1.00',
1396
- '¥1',
1397
- 'DKK 1.00',
1398
- 'CHF 1.00',
1399
- 'CA$1.00',
1400
- 'A$1.00',
1401
- 'CN¥1.00',
1402
- 'ARS 1.00',
1403
- 'R$1.00',
1404
- 'CLP 1',
1405
- 'COP 1',
1406
- 'CZK 1.00',
1407
- 'HK$1.00',
1408
- 'HUF 1',
1409
- '₹1.00',
1410
- '₪1.00',
1411
- '₩1',
1412
- 'MYR 1.00',
1413
- 'MX$1.00',
1414
- 'MAD 1.00',
1415
- 'NZ$1.00',
1416
- 'NOK 1.00',
1417
- '₱1.00',
1418
- 'PLN 1.00',
1419
- 'RUB 1.00',
1420
- 'SAR 1.00',
1421
- 'SGD 1.00',
1422
- 'ZAR 1.00',
1423
- 'SEK 1.00',
1424
- 'NT$1.00',
1425
- 'THB 1.00',
1426
- 'TRY 1.00',
1427
- '₫1',
1428
- ]);
1429
- });
1430
- test('convert currencies with default settings', () => {
1431
- expect(currencies.slice(0, 4).map((currency) => applyCustomFormat(12345.1235, {
1432
- type: CustomFormatType.CURRENCY,
1433
- currency,
1434
- }))).toEqual(['$12,345.12', '€12,345.12', '£12,345.12', '¥12,345']);
1435
- // Number as string
1436
- expect(currencies.slice(0, 4).map((currency) => applyCustomFormat('12345.1235', {
1437
- type: CustomFormatType.CURRENCY,
1438
- currency,
1439
- }))).toEqual(['$12,345.12', '€12,345.12', '£12,345.12', '¥12,345']);
1440
- });
1441
- test('convert currencies with round', () => {
1442
- expect(currencies.slice(0, 4).map((currency) => applyCustomFormat(12345.1235, {
1443
- type: CustomFormatType.CURRENCY,
1444
- currency,
1445
- round: 3,
1446
- }))).toEqual([
1447
- '$12,345.124',
1448
- '€12,345.124',
1449
- '£12,345.124',
1450
- '¥12,345.124',
1451
- ]);
1452
- });
1453
- test('convert currencies with separator', () => {
1454
- // Using PERIOD_COMMA changes the position of the currency symbol
1455
- expect(currencies.slice(0, 4).map((currency) => applyCustomFormat(12345.1235, {
1456
- type: CustomFormatType.CURRENCY,
1457
- currency,
1458
- separator: NumberSeparator.PERIOD_COMMA,
1459
- }))).toEqual([
1460
- '12.345,12 $',
1461
- '12.345,12 €',
1462
- '12.345,12 £',
1463
- '12.345 ¥',
1464
- ]);
1465
- });
1466
- test('convert currencies with compact', () => {
1467
- expect(currencies.slice(0, 4).map((currency) => applyCustomFormat(12345.1235, {
1468
- type: CustomFormatType.CURRENCY,
1469
- currency,
1470
- compact: Compact.THOUSANDS,
1471
- }))).toEqual(['$12.35K', '€12.35K', '£12.35K', '¥12K']);
1472
- expect(currencies.slice(0, 4).map((currency) => applyCustomFormat(123456789.1235, {
1473
- type: CustomFormatType.CURRENCY,
1474
- currency,
1475
- compact: Compact.MILLIONS,
1476
- round: 0,
1477
- }))).toEqual(['$123M', '€123M', '£123M', '¥123M']);
1478
- });
1479
- test('convert numbers', () => {
1480
- expect(applyCustomFormat(12345.56789, {
1481
- type: CustomFormatType.NUMBER,
1482
- })).toEqual('12,345.568');
1483
- expect(applyCustomFormat(12345.1235, {
1484
- type: CustomFormatType.NUMBER,
1485
- round: 2,
1486
- prefix: 'foo ',
1487
- suffix: ' bar',
1488
- compact: Compact.THOUSANDS,
1489
- })).toEqual('foo 12.35K bar');
1490
- // Number as string
1491
- expect(applyCustomFormat('12345.1235', {
1492
- type: CustomFormatType.NUMBER,
1493
- prefix: 'foo ',
1494
- suffix: ' bar',
1495
- })).toEqual('foo 12,345.124 bar');
1496
- });
1497
- test('convert table calculation formats with invalid numbers', () => {
1498
- // This method should return the original value if the value is not a number
1499
- const values = [
1500
- 'this is a string',
1501
- '',
1502
- undefined,
1503
- null,
1504
- true,
1505
- false,
1506
- ];
1507
- const expectedValue = [
1508
- 'this is a string',
1509
- '',
1510
- '-',
1511
- '∅',
1512
- 'true',
1513
- 'false',
1514
- ];
1515
- values.map((value, i) => expect(applyCustomFormat(value, {
1516
- type: CustomFormatType.DEFAULT,
1517
- })).toEqual(expectedValue[i]));
1518
- values.map((value, i) => expect(applyCustomFormat(value, {
1519
- type: CustomFormatType.CURRENCY,
1520
- currency: Format.USD,
1521
- })).toEqual(expectedValue[i]));
1522
- values.map((value, i) => expect(applyCustomFormat(value, {
1523
- type: CustomFormatType.CURRENCY,
1524
- currency: Format.USD,
1525
- round: 2,
1526
- compact: Compact.THOUSANDS,
1527
- separator: NumberSeparator.PERIOD_COMMA,
1528
- })).toEqual(expectedValue[i]));
1529
- values.map((value, i) => expect(applyCustomFormat(value, {
1530
- type: CustomFormatType.NUMBER,
1531
- })).toEqual(expectedValue[i]));
1532
- values.map((value, i) => expect(applyCustomFormat(value, {
1533
- type: CustomFormatType.NUMBER,
1534
- prefix: 'foo',
1535
- suffix: 'bar',
1536
- round: 2,
1537
- compact: Compact.THOUSANDS,
1538
- separator: NumberSeparator.PERIOD_COMMA,
1539
- })).toEqual(expectedValue[i]));
1540
- values.map((value, i) => expect(applyCustomFormat(value, {
1541
- type: CustomFormatType.PERCENT,
1542
- })).toEqual(expectedValue[i]));
1543
- values.map((value, i) => expect(applyCustomFormat(value, {
1544
- type: CustomFormatType.PERCENT,
1545
- round: 2,
1546
- separator: NumberSeparator.PERIOD_COMMA,
1547
- })).toEqual(expectedValue[i]));
1548
- });
1549
- test('formatValueWithExpression handles binary byte units correctly', () => {
1550
- // Test KIBIBYTES (should divide by 1024)
1551
- const kibibyteExpression = convertCustomFormatToFormatExpression({
1552
- type: CustomFormatType.BYTES_IEC,
1553
- compact: Compact.KIBIBYTES,
1554
- });
1555
- // No round → up to 3 trailing-dropped decimals, matching the
1556
- // structured applyCustomFormat path (G4 alignment).
1557
- expect(kibibyteExpression).toEqual('#,##0.###"KiB"');
1558
- expect(formatValueWithExpression(kibibyteExpression, 2048)).toEqual('2KiB');
1559
- expect(formatValueWithExpression(kibibyteExpression, 1536)).toEqual('1.5KiB');
1560
- // Test MEBIBYTES (should divide by 1048576)
1561
- const mebibyteExpression = convertCustomFormatToFormatExpression({
1562
- type: CustomFormatType.BYTES_IEC,
1563
- compact: Compact.MEBIBYTES,
1564
- });
1565
- expect(mebibyteExpression).toEqual('#,##0.###"MiB"');
1566
- expect(formatValueWithExpression(mebibyteExpression, 2097152)).toEqual('2MiB');
1567
- // Test with rounding
1568
- const roundedExpression = convertCustomFormatToFormatExpression({
1569
- type: CustomFormatType.BYTES_IEC,
1570
- compact: Compact.KIBIBYTES,
1571
- round: 1,
1572
- });
1573
- expect(roundedExpression).toEqual('#,##0.0"KiB"');
1574
- expect(formatValueWithExpression(roundedExpression, 1536)).toEqual('1.5KiB');
1575
- });
1576
- test('backend scenario: formatOptions converted to format expression', () => {
1577
- // This simulates the exact scenario from the backend PR
1578
- // where formatOptions are converted to format expressions
1579
- const formatOptions = {
1580
- type: CustomFormatType.BYTES_IEC,
1581
- compact: Compact.KIBIBYTES,
1582
- };
1583
- // Backend calls convertCustomFormatToFormatExpression
1584
- const formatExpression = convertCustomFormatToFormatExpression(formatOptions);
1585
- expect(formatExpression).toEqual('#,##0.###"KiB"');
1586
- // Mock metric with format expression set by backend
1587
- const mockMetric = {
1588
- fieldType: FieldType.METRIC,
1589
- type: MetricType.NUMBER,
1590
- name: 'test_metric',
1591
- label: 'Test Metric',
1592
- table: 'test_table',
1593
- tableLabel: 'Test Table',
1594
- sql: 'test_sql',
1595
- hidden: false,
1596
- // Backend sets format expression instead of formatOptions
1597
- format: formatExpression || undefined,
1598
- };
1599
- // Frontend uses formatItemValue which should call formatValueWithExpression
1600
- const result = formatItemValue(mockMetric, 2048);
1601
- expect(result).toEqual('2KiB'); // Should be correctly divided by 1024
1602
- // Test larger values
1603
- expect(formatItemValue(mockMetric, 1024)).toEqual('1KiB');
1604
- expect(formatItemValue(mockMetric, 3072)).toEqual('3KiB');
1605
- });
1606
- test('formatValueWithExpression ignores the incidental runtime timezone for date expressions (#19759)', () => {
1607
- const previousTz = process.env.TZ;
1608
- process.env.TZ = 'America/New_York';
1609
- try {
1610
- const value = new Date('2024-11-01T00:00:00.000Z');
1611
- // Even when the host runtime is non-UTC, a date expression
1612
- // with no project timezone should render the raw UTC wall-clock
1613
- // rather than drifting into the machine-local zone.
1614
- expect(formatValueWithExpression('d mmm yyyy hh:mm:ss', value)).toEqual('1 Nov 2024 00:00:00');
1615
- }
1616
- finally {
1617
- if (previousTz === undefined) {
1618
- delete process.env.TZ;
1619
- }
1620
- else {
1621
- process.env.TZ = previousTz;
1622
- }
1623
- }
1624
- });
1625
- });
1626
- describe('isMomentInput', () => {
1627
- test('should return true for moment object', () => {
1628
- expect(isMomentInput(moment())).toBe(true);
1629
- });
1630
- test('should return true for dayjs object', () => {
1631
- expect(isMomentInput(dayjs())).toBe(true);
1632
- });
1633
- test('should return true for dates', () => {
1634
- expect(isMomentInput(new Date())).toBe(true);
1635
- });
1636
- test('should return true for strings', () => {
1637
- expect(isMomentInput('2021-03-10')).toBe(true);
1638
- });
1639
- test('should return false for non-dates-strings-moment-dayjs types', () => {
1640
- expect(isMomentInput(undefined)).toBe(false);
1641
- expect(isMomentInput(null)).toBe(false);
1642
- });
1643
- });
1644
- describe('convertCustomFormatToFormatExpression', () => {
1645
- test('should convert format object to expression', () => {
1646
- const customFormats = [
1647
- {
1648
- type: CustomFormatType.CURRENCY,
1649
- currency: Format.USD,
1650
- },
1651
- {
1652
- type: CustomFormatType.CURRENCY,
1653
- currency: Format.JPY, // test JPY because it has no decimal
1654
- },
1655
- {
1656
- type: CustomFormatType.CURRENCY,
1657
- currency: Format.DKK, // test DKK because it has prefix instead of symbol
1658
- },
1659
- {
1660
- type: CustomFormatType.CURRENCY,
1661
- currency: Format.USD,
1662
- round: 0, // test with no round
1663
- },
1664
- {
1665
- type: CustomFormatType.CURRENCY,
1666
- currency: Format.USD,
1667
- round: 4, // test with extra round
1668
- },
1669
- {
1670
- type: CustomFormatType.CURRENCY,
1671
- currency: Format.USD,
1672
- compact: Compact.THOUSANDS, // test with compact
1673
- },
1674
- {
1675
- type: CustomFormatType.CURRENCY,
1676
- currency: Format.USD,
1677
- separator: NumberSeparator.COMMA_PERIOD, // test with separator
1678
- },
1679
- {
1680
- type: CustomFormatType.CURRENCY,
1681
- currency: Format.USD,
1682
- separator: NumberSeparator.NO_SEPARATOR_PERIOD, // test with no separator
1683
- },
1684
- {
1685
- type: CustomFormatType.CURRENCY,
1686
- currency: Format.USD,
1687
- // test with multiple options
1688
- compact: Compact.THOUSANDS,
1689
- round: 3,
1690
- separator: NumberSeparator.NO_SEPARATOR_PERIOD,
1691
- },
1692
- {
1693
- type: CustomFormatType.PERCENT,
1694
- },
1695
- {
1696
- type: CustomFormatType.PERCENT,
1697
- round: 0, // test with no round
1698
- },
1699
- {
1700
- type: CustomFormatType.PERCENT,
1701
- round: 3, // test with round
1702
- },
1703
- {
1704
- type: CustomFormatType.PERCENT,
1705
- separator: NumberSeparator.COMMA_PERIOD, // test with separator
1706
- },
1707
- {
1708
- type: CustomFormatType.NUMBER,
1709
- },
1710
- {
1711
- type: CustomFormatType.NUMBER,
1712
- round: 0, // test with no round
1713
- },
1714
- {
1715
- type: CustomFormatType.NUMBER,
1716
- round: 3, // test with round
1717
- },
1718
- {
1719
- type: CustomFormatType.NUMBER,
1720
- prefix: 'prefix', // test with prefix
1721
- },
1722
- {
1723
- type: CustomFormatType.NUMBER,
1724
- suffix: 'suffix', // test with suffix
1725
- },
1726
- {
1727
- type: CustomFormatType.NUMBER,
1728
- // test with multiple options
1729
- prefix: 'prefix',
1730
- compact: Compact.THOUSANDS,
1731
- round: 3,
1732
- separator: NumberSeparator.NO_SEPARATOR_PERIOD,
1733
- suffix: 'suffix',
1734
- },
1735
- ];
1736
- customFormats.forEach((format) => {
1737
- const value = 12345.1235;
1738
- const formatExpression = convertCustomFormatToFormatExpression(format);
1739
- // Check if the format expression was generated
1740
- expect(formatExpression).not.toBe(null);
1741
- const formattedValueWithCustomFormat = applyCustomFormat(value, format);
1742
- const formattedValueWithFormatExpression = formatValueWithExpression(formatExpression, value);
1743
- // Check if the formatted value is the same
1744
- expect(formattedValueWithFormatExpression).toEqual(formattedValueWithCustomFormat);
1745
- });
1746
- });
1747
- test('should not convert dynamic auto compact to a static format expression', () => {
1748
- expect(convertCustomFormatToFormatExpression({
1749
- type: CustomFormatType.NUMBER,
1750
- compact: Compact.AUTO,
1751
- })).toBeNull();
1752
- expect(convertCustomFormatToFormatExpression({
1753
- type: CustomFormatType.CURRENCY,
1754
- currency: Format.USD,
1755
- compact: Compact.AUTO,
1756
- })).toBeNull();
1757
- });
1758
- });
1759
- describe('applyDefaultFormatting', () => {
1760
- it('should handle boolean values', () => {
1761
- expect(applyDefaultFormat(true)).toBe('true');
1762
- expect(applyDefaultFormat(false)).toBe('false');
1763
- });
1764
- it('should handle falsey values', () => {
1765
- expect(applyDefaultFormat(undefined)).toBe('-');
1766
- expect(applyDefaultFormat(null)).toBe('∅');
1767
- expect(applyDefaultFormat(0)).toBe('0');
1768
- expect(applyDefaultFormat('')).toBe('');
1769
- });
1770
- it('should handle strings', () => {
1771
- expect(applyDefaultFormat('foo')).toBe('foo');
1772
- });
1773
- it('serialises objects and arrays as JSON', () => {
1774
- expect(applyDefaultFormat({ sku: 'A1', qty: 2 })).toBe('{"sku":"A1","qty":2}');
1775
- expect(applyDefaultFormat(['gift', 'rush'])).toBe('["gift","rush"]');
1776
- expect(applyDefaultFormat([])).toBe('[]');
1777
- });
1778
- it('should handle numbers', () => {
1779
- expect(applyDefaultFormat(1234567)).toBe('1,234,567');
1780
- expect(applyDefaultFormat(1234)).toBe('1,234');
1781
- expect(applyDefaultFormat(-1234)).toBe('-1,234');
1782
- });
1783
- });
1784
- describe('formatItemValue with parameters', () => {
1785
- describe('conditional format expressions with ternary operators', () => {
1786
- it('should format currency based on parameter value - USD', () => {
1787
- const metricWithConditionalFormat = {
1788
- ...metric,
1789
- type: MetricType.NUMBER,
1790
- format: '${ld.parameters.currency=="USD"?"$":"€"}0,0.00',
1791
- };
1792
- const parameters = { currency: 'USD' };
1793
- expect(formatItemValue(metricWithConditionalFormat, 1234.56, false, parameters)).toBe('$1,234.56');
1794
- });
1795
- it('should format currency based on parameter value - EUR', () => {
1796
- const metricWithConditionalFormat = {
1797
- ...metric,
1798
- type: MetricType.NUMBER,
1799
- format: '${ld.parameters.currency=="USD"?"$":"€"}0,0.00',
1800
- };
1801
- const parameters = { currency: 'EUR' };
1802
- expect(formatItemValue(metricWithConditionalFormat, 1234.56, false, parameters)).toBe('€1,234.56');
1803
- });
1804
- it('should handle simple currency parameter substitution', () => {
1805
- const metricWithSimpleFormat = {
1806
- ...metric,
1807
- type: MetricType.NUMBER,
1808
- format: '${ld.parameters.symbol}0,0.00',
1809
- };
1810
- expect(formatItemValue(metricWithSimpleFormat, 1234.56, false, {
1811
- symbol: '£',
1812
- })).toBe('£1,234.56');
1813
- expect(formatItemValue(metricWithSimpleFormat, 1234.56, false, {
1814
- symbol: '¥',
1815
- })).toBe('¥1,234.56');
1816
- });
1817
- it('should fall back to default formatting when parameters are not provided', () => {
1818
- const metricWithConditionalFormat = {
1819
- ...metric,
1820
- type: MetricType.NUMBER,
1821
- format: '${ld.parameters.currency=="USD"?"$":"€"}0,0.00',
1822
- };
1823
- // Without parameters, should fall back to default number formatting
1824
- expect(formatItemValue(metricWithConditionalFormat, 1234.56, false, undefined)).toBe('1,234.56');
1825
- });
1826
- it('should handle conditional rounding precision', () => {
1827
- const metricWithConditionalFormat = {
1828
- ...metric,
1829
- type: MetricType.NUMBER,
1830
- format: '${ld.parameters.precision=="high"?"$":"$"}0,0${ld.parameters.precision=="high"?".00":""}',
1831
- };
1832
- expect(formatItemValue(metricWithConditionalFormat, 1234.567, false, { precision: 'high' })).toBe('$1,234.57');
1833
- expect(formatItemValue(metricWithConditionalFormat, 1234.567, false, { precision: 'low' })).toBe('$1,235');
1834
- });
1835
- it('should work with both ld.parameters and lightdash.parameters prefixes', () => {
1836
- const metricWithLdPrefix = {
1837
- ...metric,
1838
- type: MetricType.NUMBER,
1839
- format: '${ld.parameters.symbol}0,0.00',
1840
- };
1841
- const metricWithLightdashPrefix = {
1842
- ...metric,
1843
- type: MetricType.NUMBER,
1844
- format: '${lightdash.parameters.symbol}0,0.00',
1845
- };
1846
- expect(formatItemValue(metricWithLdPrefix, 1234.56, false, {
1847
- symbol: '$',
1848
- })).toBe('$1,234.56');
1849
- expect(formatItemValue(metricWithLightdashPrefix, 1234.56, false, {
1850
- symbol: '€',
1851
- })).toBe('€1,234.56');
1852
- });
1853
- it('should handle different currency symbols', () => {
1854
- const metricWithFormat = {
1855
- ...metric,
1856
- type: MetricType.NUMBER,
1857
- format: '${ld.parameters.symbol}0,0.00',
1858
- };
1859
- expect(formatItemValue(metricWithFormat, 1000.5, false, {
1860
- symbol: '$',
1861
- })).toBe('$1,000.50');
1862
- expect(formatItemValue(metricWithFormat, 1000.5, false, {
1863
- symbol: '€',
1864
- })).toBe('€1,000.50');
1865
- expect(formatItemValue(metricWithFormat, 1000.5, false, {
1866
- symbol: '£',
1867
- })).toBe('£1,000.50');
1868
- });
1869
- });
1870
- });
1871
- describe('timezone-aware formatting', () => {
1872
- const utcTimestamp = '2020-04-04T02:00:00.000Z';
1873
- describe('formatDate', () => {
1874
- test('existing behavior unchanged when no timezone', () => {
1875
- const withTrue = formatDate(utcTimestamp, TimeFrames.DAY, true);
1876
- const withFalse = formatDate(utcTimestamp, TimeFrames.DAY, false);
1877
- const withDefault = formatDate(utcTimestamp, TimeFrames.DAY);
1878
- expect(withTrue).toBe('2020-04-04');
1879
- expect(withFalse).toBe(withDefault);
1880
- });
1881
- test('shifts UTC instant into project TZ for positive offsets (Tokyo)', () => {
1882
- // Tokyo midnight Jan 14 = UTC Jan 13 15:00
1883
- const tokyoMidnight = '2024-01-13T15:00:00.000Z';
1884
- expect(formatDate(tokyoMidnight, TimeFrames.DAY, false, 'Asia/Tokyo')).toBe('2024-01-14');
1885
- });
1886
- test('shifts UTC instant into project TZ for negative offsets (Pago_Pago)', () => {
1887
- // Pago_Pago midnight Jan 14 = UTC Jan 14 11:00
1888
- const ppMidnight = '2024-01-14T11:00:00.000Z';
1889
- expect(formatDate(ppMidnight, TimeFrames.DAY, false, 'Pacific/Pago_Pago')).toBe('2024-01-14');
1890
- });
1891
- test('UTC project TZ is a no-op', () => {
1892
- const utcMidnight = '2024-01-14T00:00:00.000Z';
1893
- expect(formatDate(utcMidnight, TimeFrames.DAY, false, 'UTC')).toBe('2024-01-14');
1894
- });
1895
- test('timezone takes precedence over convertToUTC', () => {
1896
- expect(formatDate(utcTimestamp, TimeFrames.DAY, true, 'America/New_York')).toBe('2020-04-03');
1897
- });
1898
- test('year boundary falls on different years in Tokyo vs Pago_Pago', () => {
1899
- // Jan 1 00:00 UTC = Tokyo Jan 1 09:00 (2024), PP Dec 31 13:00 (2023)
1900
- const yearBoundary = '2024-01-01T00:00:00.000Z';
1901
- expect(formatDate(yearBoundary, TimeFrames.YEAR, false, 'Asia/Tokyo')).toBe('2024');
1902
- expect(formatDate(yearBoundary, TimeFrames.YEAR, false, 'Pacific/Pago_Pago')).toBe('2023');
1903
- });
1904
- test('month boundary shifts with positive offset (Tokyo)', () => {
1905
- // Tokyo Feb 1 00:00 = UTC Jan 31 15:00
1906
- const tokyoMonthBoundary = '2024-01-31T15:00:00.000Z';
1907
- expect(formatDate(tokyoMonthBoundary, TimeFrames.MONTH, false, 'Asia/Tokyo')).toBe('2024-02');
1908
- });
1909
- test('returns NaT for invalid input', () => {
1910
- expect(formatDate('not a date', TimeFrames.DAY, false, 'Asia/Tokyo')).toBe('NaT');
1911
- });
1912
- });
1913
- describe('formatTimestamp', () => {
1914
- test('formats timestamp in project timezone', () => {
1915
- const result = formatTimestamp(utcTimestamp, TimeFrames.SECOND, false, 'America/New_York');
1916
- expect(result).toBe('2020-04-03, 22:00:00 (-04:00)');
1917
- });
1918
- test('formats timestamp with correct offset in MILLISECOND interval', () => {
1919
- const result = formatTimestamp(utcTimestamp, TimeFrames.MILLISECOND, false, 'America/New_York');
1920
- expect(result).toContain('2020-04-03, 22:00:00:000');
1921
- expect(result).toContain('-04:00');
1922
- });
1923
- test('existing behavior unchanged when no timezone', () => {
1924
- const withTrue = formatTimestamp(utcTimestamp, TimeFrames.MILLISECOND, true);
1925
- expect(withTrue).toBe('2020-04-04, 02:00:00:000 (+00:00)');
1926
- });
1927
- });
1928
- describe('formatItemValue uniform timezone shift', () => {
1929
- const tsBase = {
1930
- ...dimension,
1931
- type: DimensionType.TIMESTAMP,
1932
- };
1933
- test('truncated HOUR shifts into project TZ (negative offset)', () => {
1934
- // Pago_Pago 15:00 Jan 14 = UTC Jan 15 02:00
1935
- const value = new Date('2024-01-15T02:00:00.000Z');
1936
- expect(formatItemValue({ ...tsBase, timeInterval: TimeFrames.HOUR }, value, false, undefined, 'Pacific/Pago_Pago')).toBe('2024-01-14, 15 (-11:00)');
1937
- });
1938
- test('truncated HOUR shifts into project TZ (positive offset)', () => {
1939
- // Tokyo 11:00 Jan 15 = UTC Jan 15 02:00
1940
- const value = new Date('2024-01-15T02:00:00.000Z');
1941
- expect(formatItemValue({ ...tsBase, timeInterval: TimeFrames.HOUR }, value, false, undefined, 'Asia/Tokyo')).toBe('2024-01-15, 11 (+09:00)');
1942
- });
1943
- test('RAW TIMESTAMP shifts into project TZ', () => {
1944
- const value = new Date('2024-01-15T02:00:00.000Z');
1945
- expect(formatItemValue({ ...tsBase, timeInterval: TimeFrames.RAW }, value, false, undefined, 'Pacific/Pago_Pago')).toContain('(-11:00)');
1946
- });
1947
- test('DATE DAY over TIMESTAMP base is a calendar value — renders as-is, no shift (GLITCH-452)', () => {
1948
- // A day-grain truncation now compiles to a real DATE (the
1949
- // project-local calendar day), so it renders as-is regardless of
1950
- // the project timezone — no midnight-instant shift.
1951
- const value = new Date('2024-01-14T00:00:00.000Z');
1952
- expect(formatItemValue({
1953
- ...dimension,
1954
- type: DimensionType.DATE,
1955
- timeInterval: TimeFrames.DAY,
1956
- timeIntervalBaseDimensionType: DimensionType.TIMESTAMP,
1957
- }, value, false, undefined, 'Asia/Tokyo')).toBe('2024-01-14');
1958
- });
1959
- test('no timezone is byte-identical to default', () => {
1960
- const value = new Date('2024-01-15T02:00:00.000Z');
1961
- const hourItem = {
1962
- ...tsBase,
1963
- timeInterval: TimeFrames.HOUR,
1964
- };
1965
- expect(formatItemValue(hourItem, value)).toBe(formatItemValue(hourItem, value, undefined, undefined, undefined));
1966
- });
1967
- });
1968
- });
1969
- describe('toIsoWithProjectOffset', () => {
1970
- const tz = 'Pacific/Pago_Pago'; // UTC-11, no DST
1971
- test('returns undefined when timezone is unset', () => {
1972
- expect(toIsoWithProjectOffset('2024-01-15T02:00:00.000Z', undefined)).toBeUndefined();
1973
- });
1974
- test('returns undefined when timezone is UTC (no-op short-circuit)', () => {
1975
- expect(toIsoWithProjectOffset('2024-01-15T02:00:00.000Z', 'UTC')).toBeUndefined();
1976
- });
1977
- test('shifts a UTC ISO string into project offset', () => {
1978
- expect(toIsoWithProjectOffset('2024-01-15T02:00:00.000Z', tz)).toBe('2024-01-14T15:00:00.000-11:00');
1979
- });
1980
- test('always emits millis even when source had none', () => {
1981
- expect(toIsoWithProjectOffset('2024-01-15T02:00:00Z', tz)).toBe('2024-01-14T15:00:00.000-11:00');
1982
- });
1983
- test('accepts Date input', () => {
1984
- expect(toIsoWithProjectOffset(new Date('2024-01-15T02:00:00.000Z'), tz)).toBe('2024-01-14T15:00:00.000-11:00');
1985
- });
1986
- test('accepts numeric epoch ms', () => {
1987
- const epoch = Date.UTC(2024, 0, 15, 2, 0, 0, 0);
1988
- expect(toIsoWithProjectOffset(epoch, tz)).toBe('2024-01-14T15:00:00.000-11:00');
1989
- });
1990
- test('returns undefined for null/undefined/non-instant inputs', () => {
1991
- expect(toIsoWithProjectOffset(null, tz)).toBeUndefined();
1992
- expect(toIsoWithProjectOffset(undefined, tz)).toBeUndefined();
1993
- expect(toIsoWithProjectOffset({}, tz)).toBeUndefined();
1994
- expect(toIsoWithProjectOffset(['a'], tz)).toBeUndefined();
1995
- });
1996
- test('returns undefined for unparseable strings', () => {
1997
- expect(toIsoWithProjectOffset('not-a-timestamp', tz)).toBeUndefined();
1998
- });
1999
- test('honors positive-offset zones (DST-aware via moment-timezone)', () => {
2000
- // Asia/Karachi is UTC+5 year-round, so 02:00 UTC -> 07:00 +05:00
2001
- expect(toIsoWithProjectOffset('2024-01-15T02:00:00.000Z', 'Asia/Karachi')).toBe('2024-01-15T07:00:00.000+05:00');
2002
- });
2003
- });
2004
- describe('formatTemporalCellForSpreadsheet', () => {
2005
- const tz = 'Pacific/Pago_Pago'; // UTC-11
2006
- const tsField = {
2007
- ...dimension,
2008
- type: DimensionType.TIMESTAMP,
2009
- name: 'event_timestamp',
2010
- };
2011
- const dateBaseTsField = {
2012
- ...dimension,
2013
- type: DimensionType.DATE,
2014
- name: 'event_timestamp_day',
2015
- timeIntervalBaseDimensionType: DimensionType.TIMESTAMP,
2016
- };
2017
- const calendarDateField = {
2018
- ...dimension,
2019
- type: DimensionType.DATE,
2020
- name: 'order_date',
2021
- };
2022
- test('TIMESTAMP shifts into project tz with millis', () => {
2023
- expect(formatTemporalCellForSpreadsheet(tsField, '2024-01-15T18:00:00.000Z', tz)).toBe('2024-01-15 07:00:00.000');
2024
- });
2025
- test('TIMESTAMP without timezone formats wall-clock as-is', () => {
2026
- expect(formatTemporalCellForSpreadsheet(tsField, '2024-01-15T18:00:00.000Z', undefined)).toBe('2024-01-15 18:00:00.000');
2027
- });
2028
- test('DATE-base-TS shifts into project tz', () => {
2029
- expect(formatTemporalCellForSpreadsheet(dateBaseTsField, '2024-01-15T11:00:00.000Z', tz)).toBe('2024-01-15');
2030
- });
2031
- test('calendar DATE is not shifted even when tz is set', () => {
2032
- expect(formatTemporalCellForSpreadsheet(calendarDateField, '2024-01-15', tz)).toBe('2024-01-15');
2033
- });
2034
- test('returns undefined for non-temporal fields', () => {
2035
- expect(formatTemporalCellForSpreadsheet(dimension, 'foo', tz)).toBeUndefined();
2036
- expect(formatTemporalCellForSpreadsheet(metric, 42, tz)).toBeUndefined();
2037
- });
2038
- test('returns undefined for null / empty raw values', () => {
2039
- expect(formatTemporalCellForSpreadsheet(tsField, null, tz)).toBeUndefined();
2040
- expect(formatTemporalCellForSpreadsheet(tsField, undefined, tz)).toBeUndefined();
2041
- expect(formatTemporalCellForSpreadsheet(tsField, '', tz)).toBeUndefined();
2042
- });
2043
- test('accepts Date input', () => {
2044
- expect(formatTemporalCellForSpreadsheet(tsField, new Date('2024-01-15T18:00:00.000Z'), tz)).toBe('2024-01-15 07:00:00.000');
2045
- });
2046
- });
2047
- describe('field-level number separator (PROD-7558)', () => {
2048
- const big = 1234567.5;
2049
- describe('ECMA-376 format expression respects the separator', () => {
2050
- const ecma = {
2051
- ...metric,
2052
- type: MetricType.NUMBER,
2053
- format: '#,##0.00',
2054
- };
2055
- test('no separator is byte-identical to the default (US) output', () => {
2056
- expect(formatItemValue(ecma, big)).toEqual('1,234,567.50');
2057
- expect(formatItemValue({ ...ecma, separator: NumberSeparator.DEFAULT }, big)).toEqual('1,234,567.50');
2058
- expect(formatItemValue({ ...ecma, separator: NumberSeparator.COMMA_PERIOD }, big)).toEqual('1,234,567.50');
2059
- });
2060
- test('period-comma (European)', () => {
2061
- expect(formatItemValue({ ...ecma, separator: NumberSeparator.PERIOD_COMMA }, big)).toEqual('1.234.567,50');
2062
- });
2063
- test('space-period (French-ish)', () => {
2064
- expect(formatItemValue({ ...ecma, separator: NumberSeparator.SPACE_PERIOD }, big)).toEqual('1 234 567.50');
2065
- });
2066
- test('no separator', () => {
2067
- expect(formatItemValue({
2068
- ...ecma,
2069
- separator: NumberSeparator.NO_SEPARATOR_PERIOD,
2070
- }, big)).toEqual('1234567.50');
2071
- });
2072
- test('apostrophe-period (Swiss)', () => {
2073
- expect(formatItemValue({
2074
- ...ecma,
2075
- separator: NumberSeparator.APOSTROPHE_PERIOD,
2076
- }, big)).toEqual("1'234'567.50");
2077
- });
2078
- test('currency expression localises symbol-prefixed values', () => {
2079
- expect(formatItemValue({
2080
- ...metric,
2081
- type: MetricType.NUMBER,
2082
- format: '[$€]#,##0.00',
2083
- separator: NumberSeparator.PERIOD_COMMA,
2084
- }, big)).toEqual('€1.234.567,50');
2085
- });
2086
- test('parameterised format expression localises too', () => {
2087
- expect(formatItemValue({
2088
- ...metric,
2089
- type: MetricType.NUMBER,
2090
- format: '${ld.parameters.symbol}0,0.00',
2091
- separator: NumberSeparator.PERIOD_COMMA,
2092
- }, 1234.56, false, { symbol: '€' })).toEqual('€1.234,56');
2093
- });
2094
- });
2095
- describe('legacy + structured paths pick up the field separator', () => {
2096
- test('legacy format enum (the documented workaround)', () => {
2097
- expect(formatItemValue({
2098
- ...metric,
2099
- type: MetricType.NUMBER,
2100
- format: Format.EUR,
2101
- separator: NumberSeparator.PERIOD_COMMA,
2102
- }, 12345.1235)).toEqual('12.345,12 €');
2103
- });
2104
- test('formatOptions without a separator inherits the field separator', () => {
2105
- expect(formatItemValue({
2106
- ...metric,
2107
- type: MetricType.NUMBER,
2108
- formatOptions: {
2109
- type: CustomFormatType.NUMBER,
2110
- round: 2,
2111
- },
2112
- separator: NumberSeparator.PERIOD_COMMA,
2113
- }, big)).toEqual('1.234.567,50');
2114
- });
2115
- test('formatOptions separator wins over the field separator', () => {
2116
- expect(formatItemValue({
2117
- ...metric,
2118
- type: MetricType.NUMBER,
2119
- formatOptions: {
2120
- type: CustomFormatType.NUMBER,
2121
- round: 2,
2122
- separator: NumberSeparator.COMMA_PERIOD,
2123
- },
2124
- separator: NumberSeparator.PERIOD_COMMA,
2125
- }, big)).toEqual('1,234,567.50');
2126
- });
2127
- test('CUSTOM formatOptions expression respects the field separator', () => {
2128
- expect(formatItemValue({
2129
- ...metric,
2130
- type: MetricType.NUMBER,
2131
- formatOptions: {
2132
- type: CustomFormatType.CUSTOM,
2133
- custom: '#,##0.00',
2134
- },
2135
- separator: NumberSeparator.PERIOD_COMMA,
2136
- }, big)).toEqual('1.234.567,50');
2137
- });
2138
- });
2139
- test('AdditionalMetric ECMA expression respects the separator', () => {
2140
- expect(formatItemValue({
2141
- ...additionalMetric,
2142
- type: MetricType.NUMBER,
2143
- format: '#,##0.00',
2144
- separator: NumberSeparator.PERIOD_COMMA,
2145
- }, big)).toEqual('1.234.567,50');
2146
- });
2147
- describe('getEffectiveSeparator', () => {
2148
- test('reads the field-level separator', () => {
2149
- expect(getEffectiveSeparator({
2150
- ...metric,
2151
- separator: NumberSeparator.PERIOD_COMMA,
2152
- })).toEqual(NumberSeparator.PERIOD_COMMA);
2153
- });
2154
- test('formatOptions separator takes precedence', () => {
2155
- expect(getEffectiveSeparator({
2156
- ...metric,
2157
- separator: NumberSeparator.PERIOD_COMMA,
2158
- formatOptions: {
2159
- type: CustomFormatType.NUMBER,
2160
- separator: NumberSeparator.SPACE_PERIOD,
2161
- },
2162
- })).toEqual(NumberSeparator.SPACE_PERIOD);
2163
- });
2164
- test('reads a table calculation format separator', () => {
2165
- expect(getEffectiveSeparator({
2166
- ...tableCalculation,
2167
- format: {
2168
- type: CustomFormatType.NUMBER,
2169
- separator: NumberSeparator.NO_SEPARATOR_PERIOD,
2170
- },
2171
- })).toEqual(NumberSeparator.NO_SEPARATOR_PERIOD);
2172
- });
2173
- test('returns undefined when nothing sets one', () => {
2174
- expect(getEffectiveSeparator(metric)).toBeUndefined();
2175
- expect(getEffectiveSeparator(undefined)).toBeUndefined();
2176
- });
2177
- });
2178
- describe('getFormatExpressionLocale', () => {
2179
- // Render paths that call formatValueWithExpression directly (e.g.
2180
- // chart series formatters) rely on this to localise ECMA-376
2181
- // expressions the same way formatItemValue does.
2182
- test('derives a numfmt locale from a non-default separator', () => {
2183
- const locale = getFormatExpressionLocale({
2184
- ...metric,
2185
- separator: NumberSeparator.PERIOD_COMMA,
2186
- });
2187
- expect(locale).toBeDefined();
2188
- // The derived locale must actually flip the separators on an
2189
- // ECMA-376 currency expression (the bug was passing undefined,
2190
- // which silently rendered US separators on charts).
2191
- expect(formatValueWithExpression('[$€]#,##0.00', 1234.56, locale)).toEqual('€1.234,56');
2192
- });
2193
- test('returns undefined for the default/US separator', () => {
2194
- expect(getFormatExpressionLocale({
2195
- ...metric,
2196
- separator: NumberSeparator.COMMA_PERIOD,
2197
- })).toBeUndefined();
2198
- expect(getFormatExpressionLocale(metric)).toBeUndefined();
2199
- expect(getFormatExpressionLocale(undefined)).toBeUndefined();
2200
- });
2201
- });
2202
- });
2203
- describe('getFieldFormatOverrideProps', () => {
2204
- const numericDimension = {
2205
- ...dimension,
2206
- type: DimensionType.NUMBER,
2207
- };
2208
- test('encodes a non-dynamic override as a format expression, no formatOptions', () => {
2209
- const props = getFieldFormatOverrideProps({
2210
- type: CustomFormatType.NUMBER,
2211
- compact: Compact.THOUSANDS,
2212
- });
2213
- expect(props.format).toEqual('#,##0.###,"K"');
2214
- expect(props.formatOptions).toBeUndefined();
2215
- });
2216
- test('preserves structured formatOptions for dynamic AUTO compact (no expression form)', () => {
2217
- const formatOptions = {
2218
- type: CustomFormatType.NUMBER,
2219
- compact: Compact.AUTO,
2220
- };
2221
- // AUTO has no ECMA-376 representation, so the expression must be
2222
- // cleared and the structured options carried through instead.
2223
- expect(convertCustomFormatToFormatExpression(formatOptions)).toBeNull();
2224
- const props = getFieldFormatOverrideProps(formatOptions);
2225
- expect(props.format).toBeUndefined();
2226
- expect(props.formatOptions).toEqual(formatOptions);
2227
- });
2228
- test('preserves structured formatOptions for dynamic AUTO compact on CURRENCY too', () => {
2229
- const formatOptions = {
2230
- type: CustomFormatType.CURRENCY,
2231
- currency: 'USD',
2232
- compact: Compact.AUTO,
2233
- };
2234
- expect(convertCustomFormatToFormatExpression(formatOptions)).toBeNull();
2235
- const props = getFieldFormatOverrideProps(formatOptions);
2236
- expect(props.format).toBeUndefined();
2237
- expect(props.formatOptions).toEqual(formatOptions);
2238
- });
2239
- test('AUTO override on a numeric dimension compacts the value (the reported bug)', () => {
2240
- const field = {
2241
- ...numericDimension,
2242
- ...getFieldFormatOverrideProps({
2243
- type: CustomFormatType.NUMBER,
2244
- compact: Compact.AUTO,
2245
- }),
2246
- };
2247
- expect(formatItemValue(field, 929000000)).toEqual('929M');
2248
- expect(formatItemValue(field, 1500)).toEqual('1.5K');
2249
- });
2250
- test('AUTO override clears a legacy field format expression so it cannot shadow the structured options', () => {
2251
- // legacy YAML expression that would otherwise win in formatItemValue
2252
- const fieldWithLegacyFormat = {
2253
- ...numericDimension,
2254
- format: '#,##0',
2255
- };
2256
- const field = {
2257
- ...fieldWithLegacyFormat,
2258
- ...getFieldFormatOverrideProps({
2259
- type: CustomFormatType.NUMBER,
2260
- compact: Compact.AUTO,
2261
- }),
2262
- };
2263
- // Without clearing the legacy expression this renders '929,000,000'.
2264
- expect(formatItemValue(field, 929000000)).toEqual('929M');
2265
- });
2266
- });
2267
- });
2268
- describe('parseCalendarValueUTC', () => {
2269
- test('parses each canonical grain format to the UTC start of its period', () => {
2270
- expect(parseCalendarValueUTC('2024-07-22')?.toISOString()).toEqual('2024-07-22T00:00:00.000Z');
2271
- expect(parseCalendarValueUTC('2024-07')?.toISOString()).toEqual('2024-07-01T00:00:00.000Z');
2272
- expect(parseCalendarValueUTC('2024-Q3')?.toISOString()).toEqual('2024-07-01T00:00:00.000Z');
2273
- expect(parseCalendarValueUTC('2024')?.toISOString()).toEqual('2024-01-01T00:00:00.000Z');
2274
- });
2275
- test('rejects values outside the canonical formats instead of coercing', () => {
2276
- expect(parseCalendarValueUTC('42')).toBeUndefined();
2277
- expect(parseCalendarValueUTC('50.5')).toBeUndefined();
2278
- expect(parseCalendarValueUTC('')).toBeUndefined();
2279
- expect(parseCalendarValueUTC('not-a-date')).toBeUndefined();
2280
- expect(parseCalendarValueUTC('2024-13')).toBeUndefined();
2281
- expect(parseCalendarValueUTC('2024-Q5')).toBeUndefined();
2282
- expect(parseCalendarValueUTC('2024-01-15 12:00')).toBeUndefined();
2283
- expect(parseCalendarValueUTC('2024-01-15T00:00:00Z')).toBeUndefined();
2284
- });
2285
- });
2286
- describe('parseTimestampValueUTC', () => {
2287
- test('parses offset-less datetimes as naive UTC with hasZone false', () => {
2288
- expect(parseTimestampValueUTC('2024-01-15 12:00')).toEqual({
2289
- date: new Date('2024-01-15T12:00:00.000Z'),
2290
- hasZone: false,
2291
- });
2292
- expect(parseTimestampValueUTC('2024-01-15T12:00:00')).toEqual({
2293
- date: new Date('2024-01-15T12:00:00.000Z'),
2294
- hasZone: false,
2295
- });
2296
- expect(parseTimestampValueUTC('2024-01-15 12:00:00.123456')).toEqual({
2297
- date: new Date('2024-01-15T12:00:00.123Z'),
2298
- hasZone: false,
2299
- });
2300
- });
2301
- test('parses explicitly zoned datetimes to their instant with hasZone true', () => {
2302
- expect(parseTimestampValueUTC('2024-01-15T12:00:00Z')).toEqual({
2303
- date: new Date('2024-01-15T12:00:00.000Z'),
2304
- hasZone: true,
2305
- });
2306
- expect(parseTimestampValueUTC('2024-01-15T12:00:00z')).toEqual({
2307
- date: new Date('2024-01-15T12:00:00.000Z'),
2308
- hasZone: true,
2309
- });
2310
- expect(parseTimestampValueUTC('2024-01-15 21:00:00+09:00')).toEqual({
2311
- date: new Date('2024-01-15T12:00:00.000Z'),
2312
- hasZone: true,
2313
- });
2314
- expect(parseTimestampValueUTC('2024-01-15T12:00:00.123-0500')).toEqual({
2315
- date: new Date('2024-01-15T17:00:00.123Z'),
2316
- hasZone: true,
2317
- });
2318
- });
2319
- test('rejects values outside the canonical shapes instead of coercing', () => {
2320
- expect(parseTimestampValueUTC('2024-01-15')).toBeUndefined();
2321
- expect(parseTimestampValueUTC('2024-01-15 12:00 unexpected-suffix')).toBeUndefined();
2322
- expect(parseTimestampValueUTC('42')).toBeUndefined();
2323
- expect(parseTimestampValueUTC('')).toBeUndefined();
2324
- expect(parseTimestampValueUTC('2024-01-15 25:00')).toBeUndefined();
2325
- });
2326
- });
2327
- describe('isUnambiguousTemporalString', () => {
2328
- test.each([
2329
- '2024-07-22',
2330
- '2024-07',
2331
- '2024-Q3',
2332
- '2024-01-15 12:00',
2333
- '2024-01-15T12:00:00Z',
2334
- ])('accepts unambiguous temporal value %s', (value) => {
2335
- expect(isUnambiguousTemporalString(value)).toBe(true);
2336
- });
2337
- test.each(['2024', '42', '50.5', '', 'not-a-date', null])('rejects ambiguous or non-temporal value %s', (value) => {
2338
- expect(isUnambiguousTemporalString(value)).toBe(false);
2339
- });
2340
- });
2341
- // Converter gap fixes (docs/composer-viz-plan/01-design.md §2): the format
2342
- // expression produced for a CustomFormat must render identically to the
2343
- // structured applyCustomFormat path, or return null when no ECMA-376 form
2344
- // exists (the formatOptions escape hatch).
2345
- describe('convertCustomFormatToFormatExpression gap fixes', () => {
2346
- const gridValues = [-9876543.21, 0, 0.1234, 1234567, 12345.1235];
2347
- const gridRounds = [undefined, 0, 2, -2];
2348
- const gridSeparators = [undefined, ...Object.values(NumberSeparator)];
2349
- const gridTypes = [
2350
- { type: CustomFormatType.DEFAULT },
2351
- { type: CustomFormatType.ID },
2352
- { type: CustomFormatType.PERCENT },
2353
- { type: CustomFormatType.NUMBER },
2354
- { type: CustomFormatType.CURRENCY, currency: Format.USD },
2355
- { type: CustomFormatType.BYTES_SI },
2356
- { type: CustomFormatType.BYTES_IEC },
2357
- ];
2358
- const magnitudeRoundTypes = [
2359
- CustomFormatType.PERCENT,
2360
- CustomFormatType.NUMBER,
2361
- CustomFormatType.CURRENCY,
2362
- CustomFormatType.BYTES_SI,
2363
- CustomFormatType.BYTES_IEC,
2364
- ];
2365
- // Documented G10 divergences we do not attempt to close:
2366
- // - DEFAULT ignores the separator in the structured path (host locale),
2367
- // while the expression render localises it.
2368
- // - PERIOD_COMMA currency moves the symbol after the number in de-DE.
2369
- const isDocumentedDivergence = (type, separator) => (type === CustomFormatType.DEFAULT &&
2370
- separator !== undefined &&
2371
- separator !== NumberSeparator.DEFAULT &&
2372
- separator !== NumberSeparator.COMMA_PERIOD) ||
2373
- (type === CustomFormatType.CURRENCY &&
2374
- separator === NumberSeparator.PERIOD_COMMA);
2375
- test('round-trip grid: expression render matches applyCustomFormat', () => {
2376
- gridTypes.forEach((baseFormat) => {
2377
- gridRounds.forEach((round) => {
2378
- gridSeparators.forEach((separator) => {
2379
- const customFormat = {
2380
- ...baseFormat,
2381
- round,
2382
- separator,
2383
- };
2384
- const expression = convertCustomFormatToFormatExpression(customFormat);
2385
- if (expression === null) {
2386
- // The only legitimate null in this grid is magnitude
2387
- // rounding (negative round), which has no ECMA-376 form.
2388
- expect({ customFormat, expression }).toEqual({
2389
- customFormat,
2390
- expression: round !== undefined &&
2391
- round < 0 &&
2392
- magnitudeRoundTypes.includes(baseFormat.type)
2393
- ? null
2394
- : expect.anything(),
2395
- });
2396
- return;
2397
- }
2398
- if (isDocumentedDivergence(baseFormat.type, separator)) {
2399
- return;
2400
- }
2401
- gridValues.forEach((value) => {
2402
- const structured = applyCustomFormat(value, customFormat);
2403
- const viaExpression = formatValueWithExpression(expression, value, separatorToNumfmtLocale(separator));
2404
- expect({
2405
- customFormat,
2406
- value,
2407
- formatted: viaExpression,
2408
- }).toEqual({
2409
- customFormat,
2410
- value,
2411
- formatted: structured,
2412
- });
2413
- });
2414
- });
2415
- });
2416
- });
2417
- });
2418
- test('magnitude rounding (negative round) returns null — formatOptions escape hatch', () => {
2419
- magnitudeRoundTypes.forEach((type) => {
2420
- expect(convertCustomFormatToFormatExpression({
2421
- type,
2422
- round: -2,
2423
- ...(type === CustomFormatType.CURRENCY && {
2424
- currency: Format.USD,
2425
- }),
2426
- })).toBeNull();
2427
- });
2428
- });
2429
- test('dynamic AUTO compact returns null for bytes too', () => {
2430
- expect(convertCustomFormatToFormatExpression({
2431
- type: CustomFormatType.BYTES_SI,
2432
- compact: Compact.AUTO,
2433
- })).toBeNull();
2434
- expect(convertCustomFormatToFormatExpression({
2435
- type: CustomFormatType.BYTES_IEC,
2436
- compact: Compact.AUTO,
2437
- })).toBeNull();
2438
- });
2439
- test('DEFAULT emits the applyDefaultFormat equivalent', () => {
2440
- expect(convertCustomFormatToFormatExpression({
2441
- type: CustomFormatType.DEFAULT,
2442
- })).toBe('#,##0.###');
2443
- // round and separator are ignored by applyDefaultFormat, so the
2444
- // expression must not encode them either.
2445
- expect(convertCustomFormatToFormatExpression({
2446
- type: CustomFormatType.DEFAULT,
2447
- round: 2,
2448
- separator: NumberSeparator.NO_SEPARATOR_PERIOD,
2449
- })).toBe('#,##0.###');
2450
- });
2451
- test('ID emits the verbatim text format', () => {
2452
- expect(convertCustomFormatToFormatExpression({
2453
- type: CustomFormatType.ID,
2454
- })).toBe('@');
2455
- // Large numeric IDs must render verbatim, not in scientific notation.
2456
- expect(formatValueWithExpression('@', 1234567890123456)).toBe('1234567890123456');
2457
- expect(formatValueWithExpression('@', 'ID-123')).toBe('ID-123');
2458
- expect(formatValueWithExpression('@', 12345)).toBe(applyCustomFormat(12345, { type: CustomFormatType.ID }));
2459
- });
2460
- test('DATE emits per-grain expressions; QUARTER stays renderer-side', () => {
2461
- expect(convertCustomFormatToFormatExpression({
2462
- type: CustomFormatType.DATE,
2463
- timeInterval: TimeFrames.YEAR,
2464
- })).toBe('yyyy');
2465
- expect(convertCustomFormatToFormatExpression({
2466
- type: CustomFormatType.DATE,
2467
- timeInterval: TimeFrames.MONTH,
2468
- })).toBe('yyyy-mm');
2469
- expect(convertCustomFormatToFormatExpression({
2470
- type: CustomFormatType.DATE,
2471
- timeInterval: TimeFrames.DAY,
2472
- })).toBe('yyyy-mm-dd');
2473
- expect(convertCustomFormatToFormatExpression({
2474
- type: CustomFormatType.DATE,
2475
- timeInterval: TimeFrames.WEEK,
2476
- })).toBe('yyyy-mm-dd');
2477
- expect(convertCustomFormatToFormatExpression({
2478
- type: CustomFormatType.DATE,
2479
- })).toBe('yyyy-mm-dd');
2480
- // No ECMA-376 quarter token; renderer resolves it via timeInterval.
2481
- expect(convertCustomFormatToFormatExpression({
2482
- type: CustomFormatType.DATE,
2483
- timeInterval: TimeFrames.QUARTER,
2484
- })).toBeNull();
2485
- });
2486
- test('DATE expressions render like the structured path', () => {
2487
- const date = new Date(Date.UTC(2024, 0, 2, 3, 4, 5));
2488
- [
2489
- [TimeFrames.YEAR, '2024'],
2490
- [TimeFrames.MONTH, '2024-01'],
2491
- [TimeFrames.DAY, '2024-01-02'],
2492
- ].forEach(([timeInterval, expected]) => {
2493
- const customFormat = {
2494
- type: CustomFormatType.DATE,
2495
- timeInterval,
2496
- };
2497
- const expression = convertCustomFormatToFormatExpression(customFormat);
2498
- expect(formatValueWithExpression(expression, date, undefined, 'UTC')).toBe(expected);
2499
- expect(applyCustomFormat(date, customFormat, 'UTC')).toBe(expected);
2500
- });
2501
- });
2502
- test('TIMESTAMP emits sub-day expressions to the second; the (Z) offset suffix stays renderer-side', () => {
2503
- expect(convertCustomFormatToFormatExpression({
2504
- type: CustomFormatType.TIMESTAMP,
2505
- timeInterval: TimeFrames.HOUR,
2506
- })).toBe('yyyy-mm-dd, hh');
2507
- expect(convertCustomFormatToFormatExpression({
2508
- type: CustomFormatType.TIMESTAMP,
2509
- timeInterval: TimeFrames.MINUTE,
2510
- })).toBe('yyyy-mm-dd, hh:mm');
2511
- expect(convertCustomFormatToFormatExpression({
2512
- type: CustomFormatType.TIMESTAMP,
2513
- timeInterval: TimeFrames.SECOND,
2514
- })).toBe('yyyy-mm-dd, hh:mm:ss');
2515
- // Milliseconds (the default grain) render as `:SSS (Z)` in the
2516
- // structured path — no ECMA-376 form, stays renderer-side.
2517
- expect(convertCustomFormatToFormatExpression({
2518
- type: CustomFormatType.TIMESTAMP,
2519
- })).toBeNull();
2520
- expect(convertCustomFormatToFormatExpression({
2521
- type: CustomFormatType.TIMESTAMP,
2522
- timeInterval: TimeFrames.MILLISECOND,
2523
- })).toBeNull();
2524
- const date = new Date(Date.UTC(2024, 0, 2, 3, 4, 5));
2525
- // The structured equivalent is '2024-01-02, 03:04:05 (+00:00)'; the
2526
- // expression carries everything except the offset suffix.
2527
- expect(formatValueWithExpression('yyyy-mm-dd, hh:mm:ss', date, undefined, 'UTC')).toBe('2024-01-02, 03:04:05');
2528
- });
2529
- test('quotes in prefix/suffix are escaped', () => {
2530
- const customFormat = {
2531
- type: CustomFormatType.NUMBER,
2532
- prefix: 'ab"cd',
2533
- suffix: ' un"it',
2534
- round: 0,
2535
- };
2536
- const expression = convertCustomFormatToFormatExpression(customFormat);
2537
- expect(expression).toBe('"ab"\\""cd"#,##0" un"\\""it"');
2538
- expect(formatValueWithExpression(expression, 5)).toBe(applyCustomFormat(5, customFormat));
2539
- expect(formatValueWithExpression(expression, 5)).toBe('ab"cd5 un"it');
2540
- });
2541
- test('all-optional decimals never leave a dangling separator', () => {
2542
- expect(formatValueWithExpression('#,##0.###', 1234567)).toBe('1,234,567');
2543
- expect(formatValueWithExpression('#,##0.###', 0)).toBe('0');
2544
- expect(formatValueWithExpression('#,##0.###,"K"', 1000000)).toBe('1,000K');
2545
- expect(formatValueWithExpression('#,##0.###', 1234567, separatorToNumfmtLocale(NumberSeparator.PERIOD_COMMA))).toBe('1.234.567');
2546
- // Fixed decimals are untouched.
2547
- expect(formatValueWithExpression('0.00', 5)).toBe('5.00');
2548
- });
2549
- });
2550
- describe('getFormatExpression year-number guard', () => {
2551
- const yearNumDimension = {
2552
- ...dimension,
2553
- type: DimensionType.NUMBER,
2554
- timeInterval: TimeFrames.YEAR_NUM,
2555
- };
2556
- test('emits no expression for YEAR_NUM dimensions', () => {
2557
- // formatItemValue renders year numbers as plain unseparated values,
2558
- // short-circuiting before applyCustomFormat — the expression must not
2559
- // reintroduce digit grouping (2021, never 2,021).
2560
- expect(getFormatExpression(yearNumDimension)).toBeUndefined();
2561
- expect(getFormatExpression({ ...yearNumDimension, round: 0 })).toBeUndefined();
2562
- expect(formatItemValue(yearNumDimension, 2021)).toBe('2021');
2563
- });
2564
- });
2565
- // Blast-radius pins (docs/composer-viz-plan/01-design.md §2): existing
2566
- // consumers of the converter whose output changes with the gap fixes.
2567
- describe('converter gap fixes blast radius', () => {
2568
- describe('getFieldFormatOverrideProps', () => {
2569
- test('DEFAULT/ID/DATE overrides now encode as expressions', () => {
2570
- expect(getFieldFormatOverrideProps({
2571
- type: CustomFormatType.DEFAULT,
2572
- })).toEqual({ format: '#,##0.###', separator: undefined });
2573
- expect(getFieldFormatOverrideProps({ type: CustomFormatType.ID })).toEqual({ format: '@', separator: undefined });
2574
- expect(getFieldFormatOverrideProps({
2575
- type: CustomFormatType.DATE,
2576
- timeInterval: TimeFrames.MONTH,
2577
- })).toEqual({ format: 'yyyy-mm', separator: undefined });
2578
- });
2579
- test('non-expressible overrides keep structured formatOptions', () => {
2580
- const quarterDate = {
2581
- type: CustomFormatType.DATE,
2582
- timeInterval: TimeFrames.QUARTER,
2583
- };
2584
- expect(getFieldFormatOverrideProps(quarterDate)).toEqual({
2585
- format: undefined,
2586
- formatOptions: quarterDate,
2587
- separator: undefined,
2588
- });
2589
- const millisecondTimestamp = {
2590
- type: CustomFormatType.TIMESTAMP,
2591
- };
2592
- expect(getFieldFormatOverrideProps(millisecondTimestamp)).toEqual({
2593
- format: undefined,
2594
- formatOptions: millisecondTimestamp,
2595
- separator: undefined,
2596
- });
2597
- const magnitudeRound = {
2598
- type: CustomFormatType.NUMBER,
2599
- round: -2,
2600
- };
2601
- expect(getFieldFormatOverrideProps(magnitudeRound)).toEqual({
2602
- format: undefined,
2603
- formatOptions: magnitudeRound,
2604
- separator: undefined,
2605
- });
2606
- });
2607
- });
2608
- describe('convertCustomMetricToDbt writeback output', () => {
2609
- test('unformatted numeric metrics keep the pre-existing default expression', () => {
2610
- expect(convertCustomMetricToDbt(additionalMetric).format).toBe('#,##0.###');
2611
- });
2612
- test('legacy percent metrics emit trailing-dropped decimals (G4 alignment)', () => {
2613
- // Was '#,##0.00%' before the round-default fix.
2614
- expect(convertCustomMetricToDbt({
2615
- ...additionalMetric,
2616
- format: Format.PERCENT,
2617
- }).format).toBe('#,##0.###%');
2618
- });
2619
- test('legacy id metrics now emit the text format', () => {
2620
- // Was undefined before the ID fix.
2621
- expect(convertCustomMetricToDbt({
2622
- ...additionalMetric,
2623
- format: Format.ID,
2624
- }).format).toBe('@');
2625
- });
2626
- });
2627
- });
2628
- //# sourceMappingURL=formatting.test.js.map