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