@lightdash/common 2.228.1 → 2.229.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,1871 +0,0 @@
|
|
|
1
|
-
import { Ability, AbilityBuilder, subject } from '@casl/ability';
|
|
2
|
-
import { ProjectType } from '../types/projects';
|
|
3
|
-
import { SpaceMemberRole } from '../types/space';
|
|
4
|
-
import { buildAbilityFromScopes } from './scopeAbilityBuilder';
|
|
5
|
-
describe('scopeAbilityBuilder', () => {
|
|
6
|
-
const baseContext = {
|
|
7
|
-
isEnterprise: false,
|
|
8
|
-
organizationRole: 'admin',
|
|
9
|
-
projectUuid: 'project-123',
|
|
10
|
-
userUuid: 'user1',
|
|
11
|
-
scopes: [],
|
|
12
|
-
};
|
|
13
|
-
const baseContextWithOrg = {
|
|
14
|
-
...baseContext,
|
|
15
|
-
projectUuid: undefined,
|
|
16
|
-
organizationUuid: 'org-123',
|
|
17
|
-
};
|
|
18
|
-
it('grants organization roadmap management through a custom scope', () => {
|
|
19
|
-
const builder = new AbilityBuilder(Ability);
|
|
20
|
-
buildAbilityFromScopes({
|
|
21
|
-
...baseContextWithOrg,
|
|
22
|
-
isEnterprise: true,
|
|
23
|
-
scopes: ['manage:Roadmap'],
|
|
24
|
-
}, builder);
|
|
25
|
-
const ability = builder.build();
|
|
26
|
-
expect(ability.can('manage', subject('Roadmap', { organizationUuid: 'org-123' }))).toBe(true);
|
|
27
|
-
expect(ability.can('view', subject('Roadmap', { organizationUuid: 'org-123' }))).toBe(true);
|
|
28
|
-
expect(ability.can('manage', subject('Roadmap', { organizationUuid: 'different-org' }))).toBe(false);
|
|
29
|
-
});
|
|
30
|
-
it('keeps roadmap view-only scopes read-only', () => {
|
|
31
|
-
const builder = new AbilityBuilder(Ability);
|
|
32
|
-
buildAbilityFromScopes({
|
|
33
|
-
...baseContextWithOrg,
|
|
34
|
-
isEnterprise: true,
|
|
35
|
-
scopes: ['view:Roadmap'],
|
|
36
|
-
}, builder);
|
|
37
|
-
expect(builder
|
|
38
|
-
.build()
|
|
39
|
-
.can('manage', subject('Roadmap', { organizationUuid: 'org-123' }))).toBe(false);
|
|
40
|
-
});
|
|
41
|
-
it('should build ability with organization view permissions', () => {
|
|
42
|
-
const builder = new AbilityBuilder(Ability);
|
|
43
|
-
buildAbilityFromScopes({
|
|
44
|
-
...baseContextWithOrg,
|
|
45
|
-
scopes: ['view:Organization'],
|
|
46
|
-
}, builder);
|
|
47
|
-
const ability = builder.build();
|
|
48
|
-
expect(ability.can('view', subject('Organization', {
|
|
49
|
-
organizationUuid: 'org-123',
|
|
50
|
-
projectUuid: 'project-123',
|
|
51
|
-
}))).toBe(true);
|
|
52
|
-
expect(ability.can('view', subject('Organization', {
|
|
53
|
-
organizationUuid: 'different-org',
|
|
54
|
-
projectUuid: 'project-123',
|
|
55
|
-
}))).toBe(false);
|
|
56
|
-
});
|
|
57
|
-
it('should build ability with dashboard view permissions', () => {
|
|
58
|
-
const builder = new AbilityBuilder(Ability);
|
|
59
|
-
buildAbilityFromScopes({
|
|
60
|
-
...baseContext,
|
|
61
|
-
scopes: ['view:Dashboard'],
|
|
62
|
-
}, builder);
|
|
63
|
-
const ability = builder.build();
|
|
64
|
-
// Should be able to view public dashboards
|
|
65
|
-
expect(ability.can('view', subject('Dashboard', {
|
|
66
|
-
organizationUuid: 'org-123',
|
|
67
|
-
projectUuid: 'project-123',
|
|
68
|
-
inheritsFromOrgOrProject: true,
|
|
69
|
-
}))).toBe(true);
|
|
70
|
-
// Should not be able to view private dashboards without user context
|
|
71
|
-
expect(ability.can('view', subject('Dashboard', {
|
|
72
|
-
organizationUuid: 'org-123',
|
|
73
|
-
projectUuid: 'project-123',
|
|
74
|
-
inheritsFromOrgOrProject: false,
|
|
75
|
-
}))).toBe(false);
|
|
76
|
-
});
|
|
77
|
-
it('should build ability with dashboard permissions for user with space access', () => {
|
|
78
|
-
const contextWithUser = {
|
|
79
|
-
...baseContext,
|
|
80
|
-
userUuid: 'user-456',
|
|
81
|
-
};
|
|
82
|
-
const builder = new AbilityBuilder(Ability);
|
|
83
|
-
buildAbilityFromScopes({
|
|
84
|
-
...contextWithUser,
|
|
85
|
-
scopes: ['view:Dashboard'],
|
|
86
|
-
}, builder);
|
|
87
|
-
const ability = builder.build();
|
|
88
|
-
// Can view dashboards with user access
|
|
89
|
-
expect(ability.can('view', subject('Dashboard', {
|
|
90
|
-
organizationUuid: 'org-123',
|
|
91
|
-
projectUuid: 'project-123',
|
|
92
|
-
access: [{ userUuid: 'user-456' }],
|
|
93
|
-
}))).toBe(true);
|
|
94
|
-
});
|
|
95
|
-
it('should build ability with project-scoped permissions', () => {
|
|
96
|
-
const projectContext = {
|
|
97
|
-
...baseContext,
|
|
98
|
-
projectUuid: 'project-789',
|
|
99
|
-
};
|
|
100
|
-
const builder = new AbilityBuilder(Ability);
|
|
101
|
-
buildAbilityFromScopes({
|
|
102
|
-
...projectContext,
|
|
103
|
-
scopes: ['view:Project'],
|
|
104
|
-
}, builder);
|
|
105
|
-
const ability = builder.build();
|
|
106
|
-
expect(ability.can('view', subject('Project', {
|
|
107
|
-
organizationUuid: 'org-123',
|
|
108
|
-
projectUuid: 'project-789',
|
|
109
|
-
}))).toBe(true);
|
|
110
|
-
});
|
|
111
|
-
it('should build ability with project preview creation permissions', () => {
|
|
112
|
-
const builder = new AbilityBuilder(Ability);
|
|
113
|
-
buildAbilityFromScopes({
|
|
114
|
-
...baseContext,
|
|
115
|
-
scopes: ['create:Project@preview'],
|
|
116
|
-
}, builder);
|
|
117
|
-
const ability = builder.build();
|
|
118
|
-
// Can create preview projects
|
|
119
|
-
expect(ability.can('create', subject('Project', {
|
|
120
|
-
upstreamProjectUuid: 'project-123',
|
|
121
|
-
type: ProjectType.PREVIEW,
|
|
122
|
-
}))).toBe(true);
|
|
123
|
-
// Cannot create default projects with basic scope
|
|
124
|
-
expect(ability.can('create', subject('Project', {
|
|
125
|
-
organizationUuid: 'org-123',
|
|
126
|
-
type: ProjectType.DEFAULT,
|
|
127
|
-
}))).toBe(false);
|
|
128
|
-
});
|
|
129
|
-
it('cannot create projects by default', () => {
|
|
130
|
-
const builder = new AbilityBuilder(Ability);
|
|
131
|
-
buildAbilityFromScopes(baseContext, builder);
|
|
132
|
-
const ability = builder.build();
|
|
133
|
-
expect(ability.can('create', subject('Project', {
|
|
134
|
-
upstreamProjectUuid: 'project-123',
|
|
135
|
-
type: ProjectType.PREVIEW,
|
|
136
|
-
}))).toBe(false);
|
|
137
|
-
expect(ability.can('create', subject('Project', {
|
|
138
|
-
organizationUuid: 'org-123',
|
|
139
|
-
type: ProjectType.DEFAULT,
|
|
140
|
-
}))).toBe(false);
|
|
141
|
-
});
|
|
142
|
-
it('should build ability with editor permissions for dashboards', () => {
|
|
143
|
-
const editorContext = {
|
|
144
|
-
...baseContextWithOrg,
|
|
145
|
-
userUuid: 'user-456',
|
|
146
|
-
};
|
|
147
|
-
const builder = new AbilityBuilder(Ability);
|
|
148
|
-
buildAbilityFromScopes({
|
|
149
|
-
...editorContext,
|
|
150
|
-
scopes: ['manage:Dashboard'],
|
|
151
|
-
}, builder);
|
|
152
|
-
const ability = builder.build();
|
|
153
|
-
// Can manage dashboards where user is editor
|
|
154
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
155
|
-
organizationUuid: 'org-123',
|
|
156
|
-
access: [
|
|
157
|
-
{
|
|
158
|
-
userUuid: 'user-456',
|
|
159
|
-
role: SpaceMemberRole.EDITOR,
|
|
160
|
-
},
|
|
161
|
-
],
|
|
162
|
-
}))).toBe(true);
|
|
163
|
-
});
|
|
164
|
-
it('should build ability with admin permissions for spaces', () => {
|
|
165
|
-
const adminContext = {
|
|
166
|
-
...baseContextWithOrg,
|
|
167
|
-
userUuid: 'user-456',
|
|
168
|
-
};
|
|
169
|
-
const builder = new AbilityBuilder(Ability);
|
|
170
|
-
buildAbilityFromScopes({
|
|
171
|
-
...adminContext,
|
|
172
|
-
scopes: ['manage:Space'],
|
|
173
|
-
}, builder);
|
|
174
|
-
const ability = builder.build();
|
|
175
|
-
// Can manage spaces where user is admin
|
|
176
|
-
expect(ability.can('manage', subject('Space', {
|
|
177
|
-
organizationUuid: 'org-123',
|
|
178
|
-
access: [
|
|
179
|
-
{
|
|
180
|
-
userUuid: 'user-456',
|
|
181
|
-
role: SpaceMemberRole.ADMIN,
|
|
182
|
-
},
|
|
183
|
-
],
|
|
184
|
-
}))).toBe(true);
|
|
185
|
-
});
|
|
186
|
-
it('should build ability with user-specific job status permissions', () => {
|
|
187
|
-
const userContext = {
|
|
188
|
-
...baseContext,
|
|
189
|
-
userUuid: 'user-456',
|
|
190
|
-
};
|
|
191
|
-
const builder = new AbilityBuilder(Ability);
|
|
192
|
-
buildAbilityFromScopes({
|
|
193
|
-
...userContext,
|
|
194
|
-
scopes: ['view:JobStatus@self'],
|
|
195
|
-
}, builder);
|
|
196
|
-
const ability = builder.build();
|
|
197
|
-
// Can view job status created by the user
|
|
198
|
-
expect(ability.can('view', subject('JobStatus', {
|
|
199
|
-
createdByUserUuid: 'user-456',
|
|
200
|
-
}))).toBe(true);
|
|
201
|
-
// Cannot view job status created by another user
|
|
202
|
-
expect(ability.can('view', subject('JobStatus', {
|
|
203
|
-
createdByUserUuid: 'other-user',
|
|
204
|
-
}))).toBe(false);
|
|
205
|
-
});
|
|
206
|
-
it('should build ability with AI agent thread permissions for enterprise users', () => {
|
|
207
|
-
const userContext = {
|
|
208
|
-
...baseContext,
|
|
209
|
-
userUuid: 'user-456',
|
|
210
|
-
isEnterprise: true,
|
|
211
|
-
};
|
|
212
|
-
const builder = new AbilityBuilder(Ability);
|
|
213
|
-
buildAbilityFromScopes({
|
|
214
|
-
...userContext,
|
|
215
|
-
scopes: ['manage:AiAgentThread@self'],
|
|
216
|
-
}, builder);
|
|
217
|
-
const ability = builder.build();
|
|
218
|
-
// Can manage user's own AI agent threads
|
|
219
|
-
expect(ability.can('manage', subject('AiAgentThread', {
|
|
220
|
-
projectUuid: 'project-123',
|
|
221
|
-
userUuid: 'user-456',
|
|
222
|
-
}))).toBe(true);
|
|
223
|
-
// Cannot manage another user's threads
|
|
224
|
-
expect(ability.can('manage', subject('AiAgentThread', {
|
|
225
|
-
projectUuid: 'project-123',
|
|
226
|
-
userUuid: 'other-user',
|
|
227
|
-
}))).toBe(false);
|
|
228
|
-
});
|
|
229
|
-
it('should build ability with basic permissions for scopes without custom logic', () => {
|
|
230
|
-
// These scopes don't have custom applyConditions
|
|
231
|
-
const builder = new AbilityBuilder(Ability);
|
|
232
|
-
buildAbilityFromScopes({
|
|
233
|
-
...baseContext,
|
|
234
|
-
scopes: ['view:Analytics', 'manage:Tags'],
|
|
235
|
-
}, builder);
|
|
236
|
-
const ability = builder.build();
|
|
237
|
-
expect(ability.can('view', subject('Analytics', {
|
|
238
|
-
organizationUuid: 'org-123',
|
|
239
|
-
projectUuid: 'project-123',
|
|
240
|
-
}))).toBe(true);
|
|
241
|
-
expect(ability.can('manage', subject('Tags', {
|
|
242
|
-
organizationUuid: 'org-123',
|
|
243
|
-
projectUuid: 'project-123',
|
|
244
|
-
}))).toBe(true);
|
|
245
|
-
});
|
|
246
|
-
it('should handle unknown scopes gracefully', () => {
|
|
247
|
-
const builder = new AbilityBuilder(Ability);
|
|
248
|
-
buildAbilityFromScopes(baseContext, builder);
|
|
249
|
-
const ability = builder.build();
|
|
250
|
-
// Unknown scope should not add any abilities
|
|
251
|
-
expect(ability.rules.length).toBe(0);
|
|
252
|
-
});
|
|
253
|
-
it('should handle enterprise scopes when not enterprise', () => {
|
|
254
|
-
const nonEnterpriseContext = {
|
|
255
|
-
...baseContext,
|
|
256
|
-
isEnterprise: false,
|
|
257
|
-
};
|
|
258
|
-
const builder = new AbilityBuilder(Ability);
|
|
259
|
-
buildAbilityFromScopes(nonEnterpriseContext, builder);
|
|
260
|
-
const ability = builder.build();
|
|
261
|
-
// Enterprise scope should not add abilities in non-enterprise context
|
|
262
|
-
expect(ability.rules.length).toBe(0);
|
|
263
|
-
});
|
|
264
|
-
it('should build a complete ability from multiple scopes', () => {
|
|
265
|
-
const context = {
|
|
266
|
-
userUuid: 'user-456',
|
|
267
|
-
organizationUuid: 'org-123',
|
|
268
|
-
isEnterprise: false,
|
|
269
|
-
organizationRole: 'admin',
|
|
270
|
-
scopes: ['view:Dashboard', 'manage:SavedChart', 'view:Project'],
|
|
271
|
-
};
|
|
272
|
-
const builder = new AbilityBuilder(Ability);
|
|
273
|
-
buildAbilityFromScopes(context, builder);
|
|
274
|
-
const ability = builder.build();
|
|
275
|
-
// Check that all abilities were applied
|
|
276
|
-
expect(ability.can('view', subject('Dashboard', {
|
|
277
|
-
organizationUuid: 'org-123',
|
|
278
|
-
projectUuid: 'project-789',
|
|
279
|
-
inheritsFromOrgOrProject: true,
|
|
280
|
-
}))).toBe(true);
|
|
281
|
-
// Should be able to manage saved charts with proper access
|
|
282
|
-
expect(ability.can('manage', subject('SavedChart', {
|
|
283
|
-
organizationUuid: 'org-123',
|
|
284
|
-
access: [
|
|
285
|
-
{
|
|
286
|
-
userUuid: 'user-456',
|
|
287
|
-
role: SpaceMemberRole.EDITOR,
|
|
288
|
-
},
|
|
289
|
-
],
|
|
290
|
-
}))).toBe(true);
|
|
291
|
-
expect(ability.can('view', subject('Project', {
|
|
292
|
-
organizationUuid: 'org-123',
|
|
293
|
-
projectUuid: 'project-789',
|
|
294
|
-
}))).toBe(true);
|
|
295
|
-
});
|
|
296
|
-
describe('scope dependency checks', () => {
|
|
297
|
-
it('should apply organization-level permissions when manage:organization scope is present', () => {
|
|
298
|
-
const contextWithOrgManage = {
|
|
299
|
-
...baseContext,
|
|
300
|
-
userUuid: 'user-456',
|
|
301
|
-
scopes: ['manage:Organization', 'manage:SavedChart'],
|
|
302
|
-
};
|
|
303
|
-
const builder = new AbilityBuilder(Ability);
|
|
304
|
-
buildAbilityFromScopes(contextWithOrgManage, builder);
|
|
305
|
-
const ability = builder.build();
|
|
306
|
-
// Should have organization-wide permissions for saved charts
|
|
307
|
-
expect(ability.can('manage', subject('SavedChart', {
|
|
308
|
-
organizationUuid: 'org-123',
|
|
309
|
-
projectUuid: 'project-123',
|
|
310
|
-
}))).toBe(true);
|
|
311
|
-
// Should not require user access restrictions
|
|
312
|
-
expect(ability.can('manage', subject('SavedChart', {
|
|
313
|
-
organizationUuid: 'org-123',
|
|
314
|
-
projectUuid: 'project-123',
|
|
315
|
-
access: [{ userUuid: 'other-user' }],
|
|
316
|
-
}))).toBe(true);
|
|
317
|
-
});
|
|
318
|
-
it('should apply user-restricted permissions when manage:organization scope is not present', () => {
|
|
319
|
-
const contextWithoutOrgManage = {
|
|
320
|
-
...baseContext,
|
|
321
|
-
userUuid: 'user-456',
|
|
322
|
-
scopes: ['manage:SavedChart@space'],
|
|
323
|
-
};
|
|
324
|
-
const builder = new AbilityBuilder(Ability);
|
|
325
|
-
buildAbilityFromScopes(contextWithoutOrgManage, builder);
|
|
326
|
-
const ability = builder.build();
|
|
327
|
-
// Should require user access restrictions
|
|
328
|
-
expect(ability.can('manage', subject('SavedChart', {
|
|
329
|
-
organizationUuid: 'org-123',
|
|
330
|
-
projectUuid: 'project-123',
|
|
331
|
-
access: [
|
|
332
|
-
{
|
|
333
|
-
userUuid: 'user-456',
|
|
334
|
-
role: SpaceMemberRole.EDITOR,
|
|
335
|
-
},
|
|
336
|
-
],
|
|
337
|
-
}))).toBe(true);
|
|
338
|
-
// Should not allow access to other users' charts
|
|
339
|
-
expect(ability.can('manage', subject('SavedChart', {
|
|
340
|
-
organizationUuid: 'org-123',
|
|
341
|
-
projectUuid: 'project-123',
|
|
342
|
-
access: [{ userUuid: 'other-user' }],
|
|
343
|
-
}))).toBe(false);
|
|
344
|
-
});
|
|
345
|
-
it('should handle space management with different scope combinations', () => {
|
|
346
|
-
const contextWithProjectManage = {
|
|
347
|
-
...baseContext,
|
|
348
|
-
userUuid: 'user-456',
|
|
349
|
-
scopes: ['manage:Project', 'manage:Space'],
|
|
350
|
-
};
|
|
351
|
-
const builder = new AbilityBuilder(Ability);
|
|
352
|
-
buildAbilityFromScopes(contextWithProjectManage, builder);
|
|
353
|
-
const ability = builder.build();
|
|
354
|
-
// Should allow managing public spaces when user has project management
|
|
355
|
-
expect(ability.can('manage', subject('Space', {
|
|
356
|
-
organizationUuid: 'org-123',
|
|
357
|
-
projectUuid: 'project-123',
|
|
358
|
-
inheritsFromOrgOrProject: true,
|
|
359
|
-
}))).toBe(true);
|
|
360
|
-
// Should still allow managing spaces where user is admin
|
|
361
|
-
expect(ability.can('manage', subject('Space', {
|
|
362
|
-
organizationUuid: 'org-123',
|
|
363
|
-
projectUuid: 'project-123',
|
|
364
|
-
access: [
|
|
365
|
-
{
|
|
366
|
-
userUuid: 'user-456',
|
|
367
|
-
role: SpaceMemberRole.ADMIN,
|
|
368
|
-
},
|
|
369
|
-
],
|
|
370
|
-
}))).toBe(true);
|
|
371
|
-
});
|
|
372
|
-
it('should handle promotion permissions based on organization scope', () => {
|
|
373
|
-
const contextWithOrgManage = {
|
|
374
|
-
...baseContext,
|
|
375
|
-
userUuid: 'user-456',
|
|
376
|
-
scopes: ['manage:Organization', 'promote:Dashboard'],
|
|
377
|
-
};
|
|
378
|
-
const contextWithoutOrgManage = {
|
|
379
|
-
...baseContext,
|
|
380
|
-
userUuid: 'user-456',
|
|
381
|
-
scopes: ['promote:Dashboard@space'],
|
|
382
|
-
};
|
|
383
|
-
// Test dashboard promotion with organization management
|
|
384
|
-
const builder = new AbilityBuilder(Ability);
|
|
385
|
-
buildAbilityFromScopes(contextWithOrgManage, builder);
|
|
386
|
-
const abilityWithOrg = builder.build();
|
|
387
|
-
expect(abilityWithOrg.can('promote', subject('Dashboard', {
|
|
388
|
-
organizationUuid: 'org-123',
|
|
389
|
-
projectUuid: 'project-123',
|
|
390
|
-
}))).toBe(true);
|
|
391
|
-
// Test dashboard promotion without organization management
|
|
392
|
-
const builderWithoutOrg = new AbilityBuilder(Ability);
|
|
393
|
-
buildAbilityFromScopes(contextWithoutOrgManage, builderWithoutOrg);
|
|
394
|
-
const abilityWithoutOrg = builderWithoutOrg.build();
|
|
395
|
-
expect(abilityWithoutOrg.can('promote', subject('Dashboard', {
|
|
396
|
-
organizationUuid: 'org-123',
|
|
397
|
-
projectUuid: 'project-123',
|
|
398
|
-
access: [
|
|
399
|
-
{
|
|
400
|
-
userUuid: 'user-456',
|
|
401
|
-
role: SpaceMemberRole.EDITOR,
|
|
402
|
-
},
|
|
403
|
-
],
|
|
404
|
-
}))).toBe(true);
|
|
405
|
-
// Should not allow promotion without proper access
|
|
406
|
-
expect(abilityWithoutOrg.can('promote', subject('Dashboard', {
|
|
407
|
-
organizationUuid: 'org-123',
|
|
408
|
-
projectUuid: 'project-123',
|
|
409
|
-
access: [{ userUuid: 'other-user' }],
|
|
410
|
-
}))).toBe(false);
|
|
411
|
-
});
|
|
412
|
-
});
|
|
413
|
-
describe('AI agent thread permissions with modifiers', () => {
|
|
414
|
-
it('should handle view:ai_agent_thread@self permissions', () => {
|
|
415
|
-
const contextWithUser = {
|
|
416
|
-
...baseContext,
|
|
417
|
-
userUuid: 'user-456',
|
|
418
|
-
isEnterprise: true,
|
|
419
|
-
};
|
|
420
|
-
const builder = new AbilityBuilder(Ability);
|
|
421
|
-
buildAbilityFromScopes({
|
|
422
|
-
...contextWithUser,
|
|
423
|
-
scopes: ['view:AiAgentThread@self'],
|
|
424
|
-
}, builder);
|
|
425
|
-
const ability = builder.build();
|
|
426
|
-
// Can view own AI agent threads
|
|
427
|
-
expect(ability.can('view', subject('AiAgentThread', {
|
|
428
|
-
projectUuid: 'project-123',
|
|
429
|
-
userUuid: 'user-456',
|
|
430
|
-
}))).toBe(true);
|
|
431
|
-
// Cannot view other users' threads
|
|
432
|
-
expect(ability.can('view', subject('AiAgentThread', {
|
|
433
|
-
projectUuid: 'project-123',
|
|
434
|
-
userUuid: 'other-user',
|
|
435
|
-
}))).toBe(false);
|
|
436
|
-
});
|
|
437
|
-
it('should handle manage:ai_agent_thread@self permissions', () => {
|
|
438
|
-
const contextWithUser = {
|
|
439
|
-
...baseContext,
|
|
440
|
-
userUuid: 'user-456',
|
|
441
|
-
isEnterprise: true,
|
|
442
|
-
};
|
|
443
|
-
const builder = new AbilityBuilder(Ability);
|
|
444
|
-
buildAbilityFromScopes({
|
|
445
|
-
...contextWithUser,
|
|
446
|
-
userUuid: 'user-456',
|
|
447
|
-
scopes: ['manage:AiAgentThread@self'],
|
|
448
|
-
}, builder);
|
|
449
|
-
const ability = builder.build();
|
|
450
|
-
// Can manage own AI agent threads
|
|
451
|
-
expect(ability.can('manage', subject('AiAgentThread', {
|
|
452
|
-
projectUuid: 'project-123',
|
|
453
|
-
userUuid: 'user-456',
|
|
454
|
-
}))).toBe(true);
|
|
455
|
-
// Cannot manage other users' threads
|
|
456
|
-
expect(ability.can('manage', subject('AiAgentThread', {
|
|
457
|
-
userUuid: 'other-user',
|
|
458
|
-
}))).toBe(false);
|
|
459
|
-
});
|
|
460
|
-
it('should handle view:ai_agent_thread permissions for all threads', () => {
|
|
461
|
-
const builder = new AbilityBuilder(Ability);
|
|
462
|
-
buildAbilityFromScopes({
|
|
463
|
-
...baseContextWithOrg,
|
|
464
|
-
isEnterprise: true,
|
|
465
|
-
scopes: ['view:AiAgentThread'],
|
|
466
|
-
}, builder);
|
|
467
|
-
const ability = builder.build();
|
|
468
|
-
// Can view any AI agent thread
|
|
469
|
-
expect(ability.can('view', subject('AiAgentThread', {
|
|
470
|
-
organizationUuid: 'org-123',
|
|
471
|
-
userUuid: 'any-user',
|
|
472
|
-
}))).toBe(true);
|
|
473
|
-
});
|
|
474
|
-
it('should handle manage:ai_agent_thread permissions for all threads', () => {
|
|
475
|
-
const builder = new AbilityBuilder(Ability);
|
|
476
|
-
buildAbilityFromScopes({
|
|
477
|
-
...baseContextWithOrg,
|
|
478
|
-
isEnterprise: true,
|
|
479
|
-
scopes: ['manage:AiAgentThread'],
|
|
480
|
-
}, builder);
|
|
481
|
-
const ability = builder.build();
|
|
482
|
-
// Can manage any AI agent thread
|
|
483
|
-
expect(ability.can('manage', subject('AiAgentThread', {
|
|
484
|
-
organizationUuid: 'org-123',
|
|
485
|
-
userUuid: 'any-user',
|
|
486
|
-
}))).toBe(true);
|
|
487
|
-
});
|
|
488
|
-
});
|
|
489
|
-
describe('edge cases and error handling', () => {
|
|
490
|
-
it('should handle empty scope array', () => {
|
|
491
|
-
const builder = new AbilityBuilder(Ability);
|
|
492
|
-
buildAbilityFromScopes(baseContext, builder);
|
|
493
|
-
const ability = builder.build();
|
|
494
|
-
expect(ability.rules.length).toBe(0);
|
|
495
|
-
});
|
|
496
|
-
it('should handle undefined userUuid in context', () => {
|
|
497
|
-
const contextWithoutUser = {
|
|
498
|
-
...baseContext,
|
|
499
|
-
};
|
|
500
|
-
const builder = new AbilityBuilder(Ability);
|
|
501
|
-
buildAbilityFromScopes({
|
|
502
|
-
...contextWithoutUser,
|
|
503
|
-
scopes: ['view:Dashboard'],
|
|
504
|
-
}, builder);
|
|
505
|
-
const ability = builder.build();
|
|
506
|
-
// Should only allow viewing public dashboards
|
|
507
|
-
expect(ability.can('view', subject('Dashboard', {
|
|
508
|
-
organizationUuid: 'org-123',
|
|
509
|
-
projectUuid: 'project-123',
|
|
510
|
-
inheritsFromOrgOrProject: true,
|
|
511
|
-
}))).toBe(true);
|
|
512
|
-
expect(ability.can('view', subject('Dashboard', {
|
|
513
|
-
organizationUuid: 'org-123',
|
|
514
|
-
projectUuid: 'project-123',
|
|
515
|
-
inheritsFromOrgOrProject: false,
|
|
516
|
-
}))).toBe(false);
|
|
517
|
-
});
|
|
518
|
-
it('should handle mixed valid and invalid scopes', () => {
|
|
519
|
-
const builder = new AbilityBuilder(Ability);
|
|
520
|
-
buildAbilityFromScopes({
|
|
521
|
-
...baseContext,
|
|
522
|
-
scopes: ['view:Dashboard', 'view:Project', 'invalid:scope'],
|
|
523
|
-
}, builder);
|
|
524
|
-
const ability = builder.build();
|
|
525
|
-
// We have 3 valid rules, 2 for dashboard and 1 for project, dropping the invalid scope
|
|
526
|
-
expect(ability.rules.length).toBe(3);
|
|
527
|
-
expect(ability.rules.filter((r) => r.subject === 'Dashboard')).toHaveLength(2);
|
|
528
|
-
expect(ability.rules.find((r) => r.subject === 'Project')).toBeDefined();
|
|
529
|
-
});
|
|
530
|
-
});
|
|
531
|
-
describe('cross-boundary access tests', () => {
|
|
532
|
-
it('should not allow access to resources from different organizations', () => {
|
|
533
|
-
const builder = new AbilityBuilder(Ability);
|
|
534
|
-
buildAbilityFromScopes({
|
|
535
|
-
...baseContext,
|
|
536
|
-
scopes: [
|
|
537
|
-
'view:Dashboard',
|
|
538
|
-
'manage:SavedChart',
|
|
539
|
-
'view:Space',
|
|
540
|
-
],
|
|
541
|
-
}, builder);
|
|
542
|
-
const ability = builder.build();
|
|
543
|
-
// Should not access dashboard from different org
|
|
544
|
-
expect(ability.can('view', subject('Dashboard', {
|
|
545
|
-
organizationUuid: 'different-org',
|
|
546
|
-
inheritsFromOrgOrProject: true,
|
|
547
|
-
}))).toBe(false);
|
|
548
|
-
// Should not manage saved chart from different org
|
|
549
|
-
expect(ability.can('manage', subject('SavedChart', {
|
|
550
|
-
organizationUuid: 'different-org',
|
|
551
|
-
}))).toBe(false);
|
|
552
|
-
// Should not view space from different org
|
|
553
|
-
expect(ability.can('view', subject('Space', {
|
|
554
|
-
organizationUuid: 'different-org',
|
|
555
|
-
inheritsFromOrgOrProject: true,
|
|
556
|
-
}))).toBe(false);
|
|
557
|
-
});
|
|
558
|
-
it('should not allow access to resources from different projects', () => {
|
|
559
|
-
const builder = new AbilityBuilder(Ability);
|
|
560
|
-
buildAbilityFromScopes({
|
|
561
|
-
...baseContext,
|
|
562
|
-
scopes: ['view:SavedChart'],
|
|
563
|
-
}, builder);
|
|
564
|
-
const ability = builder.build();
|
|
565
|
-
// Should not access saved chart from different project
|
|
566
|
-
expect(ability.can('view', subject('SavedChart', {
|
|
567
|
-
organizationUuid: 'org-123',
|
|
568
|
-
projectUuid: 'different-project',
|
|
569
|
-
inheritsFromOrgOrProject: true,
|
|
570
|
-
}))).toBe(false);
|
|
571
|
-
});
|
|
572
|
-
});
|
|
573
|
-
describe('private resource access with space roles', () => {
|
|
574
|
-
it('should handle viewer role access to private resources', () => {
|
|
575
|
-
const contextWithUser = {
|
|
576
|
-
...baseContextWithOrg,
|
|
577
|
-
userUuid: 'user-456',
|
|
578
|
-
};
|
|
579
|
-
const builder = new AbilityBuilder(Ability);
|
|
580
|
-
buildAbilityFromScopes({
|
|
581
|
-
...contextWithUser,
|
|
582
|
-
scopes: ['view:Dashboard'],
|
|
583
|
-
}, builder);
|
|
584
|
-
const ability = builder.build();
|
|
585
|
-
// Can view private dashboard with viewer access
|
|
586
|
-
expect(ability.can('view', subject('Dashboard', {
|
|
587
|
-
organizationUuid: 'org-123',
|
|
588
|
-
inheritsFromOrgOrProject: false,
|
|
589
|
-
access: [
|
|
590
|
-
{
|
|
591
|
-
userUuid: 'user-456',
|
|
592
|
-
role: SpaceMemberRole.VIEWER,
|
|
593
|
-
},
|
|
594
|
-
],
|
|
595
|
-
}))).toBe(true);
|
|
596
|
-
// Cannot view private dashboard without access
|
|
597
|
-
expect(ability.can('view', subject('Dashboard', {
|
|
598
|
-
organizationUuid: 'org-123',
|
|
599
|
-
inheritsFromOrgOrProject: false,
|
|
600
|
-
access: [],
|
|
601
|
-
}))).toBe(false);
|
|
602
|
-
// Cannot view private dashboard with access for another user
|
|
603
|
-
expect(ability.can('view', subject('Dashboard', {
|
|
604
|
-
organizationUuid: 'org-123',
|
|
605
|
-
inheritsFromOrgOrProject: false,
|
|
606
|
-
access: [
|
|
607
|
-
{
|
|
608
|
-
userUuid: 'other-user',
|
|
609
|
-
role: SpaceMemberRole.VIEWER,
|
|
610
|
-
},
|
|
611
|
-
],
|
|
612
|
-
}))).toBe(false);
|
|
613
|
-
});
|
|
614
|
-
it('should handle editor role for managing resources', () => {
|
|
615
|
-
const contextWithUser = {
|
|
616
|
-
...baseContextWithOrg,
|
|
617
|
-
userUuid: 'user-456',
|
|
618
|
-
};
|
|
619
|
-
const builder = new AbilityBuilder(Ability);
|
|
620
|
-
buildAbilityFromScopes({
|
|
621
|
-
...contextWithUser,
|
|
622
|
-
scopes: ['manage:Dashboard@space'],
|
|
623
|
-
}, builder);
|
|
624
|
-
const ability = builder.build();
|
|
625
|
-
// Can manage dashboard with editor role
|
|
626
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
627
|
-
organizationUuid: 'org-123',
|
|
628
|
-
access: [
|
|
629
|
-
{
|
|
630
|
-
userUuid: 'user-456',
|
|
631
|
-
role: SpaceMemberRole.EDITOR,
|
|
632
|
-
},
|
|
633
|
-
],
|
|
634
|
-
}))).toBe(true);
|
|
635
|
-
// Can manage dashboard with admin role
|
|
636
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
637
|
-
organizationUuid: 'org-123',
|
|
638
|
-
access: [
|
|
639
|
-
{
|
|
640
|
-
userUuid: 'user-456',
|
|
641
|
-
role: SpaceMemberRole.ADMIN,
|
|
642
|
-
},
|
|
643
|
-
],
|
|
644
|
-
}))).toBe(true);
|
|
645
|
-
// Cannot manage dashboard with viewer role
|
|
646
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
647
|
-
organizationUuid: 'org-123',
|
|
648
|
-
access: [
|
|
649
|
-
{
|
|
650
|
-
userUuid: 'user-456',
|
|
651
|
-
role: SpaceMemberRole.VIEWER,
|
|
652
|
-
},
|
|
653
|
-
],
|
|
654
|
-
}))).toBe(false);
|
|
655
|
-
// Cannot manage dashboard without access
|
|
656
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
657
|
-
organizationUuid: 'org-123',
|
|
658
|
-
access: [],
|
|
659
|
-
}))).toBe(false);
|
|
660
|
-
});
|
|
661
|
-
it('should handle space admin role for managing spaces', () => {
|
|
662
|
-
const contextWithUser = {
|
|
663
|
-
...baseContext,
|
|
664
|
-
userUuid: 'user-456',
|
|
665
|
-
};
|
|
666
|
-
const builder = new AbilityBuilder(Ability);
|
|
667
|
-
buildAbilityFromScopes({
|
|
668
|
-
...contextWithUser,
|
|
669
|
-
scopes: ['manage:Space@assigned'],
|
|
670
|
-
}, builder);
|
|
671
|
-
const ability = builder.build();
|
|
672
|
-
// Can manage space with admin role
|
|
673
|
-
expect(ability.can('manage', subject('Space', {
|
|
674
|
-
projectUuid: baseContext.projectUuid,
|
|
675
|
-
access: [
|
|
676
|
-
{
|
|
677
|
-
userUuid: 'user-456',
|
|
678
|
-
role: SpaceMemberRole.ADMIN,
|
|
679
|
-
},
|
|
680
|
-
],
|
|
681
|
-
}))).toBe(true);
|
|
682
|
-
// Cannot manage space with editor role
|
|
683
|
-
expect(ability.can('manage', subject('Space', {
|
|
684
|
-
organizationUuid: 'org-123',
|
|
685
|
-
inheritsFromOrgOrProject: false,
|
|
686
|
-
access: [
|
|
687
|
-
{
|
|
688
|
-
userUuid: 'user-456',
|
|
689
|
-
role: SpaceMemberRole.EDITOR,
|
|
690
|
-
},
|
|
691
|
-
],
|
|
692
|
-
}))).toBe(false);
|
|
693
|
-
// Cannot manage space with viewer role
|
|
694
|
-
expect(ability.can('manage', subject('Space', {
|
|
695
|
-
organizationUuid: 'org-123',
|
|
696
|
-
inheritsFromOrgOrProject: false,
|
|
697
|
-
access: [
|
|
698
|
-
{
|
|
699
|
-
userUuid: 'user-456',
|
|
700
|
-
role: SpaceMemberRole.VIEWER,
|
|
701
|
-
},
|
|
702
|
-
],
|
|
703
|
-
}))).toBe(false);
|
|
704
|
-
});
|
|
705
|
-
});
|
|
706
|
-
describe('job and job status permissions', () => {
|
|
707
|
-
it('should handle view:job@self permissions', () => {
|
|
708
|
-
const contextWithUser = {
|
|
709
|
-
...baseContext,
|
|
710
|
-
userUuid: 'user-456',
|
|
711
|
-
};
|
|
712
|
-
const builder = new AbilityBuilder(Ability);
|
|
713
|
-
buildAbilityFromScopes({
|
|
714
|
-
...contextWithUser,
|
|
715
|
-
scopes: ['view:Job@self'],
|
|
716
|
-
}, builder);
|
|
717
|
-
const ability = builder.build();
|
|
718
|
-
// Can view own jobs
|
|
719
|
-
expect(ability.can('view', subject('Job', {
|
|
720
|
-
userUuid: 'user-456',
|
|
721
|
-
}))).toBe(true);
|
|
722
|
-
// Cannot view other users' jobs without manage permission
|
|
723
|
-
expect(ability.can('view', subject('Job', {
|
|
724
|
-
userUuid: 'other-user',
|
|
725
|
-
}))).toBe(false);
|
|
726
|
-
});
|
|
727
|
-
it('should handle view:job_status@self permissions for user context', () => {
|
|
728
|
-
const builder = new AbilityBuilder(Ability);
|
|
729
|
-
buildAbilityFromScopes({
|
|
730
|
-
...baseContext,
|
|
731
|
-
userUuid: 'user-456',
|
|
732
|
-
scopes: ['view:JobStatus@self'],
|
|
733
|
-
}, builder);
|
|
734
|
-
const ability = builder.build();
|
|
735
|
-
// Can view own job status
|
|
736
|
-
expect(ability.can('view', subject('JobStatus', {
|
|
737
|
-
createdByUserUuid: 'user-456',
|
|
738
|
-
}))).toBe(true);
|
|
739
|
-
// Cannot view other users' job status
|
|
740
|
-
expect(ability.can('view', subject('JobStatus', {
|
|
741
|
-
createdByUserUuid: 'other-user',
|
|
742
|
-
}))).toBe(false);
|
|
743
|
-
});
|
|
744
|
-
it('should handle view:job_status permissions for all job status', () => {
|
|
745
|
-
const builder = new AbilityBuilder(Ability);
|
|
746
|
-
buildAbilityFromScopes({
|
|
747
|
-
...baseContextWithOrg,
|
|
748
|
-
scopes: ['view:JobStatus'],
|
|
749
|
-
}, builder);
|
|
750
|
-
const ability = builder.build();
|
|
751
|
-
// Can view all job status in organization
|
|
752
|
-
expect(ability.can('view', subject('JobStatus', {
|
|
753
|
-
organizationUuid: 'org-123',
|
|
754
|
-
}))).toBe(true);
|
|
755
|
-
// Cannot view job status from another organization
|
|
756
|
-
expect(ability.can('view', subject('JobStatus', {
|
|
757
|
-
organizationUuid: 'different-org',
|
|
758
|
-
}))).toBe(false);
|
|
759
|
-
});
|
|
760
|
-
it('should handle view:job permissions for all jobs', () => {
|
|
761
|
-
const builder = new AbilityBuilder(Ability);
|
|
762
|
-
buildAbilityFromScopes({
|
|
763
|
-
...baseContext,
|
|
764
|
-
scopes: ['view:Job'],
|
|
765
|
-
}, builder);
|
|
766
|
-
const ability = builder.build();
|
|
767
|
-
// Can view any job
|
|
768
|
-
expect(ability.can('view', subject('Job', {
|
|
769
|
-
organizationUuid: 'org-123',
|
|
770
|
-
projectUuid: 'project-123',
|
|
771
|
-
userUuid: 'any-user',
|
|
772
|
-
}))).toBe(true);
|
|
773
|
-
});
|
|
774
|
-
});
|
|
775
|
-
describe('space-based permissions modifiers', () => {
|
|
776
|
-
it('should handle manage:dashboard@space permissions', () => {
|
|
777
|
-
const contextWithUser = {
|
|
778
|
-
...baseContextWithOrg,
|
|
779
|
-
userUuid: 'user-456',
|
|
780
|
-
};
|
|
781
|
-
const builder = new AbilityBuilder(Ability);
|
|
782
|
-
buildAbilityFromScopes({
|
|
783
|
-
...contextWithUser,
|
|
784
|
-
scopes: ['manage:Dashboard@space'],
|
|
785
|
-
}, builder);
|
|
786
|
-
const ability = builder.build();
|
|
787
|
-
// Can manage dashboard with editor role
|
|
788
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
789
|
-
organizationUuid: 'org-123',
|
|
790
|
-
access: [
|
|
791
|
-
{
|
|
792
|
-
userUuid: 'user-456',
|
|
793
|
-
role: SpaceMemberRole.EDITOR,
|
|
794
|
-
},
|
|
795
|
-
],
|
|
796
|
-
}))).toBe(true);
|
|
797
|
-
// Can manage dashboard with admin role
|
|
798
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
799
|
-
organizationUuid: 'org-123',
|
|
800
|
-
access: [
|
|
801
|
-
{
|
|
802
|
-
userUuid: 'user-456',
|
|
803
|
-
role: SpaceMemberRole.ADMIN,
|
|
804
|
-
},
|
|
805
|
-
],
|
|
806
|
-
}))).toBe(true);
|
|
807
|
-
// Cannot manage dashboard with viewer role
|
|
808
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
809
|
-
organizationUuid: 'org-123',
|
|
810
|
-
access: [
|
|
811
|
-
{
|
|
812
|
-
userUuid: 'user-456',
|
|
813
|
-
role: SpaceMemberRole.VIEWER,
|
|
814
|
-
},
|
|
815
|
-
],
|
|
816
|
-
}))).toBe(false);
|
|
817
|
-
// Cannot manage dashboard without access
|
|
818
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
819
|
-
organizationUuid: 'org-123',
|
|
820
|
-
access: [],
|
|
821
|
-
}))).toBe(false);
|
|
822
|
-
});
|
|
823
|
-
it('should handle manage:saved_chart@space permissions', () => {
|
|
824
|
-
const contextWithUser = {
|
|
825
|
-
...baseContext,
|
|
826
|
-
userUuid: 'user-456',
|
|
827
|
-
};
|
|
828
|
-
const builder = new AbilityBuilder(Ability);
|
|
829
|
-
buildAbilityFromScopes({
|
|
830
|
-
...contextWithUser,
|
|
831
|
-
scopes: ['manage:SavedChart@space'],
|
|
832
|
-
}, builder);
|
|
833
|
-
const ability = builder.build();
|
|
834
|
-
// Can manage saved chart with editor role
|
|
835
|
-
expect(ability.can('manage', subject('SavedChart', {
|
|
836
|
-
projectUuid: 'project-123',
|
|
837
|
-
access: [
|
|
838
|
-
{
|
|
839
|
-
userUuid: 'user-456',
|
|
840
|
-
role: SpaceMemberRole.EDITOR,
|
|
841
|
-
},
|
|
842
|
-
],
|
|
843
|
-
}))).toBe(true);
|
|
844
|
-
// Can manage saved chart with admin role
|
|
845
|
-
expect(ability.can('manage', subject('SavedChart', {
|
|
846
|
-
projectUuid: 'project-123',
|
|
847
|
-
access: [
|
|
848
|
-
{
|
|
849
|
-
userUuid: 'user-456',
|
|
850
|
-
role: SpaceMemberRole.ADMIN,
|
|
851
|
-
},
|
|
852
|
-
],
|
|
853
|
-
}))).toBe(true);
|
|
854
|
-
// Cannot manage without proper access
|
|
855
|
-
expect(ability.can('manage', subject('SavedChart', {
|
|
856
|
-
projectUuid: 'project-123',
|
|
857
|
-
access: [
|
|
858
|
-
{
|
|
859
|
-
userUuid: 'other-user',
|
|
860
|
-
role: SpaceMemberRole.EDITOR,
|
|
861
|
-
},
|
|
862
|
-
],
|
|
863
|
-
}))).toBe(false);
|
|
864
|
-
});
|
|
865
|
-
it('should handle promote:dashboard@space permissions', () => {
|
|
866
|
-
const contextWithUser = {
|
|
867
|
-
...baseContext,
|
|
868
|
-
userUuid: 'user-456',
|
|
869
|
-
};
|
|
870
|
-
const builder = new AbilityBuilder(Ability);
|
|
871
|
-
buildAbilityFromScopes({
|
|
872
|
-
...contextWithUser,
|
|
873
|
-
scopes: ['promote:Dashboard@space'],
|
|
874
|
-
}, builder);
|
|
875
|
-
const ability = builder.build();
|
|
876
|
-
// Can promote dashboard with editor access
|
|
877
|
-
expect(ability.can('promote', subject('Dashboard', {
|
|
878
|
-
projectUuid: 'project-123',
|
|
879
|
-
access: [
|
|
880
|
-
{
|
|
881
|
-
userUuid: 'user-456',
|
|
882
|
-
role: SpaceMemberRole.EDITOR,
|
|
883
|
-
},
|
|
884
|
-
],
|
|
885
|
-
}))).toBe(true);
|
|
886
|
-
// Can promote dashboard with admin access
|
|
887
|
-
expect(ability.can('promote', subject('Dashboard', {
|
|
888
|
-
projectUuid: 'project-123',
|
|
889
|
-
access: [
|
|
890
|
-
{
|
|
891
|
-
userUuid: 'user-456',
|
|
892
|
-
role: SpaceMemberRole.ADMIN,
|
|
893
|
-
},
|
|
894
|
-
],
|
|
895
|
-
}))).toBe(true);
|
|
896
|
-
// Cannot promote without editor or admin access
|
|
897
|
-
expect(ability.can('promote', subject('Dashboard', {
|
|
898
|
-
projectUuid: 'project-123',
|
|
899
|
-
access: [
|
|
900
|
-
{
|
|
901
|
-
userUuid: 'user-456',
|
|
902
|
-
role: SpaceMemberRole.VIEWER,
|
|
903
|
-
},
|
|
904
|
-
],
|
|
905
|
-
}))).toBe(false);
|
|
906
|
-
});
|
|
907
|
-
it('should handle promote:saved_chart@space permissions', () => {
|
|
908
|
-
const contextWithUser = {
|
|
909
|
-
...baseContext,
|
|
910
|
-
userUuid: 'user-456',
|
|
911
|
-
};
|
|
912
|
-
const builder = new AbilityBuilder(Ability);
|
|
913
|
-
buildAbilityFromScopes({
|
|
914
|
-
...contextWithUser,
|
|
915
|
-
scopes: ['promote:SavedChart@space'],
|
|
916
|
-
}, builder);
|
|
917
|
-
const ability = builder.build();
|
|
918
|
-
// Can promote chart with editor access
|
|
919
|
-
expect(ability.can('promote', subject('SavedChart', {
|
|
920
|
-
projectUuid: 'project-123',
|
|
921
|
-
access: [
|
|
922
|
-
{
|
|
923
|
-
userUuid: 'user-456',
|
|
924
|
-
role: SpaceMemberRole.EDITOR,
|
|
925
|
-
},
|
|
926
|
-
],
|
|
927
|
-
}))).toBe(true);
|
|
928
|
-
// Can promote chart with admin access
|
|
929
|
-
expect(ability.can('promote', subject('SavedChart', {
|
|
930
|
-
projectUuid: 'project-123',
|
|
931
|
-
access: [
|
|
932
|
-
{
|
|
933
|
-
userUuid: 'user-456',
|
|
934
|
-
role: SpaceMemberRole.ADMIN,
|
|
935
|
-
},
|
|
936
|
-
],
|
|
937
|
-
}))).toBe(true);
|
|
938
|
-
// Cannot promote without editor or admin access
|
|
939
|
-
expect(ability.can('promote', subject('SavedChart', {
|
|
940
|
-
projectUuid: 'project-123',
|
|
941
|
-
access: [
|
|
942
|
-
{
|
|
943
|
-
userUuid: 'user-456',
|
|
944
|
-
role: SpaceMemberRole.VIEWER,
|
|
945
|
-
},
|
|
946
|
-
],
|
|
947
|
-
}))).toBe(false);
|
|
948
|
-
});
|
|
949
|
-
it('should handle manage:semantic_viewer@space permissions', () => {
|
|
950
|
-
const contextWithUser = {
|
|
951
|
-
...baseContextWithOrg,
|
|
952
|
-
userUuid: 'user-456',
|
|
953
|
-
};
|
|
954
|
-
const builder = new AbilityBuilder(Ability);
|
|
955
|
-
buildAbilityFromScopes({
|
|
956
|
-
...contextWithUser,
|
|
957
|
-
scopes: ['manage:SemanticViewer@space'],
|
|
958
|
-
}, builder);
|
|
959
|
-
const ability = builder.build();
|
|
960
|
-
// Can manage semantic viewer with editor role
|
|
961
|
-
expect(ability.can('manage', subject('SemanticViewer', {
|
|
962
|
-
organizationUuid: 'org-123',
|
|
963
|
-
access: [
|
|
964
|
-
{
|
|
965
|
-
userUuid: 'user-456',
|
|
966
|
-
role: SpaceMemberRole.EDITOR,
|
|
967
|
-
},
|
|
968
|
-
],
|
|
969
|
-
}))).toBe(true);
|
|
970
|
-
// Cannot manage without editor role
|
|
971
|
-
expect(ability.can('manage', subject('SemanticViewer', {
|
|
972
|
-
organizationUuid: 'org-123',
|
|
973
|
-
access: [
|
|
974
|
-
{
|
|
975
|
-
userUuid: 'user-456',
|
|
976
|
-
role: SpaceMemberRole.VIEWER,
|
|
977
|
-
},
|
|
978
|
-
],
|
|
979
|
-
}))).toBe(false);
|
|
980
|
-
});
|
|
981
|
-
});
|
|
982
|
-
describe('semantic viewer permissions', () => {
|
|
983
|
-
it('should handle view:semantic_viewer permissions', () => {
|
|
984
|
-
const builder = new AbilityBuilder(Ability);
|
|
985
|
-
buildAbilityFromScopes({
|
|
986
|
-
...baseContext,
|
|
987
|
-
scopes: ['view:SemanticViewer'],
|
|
988
|
-
}, builder);
|
|
989
|
-
const ability = builder.build();
|
|
990
|
-
expect(ability.can('view', subject('SemanticViewer', {
|
|
991
|
-
organizationUuid: 'org-123',
|
|
992
|
-
projectUuid: 'project-123',
|
|
993
|
-
}))).toBe(true);
|
|
994
|
-
});
|
|
995
|
-
it('should handle manage:semantic_viewer with organization scope', () => {
|
|
996
|
-
const contextWithOrgManage = {
|
|
997
|
-
...baseContextWithOrg,
|
|
998
|
-
userUuid: 'user-456',
|
|
999
|
-
scopes: ['manage:Organization'],
|
|
1000
|
-
};
|
|
1001
|
-
const builder = new AbilityBuilder(Ability);
|
|
1002
|
-
buildAbilityFromScopes({
|
|
1003
|
-
...contextWithOrgManage,
|
|
1004
|
-
scopes: ['manage:Organization', 'manage:SemanticViewer'],
|
|
1005
|
-
}, builder);
|
|
1006
|
-
const ability = builder.build();
|
|
1007
|
-
// Can manage semantic viewer organization-wide
|
|
1008
|
-
expect(ability.can('manage', subject('SemanticViewer', {
|
|
1009
|
-
organizationUuid: 'org-123',
|
|
1010
|
-
}))).toBe(true);
|
|
1011
|
-
});
|
|
1012
|
-
it('should handle manage:semantic_viewer with editor role', () => {
|
|
1013
|
-
const contextWithUser = {
|
|
1014
|
-
...baseContextWithOrg,
|
|
1015
|
-
userUuid: 'user-456',
|
|
1016
|
-
};
|
|
1017
|
-
const builder = new AbilityBuilder(Ability);
|
|
1018
|
-
buildAbilityFromScopes({
|
|
1019
|
-
...contextWithUser,
|
|
1020
|
-
scopes: ['manage:SemanticViewer@space'],
|
|
1021
|
-
}, builder);
|
|
1022
|
-
const ability = builder.build();
|
|
1023
|
-
// Can manage semantic viewer with editor role
|
|
1024
|
-
expect(ability.can('manage', subject('SemanticViewer', {
|
|
1025
|
-
organizationUuid: 'org-123',
|
|
1026
|
-
access: [
|
|
1027
|
-
{
|
|
1028
|
-
userUuid: 'user-456',
|
|
1029
|
-
role: SpaceMemberRole.EDITOR,
|
|
1030
|
-
},
|
|
1031
|
-
],
|
|
1032
|
-
}))).toBe(true);
|
|
1033
|
-
// Cannot manage without proper access
|
|
1034
|
-
expect(ability.can('manage', subject('SemanticViewer', {
|
|
1035
|
-
organizationUuid: 'org-123',
|
|
1036
|
-
access: [
|
|
1037
|
-
{
|
|
1038
|
-
userUuid: 'user-456',
|
|
1039
|
-
role: SpaceMemberRole.VIEWER,
|
|
1040
|
-
},
|
|
1041
|
-
],
|
|
1042
|
-
}))).toBe(false);
|
|
1043
|
-
});
|
|
1044
|
-
});
|
|
1045
|
-
describe('create space permissions', () => {
|
|
1046
|
-
it('should handle create:space permissions', () => {
|
|
1047
|
-
const builder = new AbilityBuilder(Ability);
|
|
1048
|
-
buildAbilityFromScopes({
|
|
1049
|
-
...baseContext,
|
|
1050
|
-
scopes: ['create:Space'],
|
|
1051
|
-
}, builder);
|
|
1052
|
-
const ability = builder.build();
|
|
1053
|
-
expect(ability.can('create', subject('Space', {
|
|
1054
|
-
organizationUuid: 'org-123',
|
|
1055
|
-
projectUuid: 'project-123',
|
|
1056
|
-
}))).toBe(true);
|
|
1057
|
-
});
|
|
1058
|
-
});
|
|
1059
|
-
describe('export permissions', () => {
|
|
1060
|
-
it('should handle export csv permissions', () => {
|
|
1061
|
-
const builder = new AbilityBuilder(Ability);
|
|
1062
|
-
buildAbilityFromScopes({
|
|
1063
|
-
...baseContext,
|
|
1064
|
-
scopes: ['manage:ExportCsv'],
|
|
1065
|
-
}, builder);
|
|
1066
|
-
const ability = builder.build();
|
|
1067
|
-
expect(ability.can('manage', subject('ExportCsv', {
|
|
1068
|
-
organizationUuid: 'org-123',
|
|
1069
|
-
projectUuid: 'project-123',
|
|
1070
|
-
}))).toBe(true);
|
|
1071
|
-
});
|
|
1072
|
-
it('should handle change csv results permissions', () => {
|
|
1073
|
-
const builder = new AbilityBuilder(Ability);
|
|
1074
|
-
buildAbilityFromScopes({
|
|
1075
|
-
...baseContext,
|
|
1076
|
-
scopes: ['manage:ChangeCsvResults'],
|
|
1077
|
-
}, builder);
|
|
1078
|
-
const ability = builder.build();
|
|
1079
|
-
expect(ability.can('manage', subject('ChangeCsvResults', {
|
|
1080
|
-
organizationUuid: 'org-123',
|
|
1081
|
-
projectUuid: 'project-123',
|
|
1082
|
-
}))).toBe(true);
|
|
1083
|
-
});
|
|
1084
|
-
});
|
|
1085
|
-
describe('underlying data permissions', () => {
|
|
1086
|
-
it('should handle view:underlying_data permissions', () => {
|
|
1087
|
-
const builder = new AbilityBuilder(Ability);
|
|
1088
|
-
buildAbilityFromScopes({
|
|
1089
|
-
...baseContext,
|
|
1090
|
-
scopes: ['view:UnderlyingData'],
|
|
1091
|
-
}, builder);
|
|
1092
|
-
const ability = builder.build();
|
|
1093
|
-
expect(ability.can('view', subject('UnderlyingData', {
|
|
1094
|
-
organizationUuid: 'org-123',
|
|
1095
|
-
projectUuid: 'project-123',
|
|
1096
|
-
}))).toBe(true);
|
|
1097
|
-
});
|
|
1098
|
-
});
|
|
1099
|
-
describe('sql runner and custom sql permissions', () => {
|
|
1100
|
-
it('should handle manage:sql_runner permissions', () => {
|
|
1101
|
-
const builder = new AbilityBuilder(Ability);
|
|
1102
|
-
buildAbilityFromScopes({
|
|
1103
|
-
...baseContext,
|
|
1104
|
-
scopes: ['manage:SqlRunner'],
|
|
1105
|
-
}, builder);
|
|
1106
|
-
const ability = builder.build();
|
|
1107
|
-
expect(ability.can('manage', subject('SqlRunner', {
|
|
1108
|
-
organizationUuid: 'org-123',
|
|
1109
|
-
projectUuid: 'project-123',
|
|
1110
|
-
}))).toBe(true);
|
|
1111
|
-
});
|
|
1112
|
-
it('should handle manage:custom_sql permissions', () => {
|
|
1113
|
-
const builder = new AbilityBuilder(Ability);
|
|
1114
|
-
buildAbilityFromScopes({
|
|
1115
|
-
...baseContext,
|
|
1116
|
-
scopes: ['manage:CustomSql'],
|
|
1117
|
-
}, builder);
|
|
1118
|
-
const ability = builder.build();
|
|
1119
|
-
expect(ability.can('manage', subject('CustomSql', {
|
|
1120
|
-
organizationUuid: 'org-123',
|
|
1121
|
-
projectUuid: 'project-123',
|
|
1122
|
-
}))).toBe(true);
|
|
1123
|
-
});
|
|
1124
|
-
it('should grant view:compiled_sql without custom field authoring', () => {
|
|
1125
|
-
const builder = new AbilityBuilder(Ability);
|
|
1126
|
-
buildAbilityFromScopes({
|
|
1127
|
-
...baseContext,
|
|
1128
|
-
scopes: ['view:CompiledSql'],
|
|
1129
|
-
}, builder);
|
|
1130
|
-
const ability = builder.build();
|
|
1131
|
-
expect(ability.can('view', subject('CompiledSql', {
|
|
1132
|
-
organizationUuid: 'org-123',
|
|
1133
|
-
projectUuid: 'project-123',
|
|
1134
|
-
}))).toBe(true);
|
|
1135
|
-
expect(ability.can('manage', subject('CustomFields', {
|
|
1136
|
-
organizationUuid: 'org-123',
|
|
1137
|
-
projectUuid: 'project-123',
|
|
1138
|
-
}))).toBe(false);
|
|
1139
|
-
});
|
|
1140
|
-
});
|
|
1141
|
-
describe('project delete permissions', () => {
|
|
1142
|
-
it('should handle delete:project@self permissions', () => {
|
|
1143
|
-
const builder = new AbilityBuilder(Ability);
|
|
1144
|
-
buildAbilityFromScopes({
|
|
1145
|
-
...baseContext,
|
|
1146
|
-
userUuid: 'user-456',
|
|
1147
|
-
scopes: ['delete:Project@self'],
|
|
1148
|
-
}, builder);
|
|
1149
|
-
const ability = builder.build();
|
|
1150
|
-
// Can delete specific project
|
|
1151
|
-
expect(ability.can('delete', subject('Project', {
|
|
1152
|
-
projectUuid: 'project-123',
|
|
1153
|
-
createdByUserUuid: 'user-456',
|
|
1154
|
-
type: ProjectType.PREVIEW,
|
|
1155
|
-
}))).toBe(true);
|
|
1156
|
-
expect(ability.can('delete', subject('Project', {
|
|
1157
|
-
projectUuid: 'project-123',
|
|
1158
|
-
createdByUserUuid: 'different-user',
|
|
1159
|
-
type: ProjectType.PREVIEW,
|
|
1160
|
-
}))).toBe(false);
|
|
1161
|
-
});
|
|
1162
|
-
it('should handle delete:project@self for own preview projects', () => {
|
|
1163
|
-
const builder = new AbilityBuilder(Ability);
|
|
1164
|
-
buildAbilityFromScopes({
|
|
1165
|
-
...baseContext,
|
|
1166
|
-
userUuid: 'user-456',
|
|
1167
|
-
scopes: ['delete:Project@self'],
|
|
1168
|
-
}, builder);
|
|
1169
|
-
const ability = builder.build();
|
|
1170
|
-
// Can delete preview projects in a project
|
|
1171
|
-
expect(ability.can('delete', subject('Project', {
|
|
1172
|
-
projectUuid: 'project-123',
|
|
1173
|
-
createdByUserUuid: 'user-456',
|
|
1174
|
-
type: ProjectType.PREVIEW,
|
|
1175
|
-
}))).toBe(true);
|
|
1176
|
-
// Cannot delete default projects
|
|
1177
|
-
expect(ability.can('delete', subject('Project', {
|
|
1178
|
-
projectUuid: 'project-123',
|
|
1179
|
-
createdByUserUuid: 'user-456',
|
|
1180
|
-
type: ProjectType.DEFAULT,
|
|
1181
|
-
}))).toBe(false);
|
|
1182
|
-
});
|
|
1183
|
-
});
|
|
1184
|
-
describe('pinned items permissions', () => {
|
|
1185
|
-
it('should handle view:pinned_items permissions', () => {
|
|
1186
|
-
const builder = new AbilityBuilder(Ability);
|
|
1187
|
-
buildAbilityFromScopes({
|
|
1188
|
-
...baseContext,
|
|
1189
|
-
scopes: ['view:PinnedItems'],
|
|
1190
|
-
}, builder);
|
|
1191
|
-
const ability = builder.build();
|
|
1192
|
-
expect(ability.can('view', subject('PinnedItems', {
|
|
1193
|
-
organizationUuid: 'org-123',
|
|
1194
|
-
projectUuid: 'project-123',
|
|
1195
|
-
}))).toBe(true);
|
|
1196
|
-
});
|
|
1197
|
-
it('should handle manage:pinned_items permissions', () => {
|
|
1198
|
-
const builder = new AbilityBuilder(Ability);
|
|
1199
|
-
buildAbilityFromScopes({
|
|
1200
|
-
...baseContext,
|
|
1201
|
-
scopes: ['manage:PinnedItems'],
|
|
1202
|
-
}, builder);
|
|
1203
|
-
const ability = builder.build();
|
|
1204
|
-
expect(ability.can('manage', subject('PinnedItems', {
|
|
1205
|
-
organizationUuid: 'org-123',
|
|
1206
|
-
projectUuid: 'project-123',
|
|
1207
|
-
}))).toBe(true);
|
|
1208
|
-
});
|
|
1209
|
-
});
|
|
1210
|
-
describe('explore permissions', () => {
|
|
1211
|
-
it('should handle manage:explore permissions', () => {
|
|
1212
|
-
const builder = new AbilityBuilder(Ability);
|
|
1213
|
-
buildAbilityFromScopes({
|
|
1214
|
-
...baseContext,
|
|
1215
|
-
scopes: ['manage:Explore'],
|
|
1216
|
-
}, builder);
|
|
1217
|
-
const ability = builder.build();
|
|
1218
|
-
expect(ability.can('manage', subject('Explore', {
|
|
1219
|
-
organizationUuid: 'org-123',
|
|
1220
|
-
projectUuid: 'project-123',
|
|
1221
|
-
}))).toBe(true);
|
|
1222
|
-
});
|
|
1223
|
-
});
|
|
1224
|
-
describe('virtual view permissions', () => {
|
|
1225
|
-
it('should handle create:virtual_view permissions', () => {
|
|
1226
|
-
const builder = new AbilityBuilder(Ability);
|
|
1227
|
-
buildAbilityFromScopes({
|
|
1228
|
-
...baseContext,
|
|
1229
|
-
scopes: ['create:VirtualView'],
|
|
1230
|
-
}, builder);
|
|
1231
|
-
const ability = builder.build();
|
|
1232
|
-
expect(ability.can('create', subject('VirtualView', {
|
|
1233
|
-
organizationUuid: 'org-123',
|
|
1234
|
-
projectUuid: 'project-123',
|
|
1235
|
-
}))).toBe(true);
|
|
1236
|
-
// Should not be able to delete with create scope
|
|
1237
|
-
expect(ability.can('delete', subject('VirtualView', {
|
|
1238
|
-
organizationUuid: 'org-123',
|
|
1239
|
-
projectUuid: 'project-123',
|
|
1240
|
-
}))).toBe(false);
|
|
1241
|
-
});
|
|
1242
|
-
it('should handle delete:virtual_view permissions', () => {
|
|
1243
|
-
const builder = new AbilityBuilder(Ability);
|
|
1244
|
-
buildAbilityFromScopes({
|
|
1245
|
-
...baseContext,
|
|
1246
|
-
scopes: ['delete:VirtualView'],
|
|
1247
|
-
}, builder);
|
|
1248
|
-
const ability = builder.build();
|
|
1249
|
-
expect(ability.can('delete', subject('VirtualView', {
|
|
1250
|
-
organizationUuid: 'org-123',
|
|
1251
|
-
projectUuid: 'project-123',
|
|
1252
|
-
}))).toBe(true);
|
|
1253
|
-
// Should not be able to create with delete scope
|
|
1254
|
-
expect(ability.can('create', subject('VirtualView', {
|
|
1255
|
-
organizationUuid: 'org-123',
|
|
1256
|
-
projectUuid: 'project-123',
|
|
1257
|
-
}))).toBe(false);
|
|
1258
|
-
});
|
|
1259
|
-
it('should handle manage:virtual_view permissions for both create and delete', () => {
|
|
1260
|
-
const builder = new AbilityBuilder(Ability);
|
|
1261
|
-
buildAbilityFromScopes({
|
|
1262
|
-
...baseContext,
|
|
1263
|
-
scopes: ['manage:VirtualView'],
|
|
1264
|
-
}, builder);
|
|
1265
|
-
const ability = builder.build();
|
|
1266
|
-
// Should be able to manage (create and delete)
|
|
1267
|
-
expect(ability.can('manage', subject('VirtualView', {
|
|
1268
|
-
organizationUuid: 'org-123',
|
|
1269
|
-
projectUuid: 'project-123',
|
|
1270
|
-
}))).toBe(true);
|
|
1271
|
-
// Manage scope should allow both create and delete actions
|
|
1272
|
-
expect(ability.can('create', subject('VirtualView', {
|
|
1273
|
-
organizationUuid: 'org-123',
|
|
1274
|
-
projectUuid: 'project-123',
|
|
1275
|
-
}))).toBe(true);
|
|
1276
|
-
expect(ability.can('delete', subject('VirtualView', {
|
|
1277
|
-
organizationUuid: 'org-123',
|
|
1278
|
-
projectUuid: 'project-123',
|
|
1279
|
-
}))).toBe(true);
|
|
1280
|
-
});
|
|
1281
|
-
it('should not allow virtual view actions for different organizations', () => {
|
|
1282
|
-
const builder = new AbilityBuilder(Ability);
|
|
1283
|
-
buildAbilityFromScopes({
|
|
1284
|
-
...baseContextWithOrg,
|
|
1285
|
-
scopes: [
|
|
1286
|
-
'create:VirtualView',
|
|
1287
|
-
'delete:VirtualView',
|
|
1288
|
-
'manage:VirtualView',
|
|
1289
|
-
],
|
|
1290
|
-
}, builder);
|
|
1291
|
-
const ability = builder.build();
|
|
1292
|
-
// Should not access virtual views from different org
|
|
1293
|
-
expect(ability.can('create', subject('VirtualView', {
|
|
1294
|
-
organizationUuid: 'different-org',
|
|
1295
|
-
projectUuid: 'project-123',
|
|
1296
|
-
}))).toBe(false);
|
|
1297
|
-
expect(ability.can('delete', subject('VirtualView', {
|
|
1298
|
-
organizationUuid: 'different-org',
|
|
1299
|
-
projectUuid: 'project-123',
|
|
1300
|
-
}))).toBe(false);
|
|
1301
|
-
expect(ability.can('manage', subject('VirtualView', {
|
|
1302
|
-
organizationUuid: 'different-org',
|
|
1303
|
-
projectUuid: 'project-123',
|
|
1304
|
-
}))).toBe(false);
|
|
1305
|
-
});
|
|
1306
|
-
it('should allow virtual view actions for different projects within same organization', () => {
|
|
1307
|
-
const builder = new AbilityBuilder(Ability);
|
|
1308
|
-
buildAbilityFromScopes({
|
|
1309
|
-
...baseContextWithOrg,
|
|
1310
|
-
scopes: [
|
|
1311
|
-
'create:VirtualView',
|
|
1312
|
-
'delete:VirtualView',
|
|
1313
|
-
'manage:VirtualView',
|
|
1314
|
-
],
|
|
1315
|
-
}, builder);
|
|
1316
|
-
const ability = builder.build();
|
|
1317
|
-
// Virtual view permissions are organization-scoped, not project-scoped
|
|
1318
|
-
// So they should work across different projects within the same org
|
|
1319
|
-
expect(ability.can('create', subject('VirtualView', {
|
|
1320
|
-
organizationUuid: 'org-123',
|
|
1321
|
-
projectUuid: 'different-project',
|
|
1322
|
-
}))).toBe(true);
|
|
1323
|
-
expect(ability.can('delete', subject('VirtualView', {
|
|
1324
|
-
organizationUuid: 'org-123',
|
|
1325
|
-
projectUuid: 'different-project',
|
|
1326
|
-
}))).toBe(true);
|
|
1327
|
-
expect(ability.can('manage', subject('VirtualView', {
|
|
1328
|
-
organizationUuid: 'org-123',
|
|
1329
|
-
projectUuid: 'different-project',
|
|
1330
|
-
}))).toBe(true);
|
|
1331
|
-
});
|
|
1332
|
-
});
|
|
1333
|
-
describe('organization member profile permissions', () => {
|
|
1334
|
-
it('should handle view:organization_member_profile permissions', () => {
|
|
1335
|
-
const builder = new AbilityBuilder(Ability);
|
|
1336
|
-
buildAbilityFromScopes({
|
|
1337
|
-
...baseContextWithOrg,
|
|
1338
|
-
scopes: ['view:OrganizationMemberProfile'],
|
|
1339
|
-
}, builder);
|
|
1340
|
-
const ability = builder.build();
|
|
1341
|
-
expect(ability.can('view', subject('OrganizationMemberProfile', {
|
|
1342
|
-
organizationUuid: 'org-123',
|
|
1343
|
-
projectUuid: 'project-123',
|
|
1344
|
-
}))).toBe(true);
|
|
1345
|
-
// Cannot view profiles from different project
|
|
1346
|
-
expect(ability.can('view', subject('OrganizationMemberProfile', {
|
|
1347
|
-
organizationUuid: 'different-org',
|
|
1348
|
-
projectUuid: 'project-123',
|
|
1349
|
-
}))).toBe(false);
|
|
1350
|
-
});
|
|
1351
|
-
it('should handle manage:organization_member_profile permissions', () => {
|
|
1352
|
-
const builder = new AbilityBuilder(Ability);
|
|
1353
|
-
buildAbilityFromScopes({
|
|
1354
|
-
...baseContext,
|
|
1355
|
-
scopes: ['manage:OrganizationMemberProfile'],
|
|
1356
|
-
}, builder);
|
|
1357
|
-
const ability = builder.build();
|
|
1358
|
-
expect(ability.can('manage', subject('OrganizationMemberProfile', {
|
|
1359
|
-
organizationUuid: 'org-123',
|
|
1360
|
-
projectUuid: 'project-123',
|
|
1361
|
-
}))).toBe(true);
|
|
1362
|
-
});
|
|
1363
|
-
});
|
|
1364
|
-
describe('personal access token permissions', () => {
|
|
1365
|
-
it('should allow managing PAT when enabled and user has allowed role', () => {
|
|
1366
|
-
const builder = new AbilityBuilder(Ability);
|
|
1367
|
-
buildAbilityFromScopes({
|
|
1368
|
-
...baseContext,
|
|
1369
|
-
isEnterprise: true,
|
|
1370
|
-
organizationRole: 'admin',
|
|
1371
|
-
scopes: ['manage:PersonalAccessToken'],
|
|
1372
|
-
permissionsConfig: {
|
|
1373
|
-
pat: {
|
|
1374
|
-
enabled: true,
|
|
1375
|
-
allowedOrgRoles: ['admin', 'developer'],
|
|
1376
|
-
},
|
|
1377
|
-
},
|
|
1378
|
-
}, builder);
|
|
1379
|
-
const ability = builder.build();
|
|
1380
|
-
expect(ability.can('manage', 'PersonalAccessToken')).toBe(true);
|
|
1381
|
-
});
|
|
1382
|
-
it('should not allow managing PAT when disabled', () => {
|
|
1383
|
-
const builder = new AbilityBuilder(Ability);
|
|
1384
|
-
buildAbilityFromScopes({
|
|
1385
|
-
...baseContext,
|
|
1386
|
-
isEnterprise: true,
|
|
1387
|
-
organizationRole: 'admin',
|
|
1388
|
-
scopes: ['manage:PersonalAccessToken'],
|
|
1389
|
-
permissionsConfig: {
|
|
1390
|
-
pat: {
|
|
1391
|
-
enabled: false,
|
|
1392
|
-
allowedOrgRoles: ['admin', 'developer'],
|
|
1393
|
-
},
|
|
1394
|
-
},
|
|
1395
|
-
}, builder);
|
|
1396
|
-
const ability = builder.build();
|
|
1397
|
-
expect(ability.can('manage', subject('PersonalAccessToken', {}))).toBe(false);
|
|
1398
|
-
});
|
|
1399
|
-
it('should not allow managing PAT when user role not in allowed roles', () => {
|
|
1400
|
-
const builder = new AbilityBuilder(Ability);
|
|
1401
|
-
buildAbilityFromScopes({
|
|
1402
|
-
...baseContext,
|
|
1403
|
-
isEnterprise: true,
|
|
1404
|
-
organizationRole: 'developer',
|
|
1405
|
-
scopes: ['manage:PersonalAccessToken'],
|
|
1406
|
-
permissionsConfig: {
|
|
1407
|
-
pat: {
|
|
1408
|
-
enabled: true,
|
|
1409
|
-
allowedOrgRoles: ['admin'],
|
|
1410
|
-
},
|
|
1411
|
-
},
|
|
1412
|
-
}, builder);
|
|
1413
|
-
const ability = builder.build();
|
|
1414
|
-
expect(ability.can('manage', subject('PersonalAccessToken', {}))).toBe(false);
|
|
1415
|
-
});
|
|
1416
|
-
it('should not allow managing PAT when no permissions config provided', () => {
|
|
1417
|
-
const builder = new AbilityBuilder(Ability);
|
|
1418
|
-
buildAbilityFromScopes({
|
|
1419
|
-
...baseContext,
|
|
1420
|
-
isEnterprise: true,
|
|
1421
|
-
organizationRole: 'admin',
|
|
1422
|
-
scopes: ['manage:PersonalAccessToken'],
|
|
1423
|
-
// No permissionsConfig provided
|
|
1424
|
-
}, builder);
|
|
1425
|
-
const ability = builder.build();
|
|
1426
|
-
expect(ability.can('manage', subject('PersonalAccessToken', {}))).toBe(false);
|
|
1427
|
-
});
|
|
1428
|
-
it('should not allow managing PAT when no organization role provided', () => {
|
|
1429
|
-
const builder = new AbilityBuilder(Ability);
|
|
1430
|
-
buildAbilityFromScopes({
|
|
1431
|
-
...baseContext,
|
|
1432
|
-
isEnterprise: true,
|
|
1433
|
-
organizationRole: '', // Empty organization role
|
|
1434
|
-
scopes: ['manage:PersonalAccessToken'],
|
|
1435
|
-
permissionsConfig: {
|
|
1436
|
-
pat: {
|
|
1437
|
-
enabled: true,
|
|
1438
|
-
allowedOrgRoles: ['admin', 'developer'],
|
|
1439
|
-
},
|
|
1440
|
-
},
|
|
1441
|
-
}, builder);
|
|
1442
|
-
const ability = builder.build();
|
|
1443
|
-
expect(ability.can('manage', subject('PersonalAccessToken', {}))).toBe(false);
|
|
1444
|
-
});
|
|
1445
|
-
});
|
|
1446
|
-
describe('content as code permissions', () => {
|
|
1447
|
-
const enterpriseContext = {
|
|
1448
|
-
...baseContext,
|
|
1449
|
-
userUuid: 'user-456',
|
|
1450
|
-
isEnterprise: true,
|
|
1451
|
-
};
|
|
1452
|
-
// Read endpoints (download) check `view`; write endpoints (upload)
|
|
1453
|
-
// check `manage`. Splitting the scope lets a custom role grant
|
|
1454
|
-
// download without upload (the PROD-7379 safeguard for production).
|
|
1455
|
-
const contentAsCodeSubject = subject('ContentAsCode', {
|
|
1456
|
-
organizationUuid: 'org-123',
|
|
1457
|
-
projectUuid: 'project-123',
|
|
1458
|
-
});
|
|
1459
|
-
const buildAbility = (scopes) => {
|
|
1460
|
-
const builder = new AbilityBuilder(Ability);
|
|
1461
|
-
buildAbilityFromScopes({ ...enterpriseContext, scopes }, builder);
|
|
1462
|
-
return builder.build();
|
|
1463
|
-
};
|
|
1464
|
-
it('view:ContentAsCode allows download but not upload (PROD-7379)', () => {
|
|
1465
|
-
const ability = buildAbility(['view:ContentAsCode']);
|
|
1466
|
-
// Can download (view) content as code
|
|
1467
|
-
expect(ability.can('view', contentAsCodeSubject)).toBe(true);
|
|
1468
|
-
// Cannot upload (manage) — the safeguard this feature adds
|
|
1469
|
-
expect(ability.can('manage', contentAsCodeSubject)).toBe(false);
|
|
1470
|
-
});
|
|
1471
|
-
it('manage:ContentAsCode allows download and upload', () => {
|
|
1472
|
-
const ability = buildAbility(['manage:ContentAsCode']);
|
|
1473
|
-
// `manage` implies `view`, so existing manage holders keep download
|
|
1474
|
-
expect(ability.can('view', contentAsCodeSubject)).toBe(true);
|
|
1475
|
-
expect(ability.can('manage', contentAsCodeSubject)).toBe(true);
|
|
1476
|
-
});
|
|
1477
|
-
it('create:ContentAsCode allows upload but not manage', () => {
|
|
1478
|
-
const ability = buildAbility(['create:ContentAsCode']);
|
|
1479
|
-
expect(ability.can('create', contentAsCodeSubject)).toBe(true);
|
|
1480
|
-
expect(ability.can('manage', contentAsCodeSubject)).toBe(false);
|
|
1481
|
-
});
|
|
1482
|
-
it('manage:ContentAsCode@self allows upload only to own previews from the granted project', () => {
|
|
1483
|
-
const ability = buildAbility(['manage:ContentAsCode@self']);
|
|
1484
|
-
const ownPreviewFromDirectProject = subject('ContentAsCode', {
|
|
1485
|
-
organizationUuid: 'org-123',
|
|
1486
|
-
projectUuid: 'project-123',
|
|
1487
|
-
upstreamProjectUuid: 'upstream-project',
|
|
1488
|
-
type: ProjectType.PREVIEW,
|
|
1489
|
-
createdByUserUuid: 'user-456',
|
|
1490
|
-
});
|
|
1491
|
-
const ownPreviewFromUpstreamProject = subject('ContentAsCode', {
|
|
1492
|
-
organizationUuid: 'org-123',
|
|
1493
|
-
projectUuid: 'preview-123',
|
|
1494
|
-
upstreamProjectUuid: 'project-123',
|
|
1495
|
-
type: ProjectType.PREVIEW,
|
|
1496
|
-
createdByUserUuid: 'user-456',
|
|
1497
|
-
});
|
|
1498
|
-
const ownProduction = subject('ContentAsCode', {
|
|
1499
|
-
organizationUuid: 'org-123',
|
|
1500
|
-
projectUuid: 'project-123',
|
|
1501
|
-
type: ProjectType.DEFAULT,
|
|
1502
|
-
createdByUserUuid: 'user-456',
|
|
1503
|
-
});
|
|
1504
|
-
const othersPreview = subject('ContentAsCode', {
|
|
1505
|
-
organizationUuid: 'org-123',
|
|
1506
|
-
projectUuid: 'preview-123',
|
|
1507
|
-
upstreamProjectUuid: 'project-123',
|
|
1508
|
-
type: ProjectType.PREVIEW,
|
|
1509
|
-
createdByUserUuid: 'another-user',
|
|
1510
|
-
});
|
|
1511
|
-
const ownPreviewFromAnotherProject = subject('ContentAsCode', {
|
|
1512
|
-
organizationUuid: 'org-123',
|
|
1513
|
-
projectUuid: 'preview-456',
|
|
1514
|
-
upstreamProjectUuid: 'another-project',
|
|
1515
|
-
type: ProjectType.PREVIEW,
|
|
1516
|
-
createdByUserUuid: 'user-456',
|
|
1517
|
-
});
|
|
1518
|
-
// Can upload to a preview project they created
|
|
1519
|
-
expect(ability.can('manage', ownPreviewFromDirectProject)).toBe(true);
|
|
1520
|
-
expect(ability.can('manage', ownPreviewFromUpstreamProject)).toBe(true);
|
|
1521
|
-
// Cannot upload to production, even their own
|
|
1522
|
-
expect(ability.can('manage', ownProduction)).toBe(false);
|
|
1523
|
-
// Cannot upload to a preview created by someone else
|
|
1524
|
-
expect(ability.can('manage', othersPreview)).toBe(false);
|
|
1525
|
-
expect(ability.can('manage', ownPreviewFromAnotherProject)).toBe(false);
|
|
1526
|
-
// Does not grant blanket manage when the subject lacks self context
|
|
1527
|
-
expect(ability.can('manage', contentAsCodeSubject)).toBe(false);
|
|
1528
|
-
});
|
|
1529
|
-
it('content as code scopes are gated behind enterprise', () => {
|
|
1530
|
-
const builder = new AbilityBuilder(Ability);
|
|
1531
|
-
buildAbilityFromScopes({
|
|
1532
|
-
...baseContext,
|
|
1533
|
-
userUuid: 'user-456',
|
|
1534
|
-
isEnterprise: false,
|
|
1535
|
-
scopes: ['view:ContentAsCode', 'manage:ContentAsCode'],
|
|
1536
|
-
}, builder);
|
|
1537
|
-
const ability = builder.build();
|
|
1538
|
-
expect(ability.rules.length).toBe(0);
|
|
1539
|
-
});
|
|
1540
|
-
});
|
|
1541
|
-
describe('selfPreview scopes', () => {
|
|
1542
|
-
const selfPreviewContext = {
|
|
1543
|
-
...baseContext,
|
|
1544
|
-
projectType: ProjectType.PREVIEW,
|
|
1545
|
-
projectCreatedByUserUuid: 'user1',
|
|
1546
|
-
};
|
|
1547
|
-
const buildWith = (context, scopes) => {
|
|
1548
|
-
const builder = new AbilityBuilder(Ability);
|
|
1549
|
-
buildAbilityFromScopes({ ...context, scopes }, builder);
|
|
1550
|
-
return builder.build();
|
|
1551
|
-
};
|
|
1552
|
-
it('manage:Dashboard@self grants manage in own preview, bounded to viewable spaces', () => {
|
|
1553
|
-
const ability = buildWith(selfPreviewContext, [
|
|
1554
|
-
'manage:Dashboard@self',
|
|
1555
|
-
]);
|
|
1556
|
-
// Public/shared space → editable
|
|
1557
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
1558
|
-
organizationUuid: 'org-123',
|
|
1559
|
-
projectUuid: 'project-123',
|
|
1560
|
-
inheritsFromOrgOrProject: true,
|
|
1561
|
-
access: [],
|
|
1562
|
-
}))).toBe(true);
|
|
1563
|
-
// Private space the user is a member of → editable
|
|
1564
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
1565
|
-
organizationUuid: 'org-123',
|
|
1566
|
-
projectUuid: 'project-123',
|
|
1567
|
-
inheritsFromOrgOrProject: false,
|
|
1568
|
-
access: [{ userUuid: 'user1' }],
|
|
1569
|
-
}))).toBe(true);
|
|
1570
|
-
// Private space the user is NOT a member of → invisible + uneditable
|
|
1571
|
-
// (manage implies view, so this is the leak being closed)
|
|
1572
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
1573
|
-
organizationUuid: 'org-123',
|
|
1574
|
-
projectUuid: 'project-123',
|
|
1575
|
-
inheritsFromOrgOrProject: false,
|
|
1576
|
-
access: [],
|
|
1577
|
-
}))).toBe(false);
|
|
1578
|
-
// Other projects unaffected
|
|
1579
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
1580
|
-
organizationUuid: 'org-123',
|
|
1581
|
-
projectUuid: 'other-project',
|
|
1582
|
-
inheritsFromOrgOrProject: true,
|
|
1583
|
-
access: [],
|
|
1584
|
-
}))).toBe(false);
|
|
1585
|
-
});
|
|
1586
|
-
it('manage:SavedChart@self grants manage in own preview, bounded to viewable spaces', () => {
|
|
1587
|
-
const ability = buildWith(selfPreviewContext, [
|
|
1588
|
-
'manage:SavedChart@self',
|
|
1589
|
-
]);
|
|
1590
|
-
// Public/shared space → editable
|
|
1591
|
-
expect(ability.can('manage', subject('SavedChart', {
|
|
1592
|
-
organizationUuid: 'org-123',
|
|
1593
|
-
projectUuid: 'project-123',
|
|
1594
|
-
inheritsFromOrgOrProject: true,
|
|
1595
|
-
access: [],
|
|
1596
|
-
}))).toBe(true);
|
|
1597
|
-
// Private space the user is a member of → editable
|
|
1598
|
-
expect(ability.can('manage', subject('SavedChart', {
|
|
1599
|
-
organizationUuid: 'org-123',
|
|
1600
|
-
projectUuid: 'project-123',
|
|
1601
|
-
inheritsFromOrgOrProject: false,
|
|
1602
|
-
access: [{ userUuid: 'user1' }],
|
|
1603
|
-
}))).toBe(true);
|
|
1604
|
-
// Private space the user is NOT a member of → invisible + uneditable
|
|
1605
|
-
expect(ability.can('manage', subject('SavedChart', {
|
|
1606
|
-
organizationUuid: 'org-123',
|
|
1607
|
-
projectUuid: 'project-123',
|
|
1608
|
-
inheritsFromOrgOrProject: false,
|
|
1609
|
-
access: [],
|
|
1610
|
-
}))).toBe(false);
|
|
1611
|
-
expect(ability.can('manage', subject('SavedChart', {
|
|
1612
|
-
organizationUuid: 'org-123',
|
|
1613
|
-
projectUuid: 'other-project',
|
|
1614
|
-
inheritsFromOrgOrProject: true,
|
|
1615
|
-
access: [],
|
|
1616
|
-
}))).toBe(false);
|
|
1617
|
-
});
|
|
1618
|
-
it('manage:Space@self grants manage in own preview, bounded to viewable spaces but allowing creation', () => {
|
|
1619
|
-
const ability = buildWith(selfPreviewContext, [
|
|
1620
|
-
'manage:Space@self',
|
|
1621
|
-
]);
|
|
1622
|
-
// Public/shared space → editable
|
|
1623
|
-
expect(ability.can('manage', subject('Space', {
|
|
1624
|
-
organizationUuid: 'org-123',
|
|
1625
|
-
projectUuid: 'project-123',
|
|
1626
|
-
inheritsFromOrgOrProject: true,
|
|
1627
|
-
access: [],
|
|
1628
|
-
}))).toBe(true);
|
|
1629
|
-
// Private space the user is a member of → editable
|
|
1630
|
-
expect(ability.can('manage', subject('Space', {
|
|
1631
|
-
organizationUuid: 'org-123',
|
|
1632
|
-
projectUuid: 'project-123',
|
|
1633
|
-
inheritsFromOrgOrProject: false,
|
|
1634
|
-
access: [{ userUuid: 'user1' }],
|
|
1635
|
-
}))).toBe(true);
|
|
1636
|
-
// Private space the user is NOT a member of → uneditable, and can't
|
|
1637
|
-
// self-add access to escalate into copied private content
|
|
1638
|
-
expect(ability.can('manage', subject('Space', {
|
|
1639
|
-
organizationUuid: 'org-123',
|
|
1640
|
-
projectUuid: 'project-123',
|
|
1641
|
-
inheritsFromOrgOrProject: false,
|
|
1642
|
-
access: [],
|
|
1643
|
-
}))).toBe(false);
|
|
1644
|
-
// Creating a brand-new space: metadata-only subject (no access field)
|
|
1645
|
-
// → still allowed inside the own preview
|
|
1646
|
-
expect(ability.can('create', subject('Space', {
|
|
1647
|
-
organizationUuid: 'org-123',
|
|
1648
|
-
projectUuid: 'project-123',
|
|
1649
|
-
metadata: { spaceName: 'New space' },
|
|
1650
|
-
}))).toBe(true);
|
|
1651
|
-
// ...but not in another project
|
|
1652
|
-
expect(ability.can('create', subject('Space', {
|
|
1653
|
-
organizationUuid: 'org-123',
|
|
1654
|
-
projectUuid: 'other-project',
|
|
1655
|
-
metadata: { spaceName: 'New space' },
|
|
1656
|
-
}))).toBe(false);
|
|
1657
|
-
});
|
|
1658
|
-
it('manage:Explore@self grants explore/query access in own preview project', () => {
|
|
1659
|
-
const ability = buildWith(selfPreviewContext, [
|
|
1660
|
-
'manage:Explore@self',
|
|
1661
|
-
]);
|
|
1662
|
-
expect(ability.can('manage', subject('Explore', {
|
|
1663
|
-
organizationUuid: 'org-123',
|
|
1664
|
-
projectUuid: 'project-123',
|
|
1665
|
-
}))).toBe(true);
|
|
1666
|
-
expect(ability.can('manage', subject('Explore', {
|
|
1667
|
-
organizationUuid: 'org-123',
|
|
1668
|
-
projectUuid: 'other-project',
|
|
1669
|
-
}))).toBe(false);
|
|
1670
|
-
});
|
|
1671
|
-
it('project-management @self scopes match own previews from the granted upstream project', () => {
|
|
1672
|
-
const ability = buildWith(baseContext, [
|
|
1673
|
-
'manage:DeployProject@self',
|
|
1674
|
-
'update:Project@self',
|
|
1675
|
-
'delete:Project@self',
|
|
1676
|
-
]);
|
|
1677
|
-
const ownPreviewFromProject = () => ({
|
|
1678
|
-
organizationUuid: 'org-123',
|
|
1679
|
-
projectUuid: 'preview-123',
|
|
1680
|
-
upstreamProjectUuid: 'project-123',
|
|
1681
|
-
type: ProjectType.PREVIEW,
|
|
1682
|
-
createdByUserUuid: 'user1',
|
|
1683
|
-
});
|
|
1684
|
-
const ownPreviewFromAnotherProject = {
|
|
1685
|
-
...ownPreviewFromProject(),
|
|
1686
|
-
projectUuid: 'preview-456',
|
|
1687
|
-
upstreamProjectUuid: 'another-project',
|
|
1688
|
-
};
|
|
1689
|
-
expect(ability.can('manage', subject('DeployProject', ownPreviewFromProject()))).toBe(true);
|
|
1690
|
-
expect(ability.can('update', subject('Project', ownPreviewFromProject()))).toBe(true);
|
|
1691
|
-
expect(ability.can('delete', subject('Project', ownPreviewFromProject()))).toBe(true);
|
|
1692
|
-
expect(ability.can('manage', subject('DeployProject', ownPreviewFromAnotherProject))).toBe(false);
|
|
1693
|
-
});
|
|
1694
|
-
it('org-level @self scopes match only previews created by the user', () => {
|
|
1695
|
-
const ability = buildWith({ ...baseContextWithOrg, userUuid: 'user1' }, ['manage:DeployProject@self']);
|
|
1696
|
-
const builderWithoutUser = new AbilityBuilder(Ability);
|
|
1697
|
-
buildAbilityFromScopes({
|
|
1698
|
-
...baseContextWithOrg,
|
|
1699
|
-
userUuid: undefined,
|
|
1700
|
-
scopes: ['manage:DeployProject@self'],
|
|
1701
|
-
}, builderWithoutUser);
|
|
1702
|
-
const abilityWithoutUser = builderWithoutUser.build();
|
|
1703
|
-
const ownPreviewInOrg = subject('DeployProject', {
|
|
1704
|
-
organizationUuid: 'org-123',
|
|
1705
|
-
projectUuid: 'preview-123',
|
|
1706
|
-
type: ProjectType.PREVIEW,
|
|
1707
|
-
createdByUserUuid: 'user1',
|
|
1708
|
-
});
|
|
1709
|
-
expect(ability.can('manage', ownPreviewInOrg)).toBe(true);
|
|
1710
|
-
expect(abilityWithoutUser.can('manage', ownPreviewInOrg)).toBe(false);
|
|
1711
|
-
expect(ability.can('manage', subject('DeployProject', {
|
|
1712
|
-
organizationUuid: 'org-123',
|
|
1713
|
-
projectUuid: 'preview-456',
|
|
1714
|
-
type: ProjectType.PREVIEW,
|
|
1715
|
-
createdByUserUuid: 'another-user',
|
|
1716
|
-
}))).toBe(false);
|
|
1717
|
-
});
|
|
1718
|
-
it('grants nothing when the project is not a preview', () => {
|
|
1719
|
-
const ability = buildWith({
|
|
1720
|
-
...baseContext,
|
|
1721
|
-
projectType: ProjectType.DEFAULT,
|
|
1722
|
-
projectCreatedByUserUuid: 'user1',
|
|
1723
|
-
}, ['manage:Dashboard@self']);
|
|
1724
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
1725
|
-
organizationUuid: 'org-123',
|
|
1726
|
-
projectUuid: 'project-123',
|
|
1727
|
-
isPrivate: false,
|
|
1728
|
-
access: [],
|
|
1729
|
-
}))).toBe(false);
|
|
1730
|
-
expect(ability.rules.length).toBe(0);
|
|
1731
|
-
});
|
|
1732
|
-
it('grants nothing when the preview was created by someone else', () => {
|
|
1733
|
-
const ability = buildWith({
|
|
1734
|
-
...baseContext,
|
|
1735
|
-
projectType: ProjectType.PREVIEW,
|
|
1736
|
-
projectCreatedByUserUuid: 'someone-else',
|
|
1737
|
-
}, ['manage:Dashboard@self']);
|
|
1738
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
1739
|
-
organizationUuid: 'org-123',
|
|
1740
|
-
projectUuid: 'project-123',
|
|
1741
|
-
isPrivate: false,
|
|
1742
|
-
access: [],
|
|
1743
|
-
}))).toBe(false);
|
|
1744
|
-
});
|
|
1745
|
-
it('grants nothing when project metadata is absent from context', () => {
|
|
1746
|
-
const ability = buildWith(baseContext, ['manage:Dashboard@self']);
|
|
1747
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
1748
|
-
organizationUuid: 'org-123',
|
|
1749
|
-
projectUuid: 'project-123',
|
|
1750
|
-
isPrivate: false,
|
|
1751
|
-
access: [],
|
|
1752
|
-
}))).toBe(false);
|
|
1753
|
-
});
|
|
1754
|
-
it('grants nothing for org-level role assignments', () => {
|
|
1755
|
-
const builder = new AbilityBuilder(Ability);
|
|
1756
|
-
buildAbilityFromScopes({
|
|
1757
|
-
...baseContextWithOrg,
|
|
1758
|
-
scopes: ['manage:Dashboard@self'],
|
|
1759
|
-
}, builder);
|
|
1760
|
-
const ability = builder.build();
|
|
1761
|
-
expect(ability.can('manage', subject('Dashboard', {
|
|
1762
|
-
organizationUuid: 'org-123',
|
|
1763
|
-
projectUuid: 'project-123',
|
|
1764
|
-
isPrivate: false,
|
|
1765
|
-
access: [],
|
|
1766
|
-
}))).toBe(false);
|
|
1767
|
-
expect(ability.rules.length).toBe(0);
|
|
1768
|
-
});
|
|
1769
|
-
});
|
|
1770
|
-
describe('data app preview scopes', () => {
|
|
1771
|
-
const buildDataAppAbility = (scopes) => {
|
|
1772
|
-
const builder = new AbilityBuilder(Ability);
|
|
1773
|
-
buildAbilityFromScopes({ ...baseContext, scopes }, builder);
|
|
1774
|
-
return builder.build();
|
|
1775
|
-
};
|
|
1776
|
-
const ownPreviewFromDirectProject = {
|
|
1777
|
-
organizationUuid: 'org-123',
|
|
1778
|
-
projectUuid: 'project-123',
|
|
1779
|
-
upstreamProjectUuid: 'upstream-project',
|
|
1780
|
-
projectType: ProjectType.PREVIEW,
|
|
1781
|
-
projectCreatedByUserUuid: 'user1',
|
|
1782
|
-
};
|
|
1783
|
-
const ownPreviewFromUpstreamProject = {
|
|
1784
|
-
organizationUuid: 'org-123',
|
|
1785
|
-
projectUuid: 'preview-123',
|
|
1786
|
-
upstreamProjectUuid: 'project-123',
|
|
1787
|
-
projectType: ProjectType.PREVIEW,
|
|
1788
|
-
projectCreatedByUserUuid: 'user1',
|
|
1789
|
-
};
|
|
1790
|
-
const ownProduction = {
|
|
1791
|
-
organizationUuid: 'org-123',
|
|
1792
|
-
projectUuid: 'project-123',
|
|
1793
|
-
upstreamProjectUuid: null,
|
|
1794
|
-
projectType: ProjectType.DEFAULT,
|
|
1795
|
-
projectCreatedByUserUuid: 'user1',
|
|
1796
|
-
};
|
|
1797
|
-
const othersPreview = {
|
|
1798
|
-
organizationUuid: 'org-123',
|
|
1799
|
-
projectUuid: 'preview-123',
|
|
1800
|
-
upstreamProjectUuid: 'project-123',
|
|
1801
|
-
projectType: ProjectType.PREVIEW,
|
|
1802
|
-
projectCreatedByUserUuid: 'another-user',
|
|
1803
|
-
};
|
|
1804
|
-
it('create:DataApp@preview only reaches previews the user created', () => {
|
|
1805
|
-
const ability = buildDataAppAbility(['create:DataApp@preview']);
|
|
1806
|
-
expect(ability.can('create', subject('DataApp', ownPreviewFromDirectProject))).toBe(true);
|
|
1807
|
-
expect(ability.can('create', subject('DataApp', ownPreviewFromUpstreamProject))).toBe(true);
|
|
1808
|
-
expect(ability.can('create', subject('DataApp', ownProduction))).toBe(false);
|
|
1809
|
-
expect(ability.can('create', subject('DataApp', othersPreview))).toBe(false);
|
|
1810
|
-
});
|
|
1811
|
-
it('manage:DataApp@preview lets the user iterate on apps inside their own preview', () => {
|
|
1812
|
-
const ability = buildDataAppAbility(['manage:DataApp@preview']);
|
|
1813
|
-
expect(ability.can('manage', subject('DataApp', {
|
|
1814
|
-
...ownPreviewFromDirectProject,
|
|
1815
|
-
createdByUserUuid: 'user1',
|
|
1816
|
-
}))).toBe(true);
|
|
1817
|
-
expect(ability.can('manage', subject('DataApp', {
|
|
1818
|
-
...ownProduction,
|
|
1819
|
-
createdByUserUuid: 'user1',
|
|
1820
|
-
}))).toBe(false);
|
|
1821
|
-
expect(ability.can('manage', subject('DataApp', {
|
|
1822
|
-
...othersPreview,
|
|
1823
|
-
createdByUserUuid: 'user1',
|
|
1824
|
-
}))).toBe(false);
|
|
1825
|
-
});
|
|
1826
|
-
it('keeps project ownership separate from app ownership', () => {
|
|
1827
|
-
const ability = buildDataAppAbility(['manage:DataApp@self']);
|
|
1828
|
-
expect(ability.can('manage', subject('DataApp', ownPreviewFromDirectProject))).toBe(false);
|
|
1829
|
-
expect(ability.can('manage', subject('DataApp', {
|
|
1830
|
-
...ownPreviewFromDirectProject,
|
|
1831
|
-
createdByUserUuid: 'user1',
|
|
1832
|
-
}))).toBe(true);
|
|
1833
|
-
});
|
|
1834
|
-
it('the preview scopes do not grant the production create/manage rules', () => {
|
|
1835
|
-
const ability = buildDataAppAbility([
|
|
1836
|
-
'create:DataApp@preview',
|
|
1837
|
-
'manage:DataApp@preview',
|
|
1838
|
-
]);
|
|
1839
|
-
expect(ability.can('create', subject('DataApp', {
|
|
1840
|
-
organizationUuid: 'org-123',
|
|
1841
|
-
projectUuid: 'project-123',
|
|
1842
|
-
}))).toBe(false);
|
|
1843
|
-
});
|
|
1844
|
-
it('create:DataApp still covers production and previews alike', () => {
|
|
1845
|
-
const ability = buildDataAppAbility(['create:DataApp']);
|
|
1846
|
-
expect(ability.can('create', subject('DataApp', ownProduction))).toBe(true);
|
|
1847
|
-
expect(ability.can('create', subject('DataApp', ownPreviewFromDirectProject))).toBe(true);
|
|
1848
|
-
});
|
|
1849
|
-
it('grants nothing for org-level assignments outside the user own previews', () => {
|
|
1850
|
-
const builder = new AbilityBuilder(Ability);
|
|
1851
|
-
buildAbilityFromScopes({
|
|
1852
|
-
...baseContextWithOrg,
|
|
1853
|
-
scopes: ['create:DataApp@preview'],
|
|
1854
|
-
}, builder);
|
|
1855
|
-
const ability = builder.build();
|
|
1856
|
-
expect(ability.can('create', subject('DataApp', {
|
|
1857
|
-
organizationUuid: 'org-123',
|
|
1858
|
-
projectUuid: 'preview-123',
|
|
1859
|
-
projectType: ProjectType.PREVIEW,
|
|
1860
|
-
projectCreatedByUserUuid: 'user1',
|
|
1861
|
-
}))).toBe(true);
|
|
1862
|
-
expect(ability.can('create', subject('DataApp', {
|
|
1863
|
-
organizationUuid: 'org-123',
|
|
1864
|
-
projectUuid: 'preview-123',
|
|
1865
|
-
projectType: ProjectType.PREVIEW,
|
|
1866
|
-
projectCreatedByUserUuid: 'another-user',
|
|
1867
|
-
}))).toBe(false);
|
|
1868
|
-
});
|
|
1869
|
-
});
|
|
1870
|
-
});
|
|
1871
|
-
//# sourceMappingURL=scopeAbilityBuilder.test.js.map
|