@lightdash/common 0.2104.6 → 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,1417 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"version": {
|
|
6
|
+
"type": "number",
|
|
7
|
+
"enum": [2]
|
|
8
|
+
},
|
|
9
|
+
"models": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"name": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"description": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"docs": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"show": {
|
|
24
|
+
"type": "boolean"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"tests": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"anyOf": [
|
|
32
|
+
{
|
|
33
|
+
"type": "object"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "string"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"data_tests": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"anyOf": [
|
|
45
|
+
{
|
|
46
|
+
"type": "object"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "string"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"meta": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"joins": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {
|
|
62
|
+
"join": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"sql_on": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"always": {
|
|
69
|
+
"type": "boolean"
|
|
70
|
+
},
|
|
71
|
+
"type": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"enum": [
|
|
74
|
+
"inner",
|
|
75
|
+
"left",
|
|
76
|
+
"right",
|
|
77
|
+
"full"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"hidden": {
|
|
81
|
+
"type": "boolean"
|
|
82
|
+
},
|
|
83
|
+
"alias": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"label": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"fields": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"relationship": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"enum": [
|
|
98
|
+
"one-to-many",
|
|
99
|
+
"many-to-one",
|
|
100
|
+
"one-to-one",
|
|
101
|
+
"many-to-many"
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": ["join", "sql_on"]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"order_fields_by": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"enum": ["index", "label"]
|
|
111
|
+
},
|
|
112
|
+
"group_details": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"description": "Set up group_details so you can group your dimensions and metrics in the sidebar using the groups parameter. You can create nested groups up to 3 levels",
|
|
115
|
+
"patternProperties": {
|
|
116
|
+
"^[a-zA-Z0-9_]+$": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {
|
|
119
|
+
"label": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"minLength": 1
|
|
122
|
+
},
|
|
123
|
+
"description": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": ["label"]
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"metrics": {
|
|
132
|
+
"type": "object",
|
|
133
|
+
"patternProperties": {
|
|
134
|
+
"^[a-z0-9_]+$": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"properties": {
|
|
137
|
+
"type": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"enum": [
|
|
140
|
+
"percentile",
|
|
141
|
+
"median",
|
|
142
|
+
"average",
|
|
143
|
+
"boolean",
|
|
144
|
+
"count",
|
|
145
|
+
"count_distinct",
|
|
146
|
+
"date",
|
|
147
|
+
"max",
|
|
148
|
+
"min",
|
|
149
|
+
"number",
|
|
150
|
+
"string",
|
|
151
|
+
"sum",
|
|
152
|
+
"percent_of_previous",
|
|
153
|
+
"percent_of_total",
|
|
154
|
+
"running_total"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
"label": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"minLength": 1
|
|
160
|
+
},
|
|
161
|
+
"description": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"minLength": 1
|
|
164
|
+
},
|
|
165
|
+
"sql": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"minLength": 1
|
|
168
|
+
},
|
|
169
|
+
"hidden": {
|
|
170
|
+
"type": "boolean"
|
|
171
|
+
},
|
|
172
|
+
"round": {
|
|
173
|
+
"description": "Rounds the metric to the specified number of decimal places",
|
|
174
|
+
"type": "number",
|
|
175
|
+
"minimum": 0
|
|
176
|
+
},
|
|
177
|
+
"format": {
|
|
178
|
+
"type": "string"
|
|
179
|
+
},
|
|
180
|
+
"percentile": {
|
|
181
|
+
"type": "number"
|
|
182
|
+
},
|
|
183
|
+
"compact": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"enum": [
|
|
186
|
+
"thousands",
|
|
187
|
+
"millions",
|
|
188
|
+
"billions",
|
|
189
|
+
"trillions",
|
|
190
|
+
"thousand",
|
|
191
|
+
"million",
|
|
192
|
+
"billion",
|
|
193
|
+
"trillion",
|
|
194
|
+
"K",
|
|
195
|
+
"M",
|
|
196
|
+
"B",
|
|
197
|
+
"T",
|
|
198
|
+
"kilobytes",
|
|
199
|
+
"megabytes",
|
|
200
|
+
"gigabytes",
|
|
201
|
+
"terabytes",
|
|
202
|
+
"petabytes",
|
|
203
|
+
"kilobyte",
|
|
204
|
+
"megabyte",
|
|
205
|
+
"gigabyte",
|
|
206
|
+
"terabyte",
|
|
207
|
+
"petabyte",
|
|
208
|
+
"KB",
|
|
209
|
+
"MB",
|
|
210
|
+
"GB",
|
|
211
|
+
"TB",
|
|
212
|
+
"PB",
|
|
213
|
+
"kibibytes",
|
|
214
|
+
"mebibytes",
|
|
215
|
+
"gibibytes",
|
|
216
|
+
"tebibytes",
|
|
217
|
+
"pebibytes",
|
|
218
|
+
"kibibyte",
|
|
219
|
+
"mebibyte",
|
|
220
|
+
"gibibyte",
|
|
221
|
+
"tebibyte",
|
|
222
|
+
"pebibyte",
|
|
223
|
+
"KiB",
|
|
224
|
+
"MiB",
|
|
225
|
+
"GiB",
|
|
226
|
+
"TiB",
|
|
227
|
+
"PiB"
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
"urls": {
|
|
231
|
+
"type": "array",
|
|
232
|
+
"items": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"properties": {
|
|
235
|
+
"url": {
|
|
236
|
+
"type": "string"
|
|
237
|
+
},
|
|
238
|
+
"label": {
|
|
239
|
+
"type": "string"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"tags": {
|
|
245
|
+
"oneOf": [
|
|
246
|
+
{
|
|
247
|
+
"type": "string"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"type": "array",
|
|
251
|
+
"items": {
|
|
252
|
+
"type": "string"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
"show_underlying_values": {
|
|
258
|
+
"type": "array",
|
|
259
|
+
"items": {
|
|
260
|
+
"type": "string"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"groups": {
|
|
264
|
+
"type": "array",
|
|
265
|
+
"description": "Groups are used to group dimensions and metrics in the sidebar. You can create nested groups up to 3 levels",
|
|
266
|
+
"items": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"minLength": 1
|
|
269
|
+
},
|
|
270
|
+
"maxItems": 3
|
|
271
|
+
},
|
|
272
|
+
"default_time_dimension": {
|
|
273
|
+
"type": "object",
|
|
274
|
+
"description": "Specifies the default time dimension field and interval to use for time-based analysis on this metric. If specified, both field and interval are required. If there is already a default time dimension set in the model, this will override it.",
|
|
275
|
+
"properties": {
|
|
276
|
+
"field": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"description": "The name of the field to use as the default time dimension"
|
|
279
|
+
},
|
|
280
|
+
"interval": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"enum": [
|
|
283
|
+
"DAY",
|
|
284
|
+
"WEEK",
|
|
285
|
+
"MONTH",
|
|
286
|
+
"YEAR"
|
|
287
|
+
],
|
|
288
|
+
"description": "The default time interval to use when analyzing this time dimension"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": [
|
|
292
|
+
"field",
|
|
293
|
+
"interval"
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
"spotlight": {
|
|
297
|
+
"type": "object",
|
|
298
|
+
"description": "Set the visibility and/or categories of a metric in Spotlight",
|
|
299
|
+
"properties": {
|
|
300
|
+
"visibility": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"enum": ["show", "hide"]
|
|
303
|
+
},
|
|
304
|
+
"categories": {
|
|
305
|
+
"type": "array",
|
|
306
|
+
"items": {
|
|
307
|
+
"type": "string"
|
|
308
|
+
},
|
|
309
|
+
"description": "An array of categories for the metric in Spotlight"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"anyOf": [
|
|
313
|
+
{
|
|
314
|
+
"required": [
|
|
315
|
+
"visibility"
|
|
316
|
+
]
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"required": [
|
|
320
|
+
"categories"
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"required": ["type", "sql"]
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"default_time_dimension": {
|
|
331
|
+
"type": "object",
|
|
332
|
+
"description": "Specifies the default time dimension field and interval to use for time-based analysis (on any metric in the model). If specified, both field and interval are required.",
|
|
333
|
+
"properties": {
|
|
334
|
+
"field": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"description": "The name of the field to use as the default time dimension"
|
|
337
|
+
},
|
|
338
|
+
"interval": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"enum": [
|
|
341
|
+
"DAY",
|
|
342
|
+
"WEEK",
|
|
343
|
+
"MONTH",
|
|
344
|
+
"YEAR"
|
|
345
|
+
],
|
|
346
|
+
"description": "The default time interval to use when analyzing this time dimension"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"required": ["field", "interval"]
|
|
350
|
+
},
|
|
351
|
+
"spotlight": {
|
|
352
|
+
"type": "object",
|
|
353
|
+
"description": "Set the visibility and/or categories of a metric in Spotlight",
|
|
354
|
+
"properties": {
|
|
355
|
+
"visibility": {
|
|
356
|
+
"type": "string",
|
|
357
|
+
"enum": ["show", "hide"]
|
|
358
|
+
},
|
|
359
|
+
"categories": {
|
|
360
|
+
"type": "array",
|
|
361
|
+
"items": {
|
|
362
|
+
"type": "string"
|
|
363
|
+
},
|
|
364
|
+
"description": "An optional array of categories for all metrics in this model in Spotlight"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"anyOf": [
|
|
368
|
+
{ "required": ["visibility"] },
|
|
369
|
+
{ "required": ["categories"] }
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
"primary_key": {
|
|
373
|
+
"oneOf": [
|
|
374
|
+
{
|
|
375
|
+
"type": "string"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"type": "array",
|
|
379
|
+
"items": {
|
|
380
|
+
"type": "string"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
"sql_where": {
|
|
386
|
+
"type": "string"
|
|
387
|
+
},
|
|
388
|
+
"sql_filter": {
|
|
389
|
+
"type": "string"
|
|
390
|
+
},
|
|
391
|
+
"sql_from": {
|
|
392
|
+
"type": "string"
|
|
393
|
+
},
|
|
394
|
+
"required_attributes": {
|
|
395
|
+
"type": "object",
|
|
396
|
+
"properties": {},
|
|
397
|
+
"additionalProperties": {
|
|
398
|
+
"oneOf": [
|
|
399
|
+
{
|
|
400
|
+
"type": "array",
|
|
401
|
+
"items": {
|
|
402
|
+
"type": "string"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"type": "string"
|
|
407
|
+
}
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
"parameters": {
|
|
412
|
+
"type": ["object", "null"],
|
|
413
|
+
"description": "Define parameters that can be used in SQL queries",
|
|
414
|
+
"patternProperties": {
|
|
415
|
+
"^[a-zA-Z0-9_-]+$": {
|
|
416
|
+
"type": "object",
|
|
417
|
+
"properties": {
|
|
418
|
+
"label": {
|
|
419
|
+
"description": "The label of the parameter as it will be displayed in the UI",
|
|
420
|
+
"type": "string"
|
|
421
|
+
},
|
|
422
|
+
"type": {
|
|
423
|
+
"description": "The data type of the parameter (defaults to 'string' for backwards compatibility)",
|
|
424
|
+
"type": "string",
|
|
425
|
+
"enum": ["string", "number"],
|
|
426
|
+
"default": "string"
|
|
427
|
+
},
|
|
428
|
+
"description": {
|
|
429
|
+
"description": "A description of the parameter",
|
|
430
|
+
"type": "string"
|
|
431
|
+
},
|
|
432
|
+
"options": {
|
|
433
|
+
"description": "A list of possible values for the parameter",
|
|
434
|
+
"type": "array",
|
|
435
|
+
"items": {
|
|
436
|
+
"type": ["string", "number"]
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
"default": {
|
|
440
|
+
"description": "The default value(s) for the parameter",
|
|
441
|
+
"oneOf": [
|
|
442
|
+
{
|
|
443
|
+
"type": [
|
|
444
|
+
"string",
|
|
445
|
+
"number"
|
|
446
|
+
]
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"type": "array",
|
|
450
|
+
"items": {
|
|
451
|
+
"type": [
|
|
452
|
+
"string",
|
|
453
|
+
"number"
|
|
454
|
+
]
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
"multiple": {
|
|
460
|
+
"description": "Whether the parameter input will be a multi select",
|
|
461
|
+
"type": "boolean"
|
|
462
|
+
},
|
|
463
|
+
"allow_custom_values": {
|
|
464
|
+
"description": "Whether users can input custom values beyond predefined options",
|
|
465
|
+
"type": "boolean"
|
|
466
|
+
},
|
|
467
|
+
"options_from_dimension": {
|
|
468
|
+
"description": "Get parameter options from a dimension in a model",
|
|
469
|
+
"type": "object",
|
|
470
|
+
"properties": {
|
|
471
|
+
"model": {
|
|
472
|
+
"description": "The model containing the dimension",
|
|
473
|
+
"type": "string"
|
|
474
|
+
},
|
|
475
|
+
"dimension": {
|
|
476
|
+
"description": "The dimension to get options from",
|
|
477
|
+
"type": "string"
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"required": [
|
|
481
|
+
"model",
|
|
482
|
+
"dimension"
|
|
483
|
+
]
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
"required": ["label"]
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"default_filters": {
|
|
491
|
+
"type": "array",
|
|
492
|
+
"description": "Default filters that are automatically applied when exploring this model",
|
|
493
|
+
"items": {
|
|
494
|
+
"type": "object",
|
|
495
|
+
"additionalProperties": {
|
|
496
|
+
"type": "string"
|
|
497
|
+
},
|
|
498
|
+
"properties": {
|
|
499
|
+
"required": {
|
|
500
|
+
"type": "boolean",
|
|
501
|
+
"description": "If true, this filter cannot be removed by users"
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"required_filters": {
|
|
507
|
+
"type": "array",
|
|
508
|
+
"description": "Alias for default_filters (deprecated, use default_filters instead)",
|
|
509
|
+
"items": {
|
|
510
|
+
"type": "object",
|
|
511
|
+
"additionalProperties": {
|
|
512
|
+
"type": "string"
|
|
513
|
+
},
|
|
514
|
+
"properties": {
|
|
515
|
+
"required": {
|
|
516
|
+
"type": "boolean",
|
|
517
|
+
"description": "If true, this filter cannot be removed by users"
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
"explores": {
|
|
523
|
+
"type": "object",
|
|
524
|
+
"description": "Defines custom explores for this model",
|
|
525
|
+
"patternProperties": {
|
|
526
|
+
"^[a-zA-Z0-9_]+$": {
|
|
527
|
+
"type": "object",
|
|
528
|
+
"properties": {
|
|
529
|
+
"default_filters": {
|
|
530
|
+
"type": "array",
|
|
531
|
+
"description": "Default filters that are automatically applied when exploring this explore",
|
|
532
|
+
"items": {
|
|
533
|
+
"type": "object",
|
|
534
|
+
"additionalProperties": {
|
|
535
|
+
"type": "string"
|
|
536
|
+
},
|
|
537
|
+
"properties": {
|
|
538
|
+
"required": {
|
|
539
|
+
"type": "boolean",
|
|
540
|
+
"description": "If true, this filter cannot be removed by users"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"required_filters": {
|
|
546
|
+
"type": "array",
|
|
547
|
+
"description": "Alias for default_filters (deprecated, use default_filters instead)",
|
|
548
|
+
"items": {
|
|
549
|
+
"type": "object",
|
|
550
|
+
"additionalProperties": {
|
|
551
|
+
"type": "string"
|
|
552
|
+
},
|
|
553
|
+
"properties": {
|
|
554
|
+
"required": {
|
|
555
|
+
"type": "boolean",
|
|
556
|
+
"description": "If true, this filter cannot be removed by users"
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
"columns": {
|
|
568
|
+
"type": "array",
|
|
569
|
+
"items": {
|
|
570
|
+
"type": "object",
|
|
571
|
+
"properties": {
|
|
572
|
+
"name": {
|
|
573
|
+
"type": "string"
|
|
574
|
+
},
|
|
575
|
+
"description": {
|
|
576
|
+
"type": "string"
|
|
577
|
+
},
|
|
578
|
+
"quote": {
|
|
579
|
+
"type": "boolean"
|
|
580
|
+
},
|
|
581
|
+
"tests": {
|
|
582
|
+
"type": "array",
|
|
583
|
+
"items": {
|
|
584
|
+
"anyOf": [
|
|
585
|
+
{
|
|
586
|
+
"type": "object"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"type": "string"
|
|
590
|
+
}
|
|
591
|
+
]
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
"data_tests": {
|
|
595
|
+
"type": "array",
|
|
596
|
+
"items": {
|
|
597
|
+
"anyOf": [
|
|
598
|
+
{
|
|
599
|
+
"type": "object"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"type": "string"
|
|
603
|
+
}
|
|
604
|
+
]
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
"tags": {
|
|
608
|
+
"type": "array",
|
|
609
|
+
"items": {
|
|
610
|
+
"type": "string"
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
"meta": {
|
|
614
|
+
"type": "object",
|
|
615
|
+
"properties": {
|
|
616
|
+
"metrics": {
|
|
617
|
+
"type": "object",
|
|
618
|
+
"patternProperties": {
|
|
619
|
+
"^[a-z0-9_]+$": {
|
|
620
|
+
"type": "object",
|
|
621
|
+
"properties": {
|
|
622
|
+
"type": {
|
|
623
|
+
"type": "string",
|
|
624
|
+
"enum": [
|
|
625
|
+
"percentile",
|
|
626
|
+
"median",
|
|
627
|
+
"average",
|
|
628
|
+
"boolean",
|
|
629
|
+
"count",
|
|
630
|
+
"count_distinct",
|
|
631
|
+
"date",
|
|
632
|
+
"max",
|
|
633
|
+
"min",
|
|
634
|
+
"number",
|
|
635
|
+
"string",
|
|
636
|
+
"sum",
|
|
637
|
+
"percent_of_previous",
|
|
638
|
+
"percent_of_total",
|
|
639
|
+
"running_total"
|
|
640
|
+
]
|
|
641
|
+
},
|
|
642
|
+
"label": {
|
|
643
|
+
"type": "string",
|
|
644
|
+
"minLength": 1
|
|
645
|
+
},
|
|
646
|
+
"description": {
|
|
647
|
+
"type": "string",
|
|
648
|
+
"minLength": 1
|
|
649
|
+
},
|
|
650
|
+
"sql": {
|
|
651
|
+
"type": "string",
|
|
652
|
+
"minLength": 1
|
|
653
|
+
},
|
|
654
|
+
"hidden": {
|
|
655
|
+
"type": "boolean"
|
|
656
|
+
},
|
|
657
|
+
"round": {
|
|
658
|
+
"type": "number",
|
|
659
|
+
"minimum": 0
|
|
660
|
+
},
|
|
661
|
+
"format": {
|
|
662
|
+
"type": "string"
|
|
663
|
+
},
|
|
664
|
+
"percentile": {
|
|
665
|
+
"type": "number"
|
|
666
|
+
},
|
|
667
|
+
"compact": {
|
|
668
|
+
"type": "string",
|
|
669
|
+
"enum": [
|
|
670
|
+
"thousands",
|
|
671
|
+
"millions",
|
|
672
|
+
"billions",
|
|
673
|
+
"trillions",
|
|
674
|
+
"thousand",
|
|
675
|
+
"million",
|
|
676
|
+
"billion",
|
|
677
|
+
"trillion",
|
|
678
|
+
"K",
|
|
679
|
+
"M",
|
|
680
|
+
"B",
|
|
681
|
+
"T",
|
|
682
|
+
"kilobytes",
|
|
683
|
+
"megabytes",
|
|
684
|
+
"gigabytes",
|
|
685
|
+
"terabytes",
|
|
686
|
+
"petabytes",
|
|
687
|
+
"kilobyte",
|
|
688
|
+
"megabyte",
|
|
689
|
+
"gigabyte",
|
|
690
|
+
"terabyte",
|
|
691
|
+
"petabyte",
|
|
692
|
+
"KB",
|
|
693
|
+
"MB",
|
|
694
|
+
"GB",
|
|
695
|
+
"TB",
|
|
696
|
+
"PB",
|
|
697
|
+
"kibibytes",
|
|
698
|
+
"mebibytes",
|
|
699
|
+
"gibibytes",
|
|
700
|
+
"tebibytes",
|
|
701
|
+
"pebibytes",
|
|
702
|
+
"kibibyte",
|
|
703
|
+
"mebibyte",
|
|
704
|
+
"gibibyte",
|
|
705
|
+
"tebibyte",
|
|
706
|
+
"pebibyte",
|
|
707
|
+
"KiB",
|
|
708
|
+
"MiB",
|
|
709
|
+
"GiB",
|
|
710
|
+
"TiB",
|
|
711
|
+
"PiB"
|
|
712
|
+
]
|
|
713
|
+
},
|
|
714
|
+
"urls": {
|
|
715
|
+
"type": "array",
|
|
716
|
+
"items": {
|
|
717
|
+
"type": "object",
|
|
718
|
+
"properties": {
|
|
719
|
+
"url": {
|
|
720
|
+
"type": "string"
|
|
721
|
+
},
|
|
722
|
+
"label": {
|
|
723
|
+
"type": "string"
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
"tags": {
|
|
729
|
+
"oneOf": [
|
|
730
|
+
{
|
|
731
|
+
"type": "string"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"type": "array",
|
|
735
|
+
"items": {
|
|
736
|
+
"type": "string"
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
]
|
|
740
|
+
},
|
|
741
|
+
"show_underlying_values": {
|
|
742
|
+
"type": "array",
|
|
743
|
+
"items": {
|
|
744
|
+
"type": "string"
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
"groups": {
|
|
748
|
+
"type": "array",
|
|
749
|
+
"description": "Groups are used to group dimensions and metrics in the sidebar. You can create nested groups up to 3 levels",
|
|
750
|
+
"items": {
|
|
751
|
+
"type": "string",
|
|
752
|
+
"minLength": 1
|
|
753
|
+
},
|
|
754
|
+
"maxItems": 3
|
|
755
|
+
},
|
|
756
|
+
"default_time_dimension": {
|
|
757
|
+
"type": "object",
|
|
758
|
+
"description": "Specifies the default time dimension field and interval to use for time-based analysis on this metric. If specified, both field and interval are required. If there is already a default time dimension set in the model, this will override it.",
|
|
759
|
+
"properties": {
|
|
760
|
+
"field": {
|
|
761
|
+
"type": "string",
|
|
762
|
+
"description": "The name of the field to use as the default time dimension"
|
|
763
|
+
},
|
|
764
|
+
"interval": {
|
|
765
|
+
"type": "string",
|
|
766
|
+
"enum": [
|
|
767
|
+
"DAY",
|
|
768
|
+
"WEEK",
|
|
769
|
+
"MONTH",
|
|
770
|
+
"YEAR"
|
|
771
|
+
],
|
|
772
|
+
"description": "The default time interval to use when analyzing this time dimension"
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
"required": [
|
|
776
|
+
"field",
|
|
777
|
+
"interval"
|
|
778
|
+
]
|
|
779
|
+
},
|
|
780
|
+
"spotlight": {
|
|
781
|
+
"type": "object",
|
|
782
|
+
"description": "Set the visibility and/or categories of a metric in Spotlight",
|
|
783
|
+
"properties": {
|
|
784
|
+
"visibility": {
|
|
785
|
+
"type": "string",
|
|
786
|
+
"enum": [
|
|
787
|
+
"show",
|
|
788
|
+
"hide"
|
|
789
|
+
]
|
|
790
|
+
},
|
|
791
|
+
"categories": {
|
|
792
|
+
"type": "array",
|
|
793
|
+
"items": {
|
|
794
|
+
"type": "string"
|
|
795
|
+
},
|
|
796
|
+
"description": "An array of categories for the metric in Spotlight"
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
"anyOf": [
|
|
800
|
+
{
|
|
801
|
+
"required": [
|
|
802
|
+
"visibility"
|
|
803
|
+
]
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"required": [
|
|
807
|
+
"categories"
|
|
808
|
+
]
|
|
809
|
+
}
|
|
810
|
+
]
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
"required": ["type"]
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
"dimension": {
|
|
818
|
+
"type": "object",
|
|
819
|
+
"properties": {
|
|
820
|
+
"type": {
|
|
821
|
+
"type": "string",
|
|
822
|
+
"enum": [
|
|
823
|
+
"string",
|
|
824
|
+
"number",
|
|
825
|
+
"timestamp",
|
|
826
|
+
"date",
|
|
827
|
+
"boolean"
|
|
828
|
+
]
|
|
829
|
+
},
|
|
830
|
+
"label": {
|
|
831
|
+
"type": "string",
|
|
832
|
+
"minLength": 1
|
|
833
|
+
},
|
|
834
|
+
"description": {
|
|
835
|
+
"type": "string",
|
|
836
|
+
"minLength": 1
|
|
837
|
+
},
|
|
838
|
+
"sql": {
|
|
839
|
+
"type": "string",
|
|
840
|
+
"minLength": 1
|
|
841
|
+
},
|
|
842
|
+
"hidden": {
|
|
843
|
+
"type": "boolean"
|
|
844
|
+
},
|
|
845
|
+
"round": {
|
|
846
|
+
"type": "number",
|
|
847
|
+
"minimum": 0
|
|
848
|
+
},
|
|
849
|
+
"format": {
|
|
850
|
+
"type": "string"
|
|
851
|
+
},
|
|
852
|
+
"time_intervals": {
|
|
853
|
+
"anyOf": [
|
|
854
|
+
{
|
|
855
|
+
"type": "array",
|
|
856
|
+
"items": {
|
|
857
|
+
"type": "string",
|
|
858
|
+
"enum": [
|
|
859
|
+
"RAW",
|
|
860
|
+
"DAY",
|
|
861
|
+
"WEEK",
|
|
862
|
+
"MONTH",
|
|
863
|
+
"QUARTER",
|
|
864
|
+
"YEAR",
|
|
865
|
+
"HOUR",
|
|
866
|
+
"MINUTE",
|
|
867
|
+
"SECOND",
|
|
868
|
+
"MILLISECOND",
|
|
869
|
+
"WEEK_NUM",
|
|
870
|
+
"MONTH_NUM",
|
|
871
|
+
"MONTH_NAME",
|
|
872
|
+
"DAY_OF_WEEK_NAME",
|
|
873
|
+
"QUARTER_NAME",
|
|
874
|
+
"DAY_OF_WEEK_INDEX",
|
|
875
|
+
"DAY_OF_MONTH_NUM",
|
|
876
|
+
"DAY_OF_YEAR_NUM",
|
|
877
|
+
"QUARTER_NUM",
|
|
878
|
+
"YEAR_NUM",
|
|
879
|
+
"HOUR_OF_DAY_NUM",
|
|
880
|
+
"MINUTE_OF_HOUR_NUM"
|
|
881
|
+
]
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"type": "string",
|
|
886
|
+
"enum": [
|
|
887
|
+
"default",
|
|
888
|
+
"OFF"
|
|
889
|
+
]
|
|
890
|
+
}
|
|
891
|
+
]
|
|
892
|
+
},
|
|
893
|
+
"groups": {
|
|
894
|
+
"type": "array",
|
|
895
|
+
"description": "Groups are used to group dimensions and metrics in the sidebar. You can create nested groups up to 3 levels",
|
|
896
|
+
"items": {
|
|
897
|
+
"type": "string",
|
|
898
|
+
"minLength": 1
|
|
899
|
+
},
|
|
900
|
+
"maxItems": 3
|
|
901
|
+
},
|
|
902
|
+
"compact": {
|
|
903
|
+
"type": "string",
|
|
904
|
+
"enum": [
|
|
905
|
+
"thousands",
|
|
906
|
+
"millions",
|
|
907
|
+
"billions",
|
|
908
|
+
"trillions",
|
|
909
|
+
"thousand",
|
|
910
|
+
"million",
|
|
911
|
+
"billion",
|
|
912
|
+
"trillion",
|
|
913
|
+
"K",
|
|
914
|
+
"M",
|
|
915
|
+
"B",
|
|
916
|
+
"T",
|
|
917
|
+
"kilobytes",
|
|
918
|
+
"megabytes",
|
|
919
|
+
"gigabytes",
|
|
920
|
+
"terabytes",
|
|
921
|
+
"petabytes",
|
|
922
|
+
"kilobyte",
|
|
923
|
+
"megabyte",
|
|
924
|
+
"gigabyte",
|
|
925
|
+
"terabyte",
|
|
926
|
+
"petabyte",
|
|
927
|
+
"KB",
|
|
928
|
+
"MB",
|
|
929
|
+
"GB",
|
|
930
|
+
"TB",
|
|
931
|
+
"PB",
|
|
932
|
+
"kibibytes",
|
|
933
|
+
"mebibytes",
|
|
934
|
+
"gibibytes",
|
|
935
|
+
"tebibytes",
|
|
936
|
+
"pebibytes",
|
|
937
|
+
"kibibyte",
|
|
938
|
+
"mebibyte",
|
|
939
|
+
"gibibyte",
|
|
940
|
+
"tebibyte",
|
|
941
|
+
"pebibyte",
|
|
942
|
+
"KiB",
|
|
943
|
+
"MiB",
|
|
944
|
+
"GiB",
|
|
945
|
+
"TiB",
|
|
946
|
+
"PiB"
|
|
947
|
+
]
|
|
948
|
+
},
|
|
949
|
+
"urls": {
|
|
950
|
+
"type": "array",
|
|
951
|
+
"items": {
|
|
952
|
+
"type": "object",
|
|
953
|
+
"properties": {
|
|
954
|
+
"url": {
|
|
955
|
+
"type": "string"
|
|
956
|
+
},
|
|
957
|
+
"label": {
|
|
958
|
+
"type": "string"
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
"tags": {
|
|
964
|
+
"oneOf": [
|
|
965
|
+
{
|
|
966
|
+
"type": "string"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"type": "array",
|
|
970
|
+
"items": {
|
|
971
|
+
"type": "string"
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
]
|
|
975
|
+
},
|
|
976
|
+
"required_attributes": {
|
|
977
|
+
"type": "object",
|
|
978
|
+
"properties": {},
|
|
979
|
+
"additionalProperties": {
|
|
980
|
+
"oneOf": [
|
|
981
|
+
{
|
|
982
|
+
"type": "array",
|
|
983
|
+
"items": {
|
|
984
|
+
"type": "string"
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"type": "string"
|
|
989
|
+
}
|
|
990
|
+
]
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
"additional_dimensions": {
|
|
996
|
+
"type": "object",
|
|
997
|
+
"patternProperties": {
|
|
998
|
+
"^[a-z0-9_]+$": {
|
|
999
|
+
"type": "object",
|
|
1000
|
+
"properties": {
|
|
1001
|
+
"type": {
|
|
1002
|
+
"type": "string",
|
|
1003
|
+
"enum": [
|
|
1004
|
+
"string",
|
|
1005
|
+
"number",
|
|
1006
|
+
"timestamp",
|
|
1007
|
+
"date",
|
|
1008
|
+
"boolean"
|
|
1009
|
+
]
|
|
1010
|
+
},
|
|
1011
|
+
"label": {
|
|
1012
|
+
"type": "string",
|
|
1013
|
+
"minLength": 1
|
|
1014
|
+
},
|
|
1015
|
+
"description": {
|
|
1016
|
+
"type": "string",
|
|
1017
|
+
"minLength": 1
|
|
1018
|
+
},
|
|
1019
|
+
"sql": {
|
|
1020
|
+
"type": "string",
|
|
1021
|
+
"minLength": 1
|
|
1022
|
+
},
|
|
1023
|
+
"time_intervals": {
|
|
1024
|
+
"anyOf": [
|
|
1025
|
+
{
|
|
1026
|
+
"type": "array",
|
|
1027
|
+
"items": {
|
|
1028
|
+
"type": "string",
|
|
1029
|
+
"enum": [
|
|
1030
|
+
"RAW",
|
|
1031
|
+
"DAY",
|
|
1032
|
+
"WEEK",
|
|
1033
|
+
"MONTH",
|
|
1034
|
+
"QUARTER",
|
|
1035
|
+
"YEAR",
|
|
1036
|
+
"HOUR",
|
|
1037
|
+
"MINUTE",
|
|
1038
|
+
"SECOND",
|
|
1039
|
+
"MILLISECOND",
|
|
1040
|
+
"WEEK_NUM",
|
|
1041
|
+
"MONTH_NUM",
|
|
1042
|
+
"MONTH_NAME",
|
|
1043
|
+
"DAY_OF_WEEK_NAME",
|
|
1044
|
+
"QUARTER_NAME",
|
|
1045
|
+
"DAY_OF_WEEK_INDEX",
|
|
1046
|
+
"DAY_OF_MONTH_NUM",
|
|
1047
|
+
"DAY_OF_YEAR_NUM",
|
|
1048
|
+
"QUARTER_NUM",
|
|
1049
|
+
"YEAR_NUM",
|
|
1050
|
+
"HOUR_OF_DAY_NUM",
|
|
1051
|
+
"MINUTE_OF_HOUR_NUM"
|
|
1052
|
+
]
|
|
1053
|
+
}
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"type": "string",
|
|
1057
|
+
"enum": [
|
|
1058
|
+
"default",
|
|
1059
|
+
"OFF"
|
|
1060
|
+
]
|
|
1061
|
+
}
|
|
1062
|
+
]
|
|
1063
|
+
},
|
|
1064
|
+
"hidden": {
|
|
1065
|
+
"type": "boolean"
|
|
1066
|
+
},
|
|
1067
|
+
"round": {
|
|
1068
|
+
"type": "number",
|
|
1069
|
+
"minimum": 0
|
|
1070
|
+
},
|
|
1071
|
+
"format": {
|
|
1072
|
+
"type": "string"
|
|
1073
|
+
},
|
|
1074
|
+
"compact": {
|
|
1075
|
+
"type": "string",
|
|
1076
|
+
"enum": [
|
|
1077
|
+
"thousands",
|
|
1078
|
+
"millions",
|
|
1079
|
+
"billions",
|
|
1080
|
+
"trillions",
|
|
1081
|
+
"thousand",
|
|
1082
|
+
"million",
|
|
1083
|
+
"billion",
|
|
1084
|
+
"trillion",
|
|
1085
|
+
"K",
|
|
1086
|
+
"M",
|
|
1087
|
+
"B",
|
|
1088
|
+
"T",
|
|
1089
|
+
"kilobytes",
|
|
1090
|
+
"megabytes",
|
|
1091
|
+
"gigabytes",
|
|
1092
|
+
"terabytes",
|
|
1093
|
+
"petabytes",
|
|
1094
|
+
"kilobyte",
|
|
1095
|
+
"megabyte",
|
|
1096
|
+
"gigabyte",
|
|
1097
|
+
"terabyte",
|
|
1098
|
+
"petabyte",
|
|
1099
|
+
"KB",
|
|
1100
|
+
"MB",
|
|
1101
|
+
"GB",
|
|
1102
|
+
"TB",
|
|
1103
|
+
"PB",
|
|
1104
|
+
"kibibytes",
|
|
1105
|
+
"mebibytes",
|
|
1106
|
+
"gibibytes",
|
|
1107
|
+
"tebibytes",
|
|
1108
|
+
"pebibytes",
|
|
1109
|
+
"kibibyte",
|
|
1110
|
+
"mebibyte",
|
|
1111
|
+
"gibibyte",
|
|
1112
|
+
"tebibyte",
|
|
1113
|
+
"pebibyte",
|
|
1114
|
+
"KiB",
|
|
1115
|
+
"MiB",
|
|
1116
|
+
"GiB",
|
|
1117
|
+
"TiB",
|
|
1118
|
+
"PiB"
|
|
1119
|
+
]
|
|
1120
|
+
},
|
|
1121
|
+
"group_label": {
|
|
1122
|
+
"type": "string"
|
|
1123
|
+
},
|
|
1124
|
+
"urls": {
|
|
1125
|
+
"type": "array",
|
|
1126
|
+
"items": {
|
|
1127
|
+
"type": "object",
|
|
1128
|
+
"properties": {
|
|
1129
|
+
"url": {
|
|
1130
|
+
"type": "string"
|
|
1131
|
+
},
|
|
1132
|
+
"label": {
|
|
1133
|
+
"type": "string"
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
"tags": {
|
|
1139
|
+
"oneOf": [
|
|
1140
|
+
{
|
|
1141
|
+
"type": "string"
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"type": "array",
|
|
1145
|
+
"items": {
|
|
1146
|
+
"type": "string"
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
]
|
|
1150
|
+
},
|
|
1151
|
+
"required_attributes": {
|
|
1152
|
+
"type": "object",
|
|
1153
|
+
"properties": {},
|
|
1154
|
+
"additionalProperties": {
|
|
1155
|
+
"oneOf": [
|
|
1156
|
+
{
|
|
1157
|
+
"type": "array",
|
|
1158
|
+
"items": {
|
|
1159
|
+
"type": "string"
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"type": "string"
|
|
1164
|
+
}
|
|
1165
|
+
]
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
"required": ["name"]
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
"metrics": {
|
|
1182
|
+
"type": "array",
|
|
1183
|
+
"items": {
|
|
1184
|
+
"type": "object",
|
|
1185
|
+
"properties": {
|
|
1186
|
+
"name": {
|
|
1187
|
+
"type": "string"
|
|
1188
|
+
},
|
|
1189
|
+
"model": {
|
|
1190
|
+
"type": "string"
|
|
1191
|
+
},
|
|
1192
|
+
"label": {
|
|
1193
|
+
"type": "string"
|
|
1194
|
+
},
|
|
1195
|
+
"description": {
|
|
1196
|
+
"type": "string"
|
|
1197
|
+
},
|
|
1198
|
+
"type": {
|
|
1199
|
+
"type": "string"
|
|
1200
|
+
},
|
|
1201
|
+
"sql": {
|
|
1202
|
+
"type": "string"
|
|
1203
|
+
},
|
|
1204
|
+
"timestamp": {
|
|
1205
|
+
"type": "string"
|
|
1206
|
+
},
|
|
1207
|
+
"time_grains": {
|
|
1208
|
+
"type": "array",
|
|
1209
|
+
"items": {
|
|
1210
|
+
"type": "string"
|
|
1211
|
+
}
|
|
1212
|
+
},
|
|
1213
|
+
"dimensions": {
|
|
1214
|
+
"type": "array",
|
|
1215
|
+
"items": {
|
|
1216
|
+
"type": "string"
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
"filters": {
|
|
1220
|
+
"type": "array",
|
|
1221
|
+
"items": {
|
|
1222
|
+
"type": "object"
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
"meta": {
|
|
1226
|
+
"type": "object",
|
|
1227
|
+
"properties": {
|
|
1228
|
+
"hidden": {
|
|
1229
|
+
"type": "boolean"
|
|
1230
|
+
},
|
|
1231
|
+
"round": {
|
|
1232
|
+
"type": "number",
|
|
1233
|
+
"minimum": 0
|
|
1234
|
+
},
|
|
1235
|
+
"format": {
|
|
1236
|
+
"type": "string"
|
|
1237
|
+
},
|
|
1238
|
+
"compact": {
|
|
1239
|
+
"type": "string",
|
|
1240
|
+
"enum": [
|
|
1241
|
+
"thousands",
|
|
1242
|
+
"millions",
|
|
1243
|
+
"billions",
|
|
1244
|
+
"trillions",
|
|
1245
|
+
"thousand",
|
|
1246
|
+
"million",
|
|
1247
|
+
"billion",
|
|
1248
|
+
"trillion",
|
|
1249
|
+
"K",
|
|
1250
|
+
"M",
|
|
1251
|
+
"B",
|
|
1252
|
+
"T",
|
|
1253
|
+
"kilobytes",
|
|
1254
|
+
"megabytes",
|
|
1255
|
+
"gigabytes",
|
|
1256
|
+
"terabytes",
|
|
1257
|
+
"petabytes",
|
|
1258
|
+
"kilobyte",
|
|
1259
|
+
"megabyte",
|
|
1260
|
+
"gigabyte",
|
|
1261
|
+
"terabyte",
|
|
1262
|
+
"petabyte",
|
|
1263
|
+
"KB",
|
|
1264
|
+
"MB",
|
|
1265
|
+
"GB",
|
|
1266
|
+
"TB",
|
|
1267
|
+
"PB",
|
|
1268
|
+
"kibibytes",
|
|
1269
|
+
"mebibytes",
|
|
1270
|
+
"gibibytes",
|
|
1271
|
+
"tebibytes",
|
|
1272
|
+
"pebibytes",
|
|
1273
|
+
"kibibyte",
|
|
1274
|
+
"mebibyte",
|
|
1275
|
+
"gibibyte",
|
|
1276
|
+
"tebibyte",
|
|
1277
|
+
"pebibyte",
|
|
1278
|
+
"KiB",
|
|
1279
|
+
"MiB",
|
|
1280
|
+
"GiB",
|
|
1281
|
+
"TiB",
|
|
1282
|
+
"PiB"
|
|
1283
|
+
]
|
|
1284
|
+
},
|
|
1285
|
+
"urls": {
|
|
1286
|
+
"type": "array",
|
|
1287
|
+
"items": {
|
|
1288
|
+
"type": "object",
|
|
1289
|
+
"properties": {
|
|
1290
|
+
"url": {
|
|
1291
|
+
"type": "string"
|
|
1292
|
+
},
|
|
1293
|
+
"label": {
|
|
1294
|
+
"type": "string"
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
"tags": {
|
|
1300
|
+
"oneOf": [
|
|
1301
|
+
{
|
|
1302
|
+
"type": "string"
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"type": "array",
|
|
1306
|
+
"items": {
|
|
1307
|
+
"type": "string"
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
]
|
|
1311
|
+
},
|
|
1312
|
+
"show_underlying_values": {
|
|
1313
|
+
"type": "array",
|
|
1314
|
+
"items": {
|
|
1315
|
+
"type": "string"
|
|
1316
|
+
}
|
|
1317
|
+
},
|
|
1318
|
+
"default_time_dimension": {
|
|
1319
|
+
"type": "object",
|
|
1320
|
+
"description": "Specifies the default time dimension field and interval to use for time-based analysis on this metric. If specified, both field and interval are required. If there is already a default time dimension set in the model, this will override it.",
|
|
1321
|
+
"properties": {
|
|
1322
|
+
"field": {
|
|
1323
|
+
"type": "string",
|
|
1324
|
+
"description": "The name of the field to use as the default time dimension"
|
|
1325
|
+
},
|
|
1326
|
+
"interval": {
|
|
1327
|
+
"type": "string",
|
|
1328
|
+
"enum": [
|
|
1329
|
+
"DAY",
|
|
1330
|
+
"WEEK",
|
|
1331
|
+
"MONTH",
|
|
1332
|
+
"YEAR"
|
|
1333
|
+
],
|
|
1334
|
+
"description": "The default time interval to use when analyzing this time dimension"
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
1337
|
+
"required": ["field", "interval"]
|
|
1338
|
+
},
|
|
1339
|
+
"spotlight": {
|
|
1340
|
+
"type": "object",
|
|
1341
|
+
"description": "Set the visibility and/or categories of a metric in Spotlight",
|
|
1342
|
+
"properties": {
|
|
1343
|
+
"visibility": {
|
|
1344
|
+
"type": "string",
|
|
1345
|
+
"enum": ["show", "hide"]
|
|
1346
|
+
},
|
|
1347
|
+
"categories": {
|
|
1348
|
+
"type": "array",
|
|
1349
|
+
"items": {
|
|
1350
|
+
"type": "string"
|
|
1351
|
+
},
|
|
1352
|
+
"description": "An array of categories for the metric in Spotlight"
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
"anyOf": [
|
|
1356
|
+
{ "required": ["visibility"] },
|
|
1357
|
+
{ "required": ["categories"] }
|
|
1358
|
+
]
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
"required": ["name"]
|
|
1364
|
+
}
|
|
1365
|
+
},
|
|
1366
|
+
"seeds": {
|
|
1367
|
+
"type": "array",
|
|
1368
|
+
"items": {
|
|
1369
|
+
"type": "object"
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
"snapshots": {
|
|
1373
|
+
"type": "array",
|
|
1374
|
+
"items": {
|
|
1375
|
+
"type": "object"
|
|
1376
|
+
}
|
|
1377
|
+
},
|
|
1378
|
+
"tests": {
|
|
1379
|
+
"type": "array",
|
|
1380
|
+
"items": {
|
|
1381
|
+
"type": "object"
|
|
1382
|
+
}
|
|
1383
|
+
},
|
|
1384
|
+
"unit_tests": {
|
|
1385
|
+
"type": "array",
|
|
1386
|
+
"items": {
|
|
1387
|
+
"type": "object"
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1390
|
+
"sources": {
|
|
1391
|
+
"type": "array",
|
|
1392
|
+
"items": {
|
|
1393
|
+
"type": "object"
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
"analyses": {
|
|
1397
|
+
"type": "array",
|
|
1398
|
+
"items": {
|
|
1399
|
+
"type": "object"
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
"exposures": {
|
|
1403
|
+
"type": "array",
|
|
1404
|
+
"items": {
|
|
1405
|
+
"type": "object"
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
"macros": {
|
|
1409
|
+
"type": "array",
|
|
1410
|
+
"items": {
|
|
1411
|
+
"type": "object"
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
},
|
|
1415
|
+
"additionalProperties": false,
|
|
1416
|
+
"required": []
|
|
1417
|
+
}
|