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