@lightdash/common 0.2104.7 → 0.2104.8
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 -0
- package/dist/cjs/authorization/index.d.ts +1 -4
- package/dist/cjs/authorization/index.d.ts.map +1 -1
- package/dist/cjs/authorization/index.js +0 -4
- package/dist/cjs/authorization/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +8 -8
- package/dist/cjs/ee/AiAgent/index.d.ts +2 -2
- package/dist/cjs/ee/AiAgent/schemas/parser.d.ts +24 -24
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +96 -96
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts +48 -48
- package/dist/cjs/ee/AiAgent/utils.d.ts +8 -8
- package/dist/cjs/index.d.ts +23 -449
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +21 -55
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/pivot/index.d.ts +1 -0
- package/dist/cjs/pivot/index.d.ts.map +1 -1
- package/dist/cjs/pivot/index.js +1 -0
- package/dist/cjs/pivot/index.js.map +1 -1
- package/dist/cjs/pivot/pivotConfig.d.ts +7 -0
- package/dist/cjs/pivot/pivotConfig.d.ts.map +1 -0
- package/dist/cjs/pivot/pivotConfig.js +32 -0
- package/dist/cjs/pivot/pivotConfig.js.map +1 -0
- package/dist/cjs/types/api.d.ts +447 -0
- package/dist/cjs/types/api.d.ts.map +1 -1
- package/dist/cjs/types/api.js +50 -1
- package/dist/cjs/types/api.js.map +1 -1
- package/dist/cjs/types/auth.d.ts +2 -1
- package/dist/cjs/types/auth.d.ts.map +1 -1
- package/dist/cjs/types/auth.js +4 -4
- package/dist/cjs/types/auth.js.map +1 -1
- package/dist/cjs/types/changeset.d.ts +10 -10
- package/dist/cjs/types/pivot.d.ts +0 -2
- package/dist/cjs/types/pivot.d.ts.map +1 -1
- package/dist/cjs/types/pivot.js +0 -29
- package/dist/cjs/types/pivot.js.map +1 -1
- package/dist/cjs/types/resourceViewItem.d.ts +1 -1
- package/dist/esm/.tsbuildinfo +1 -0
- package/dist/esm/authorization/index.d.ts +1 -4
- package/dist/esm/authorization/index.d.ts.map +1 -1
- package/dist/esm/authorization/index.js +0 -4
- package/dist/esm/authorization/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +8 -8
- package/dist/esm/ee/AiAgent/index.d.ts +2 -2
- package/dist/esm/ee/AiAgent/schemas/parser.d.ts +24 -24
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +96 -96
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts +48 -48
- package/dist/esm/ee/AiAgent/utils.d.ts +8 -8
- package/dist/esm/index.d.ts +23 -449
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +16 -50
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/pivot/index.d.ts +1 -0
- package/dist/esm/pivot/index.d.ts.map +1 -1
- package/dist/esm/pivot/index.js +1 -0
- package/dist/esm/pivot/index.js.map +1 -1
- package/dist/esm/pivot/pivotConfig.d.ts +7 -0
- package/dist/esm/pivot/pivotConfig.d.ts.map +1 -0
- package/dist/esm/pivot/pivotConfig.js +28 -0
- package/dist/esm/pivot/pivotConfig.js.map +1 -0
- package/dist/esm/types/api.d.ts +447 -0
- package/dist/esm/types/api.d.ts.map +1 -1
- package/dist/esm/types/api.js +46 -0
- package/dist/esm/types/api.js.map +1 -1
- package/dist/esm/types/auth.d.ts +2 -1
- package/dist/esm/types/auth.d.ts.map +1 -1
- package/dist/esm/types/auth.js +2 -2
- package/dist/esm/types/auth.js.map +1 -1
- package/dist/esm/types/changeset.d.ts +10 -10
- package/dist/esm/types/pivot.d.ts +0 -2
- package/dist/esm/types/pivot.d.ts.map +1 -1
- package/dist/esm/types/pivot.js +1 -27
- package/dist/esm/types/pivot.js.map +1 -1
- package/dist/esm/types/resourceViewItem.d.ts +1 -1
- package/dist/types/.tsbuildinfo +1 -0
- package/dist/types/authorization/buildAccountHelpers.js +11 -0
- package/dist/types/authorization/buildAccountHelpers.js.map +1 -0
- package/dist/types/authorization/index.d.ts +1 -4
- package/dist/types/authorization/index.d.ts.map +1 -1
- package/dist/types/authorization/index.js +62 -0
- package/dist/types/authorization/index.js.map +1 -0
- package/dist/types/authorization/index.mock.js +42 -0
- package/dist/types/authorization/index.mock.js.map +1 -0
- package/dist/types/authorization/index.test.js +220 -0
- package/dist/types/authorization/index.test.js.map +1 -0
- package/dist/types/authorization/jwtAbility.js +77 -0
- package/dist/types/authorization/jwtAbility.js.map +1 -0
- package/dist/types/authorization/jwtAbility.test.js +416 -0
- package/dist/types/authorization/jwtAbility.test.js.map +1 -0
- package/dist/types/authorization/organizationMemberAbility.js +318 -0
- package/dist/types/authorization/organizationMemberAbility.js.map +1 -0
- package/dist/types/authorization/organizationMemberAbility.mock.js +34 -0
- package/dist/types/authorization/organizationMemberAbility.mock.js.map +1 -0
- package/dist/types/authorization/organizationMemberAbility.test.js +1265 -0
- package/dist/types/authorization/organizationMemberAbility.test.js.map +1 -0
- package/dist/types/authorization/parseAccount.js +28 -0
- package/dist/types/authorization/parseAccount.js.map +1 -0
- package/dist/types/authorization/parseScopes.js +31 -0
- package/dist/types/authorization/parseScopes.js.map +1 -0
- package/dist/types/authorization/parseScopes.test.js +102 -0
- package/dist/types/authorization/parseScopes.test.js.map +1 -0
- package/dist/types/authorization/projectMemberAbility.js +239 -0
- package/dist/types/authorization/projectMemberAbility.js.map +1 -0
- package/dist/types/authorization/projectMemberAbility.mock.js +27 -0
- package/dist/types/authorization/projectMemberAbility.mock.js.map +1 -0
- package/dist/types/authorization/projectMemberAbility.test.js +1031 -0
- package/dist/types/authorization/projectMemberAbility.test.js.map +1 -0
- package/dist/types/authorization/roleToScopeMapping.js +150 -0
- package/dist/types/authorization/roleToScopeMapping.js.map +1 -0
- package/dist/types/authorization/roleToScopeMapping.test.js +561 -0
- package/dist/types/authorization/roleToScopeMapping.test.js.map +1 -0
- package/dist/types/authorization/roleToScopeMapping.testUtils.js +319 -0
- package/dist/types/authorization/roleToScopeMapping.testUtils.js.map +1 -0
- package/dist/types/authorization/roleToScopeParity.test.js +194 -0
- package/dist/types/authorization/roleToScopeParity.test.js.map +1 -0
- package/dist/types/authorization/scopeAbilityBuilder.js +57 -0
- package/dist/types/authorization/scopeAbilityBuilder.js.map +1 -0
- package/dist/types/authorization/scopeAbilityBuilder.test.js +1348 -0
- package/dist/types/authorization/scopeAbilityBuilder.test.js.map +1 -0
- package/dist/types/authorization/scopes.js +613 -0
- package/dist/types/authorization/scopes.js.map +1 -0
- package/dist/types/authorization/serviceAccountAbility.js +303 -0
- package/dist/types/authorization/serviceAccountAbility.js.map +1 -0
- package/dist/types/authorization/types.js +2 -0
- package/dist/types/authorization/types.js.map +1 -0
- package/dist/types/compiler/exploreCompiler.js +462 -0
- package/dist/types/compiler/exploreCompiler.js.map +1 -0
- package/dist/types/compiler/exploreCompiler.mock.js +2016 -0
- package/dist/types/compiler/exploreCompiler.mock.js.map +1 -0
- package/dist/types/compiler/exploreCompiler.test.js +679 -0
- package/dist/types/compiler/exploreCompiler.test.js.map +1 -0
- package/dist/types/compiler/fieldSetExpander.js +119 -0
- package/dist/types/compiler/fieldSetExpander.js.map +1 -0
- package/dist/types/compiler/fieldSetExpander.test.js +184 -0
- package/dist/types/compiler/fieldSetExpander.test.js.map +1 -0
- package/dist/types/compiler/filtersCompiler.js +337 -0
- package/dist/types/compiler/filtersCompiler.js.map +1 -0
- package/dist/types/compiler/filtersCompiler.mock.js +496 -0
- package/dist/types/compiler/filtersCompiler.mock.js.map +1 -0
- package/dist/types/compiler/filtersCompiler.test.js +570 -0
- package/dist/types/compiler/filtersCompiler.test.js.map +1 -0
- package/dist/types/compiler/lightdashProjectConfig.js +37 -0
- package/dist/types/compiler/lightdashProjectConfig.js.map +1 -0
- package/dist/types/compiler/parameters.js +75 -0
- package/dist/types/compiler/parameters.js.map +1 -0
- package/dist/types/compiler/parameters.test.js +216 -0
- package/dist/types/compiler/parameters.test.js.map +1 -0
- package/dist/types/compiler/translator.js +707 -0
- package/dist/types/compiler/translator.js.map +1 -0
- package/dist/types/compiler/translator.mock.js +1901 -0
- package/dist/types/compiler/translator.mock.js.map +1 -0
- package/dist/types/compiler/translator.test.js +323 -0
- package/dist/types/compiler/translator.test.js.map +1 -0
- package/dist/types/constants/pivot.js +7 -0
- package/dist/types/constants/pivot.js.map +1 -0
- package/dist/types/constants/sessionStorageKeys.js +6 -0
- package/dist/types/constants/sessionStorageKeys.js.map +1 -0
- package/dist/types/constants/sqlRunner.js +3 -0
- package/dist/types/constants/sqlRunner.js.map +1 -0
- package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.js +285 -0
- package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.js.map +1 -0
- package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.js +224 -0
- package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.mock.js.map +1 -0
- package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.test.js +129 -0
- package/dist/types/dbt/DbtSchemaEditor/DbtSchemaEditor.test.js.map +1 -0
- package/dist/types/dbt/schemas/lightdashMetadata.json +385 -0
- package/dist/types/dbt/schemas/lightdashV10.json +72 -0
- package/dist/types/dbt/schemas/lightdashV11.json +72 -0
- package/dist/types/dbt/schemas/lightdashV12.json +63 -0
- package/dist/types/dbt/schemas/lightdashV7.json +72 -0
- package/dist/types/dbt/schemas/lightdashV8.json +76 -0
- package/dist/types/dbt/schemas/lightdashV9.json +72 -0
- package/dist/types/dbt/schemas/manifestV10.json +5545 -0
- package/dist/types/dbt/schemas/manifestV11.json +6041 -0
- package/dist/types/dbt/schemas/manifestV12.json +22567 -0
- package/dist/types/dbt/schemas/manifestV7.json +6481 -0
- package/dist/types/dbt/schemas/manifestV8.json +4358 -0
- package/dist/types/dbt/schemas/manifestV9.json +4879 -0
- package/dist/types/dbt/validation.js +67 -0
- package/dist/types/dbt/validation.js.map +1 -0
- package/dist/types/ee/AiAgent/adminTypes.js +2 -0
- package/dist/types/ee/AiAgent/adminTypes.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/shared/formatFieldLabel.js +10 -0
- package/dist/types/ee/AiAgent/chartConfig/shared/formatFieldLabel.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/generateBarVizConfigTool/getVerticalBarChartEchartsConfig.js +60 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/generateBarVizConfigTool/getVerticalBarChartEchartsConfig.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/generateTimeSeriesVizConfigTool/getTimeSeriesChartEchartsConfig.js +60 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/generateTimeSeriesVizConfigTool/getTimeSeriesChartEchartsConfig.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/getSlackAiEchartsConfig.js +33 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/getSlackAiEchartsConfig.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/index.js +2 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/index.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/getRunQueryEchartsConfig.js +43 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/getRunQueryEchartsConfig.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/bar.js +98 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/bar.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/funnel.js +38 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/funnel.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/horizontalBar.js +65 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/horizontalBar.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/line.js +105 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/line.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/pie.js +34 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/pie.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/scatter.js +66 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/scatter.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/shared/getCommonEChartsConfig.js +104 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/shared/getCommonEChartsConfig.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/types.js +2 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/types.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/generateBarVizConfigTool/getVerticalBarChartConfig.js +65 -0
- package/dist/types/ee/AiAgent/chartConfig/web/generateBarVizConfigTool/getVerticalBarChartConfig.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/generateTableVizConfigTool/getTableChartConfig.js +5 -0
- package/dist/types/ee/AiAgent/chartConfig/web/generateTableVizConfigTool/getTableChartConfig.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/generateTimeSeriesVizConfigTool/getTimeSeriesChartConfig.js +63 -0
- package/dist/types/ee/AiAgent/chartConfig/web/generateTimeSeriesVizConfigTool/getTimeSeriesChartConfig.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +8 -8
- package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.js +51 -0
- package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/index.js +6 -0
- package/dist/types/ee/AiAgent/chartConfig/web/index.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.js +73 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/getRunQueryChartConfig.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/bar.js +91 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/bar.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/funnel.js +17 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/funnel.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/horizontalBar.js +52 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/horizontalBar.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/line.js +96 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/line.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/pie.js +15 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/pie.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/scatter.js +66 -0
- package/dist/types/ee/AiAgent/chartConfig/web/runQueryTool/viz/scatter.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/shared/canRenderAsChart.js +24 -0
- package/dist/types/ee/AiAgent/chartConfig/web/shared/canRenderAsChart.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/shared/formatPivotValueLabel.js +15 -0
- package/dist/types/ee/AiAgent/chartConfig/web/shared/formatPivotValueLabel.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/shared/getAvailableChartTypes.js +11 -0
- package/dist/types/ee/AiAgent/chartConfig/web/shared/getAvailableChartTypes.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/shared/getGroupByDimensions.js +15 -0
- package/dist/types/ee/AiAgent/chartConfig/web/shared/getGroupByDimensions.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/types.js +2 -0
- package/dist/types/ee/AiAgent/chartConfig/web/types.js.map +1 -0
- package/dist/types/ee/AiAgent/constants.js +2 -0
- package/dist/types/ee/AiAgent/constants.js.map +1 -0
- package/dist/types/ee/AiAgent/filterExploreByTags.js +94 -0
- package/dist/types/ee/AiAgent/filterExploreByTags.js.map +1 -0
- package/dist/types/ee/AiAgent/filterExploreByTags.test.js +634 -0
- package/dist/types/ee/AiAgent/filterExploreByTags.test.js.map +1 -0
- package/dist/types/ee/AiAgent/followUpTools.js +33 -0
- package/dist/types/ee/AiAgent/followUpTools.js.map +1 -0
- package/dist/types/ee/AiAgent/index.d.ts +2 -2
- package/dist/types/ee/AiAgent/index.js +43 -0
- package/dist/types/ee/AiAgent/index.js.map +1 -0
- package/dist/types/ee/AiAgent/requestTypes.js +2 -0
- package/dist/types/ee/AiAgent/requestTypes.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/customMetrics.js +50 -0
- package/dist/types/ee/AiAgent/schemas/customMetrics.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/fieldId.js +11 -0
- package/dist/types/ee/AiAgent/schemas/fieldId.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/filters/booleanFilters.js +29 -0
- package/dist/types/ee/AiAgent/schemas/filters/booleanFilters.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/filters/dateFilters.js +84 -0
- package/dist/types/ee/AiAgent/schemas/filters/dateFilters.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/filters/index.js +98 -0
- package/dist/types/ee/AiAgent/schemas/filters/index.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/filters/numberFilters.js +53 -0
- package/dist/types/ee/AiAgent/schemas/filters/numberFilters.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/filters/stringFilters.js +33 -0
- package/dist/types/ee/AiAgent/schemas/filters/stringFilters.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/index.js +9 -0
- package/dist/types/ee/AiAgent/schemas/index.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/outputMetadata.js +5 -0
- package/dist/types/ee/AiAgent/schemas/outputMetadata.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/parser.d.ts +24 -24
- package/dist/types/ee/AiAgent/schemas/parser.js +43 -0
- package/dist/types/ee/AiAgent/schemas/parser.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/sortField.js +14 -0
- package/dist/types/ee/AiAgent/schemas/sortField.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.js +28 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentChangeFromPrevious.js +14 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentChangeFromPrevious.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.js +14 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfPreviousValue.js +14 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfPreviousValue.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcRankInColumn.js +10 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcRankInColumn.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcRunningTotal.js +10 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcRunningTotal.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.js +105 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.js +168 -0
- package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/toolSchemaBuilder.js +37 -0
- package/dist/types/ee/AiAgent/schemas/toolSchemaBuilder.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/index.js +16 -0
- package/dist/types/ee/AiAgent/schemas/tools/index.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardArgs.js +103 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +96 -96
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.js +50 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindChartsArgs.js +34 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindChartsArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindContentArgs.js +33 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindContentArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js +36 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +45 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +34 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolImproveContextArgs.js +60 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolImproveContextArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolProposeChangeArgs.js +157 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolProposeChangeArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.js +41 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts +48 -48
- package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.js +151 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.js +46 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.js +53 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +58 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js +53 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/visualizationMetadata.js +9 -0
- package/dist/types/ee/AiAgent/schemas/visualizationMetadata.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/visualizations/index.js +58 -0
- package/dist/types/ee/AiAgent/schemas/visualizations/index.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/visualizations/tableViz.js +38 -0
- package/dist/types/ee/AiAgent/schemas/visualizations/tableViz.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/visualizations/timeSeriesViz.js +63 -0
- package/dist/types/ee/AiAgent/schemas/visualizations/timeSeriesViz.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/visualizations/verticalBarViz.js +68 -0
- package/dist/types/ee/AiAgent/schemas/visualizations/verticalBarViz.js.map +1 -0
- package/dist/types/ee/AiAgent/types.js +12 -0
- package/dist/types/ee/AiAgent/types.js.map +1 -0
- package/dist/types/ee/AiAgent/utils.d.ts +8 -8
- package/dist/types/ee/AiAgent/utils.js +82 -0
- package/dist/types/ee/AiAgent/utils.js.map +1 -0
- package/dist/types/ee/AiAgent/validators.js +10 -0
- package/dist/types/ee/AiAgent/validators.js.map +1 -0
- package/dist/types/ee/commercialFeatureFlags.js +10 -0
- package/dist/types/ee/commercialFeatureFlags.js.map +1 -0
- package/dist/types/ee/embed/index.js +90 -0
- package/dist/types/ee/embed/index.js.map +1 -0
- package/dist/types/ee/index.js +19 -0
- package/dist/types/ee/index.js.map +1 -0
- package/dist/types/ee/scim/errors.js +22 -0
- package/dist/types/ee/scim/errors.js.map +1 -0
- package/dist/types/ee/scim/types.js +2 -0
- package/dist/types/ee/scim/types.js.map +1 -0
- package/dist/types/ee/serviceAccounts/types.js +8 -0
- package/dist/types/ee/serviceAccounts/types.js.map +1 -0
- package/dist/types/index.d.ts +23 -449
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +652 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mock.js +44 -0
- package/dist/types/index.mock.js.map +1 -0
- package/dist/types/index.test.js +123 -0
- package/dist/types/index.test.js.map +1 -0
- package/dist/types/pivot/derivePivotConfigFromChart.js +206 -0
- package/dist/types/pivot/derivePivotConfigFromChart.js.map +1 -0
- package/dist/types/pivot/derivePivotConfigFromChart.mock.js +112 -0
- package/dist/types/pivot/derivePivotConfigFromChart.mock.js.map +1 -0
- package/dist/types/pivot/derivePivotConfigFromChart.test.js +418 -0
- package/dist/types/pivot/derivePivotConfigFromChart.test.js.map +1 -0
- package/dist/types/pivot/index.d.ts +1 -0
- package/dist/types/pivot/index.d.ts.map +1 -1
- package/dist/types/pivot/index.js +5 -0
- package/dist/types/pivot/index.js.map +1 -0
- package/dist/types/pivot/pivotConfig.d.ts +7 -0
- package/dist/types/pivot/pivotConfig.d.ts.map +1 -0
- package/dist/types/pivot/pivotConfig.js +28 -0
- package/dist/types/pivot/pivotConfig.js.map +1 -0
- package/dist/types/pivot/pivotQueryResults.js +1034 -0
- package/dist/types/pivot/pivotQueryResults.js.map +1 -0
- package/dist/types/pivot/pivotQueryResults.mock.js +2412 -0
- package/dist/types/pivot/pivotQueryResults.mock.js.map +1 -0
- package/dist/types/pivot/pivotQueryResults.test.js +1222 -0
- package/dist/types/pivot/pivotQueryResults.test.js.map +1 -0
- package/dist/types/pivot/utils.js +14 -0
- package/dist/types/pivot/utils.js.map +1 -0
- package/dist/types/schemas/json/chart-as-code-1.0.json +436 -0
- package/dist/types/schemas/json/dashboard-as-code-1.0.json +349 -0
- package/dist/types/schemas/json/lightdash-dbt-2.0.json +1417 -0
- package/dist/types/schemas/json/lightdash-project-config-1.0.json +138 -0
- package/dist/types/templating/template.js +30 -0
- package/dist/types/templating/template.js.map +1 -0
- package/dist/types/templating/template.mock.js +45 -0
- package/dist/types/templating/template.mock.js.map +1 -0
- package/dist/types/templating/template.test.js +21 -0
- package/dist/types/templating/template.test.js.map +1 -0
- package/dist/types/types/SshKeyPair.js +2 -0
- package/dist/types/types/SshKeyPair.js.map +1 -0
- package/dist/types/types/account.js +2 -0
- package/dist/types/types/account.js.map +1 -0
- package/dist/types/types/analytics.js +29 -0
- package/dist/types/types/analytics.js.map +1 -0
- package/dist/types/types/any.js +2 -0
- package/dist/types/types/any.js.map +1 -0
- package/dist/types/types/api/comments.js +2 -0
- package/dist/types/types/api/comments.js.map +1 -0
- package/dist/types/types/api/email.js +2 -0
- package/dist/types/types/api/email.js.map +1 -0
- package/dist/types/types/api/errors.js +2 -0
- package/dist/types/types/api/errors.js.map +1 -0
- package/dist/types/types/api/notifications.js +5 -0
- package/dist/types/types/api/notifications.js.map +1 -0
- package/dist/types/types/api/paginatedQuery.js +3 -0
- package/dist/types/types/api/paginatedQuery.js.map +1 -0
- package/dist/types/types/api/parameters.js +2 -0
- package/dist/types/types/api/parameters.js.map +1 -0
- package/dist/types/types/api/share.js +2 -0
- package/dist/types/types/api/share.js.map +1 -0
- package/dist/types/types/api/sort.js +2 -0
- package/dist/types/types/api/sort.js.map +1 -0
- package/dist/types/types/api/spotlight.js +2 -0
- package/dist/types/types/api/spotlight.js.map +1 -0
- package/dist/types/types/api/success.js +2 -0
- package/dist/types/types/api/success.js.map +1 -0
- package/dist/types/types/api/uuid.js +2 -0
- package/dist/types/types/api/uuid.js.map +1 -0
- package/dist/types/types/api.d.ts +447 -0
- package/dist/types/types/api.d.ts.map +1 -1
- package/dist/types/types/api.js +57 -0
- package/dist/types/types/api.js.map +1 -0
- package/dist/types/types/applyDimensionOverrides.test.js +338 -0
- package/dist/types/types/applyDimensionOverrides.test.js.map +1 -0
- package/dist/types/types/auth.d.ts +2 -1
- package/dist/types/types/auth.d.ts.map +1 -1
- package/dist/types/types/auth.js +42 -0
- package/dist/types/types/auth.js.map +1 -0
- package/dist/types/types/bigQuerySSO.js +2 -0
- package/dist/types/types/bigQuerySSO.js.map +1 -0
- package/dist/types/types/catalog.js +50 -0
- package/dist/types/types/catalog.js.map +1 -0
- package/dist/types/types/changeset.d.ts +10 -10
- package/dist/types/types/changeset.js +72 -0
- package/dist/types/types/changeset.js.map +1 -0
- package/dist/types/types/coder.js +2 -0
- package/dist/types/types/coder.js.map +1 -0
- package/dist/types/types/comments.js +2 -0
- package/dist/types/types/comments.js.map +1 -0
- package/dist/types/types/conditionalFormatting.js +25 -0
- package/dist/types/types/conditionalFormatting.js.map +1 -0
- package/dist/types/types/content.js +19 -0
- package/dist/types/types/content.js.map +1 -0
- package/dist/types/types/csv.js +2 -0
- package/dist/types/types/csv.js.map +1 -0
- package/dist/types/types/dashboard.js +46 -0
- package/dist/types/types/dashboard.js.map +1 -0
- package/dist/types/types/dbt.js +262 -0
- package/dist/types/types/dbt.js.map +1 -0
- package/dist/types/types/dbtFromSchema.js +2 -0
- package/dist/types/types/dbtFromSchema.js.map +1 -0
- package/dist/types/types/deepPartial.js +7 -0
- package/dist/types/types/deepPartial.js.map +1 -0
- package/dist/types/types/downloadFile.js +9 -0
- package/dist/types/types/downloadFile.js.map +1 -0
- package/dist/types/types/email.js +2 -0
- package/dist/types/types/email.js.map +1 -0
- package/dist/types/types/errors.js +496 -0
- package/dist/types/types/errors.js.map +1 -0
- package/dist/types/types/explore.js +24 -0
- package/dist/types/types/explore.js.map +1 -0
- package/dist/types/types/featureFlags.js +62 -0
- package/dist/types/types/featureFlags.js.map +1 -0
- package/dist/types/types/field.js +473 -0
- package/dist/types/types/field.js.map +1 -0
- package/dist/types/types/field.test.js +90 -0
- package/dist/types/types/field.test.js.map +1 -0
- package/dist/types/types/fieldMatch.js +2 -0
- package/dist/types/types/fieldMatch.js.map +1 -0
- package/dist/types/types/filter.js +287 -0
- package/dist/types/types/filter.js.map +1 -0
- package/dist/types/types/filter.test.js +372 -0
- package/dist/types/types/filter.test.js.map +1 -0
- package/dist/types/types/filterGrammar.js +358 -0
- package/dist/types/types/filterGrammar.js.map +1 -0
- package/dist/types/types/filterGrammar.test.js +549 -0
- package/dist/types/types/filterGrammar.test.js.map +1 -0
- package/dist/types/types/filterGrammarConversion.js +94 -0
- package/dist/types/types/filterGrammarConversion.js.map +1 -0
- package/dist/types/types/filterGrammarConversion.test.js +260 -0
- package/dist/types/types/filterGrammarConversion.test.js.map +1 -0
- package/dist/types/types/gdrive.js +2 -0
- package/dist/types/types/gdrive.js.map +1 -0
- package/dist/types/types/gitIntegration.js +2 -0
- package/dist/types/types/gitIntegration.js.map +1 -0
- package/dist/types/types/groups.js +4 -0
- package/dist/types/types/groups.js.map +1 -0
- package/dist/types/types/job.js +67 -0
- package/dist/types/types/job.js.map +1 -0
- package/dist/types/types/knex-paginate.js +2 -0
- package/dist/types/types/knex-paginate.js.map +1 -0
- package/dist/types/types/lightdashProjectConfig.js +4 -0
- package/dist/types/types/lightdashProjectConfig.js.map +1 -0
- package/dist/types/types/metricQuery.js +20 -0
- package/dist/types/types/metricQuery.js.map +1 -0
- package/dist/types/types/metricsExplorer.js +12 -0
- package/dist/types/types/metricsExplorer.js.map +1 -0
- package/dist/types/types/notifications.js +2 -0
- package/dist/types/types/notifications.js.map +1 -0
- package/dist/types/types/oauth.js +2 -0
- package/dist/types/types/oauth.js.map +1 -0
- package/dist/types/types/openIdIdentity.js +12 -0
- package/dist/types/types/openIdIdentity.js.map +1 -0
- package/dist/types/types/organization.js +20 -0
- package/dist/types/types/organization.js.map +1 -0
- package/dist/types/types/organizationMemberProfile.js +30 -0
- package/dist/types/types/organizationMemberProfile.js.map +1 -0
- package/dist/types/types/organizationWarehouseCredentials.js +2 -0
- package/dist/types/types/organizationWarehouseCredentials.js.map +1 -0
- package/dist/types/types/paginateResults.js +2 -0
- package/dist/types/types/paginateResults.js.map +1 -0
- package/dist/types/types/parameters.js +2 -0
- package/dist/types/types/parameters.js.map +1 -0
- package/dist/types/types/personalAccessToken.js +2 -0
- package/dist/types/types/personalAccessToken.js.map +1 -0
- package/dist/types/types/pinning.js +5 -0
- package/dist/types/types/pinning.js.map +1 -0
- package/dist/types/types/pivot.d.ts +0 -2
- package/dist/types/types/pivot.d.ts.map +1 -1
- package/dist/types/types/pivot.js +2 -0
- package/dist/types/types/pivot.js.map +1 -0
- package/dist/types/types/projectGroupAccess.js +2 -0
- package/dist/types/types/projectGroupAccess.js.map +1 -0
- package/dist/types/types/projectMemberProfile.js +2 -0
- package/dist/types/types/projectMemberProfile.js.map +1 -0
- package/dist/types/types/projectMemberRole.js +30 -0
- package/dist/types/types/projectMemberRole.js.map +1 -0
- package/dist/types/types/projects.js +149 -0
- package/dist/types/types/projects.js.map +1 -0
- package/dist/types/types/promotion.js +8 -0
- package/dist/types/types/promotion.js.map +1 -0
- package/dist/types/types/queryHistory.js +8 -0
- package/dist/types/types/queryHistory.js.map +1 -0
- package/dist/types/types/rename.js +6 -0
- package/dist/types/types/rename.js.map +1 -0
- package/dist/types/types/resourceViewItem.d.ts +1 -1
- package/dist/types/types/resourceViewItem.js +103 -0
- package/dist/types/types/resourceViewItem.js.map +1 -0
- package/dist/types/types/results.js +51 -0
- package/dist/types/types/results.js.map +1 -0
- package/dist/types/types/roles.js +2 -0
- package/dist/types/types/roles.js.map +1 -0
- package/dist/types/types/savedCharts.js +225 -0
- package/dist/types/types/savedCharts.js.map +1 -0
- package/dist/types/types/scheduler.js +87 -0
- package/dist/types/types/scheduler.js.map +1 -0
- package/dist/types/types/schedulerLog.js +2 -0
- package/dist/types/types/schedulerLog.js.map +1 -0
- package/dist/types/types/schedulerTaskList.js +31 -0
- package/dist/types/types/schedulerTaskList.js.map +1 -0
- package/dist/types/types/scopes.js +14 -0
- package/dist/types/types/scopes.js.map +1 -0
- package/dist/types/types/search.js +53 -0
- package/dist/types/types/search.js.map +1 -0
- package/dist/types/types/share.js +2 -0
- package/dist/types/types/share.js.map +1 -0
- package/dist/types/types/slack.js +2 -0
- package/dist/types/types/slack.js.map +1 -0
- package/dist/types/types/slackSettings.js +2 -0
- package/dist/types/types/slackSettings.js.map +1 -0
- package/dist/types/types/space.js +7 -0
- package/dist/types/types/space.js.map +1 -0
- package/dist/types/types/spotlightTableConfig.js +17 -0
- package/dist/types/types/spotlightTableConfig.js.map +1 -0
- package/dist/types/types/sqlRunner.js +41 -0
- package/dist/types/types/sqlRunner.js.map +1 -0
- package/dist/types/types/table.js +6 -0
- package/dist/types/types/table.js.map +1 -0
- package/dist/types/types/tags.js +2 -0
- package/dist/types/types/tags.js.map +1 -0
- package/dist/types/types/timeFrames.js +42 -0
- package/dist/types/types/timeFrames.js.map +1 -0
- package/dist/types/types/timezone.js +33 -0
- package/dist/types/types/timezone.js.map +1 -0
- package/dist/types/types/user.js +23 -0
- package/dist/types/types/user.js.map +1 -0
- package/dist/types/types/userAttributes.js +2 -0
- package/dist/types/types/userAttributes.js.map +1 -0
- package/dist/types/types/userWarehouseCredentials.js +2 -0
- package/dist/types/types/userWarehouseCredentials.js.map +1 -0
- package/dist/types/types/validation.js +29 -0
- package/dist/types/types/validation.js.map +1 -0
- package/dist/types/types/warehouse.js +6 -0
- package/dist/types/types/warehouse.js.map +1 -0
- package/dist/types/types/yamlSchema.js +2 -0
- package/dist/types/types/yamlSchema.js.map +1 -0
- package/dist/types/utils/accessors.js +27 -0
- package/dist/types/utils/accessors.js.map +1 -0
- package/dist/types/utils/accessors.test.js +45 -0
- package/dist/types/utils/accessors.test.js.map +1 -0
- package/dist/types/utils/additionalMetrics.js +54 -0
- package/dist/types/utils/additionalMetrics.js.map +1 -0
- package/dist/types/utils/api.js +5 -0
- package/dist/types/utils/api.js.map +1 -0
- package/dist/types/utils/assertUnreachable.js +10 -0
- package/dist/types/utils/assertUnreachable.js.map +1 -0
- package/dist/types/utils/booleanConverter.js +27 -0
- package/dist/types/utils/booleanConverter.js.map +1 -0
- package/dist/types/utils/booleanConverter.test.js +59 -0
- package/dist/types/utils/booleanConverter.test.js.map +1 -0
- package/dist/types/utils/catalogMetricsTree.js +2 -0
- package/dist/types/utils/catalogMetricsTree.js.map +1 -0
- package/dist/types/utils/changeset.js +132 -0
- package/dist/types/utils/changeset.js.map +1 -0
- package/dist/types/utils/changeset.mock.js +146 -0
- package/dist/types/utils/changeset.mock.js.map +1 -0
- package/dist/types/utils/changeset.test.js +248 -0
- package/dist/types/utils/changeset.test.js.map +1 -0
- package/dist/types/utils/charts.js +74 -0
- package/dist/types/utils/charts.js.map +1 -0
- package/dist/types/utils/colors.js +15 -0
- package/dist/types/utils/colors.js.map +1 -0
- package/dist/types/utils/colors.test.js +85 -0
- package/dist/types/utils/colors.test.js.map +1 -0
- package/dist/types/utils/conditionalFormatting.js +436 -0
- package/dist/types/utils/conditionalFormatting.js.map +1 -0
- package/dist/types/utils/conditionalFormatting.test.js +105 -0
- package/dist/types/utils/conditionalFormatting.test.js.map +1 -0
- package/dist/types/utils/convertCustomDimensionsToYaml.js +115 -0
- package/dist/types/utils/convertCustomDimensionsToYaml.js.map +1 -0
- package/dist/types/utils/convertCustomMetricsToYaml.js +15 -0
- package/dist/types/utils/convertCustomMetricsToYaml.js.map +1 -0
- package/dist/types/utils/customDimensions.js +27 -0
- package/dist/types/utils/customDimensions.js.map +1 -0
- package/dist/types/utils/dashboard.js +35 -0
- package/dist/types/utils/dashboard.js.map +1 -0
- package/dist/types/utils/dashboard.test.js +36 -0
- package/dist/types/utils/dashboard.test.js.map +1 -0
- package/dist/types/utils/dbt.js +4 -0
- package/dist/types/utils/dbt.js.map +1 -0
- package/dist/types/utils/dbt.test.js +39 -0
- package/dist/types/utils/dbt.test.js.map +1 -0
- package/dist/types/utils/dependencyGraph.js +51 -0
- package/dist/types/utils/dependencyGraph.js.map +1 -0
- package/dist/types/utils/dependencyGraph.test.js +113 -0
- package/dist/types/utils/dependencyGraph.test.js.map +1 -0
- package/dist/types/utils/email.js +76 -0
- package/dist/types/utils/email.js.map +1 -0
- package/dist/types/utils/email.test.js +49 -0
- package/dist/types/utils/email.test.js.map +1 -0
- package/dist/types/utils/fields.js +183 -0
- package/dist/types/utils/fields.js.map +1 -0
- package/dist/types/utils/fields.mock.js +150 -0
- package/dist/types/utils/fields.mock.js.map +1 -0
- package/dist/types/utils/fields.test.js +259 -0
- package/dist/types/utils/fields.test.js.map +1 -0
- package/dist/types/utils/filters.js +763 -0
- package/dist/types/utils/filters.js.map +1 -0
- package/dist/types/utils/filters.mock.js +450 -0
- package/dist/types/utils/filters.mock.js.map +1 -0
- package/dist/types/utils/filters.test.js +360 -0
- package/dist/types/utils/filters.test.js.map +1 -0
- package/dist/types/utils/formatting.js +552 -0
- package/dist/types/utils/formatting.js.map +1 -0
- package/dist/types/utils/formatting.mock.js +28 -0
- package/dist/types/utils/formatting.mock.js.map +1 -0
- package/dist/types/utils/formatting.test.js +1047 -0
- package/dist/types/utils/formatting.test.js.map +1 -0
- package/dist/types/utils/github.js +11 -0
- package/dist/types/utils/github.js.map +1 -0
- package/dist/types/utils/i18n/abstract.js +3 -0
- package/dist/types/utils/i18n/abstract.js.map +1 -0
- package/dist/types/utils/i18n/chartAsCode.js +132 -0
- package/dist/types/utils/i18n/chartAsCode.js.map +1 -0
- package/dist/types/utils/i18n/chartAsCode.test.js +350 -0
- package/dist/types/utils/i18n/chartAsCode.test.js.map +1 -0
- package/dist/types/utils/i18n/dashboardAsCode.js +58 -0
- package/dist/types/utils/i18n/dashboardAsCode.js.map +1 -0
- package/dist/types/utils/i18n/index.js +5 -0
- package/dist/types/utils/i18n/index.js.map +1 -0
- package/dist/types/utils/i18n/merge.js +20 -0
- package/dist/types/utils/i18n/merge.js.map +1 -0
- package/dist/types/utils/i18n/types.js +2 -0
- package/dist/types/utils/i18n/types.js.map +1 -0
- package/dist/types/utils/item.js +154 -0
- package/dist/types/utils/item.js.map +1 -0
- package/dist/types/utils/loadLightdashProjectConfig.js +49 -0
- package/dist/types/utils/loadLightdashProjectConfig.js.map +1 -0
- package/dist/types/utils/loadLightdashProjectConfig.mock.js +127 -0
- package/dist/types/utils/loadLightdashProjectConfig.mock.js.map +1 -0
- package/dist/types/utils/loadLightdashProjectConfig.test.js +137 -0
- package/dist/types/utils/loadLightdashProjectConfig.test.js.map +1 -0
- package/dist/types/utils/metricsExplorer.js +365 -0
- package/dist/types/utils/metricsExplorer.js.map +1 -0
- package/dist/types/utils/oauth.js +242 -0
- package/dist/types/utils/oauth.js.map +1 -0
- package/dist/types/utils/organization.js +23 -0
- package/dist/types/utils/organization.js.map +1 -0
- package/dist/types/utils/projectMemberRole.js +85 -0
- package/dist/types/utils/projectMemberRole.js.map +1 -0
- package/dist/types/utils/projectMemberRole.test.js +36 -0
- package/dist/types/utils/projectMemberRole.test.js.map +1 -0
- package/dist/types/utils/promises.js +5 -0
- package/dist/types/utils/promises.js.map +1 -0
- package/dist/types/utils/sanitizeHtml.js +111 -0
- package/dist/types/utils/sanitizeHtml.js.map +1 -0
- package/dist/types/utils/sanitizeHtml.test.js +101 -0
- package/dist/types/utils/sanitizeHtml.test.js.map +1 -0
- package/dist/types/utils/scheduler.js +85 -0
- package/dist/types/utils/scheduler.js.map +1 -0
- package/dist/types/utils/scheduler.test.js +41 -0
- package/dist/types/utils/scheduler.test.js.map +1 -0
- package/dist/types/utils/searchParams.js +8 -0
- package/dist/types/utils/searchParams.js.map +1 -0
- package/dist/types/utils/sleep.js +6 -0
- package/dist/types/utils/sleep.js.map +1 -0
- package/dist/types/utils/slug.test.js +129 -0
- package/dist/types/utils/slug.test.js.map +1 -0
- package/dist/types/utils/slugs.js +55 -0
- package/dist/types/utils/slugs.js.map +1 -0
- package/dist/types/utils/subtotals.js +4 -0
- package/dist/types/utils/subtotals.js.map +1 -0
- package/dist/types/utils/time.js +25 -0
- package/dist/types/utils/time.js.map +1 -0
- package/dist/types/utils/timeFrames.js +529 -0
- package/dist/types/utils/timeFrames.js.map +1 -0
- package/dist/types/utils/timeFrames.test.js +50 -0
- package/dist/types/utils/timeFrames.test.js.map +1 -0
- package/dist/types/utils/virtualView.js +98 -0
- package/dist/types/utils/virtualView.js.map +1 -0
- package/dist/types/utils/warehouse.js +57 -0
- package/dist/types/utils/warehouse.js.map +1 -0
- package/dist/types/visualizations/CartesianChartDataModel.js +515 -0
- package/dist/types/visualizations/CartesianChartDataModel.js.map +1 -0
- package/dist/types/visualizations/PieChartDataModel.js +258 -0
- package/dist/types/visualizations/PieChartDataModel.js.map +1 -0
- package/dist/types/visualizations/TableDataModel.js +96 -0
- package/dist/types/visualizations/TableDataModel.js.map +1 -0
- package/dist/types/visualizations/chartTransformations.js +107 -0
- package/dist/types/visualizations/chartTransformations.js.map +1 -0
- package/dist/types/visualizations/helpers/getCartesianAxisFormatterConfig.js +142 -0
- package/dist/types/visualizations/helpers/getCartesianAxisFormatterConfig.js.map +1 -0
- package/dist/types/visualizations/types/IResultsRunner.js +2 -0
- package/dist/types/visualizations/types/IResultsRunner.js.map +1 -0
- package/dist/types/visualizations/types/index.js +78 -0
- package/dist/types/visualizations/types/index.js.map +1 -0
- package/package.json +1 -1
- package/dist/tsconfig.types.tsbuildinfo +0 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { FieldType, MetricType } from './field';
|
|
3
|
+
const ChangesetStatusSchema = z.enum(['draft', 'applied']);
|
|
4
|
+
export const ChangesetSchema = z.object({
|
|
5
|
+
changesetUuid: z.string().uuid(),
|
|
6
|
+
createdAt: z.date(),
|
|
7
|
+
updatedAt: z.date(),
|
|
8
|
+
createdByUserUuid: z.string().uuid(),
|
|
9
|
+
updatedByUserUuid: z.string().uuid(),
|
|
10
|
+
projectUuid: z.string().uuid(),
|
|
11
|
+
status: ChangesetStatusSchema,
|
|
12
|
+
name: z.string().min(1),
|
|
13
|
+
});
|
|
14
|
+
export const ChangeBaseSchema = z
|
|
15
|
+
.object({
|
|
16
|
+
entityType: z.enum(['table', 'dimension', 'metric']),
|
|
17
|
+
entityTableName: z.string().min(1),
|
|
18
|
+
entityName: z.string().min(1),
|
|
19
|
+
})
|
|
20
|
+
.and(z.discriminatedUnion('type', [
|
|
21
|
+
z.object({
|
|
22
|
+
type: z.literal('create'),
|
|
23
|
+
payload: z.discriminatedUnion('type', [
|
|
24
|
+
z.object({
|
|
25
|
+
type: z.literal('metric'),
|
|
26
|
+
value: z.object({
|
|
27
|
+
fieldType: z.literal(FieldType.METRIC),
|
|
28
|
+
type: z.nativeEnum(MetricType),
|
|
29
|
+
name: z.string(),
|
|
30
|
+
label: z.string(),
|
|
31
|
+
table: z.string(),
|
|
32
|
+
tableLabel: z.string(), // Table friendly name
|
|
33
|
+
sql: z.string(), // Templated sql
|
|
34
|
+
description: z.string().optional(),
|
|
35
|
+
hidden: z.boolean(),
|
|
36
|
+
compiledSql: z.string(),
|
|
37
|
+
tablesReferences: z.array(z.string()).optional(),
|
|
38
|
+
tablesRequiredAttributes: z
|
|
39
|
+
.record(z.string(), z.record(z.string(), z.string().or(z.array(z.string()))))
|
|
40
|
+
.optional(),
|
|
41
|
+
}),
|
|
42
|
+
}),
|
|
43
|
+
]),
|
|
44
|
+
}),
|
|
45
|
+
z.object({
|
|
46
|
+
type: z.literal('update'),
|
|
47
|
+
payload: z.object({
|
|
48
|
+
patches: z.array(z.object({
|
|
49
|
+
op: z.enum(['replace', 'add']),
|
|
50
|
+
path: z.string(),
|
|
51
|
+
value: z
|
|
52
|
+
.unknown()
|
|
53
|
+
.refine((value) => value !== undefined),
|
|
54
|
+
})),
|
|
55
|
+
}),
|
|
56
|
+
}),
|
|
57
|
+
z.object({
|
|
58
|
+
type: z.literal('delete'),
|
|
59
|
+
payload: z.object({}),
|
|
60
|
+
}),
|
|
61
|
+
]));
|
|
62
|
+
export const ChangeSchema = ChangeBaseSchema.and(z.object({
|
|
63
|
+
changeUuid: z.string().uuid(),
|
|
64
|
+
changesetUuid: z.string().uuid(),
|
|
65
|
+
createdAt: z.date(),
|
|
66
|
+
createdByUserUuid: z.string().uuid(),
|
|
67
|
+
sourcePromptUuid: z.string().uuid().nullable(),
|
|
68
|
+
}));
|
|
69
|
+
export const ChangesetWithChangesSchema = ChangesetSchema.extend({
|
|
70
|
+
changes: z.array(ChangeSchema),
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=changeset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changeset.js","sourceRoot":"","sources":["../../../src/types/changeset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;AAE3D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;IACnB,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;IACnB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACpC,iBAAi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gBAAgB,CAAC,GAAG,CAC5C,CAAC,CAAC,MAAM,CAAC;IACL,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC7B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;IACnB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACpC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CACjD,CAAC,CACL,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,eAAe,CAAC,MAAM,CAAC;IAC7D,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;CACjC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coder.js","sourceRoot":"","sources":["../../../src/types/coder.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comments.js","sourceRoot":"","sources":["../../../src/types/comments.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const isConditionalFormattingWithValues = (rule) => 'values' in rule;
|
|
2
|
+
export const isConditionalFormattingWithCompareTarget = (rule) => 'compareTarget' in rule;
|
|
3
|
+
export const isConditionalFormattingConfigWithSingleColor = (rule) => 'color' in rule && typeof rule.color === 'string' && 'rules' in rule;
|
|
4
|
+
export const isConditionalFormattingConfigWithColorRange = (config) => 'color' in config && typeof config.color === 'object';
|
|
5
|
+
export var ConditionalFormattingConfigType;
|
|
6
|
+
(function (ConditionalFormattingConfigType) {
|
|
7
|
+
ConditionalFormattingConfigType["Single"] = "single";
|
|
8
|
+
ConditionalFormattingConfigType["Range"] = "range";
|
|
9
|
+
})(ConditionalFormattingConfigType || (ConditionalFormattingConfigType = {}));
|
|
10
|
+
export const getConditionalFormattingConfigType = (rule) => {
|
|
11
|
+
if (isConditionalFormattingConfigWithSingleColor(rule)) {
|
|
12
|
+
return ConditionalFormattingConfigType.Single;
|
|
13
|
+
}
|
|
14
|
+
if (isConditionalFormattingConfigWithColorRange(rule)) {
|
|
15
|
+
return ConditionalFormattingConfigType.Range;
|
|
16
|
+
}
|
|
17
|
+
throw new Error('Invalid conditional formatting rule');
|
|
18
|
+
};
|
|
19
|
+
export var ConditionalFormattingComparisonType;
|
|
20
|
+
(function (ConditionalFormattingComparisonType) {
|
|
21
|
+
ConditionalFormattingComparisonType["VALUES"] = "values";
|
|
22
|
+
ConditionalFormattingComparisonType["TARGET_FIELD"] = "target_field";
|
|
23
|
+
ConditionalFormattingComparisonType["TARGET_TO_VALUES"] = "target_to_values";
|
|
24
|
+
})(ConditionalFormattingComparisonType || (ConditionalFormattingComparisonType = {}));
|
|
25
|
+
//# sourceMappingURL=conditionalFormatting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditionalFormatting.js","sourceRoot":"","sources":["../../../src/types/conditionalFormatting.ts"],"names":[],"mappings":"AA4BA,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC7C,IAA6C,EACN,EAAE,CAAC,QAAQ,IAAI,IAAI,CAAC;AAE/D,MAAM,CAAC,MAAM,wCAAwC,GAAG,CACpD,IAA6C,EACC,EAAE,CAAC,eAAe,IAAI,IAAI,CAAC;AAQ7E,MAAM,CAAC,MAAM,4CAA4C,GAAG,CACxD,IAAiC,EACiB,EAAE,CACpD,OAAO,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,OAAO,IAAI,IAAI,CAAC;AAQzE,MAAM,CAAC,MAAM,2CAA2C,GAAG,CACvD,MAAmC,EACgB,EAAE,CACrD,OAAO,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,CAAC;AAM1D,MAAM,CAAN,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IACvC,oDAAiB,CAAA;IACjB,kDAAe,CAAA;AACnB,CAAC,EAHW,+BAA+B,KAA/B,+BAA+B,QAG1C;AAED,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAC9C,IAAiC,EACF,EAAE;IACjC,IAAI,4CAA4C,CAAC,IAAI,CAAC,EAAE,CAAC;QACrD,OAAO,+BAA+B,CAAC,MAAM,CAAC;IAClD,CAAC;IAED,IAAI,2CAA2C,CAAC,IAAI,CAAC,EAAE,CAAC;QACpD,OAAO,+BAA+B,CAAC,KAAK,CAAC;IACjD,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;AAC3D,CAAC,CAAC;AAeF,MAAM,CAAN,IAAY,mCAIX;AAJD,WAAY,mCAAmC;IAC3C,wDAAiB,CAAA;IACjB,oEAA6B,CAAA;IAC7B,4EAAqC,CAAA;AACzC,CAAC,EAJW,mCAAmC,KAAnC,mCAAmC,QAI9C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export var ContentType;
|
|
2
|
+
(function (ContentType) {
|
|
3
|
+
ContentType["CHART"] = "chart";
|
|
4
|
+
ContentType["DASHBOARD"] = "dashboard";
|
|
5
|
+
ContentType["SPACE"] = "space";
|
|
6
|
+
})(ContentType || (ContentType = {}));
|
|
7
|
+
export var ContentSortByColumns;
|
|
8
|
+
(function (ContentSortByColumns) {
|
|
9
|
+
ContentSortByColumns["NAME"] = "name";
|
|
10
|
+
ContentSortByColumns["SPACE_NAME"] = "space_name";
|
|
11
|
+
ContentSortByColumns["LAST_UPDATED_AT"] = "last_updated_at";
|
|
12
|
+
})(ContentSortByColumns || (ContentSortByColumns = {}));
|
|
13
|
+
// Chart types
|
|
14
|
+
export var ChartSourceType;
|
|
15
|
+
(function (ChartSourceType) {
|
|
16
|
+
ChartSourceType["DBT_EXPLORE"] = "dbt_explore";
|
|
17
|
+
ChartSourceType["SQL"] = "sql";
|
|
18
|
+
})(ChartSourceType || (ChartSourceType = {}));
|
|
19
|
+
//# sourceMappingURL=content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../../src/types/content.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,8BAAe,CAAA;IACf,sCAAuB,CAAA;IACvB,8BAAe,CAAA;AACnB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAuCD,MAAM,CAAN,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,qCAAa,CAAA;IACb,iDAAyB,CAAA;IACzB,2DAAmC,CAAA;AACvC,CAAC,EAJW,oBAAoB,KAApB,oBAAoB,QAI/B;AAED,cAAc;AAEd,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,8CAA2B,CAAA;IAC3B,8BAAW,CAAA;AACf,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csv.js","sourceRoot":"","sources":["../../../src/types/csv.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export var DashboardTileTypes;
|
|
2
|
+
(function (DashboardTileTypes) {
|
|
3
|
+
DashboardTileTypes["SAVED_CHART"] = "saved_chart";
|
|
4
|
+
DashboardTileTypes["SQL_CHART"] = "sql_chart";
|
|
5
|
+
DashboardTileTypes["MARKDOWN"] = "markdown";
|
|
6
|
+
DashboardTileTypes["LOOM"] = "loom";
|
|
7
|
+
})(DashboardTileTypes || (DashboardTileTypes = {}));
|
|
8
|
+
export const isDashboardChartTileType = (tile) => tile.type === DashboardTileTypes.SAVED_CHART;
|
|
9
|
+
export const isDashboardMarkdownTileType = (tile) => tile.type === DashboardTileTypes.MARKDOWN;
|
|
10
|
+
export const isDashboardLoomTileType = (tile) => tile.type === DashboardTileTypes.LOOM;
|
|
11
|
+
export const isDashboardSqlChartTile = (tile) => tile.type === DashboardTileTypes.SQL_CHART;
|
|
12
|
+
export var DashboardSummaryTone;
|
|
13
|
+
(function (DashboardSummaryTone) {
|
|
14
|
+
DashboardSummaryTone["FRIENDLY"] = "friendly";
|
|
15
|
+
DashboardSummaryTone["FORMAL"] = "formal";
|
|
16
|
+
DashboardSummaryTone["DIRECT"] = "direct";
|
|
17
|
+
DashboardSummaryTone["ENTHUSIASTIC"] = "enthusiastic";
|
|
18
|
+
})(DashboardSummaryTone || (DashboardSummaryTone = {}));
|
|
19
|
+
export const isDashboardUnversionedFields = (data) => ('name' in data && !!data.name) ||
|
|
20
|
+
('spaceUuid' in data && !!data.spaceUuid);
|
|
21
|
+
export const isDashboardVersionedFields = (data) => 'tiles' in data && !!data.tiles;
|
|
22
|
+
export const defaultTileSize = {
|
|
23
|
+
h: 9,
|
|
24
|
+
w: 15,
|
|
25
|
+
x: 0,
|
|
26
|
+
y: 0,
|
|
27
|
+
};
|
|
28
|
+
export const getDefaultChartTileSize = (chartType) => {
|
|
29
|
+
switch (chartType) {
|
|
30
|
+
case 'big_number':
|
|
31
|
+
return {
|
|
32
|
+
h: 6,
|
|
33
|
+
w: 9,
|
|
34
|
+
x: 0,
|
|
35
|
+
y: 0,
|
|
36
|
+
};
|
|
37
|
+
default:
|
|
38
|
+
return defaultTileSize;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export const hasChartsInDashboard = (dashboard) => dashboard.tiles.some((tile) => isDashboardChartTileType(tile) &&
|
|
42
|
+
tile.properties.belongsToDashboard);
|
|
43
|
+
export function isDuplicateDashboardParams(params) {
|
|
44
|
+
return 'dashboardName' in params && 'dashboardDesc' in params;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=dashboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../../src/types/dashboard.ts"],"names":[],"mappings":"AAYA,MAAM,CAAN,IAAY,kBAK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AAC,EAAE,EAAE;IACL,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;CACP,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACnC,SAA8C,EAChD,EAAE;IACA,QAAQ,SAAS,EAAE,CAAC;QAChB,KAAK,YAAY;YACb,OAAO;gBACH,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;aACP,CAAC;QACN;YACI,OAAO,eAAe,CAAC;IAC/B,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,SAAuB,EAAE,EAAE,CAC5D,SAAS,CAAC,KAAK,CAAC,IAAI,CAChB,CAAC,IAAI,EAAE,EAAE,CACL,wBAAwB,CAAC,IAAI,CAAC;IAC9B,IAAI,CAAC,UAAU,CAAC,kBAAkB,CACzC,CAAC;AAsBN,MAAM,UAAU,0BAA0B,CACtC,MAAkD;IAElD,OAAO,eAAe,IAAI,MAAM,IAAI,eAAe,IAAI,MAAM,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { DepGraph } from 'dependency-graph';
|
|
2
|
+
import { getCategoriesFromResource, getSpotlightConfigurationForResource, } from '../compiler/lightdashProjectConfig';
|
|
3
|
+
import assertUnreachable from '../utils/assertUnreachable';
|
|
4
|
+
import { getItemId } from '../utils/item';
|
|
5
|
+
import { DbtError, ParseError } from './errors';
|
|
6
|
+
import { FieldType, friendlyName, } from './field';
|
|
7
|
+
import { parseFilters } from './filterGrammar';
|
|
8
|
+
export var SupportedDbtAdapter;
|
|
9
|
+
(function (SupportedDbtAdapter) {
|
|
10
|
+
SupportedDbtAdapter["BIGQUERY"] = "bigquery";
|
|
11
|
+
SupportedDbtAdapter["DATABRICKS"] = "databricks";
|
|
12
|
+
SupportedDbtAdapter["SNOWFLAKE"] = "snowflake";
|
|
13
|
+
SupportedDbtAdapter["REDSHIFT"] = "redshift";
|
|
14
|
+
SupportedDbtAdapter["POSTGRES"] = "postgres";
|
|
15
|
+
SupportedDbtAdapter["TRINO"] = "trino";
|
|
16
|
+
SupportedDbtAdapter["CLICKHOUSE"] = "clickhouse";
|
|
17
|
+
})(SupportedDbtAdapter || (SupportedDbtAdapter = {}));
|
|
18
|
+
export const normaliseModelDatabase = (model, targetWarehouse) => {
|
|
19
|
+
switch (targetWarehouse) {
|
|
20
|
+
case SupportedDbtAdapter.POSTGRES:
|
|
21
|
+
case SupportedDbtAdapter.BIGQUERY:
|
|
22
|
+
case SupportedDbtAdapter.SNOWFLAKE:
|
|
23
|
+
case SupportedDbtAdapter.TRINO:
|
|
24
|
+
case SupportedDbtAdapter.REDSHIFT:
|
|
25
|
+
if (model.database === null) {
|
|
26
|
+
throw new ParseError(`Cannot parse dbt model '${model.unique_id}' because the database field has null value.`, {});
|
|
27
|
+
}
|
|
28
|
+
return { ...model, database: model.database };
|
|
29
|
+
case SupportedDbtAdapter.CLICKHOUSE:
|
|
30
|
+
return { ...model, database: '' }; // Clickhouse doesn't have a database field
|
|
31
|
+
case SupportedDbtAdapter.DATABRICKS:
|
|
32
|
+
return { ...model, database: model.database || 'DEFAULT' };
|
|
33
|
+
default:
|
|
34
|
+
return assertUnreachable(targetWarehouse, `Cannot recognise warehouse ${targetWarehouse}`);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
export const patchPathParts = (patchPath) => {
|
|
38
|
+
const [project, ...rest] = patchPath.split('://');
|
|
39
|
+
if (rest.length === 0) {
|
|
40
|
+
throw new DbtError('Could not parse dbt manifest. It looks like you might be using an old version of dbt. You must be using dbt version 0.20.0 or above.');
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
project,
|
|
44
|
+
path: rest.join('://'),
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export const buildModelGraph = (allModels) => {
|
|
48
|
+
const depGraph = new DepGraph();
|
|
49
|
+
const lookup = Object.fromEntries(allModels.map((model) => [model.unique_id, model]));
|
|
50
|
+
allModels.forEach((model) => {
|
|
51
|
+
depGraph.addNode(model.unique_id, { type: 'model', name: model.name });
|
|
52
|
+
// Only use models for graph.
|
|
53
|
+
model.depends_on?.nodes?.forEach((nodeId) => {
|
|
54
|
+
const node = lookup[nodeId];
|
|
55
|
+
if (node) {
|
|
56
|
+
depGraph.addNode(node.unique_id, {
|
|
57
|
+
type: 'model',
|
|
58
|
+
name: node.name,
|
|
59
|
+
});
|
|
60
|
+
depGraph.addDependency(model.unique_id, node.unique_id);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
return depGraph;
|
|
65
|
+
};
|
|
66
|
+
export const isDbtRpcDocsGenerateResults = (results) => 'nodes' in results &&
|
|
67
|
+
typeof results.nodes === 'object' &&
|
|
68
|
+
results.nodes !== null &&
|
|
69
|
+
Object.values(results.nodes).every((node) => typeof node === 'object' &&
|
|
70
|
+
node !== null &&
|
|
71
|
+
'metadata' in node &&
|
|
72
|
+
'columns' in node);
|
|
73
|
+
export const isDbtPackages = (results) => 'packages' in results;
|
|
74
|
+
export const isV9MetricRef = (x) => typeof x === 'object' && x !== null && 'name' in x;
|
|
75
|
+
const isDbtRawManifestMetadata = (x) => typeof x === 'object' &&
|
|
76
|
+
x !== null &&
|
|
77
|
+
'dbt_schema_version' in x &&
|
|
78
|
+
'generated_at' in x &&
|
|
79
|
+
'adapter_type' in x;
|
|
80
|
+
export const isSupportedDbtAdapter = (x) => isDbtRawManifestMetadata(x) &&
|
|
81
|
+
Object.values(SupportedDbtAdapter).includes(x.adapter_type);
|
|
82
|
+
export const isSupportedDbtAdapterType = (x) => Object.values(SupportedDbtAdapter).includes(x);
|
|
83
|
+
export const isDbtRpcManifestResults = (results) => 'manifest' in results &&
|
|
84
|
+
typeof results.manifest === 'object' &&
|
|
85
|
+
results.manifest !== null &&
|
|
86
|
+
'nodes' in results.manifest &&
|
|
87
|
+
'metadata' in results.manifest &&
|
|
88
|
+
'metrics' in results.manifest &&
|
|
89
|
+
isDbtRawManifestMetadata(results.manifest.metadata);
|
|
90
|
+
export const isDbtRpcCompileResults = (results) => 'results' in results &&
|
|
91
|
+
Array.isArray(results.results) &&
|
|
92
|
+
results.results.every((result) => typeof result === 'object' &&
|
|
93
|
+
result !== null &&
|
|
94
|
+
'node' in result &&
|
|
95
|
+
typeof result.node === 'object' &&
|
|
96
|
+
result.node !== null &&
|
|
97
|
+
'unique_id' in result.node &&
|
|
98
|
+
'resource_type' in result.node);
|
|
99
|
+
export const convertToGroups = (dbtGroups, dbtGroupLabel) => {
|
|
100
|
+
let groups = [];
|
|
101
|
+
if (dbtGroups) {
|
|
102
|
+
if (typeof dbtGroups === 'string') {
|
|
103
|
+
groups = [dbtGroups];
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
groups = [...dbtGroups];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
else if (dbtGroupLabel) {
|
|
110
|
+
groups = [dbtGroupLabel];
|
|
111
|
+
}
|
|
112
|
+
return groups;
|
|
113
|
+
};
|
|
114
|
+
export const convertToAiHints = (aiHint) => {
|
|
115
|
+
if (!aiHint) {
|
|
116
|
+
return undefined;
|
|
117
|
+
}
|
|
118
|
+
if (typeof aiHint === 'string') {
|
|
119
|
+
return [aiHint];
|
|
120
|
+
}
|
|
121
|
+
return aiHint;
|
|
122
|
+
};
|
|
123
|
+
export const isDbtRpcRunSqlResults = (
|
|
124
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
125
|
+
results) => 'results' in results &&
|
|
126
|
+
Array.isArray(results.results) &&
|
|
127
|
+
results.results.every((result) => typeof result === 'object' &&
|
|
128
|
+
result !== null &&
|
|
129
|
+
'table' in result &&
|
|
130
|
+
typeof result.table === 'object' &&
|
|
131
|
+
result.table !== null &&
|
|
132
|
+
'column_names' in result.table &&
|
|
133
|
+
Array.isArray(result.table.column_names) &&
|
|
134
|
+
'rows' in result.table &&
|
|
135
|
+
Array.isArray(result.table.rows));
|
|
136
|
+
export const convertModelMetric = ({ modelName, name, metric, source, tableLabel, dimensionReference, requiredAttributes, spotlightConfig, modelCategories = [], }) => {
|
|
137
|
+
const groups = convertToGroups(metric.groups, metric.group_label);
|
|
138
|
+
const spotlightVisibility = metric.spotlight?.visibility ?? spotlightConfig?.default_visibility;
|
|
139
|
+
const metricCategories = Array.from(new Set([...modelCategories, ...(metric.spotlight?.categories || [])]));
|
|
140
|
+
const spotlightCategories = getCategoriesFromResource('metric', name, spotlightConfig, metricCategories);
|
|
141
|
+
return {
|
|
142
|
+
fieldType: FieldType.METRIC,
|
|
143
|
+
name,
|
|
144
|
+
label: metric.label || friendlyName(name),
|
|
145
|
+
sql: metric.sql,
|
|
146
|
+
table: modelName,
|
|
147
|
+
tableLabel,
|
|
148
|
+
type: metric.type,
|
|
149
|
+
description: metric.description,
|
|
150
|
+
source,
|
|
151
|
+
hidden: !!metric.hidden,
|
|
152
|
+
round: metric.round,
|
|
153
|
+
compact: metric.compact,
|
|
154
|
+
format: metric.format,
|
|
155
|
+
groups,
|
|
156
|
+
showUnderlyingValues: metric.show_underlying_values,
|
|
157
|
+
filters: parseFilters(metric.filters),
|
|
158
|
+
percentile: metric.percentile,
|
|
159
|
+
dimensionReference,
|
|
160
|
+
requiredAttributes,
|
|
161
|
+
...(metric.urls ? { urls: metric.urls } : null),
|
|
162
|
+
...(metric.tags
|
|
163
|
+
? {
|
|
164
|
+
tags: Array.isArray(metric.tags)
|
|
165
|
+
? metric.tags
|
|
166
|
+
: [metric.tags],
|
|
167
|
+
}
|
|
168
|
+
: null),
|
|
169
|
+
...(metric.default_time_dimension
|
|
170
|
+
? {
|
|
171
|
+
defaultTimeDimension: {
|
|
172
|
+
field: metric.default_time_dimension.field,
|
|
173
|
+
interval: metric.default_time_dimension.interval,
|
|
174
|
+
},
|
|
175
|
+
}
|
|
176
|
+
: null),
|
|
177
|
+
...getSpotlightConfigurationForResource(spotlightVisibility, spotlightCategories),
|
|
178
|
+
...(metric.ai_hint ? { aiHint: convertToAiHints(metric.ai_hint) } : {}),
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
export const convertColumnMetric = ({ modelName, dimensionName, dimensionSql, name, metric, source, tableLabel, requiredAttributes, spotlightConfig, modelCategories = [], }) => convertModelMetric({
|
|
182
|
+
modelName,
|
|
183
|
+
name,
|
|
184
|
+
metric: {
|
|
185
|
+
...metric,
|
|
186
|
+
sql: metric.sql || dimensionSql,
|
|
187
|
+
description: metric.description ||
|
|
188
|
+
(dimensionName
|
|
189
|
+
? `${friendlyName(metric.type)} of ${friendlyName(dimensionName)}`
|
|
190
|
+
: undefined),
|
|
191
|
+
},
|
|
192
|
+
source,
|
|
193
|
+
tableLabel,
|
|
194
|
+
dimensionReference: dimensionName
|
|
195
|
+
? getItemId({ table: modelName, name: dimensionName })
|
|
196
|
+
: undefined,
|
|
197
|
+
requiredAttributes,
|
|
198
|
+
...(metric.default_time_dimension
|
|
199
|
+
? {
|
|
200
|
+
defaultTimeDimension: {
|
|
201
|
+
field: metric.default_time_dimension.field,
|
|
202
|
+
interval: metric.default_time_dimension.interval,
|
|
203
|
+
},
|
|
204
|
+
}
|
|
205
|
+
: null),
|
|
206
|
+
spotlightConfig,
|
|
207
|
+
modelCategories,
|
|
208
|
+
});
|
|
209
|
+
export var DbtManifestVersion;
|
|
210
|
+
(function (DbtManifestVersion) {
|
|
211
|
+
DbtManifestVersion["V7"] = "v7";
|
|
212
|
+
DbtManifestVersion["V8"] = "v8";
|
|
213
|
+
DbtManifestVersion["V9"] = "v9";
|
|
214
|
+
DbtManifestVersion["V10"] = "v10";
|
|
215
|
+
DbtManifestVersion["V11"] = "v11";
|
|
216
|
+
DbtManifestVersion["V12"] = "v12";
|
|
217
|
+
})(DbtManifestVersion || (DbtManifestVersion = {}));
|
|
218
|
+
export const getDbtManifestVersion = (manifest) => {
|
|
219
|
+
const version = manifest.metadata.dbt_schema_version.match(/\/(v\d+).json/)?.[1];
|
|
220
|
+
if (!version) {
|
|
221
|
+
throw new Error(`Could not determine dbt manifest version from ${manifest.metadata.dbt_schema_version}`);
|
|
222
|
+
}
|
|
223
|
+
if (Object.values(DbtManifestVersion).includes(version)) {
|
|
224
|
+
return version;
|
|
225
|
+
}
|
|
226
|
+
throw new Error(`Unsupported dbt manifest version: ${version}`);
|
|
227
|
+
};
|
|
228
|
+
export const getLatestSupportedDbtManifestVersion = () => {
|
|
229
|
+
const versions = Object.values(DbtManifestVersion);
|
|
230
|
+
return versions[versions.length - 1];
|
|
231
|
+
};
|
|
232
|
+
export var DbtExposureType;
|
|
233
|
+
(function (DbtExposureType) {
|
|
234
|
+
DbtExposureType["DASHBOARD"] = "dashboard";
|
|
235
|
+
DbtExposureType["NOTEBOOK"] = "notebook";
|
|
236
|
+
DbtExposureType["ANALYSIS"] = "analysis";
|
|
237
|
+
DbtExposureType["ML"] = "ml";
|
|
238
|
+
DbtExposureType["APPLICATION"] = "application";
|
|
239
|
+
})(DbtExposureType || (DbtExposureType = {}));
|
|
240
|
+
export const getModelsFromManifest = (manifest) => {
|
|
241
|
+
const models = Object.values(manifest.nodes).filter((node) => node.resource_type === 'model' &&
|
|
242
|
+
node.config?.materialized !== 'ephemeral');
|
|
243
|
+
if (!isSupportedDbtAdapter(manifest.metadata)) {
|
|
244
|
+
throw new ParseError(`dbt adapter not supported. Lightdash does not support adapter ${manifest.metadata.adapter_type}`, {});
|
|
245
|
+
}
|
|
246
|
+
const adapterType = manifest.metadata.adapter_type;
|
|
247
|
+
return models
|
|
248
|
+
.filter((model) => model.config?.materialized &&
|
|
249
|
+
model.config.materialized !== 'ephemeral')
|
|
250
|
+
.map((model) => normaliseModelDatabase(model, adapterType));
|
|
251
|
+
};
|
|
252
|
+
export function getCompiledModels(manifestModels, compiledModelIds) {
|
|
253
|
+
const isAnyModelCompiled = manifestModels.some((model) => model.compiled);
|
|
254
|
+
return manifestModels.filter((model) => {
|
|
255
|
+
if (compiledModelIds) {
|
|
256
|
+
return compiledModelIds.includes(model.unique_id);
|
|
257
|
+
}
|
|
258
|
+
// In case any model is compiled, we only return the compiled models otherwise we return all models (this maintains backwards compatibility + adds ability to use parse)
|
|
259
|
+
return isAnyModelCompiled ? model.compiled : true;
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
//# sourceMappingURL=dbt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dbt.js","sourceRoot":"","sources":["../../../src/types/dbt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EACH,yBAAyB,EACzB,oCAAoC,GACvC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,iBAAiB,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAO1C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,EACH,SAAS,EACT,YAAY,GAQf,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAuB,MAAM,iBAAiB,CAAC;AAKpE,MAAM,CAAN,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC3B,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;IACzB,8CAAuB,CAAA;IACvB,4CAAqB,CAAA;IACrB,4CAAqB,CAAA;IACrB,sCAAe,CAAA;IACf,gDAAyB,CAAA;AAC7B,CAAC,EARW,mBAAmB,KAAnB,mBAAmB,QAQ9B;AAuKD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAClC,KAAsB,EACtB,eAAoC,EACxB,EAAE;IACd,QAAQ,eAAe,EAAE,CAAC;QACtB,KAAK,mBAAmB,CAAC,QAAQ,CAAC;QAClC,KAAK,mBAAmB,CAAC,QAAQ,CAAC;QAClC,KAAK,mBAAmB,CAAC,SAAS,CAAC;QACnC,KAAK,mBAAmB,CAAC,KAAK,CAAC;QAC/B,KAAK,mBAAmB,CAAC,QAAQ;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AAY,CAAC;IACnD,OAAO,MAAM;SACR,MAAM,CACH,CAAC,KAAK,EAAE,EAAE,CACN,KAAK,CAAC,MAAM,EAAE,YAAY;QAC1B,KAAK,CAAC,MAAM,CAAC,YAAY,KAAK,WAAW,CAChD;SACA,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,sBAAsB,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;AACpE,CAAC,CAAC;AAEF,MAAM,UAAU,iBAAiB,CAC7B,cAA8B,EAC9B,gBAA2B;IAE3B,MAAM,kBAAkB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAE1E,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;QACnC,IAAI,gBAAgB,EAAE,CAAC;YACnB,OAAO,gBAAgB,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACtD,CAAC;QAED,wKAAwK;QACxK,OAAO,kBAAkB,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;IACtD,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dbtFromSchema.js","sourceRoot":"","sources":["../../../src/types/dbtFromSchema.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepPartial.js","sourceRoot":"","sources":["../../../src/types/deepPartial.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var DownloadFileType;
|
|
2
|
+
(function (DownloadFileType) {
|
|
3
|
+
DownloadFileType["CSV"] = "csv";
|
|
4
|
+
DownloadFileType["IMAGE"] = "image";
|
|
5
|
+
DownloadFileType["JSONL"] = "jsonl";
|
|
6
|
+
DownloadFileType["S3_JSONL"] = "s3_jsonl";
|
|
7
|
+
DownloadFileType["XLSX"] = "xlsx";
|
|
8
|
+
})(DownloadFileType || (DownloadFileType = {}));
|
|
9
|
+
//# sourceMappingURL=downloadFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"downloadFile.js","sourceRoot":"","sources":["../../../src/types/downloadFile.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IACxB,+BAAW,CAAA;IACX,mCAAe,CAAA;IACf,mCAAe,CAAA;IACf,yCAAqB,CAAA;IACrB,iCAAa,CAAA;AACjB,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.js","sourceRoot":"","sources":["../../../src/types/email.ts"],"names":[],"mappings":""}
|