@lightdash/common 3.207.0 → 3.208.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/compiler/translator.d.ts +2 -1
- package/dist/cjs/compiler/translator.d.ts.map +1 -1
- package/dist/cjs/compiler/translator.js +175 -121
- package/dist/cjs/compiler/translator.js.map +1 -1
- package/dist/cjs/dbt/schemas/lightdashMetadata.json +7 -0
- package/dist/cjs/schemas/json/lightdash-dbt-2.0.json +296 -267
- package/dist/cjs/types/dbt.d.ts +5 -0
- package/dist/cjs/types/dbt.d.ts.map +1 -1
- package/dist/cjs/types/dbt.js.map +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/compiler/translator.d.ts +2 -1
- package/dist/esm/compiler/translator.d.ts.map +1 -1
- package/dist/esm/compiler/translator.js +173 -120
- package/dist/esm/compiler/translator.js.map +1 -1
- package/dist/esm/dbt/schemas/lightdashMetadata.json +7 -0
- package/dist/esm/schemas/json/lightdash-dbt-2.0.json +296 -267
- package/dist/esm/types/dbt.d.ts +5 -0
- package/dist/esm/types/dbt.d.ts.map +1 -1
- package/dist/esm/types/dbt.js.map +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/compiler/translator.d.ts +2 -1
- package/dist/types/compiler/translator.d.ts.map +1 -1
- package/dist/types/compiler/translator.js +173 -120
- package/dist/types/compiler/translator.js.map +1 -1
- package/dist/types/dbt/schemas/lightdashMetadata.json +7 -0
- package/dist/types/schemas/json/lightdash-dbt-2.0.json +296 -267
- package/dist/types/types/dbt.d.ts +5 -0
- package/dist/types/types/dbt.d.ts.map +1 -1
- package/dist/types/types/dbt.js.map +1 -1
- package/package.json +1 -1
|
@@ -420,6 +420,269 @@
|
|
|
420
420
|
"additionalProperties": false,
|
|
421
421
|
"required": [],
|
|
422
422
|
"$defs": {
|
|
423
|
+
"additionalDimension": {
|
|
424
|
+
"type": "object",
|
|
425
|
+
"properties": {
|
|
426
|
+
"type": {
|
|
427
|
+
"type": "string",
|
|
428
|
+
"enum": ["string", "number", "timestamp", "date", "boolean"]
|
|
429
|
+
},
|
|
430
|
+
"label": {
|
|
431
|
+
"type": "string",
|
|
432
|
+
"minLength": 1
|
|
433
|
+
},
|
|
434
|
+
"description": {
|
|
435
|
+
"type": "string",
|
|
436
|
+
"minLength": 1
|
|
437
|
+
},
|
|
438
|
+
"ai_hint": {
|
|
439
|
+
"$ref": "#/$defs/aiHint",
|
|
440
|
+
"description": "Hints for AI-powered query generation"
|
|
441
|
+
},
|
|
442
|
+
"sql": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"minLength": 1
|
|
445
|
+
},
|
|
446
|
+
"time_intervals": {
|
|
447
|
+
"anyOf": [
|
|
448
|
+
{
|
|
449
|
+
"type": "array",
|
|
450
|
+
"items": {
|
|
451
|
+
"anyOf": [
|
|
452
|
+
{
|
|
453
|
+
"type": "string",
|
|
454
|
+
"enum": [
|
|
455
|
+
"RAW",
|
|
456
|
+
"DAY",
|
|
457
|
+
"WEEK",
|
|
458
|
+
"MONTH",
|
|
459
|
+
"QUARTER",
|
|
460
|
+
"YEAR",
|
|
461
|
+
"HOUR",
|
|
462
|
+
"MINUTE",
|
|
463
|
+
"SECOND",
|
|
464
|
+
"MILLISECOND",
|
|
465
|
+
"WEEK_NUM",
|
|
466
|
+
"MONTH_NUM",
|
|
467
|
+
"MONTH_NAME",
|
|
468
|
+
"DAY_OF_WEEK_NAME",
|
|
469
|
+
"QUARTER_NAME",
|
|
470
|
+
"DAY_OF_WEEK_INDEX",
|
|
471
|
+
"DAY_OF_MONTH_NUM",
|
|
472
|
+
"DAY_OF_YEAR_NUM",
|
|
473
|
+
"QUARTER_NUM",
|
|
474
|
+
"YEAR_NUM",
|
|
475
|
+
"HOUR_OF_DAY_NUM",
|
|
476
|
+
"MINUTE_OF_HOUR_NUM"
|
|
477
|
+
]
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"type": "string"
|
|
481
|
+
}
|
|
482
|
+
]
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"type": "string",
|
|
487
|
+
"enum": ["default", "OFF"]
|
|
488
|
+
}
|
|
489
|
+
]
|
|
490
|
+
},
|
|
491
|
+
"convert_timezone": {
|
|
492
|
+
"type": "boolean",
|
|
493
|
+
"description": "When false, this dimension is rendered in its raw warehouse value and is not converted to the project timezone for display. Filter SQL still converts. Defaults to true."
|
|
494
|
+
},
|
|
495
|
+
"timestamp_domain": {
|
|
496
|
+
"type": "string",
|
|
497
|
+
"enum": ["aware", "naive"],
|
|
498
|
+
"description": "Declares whether this timestamp column stores an instant ('aware') or a bare wall clock ('naive'); overrides the warehouse catalog."
|
|
499
|
+
},
|
|
500
|
+
"hidden": {
|
|
501
|
+
"type": "boolean"
|
|
502
|
+
},
|
|
503
|
+
"round": {
|
|
504
|
+
"type": "number",
|
|
505
|
+
"minimum": 0
|
|
506
|
+
},
|
|
507
|
+
"format": {
|
|
508
|
+
"type": "string"
|
|
509
|
+
},
|
|
510
|
+
"separator": {
|
|
511
|
+
"$ref": "#/$defs/separator"
|
|
512
|
+
},
|
|
513
|
+
"compact": {
|
|
514
|
+
"type": "string",
|
|
515
|
+
"enum": [
|
|
516
|
+
"auto",
|
|
517
|
+
"thousands",
|
|
518
|
+
"millions",
|
|
519
|
+
"billions",
|
|
520
|
+
"trillions",
|
|
521
|
+
"thousand",
|
|
522
|
+
"million",
|
|
523
|
+
"billion",
|
|
524
|
+
"trillion",
|
|
525
|
+
"K",
|
|
526
|
+
"M",
|
|
527
|
+
"B",
|
|
528
|
+
"T",
|
|
529
|
+
"kilobytes",
|
|
530
|
+
"megabytes",
|
|
531
|
+
"gigabytes",
|
|
532
|
+
"terabytes",
|
|
533
|
+
"petabytes",
|
|
534
|
+
"kilobyte",
|
|
535
|
+
"megabyte",
|
|
536
|
+
"gigabyte",
|
|
537
|
+
"terabyte",
|
|
538
|
+
"petabyte",
|
|
539
|
+
"KB",
|
|
540
|
+
"MB",
|
|
541
|
+
"GB",
|
|
542
|
+
"TB",
|
|
543
|
+
"PB",
|
|
544
|
+
"kibibytes",
|
|
545
|
+
"mebibytes",
|
|
546
|
+
"gibibytes",
|
|
547
|
+
"tebibytes",
|
|
548
|
+
"pebibytes",
|
|
549
|
+
"kibibyte",
|
|
550
|
+
"mebibyte",
|
|
551
|
+
"gibibyte",
|
|
552
|
+
"tebibyte",
|
|
553
|
+
"pebibyte",
|
|
554
|
+
"KiB",
|
|
555
|
+
"MiB",
|
|
556
|
+
"GiB",
|
|
557
|
+
"TiB",
|
|
558
|
+
"PiB"
|
|
559
|
+
]
|
|
560
|
+
},
|
|
561
|
+
"group_label": {
|
|
562
|
+
"type": "string",
|
|
563
|
+
"deprecated": true,
|
|
564
|
+
"description": "Deprecated: use groups instead"
|
|
565
|
+
},
|
|
566
|
+
"urls": {
|
|
567
|
+
"type": "array",
|
|
568
|
+
"items": {
|
|
569
|
+
"type": "object",
|
|
570
|
+
"properties": {
|
|
571
|
+
"url": {
|
|
572
|
+
"type": "string",
|
|
573
|
+
"description": "Liquidjs template for the URL. Available variables: ${value.raw}, ${value.formatted}, ${row.table_name.field_name.raw}, ${row.table_name.field_name.formatted}"
|
|
574
|
+
},
|
|
575
|
+
"label": {
|
|
576
|
+
"type": "string"
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
"image": {
|
|
582
|
+
"type": "object",
|
|
583
|
+
"description": "Displays the dimension value as an image",
|
|
584
|
+
"properties": {
|
|
585
|
+
"url": {
|
|
586
|
+
"type": "string",
|
|
587
|
+
"description": "Liquidjs template for the image URL. Available variables: ${value.raw}, ${value.formatted}, ${row.table_name.field_name.raw}, ${row.table_name.field_name.formatted}. Only fields selected in the query are available in row context."
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
"required": ["url"]
|
|
591
|
+
},
|
|
592
|
+
"tags": {
|
|
593
|
+
"oneOf": [
|
|
594
|
+
{
|
|
595
|
+
"type": "string"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"type": "array",
|
|
599
|
+
"items": {
|
|
600
|
+
"type": "string"
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
]
|
|
604
|
+
},
|
|
605
|
+
"required_attributes": {
|
|
606
|
+
"type": "object",
|
|
607
|
+
"properties": {},
|
|
608
|
+
"additionalProperties": {
|
|
609
|
+
"oneOf": [
|
|
610
|
+
{
|
|
611
|
+
"type": "array",
|
|
612
|
+
"items": {
|
|
613
|
+
"type": "string"
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"type": "string"
|
|
618
|
+
}
|
|
619
|
+
]
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
"any_attributes": {
|
|
623
|
+
"type": "object",
|
|
624
|
+
"properties": {},
|
|
625
|
+
"additionalProperties": {
|
|
626
|
+
"oneOf": [
|
|
627
|
+
{
|
|
628
|
+
"type": "array",
|
|
629
|
+
"items": {
|
|
630
|
+
"type": "string"
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"type": "string"
|
|
635
|
+
}
|
|
636
|
+
]
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
"filter_autocomplete": {
|
|
640
|
+
"type": "object",
|
|
641
|
+
"description": "Configure static filter autocomplete suggestions and warehouse fetching for this dimension.",
|
|
642
|
+
"properties": {
|
|
643
|
+
"values": {
|
|
644
|
+
"type": "array",
|
|
645
|
+
"items": {
|
|
646
|
+
"type": "object",
|
|
647
|
+
"properties": {
|
|
648
|
+
"value": {
|
|
649
|
+
"type": "string"
|
|
650
|
+
},
|
|
651
|
+
"label": {
|
|
652
|
+
"type": "string"
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
"required": ["value"]
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
"fetch_from_warehouse": {
|
|
659
|
+
"type": "boolean",
|
|
660
|
+
"description": "When false, filter autocomplete will not fetch values from the warehouse for this dimension. Defaults to true."
|
|
661
|
+
},
|
|
662
|
+
"label_dimension": {
|
|
663
|
+
"type": "string",
|
|
664
|
+
"description": "Name of another dimension in the same table whose value is shown as the display label for each warehouse-fetched value."
|
|
665
|
+
},
|
|
666
|
+
"options_from_dimension": {
|
|
667
|
+
"type": "object",
|
|
668
|
+
"description": "Fetch autocomplete values from a dimension in another model. Cascading filters are not applied.",
|
|
669
|
+
"properties": {
|
|
670
|
+
"model": {
|
|
671
|
+
"type": "string"
|
|
672
|
+
},
|
|
673
|
+
"dimension": {
|
|
674
|
+
"type": "string"
|
|
675
|
+
},
|
|
676
|
+
"label_dimension": {
|
|
677
|
+
"type": "string"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
"required": ["model", "dimension"]
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
},
|
|
423
686
|
"separator": {
|
|
424
687
|
"type": "string",
|
|
425
688
|
"enum": [
|
|
@@ -462,6 +725,21 @@
|
|
|
462
725
|
"modelMeta": {
|
|
463
726
|
"type": "object",
|
|
464
727
|
"properties": {
|
|
728
|
+
"additional_dimensions": {
|
|
729
|
+
"type": "object",
|
|
730
|
+
"description": "Dimensions that are not derived from a single column",
|
|
731
|
+
"patternProperties": {
|
|
732
|
+
"^[a-z0-9_]+$": {
|
|
733
|
+
"allOf": [
|
|
734
|
+
{ "$ref": "#/$defs/additionalDimension" },
|
|
735
|
+
{
|
|
736
|
+
"type": "object",
|
|
737
|
+
"required": ["type", "sql"]
|
|
738
|
+
}
|
|
739
|
+
]
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
},
|
|
465
743
|
"combine_joined_fields": {
|
|
466
744
|
"type": "boolean",
|
|
467
745
|
"description": "Combine visible joined fields into shared Dimensions and Metrics sections. Defaults to false; named explores inherit the model setting."
|
|
@@ -1213,6 +1491,23 @@
|
|
|
1213
1491
|
"^[a-zA-Z0-9_]+$": {
|
|
1214
1492
|
"type": "object",
|
|
1215
1493
|
"properties": {
|
|
1494
|
+
"additional_dimensions": {
|
|
1495
|
+
"type": "object",
|
|
1496
|
+
"description": "Dimensions that are not derived from a single column",
|
|
1497
|
+
"patternProperties": {
|
|
1498
|
+
"^[a-z0-9_]+$": {
|
|
1499
|
+
"allOf": [
|
|
1500
|
+
{
|
|
1501
|
+
"$ref": "#/$defs/additionalDimension"
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
"type": "object",
|
|
1505
|
+
"required": ["type", "sql"]
|
|
1506
|
+
}
|
|
1507
|
+
]
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1216
1511
|
"combine_joined_fields": {
|
|
1217
1512
|
"type": "boolean",
|
|
1218
1513
|
"description": "Combine visible joined fields into shared Dimensions and Metrics sections. Defaults to false; named explores inherit the model setting."
|
|
@@ -1867,273 +2162,7 @@
|
|
|
1867
2162
|
"type": "object",
|
|
1868
2163
|
"patternProperties": {
|
|
1869
2164
|
"^[a-z0-9_]+$": {
|
|
1870
|
-
"
|
|
1871
|
-
"properties": {
|
|
1872
|
-
"type": {
|
|
1873
|
-
"type": "string",
|
|
1874
|
-
"enum": [
|
|
1875
|
-
"string",
|
|
1876
|
-
"number",
|
|
1877
|
-
"timestamp",
|
|
1878
|
-
"date",
|
|
1879
|
-
"boolean"
|
|
1880
|
-
]
|
|
1881
|
-
},
|
|
1882
|
-
"label": {
|
|
1883
|
-
"type": "string",
|
|
1884
|
-
"minLength": 1
|
|
1885
|
-
},
|
|
1886
|
-
"description": {
|
|
1887
|
-
"type": "string",
|
|
1888
|
-
"minLength": 1
|
|
1889
|
-
},
|
|
1890
|
-
"ai_hint": {
|
|
1891
|
-
"$ref": "#/$defs/aiHint",
|
|
1892
|
-
"description": "Hints for AI-powered query generation"
|
|
1893
|
-
},
|
|
1894
|
-
"sql": {
|
|
1895
|
-
"type": "string",
|
|
1896
|
-
"minLength": 1
|
|
1897
|
-
},
|
|
1898
|
-
"time_intervals": {
|
|
1899
|
-
"anyOf": [
|
|
1900
|
-
{
|
|
1901
|
-
"type": "array",
|
|
1902
|
-
"items": {
|
|
1903
|
-
"anyOf": [
|
|
1904
|
-
{
|
|
1905
|
-
"type": "string",
|
|
1906
|
-
"enum": [
|
|
1907
|
-
"RAW",
|
|
1908
|
-
"DAY",
|
|
1909
|
-
"WEEK",
|
|
1910
|
-
"MONTH",
|
|
1911
|
-
"QUARTER",
|
|
1912
|
-
"YEAR",
|
|
1913
|
-
"HOUR",
|
|
1914
|
-
"MINUTE",
|
|
1915
|
-
"SECOND",
|
|
1916
|
-
"MILLISECOND",
|
|
1917
|
-
"WEEK_NUM",
|
|
1918
|
-
"MONTH_NUM",
|
|
1919
|
-
"MONTH_NAME",
|
|
1920
|
-
"DAY_OF_WEEK_NAME",
|
|
1921
|
-
"QUARTER_NAME",
|
|
1922
|
-
"DAY_OF_WEEK_INDEX",
|
|
1923
|
-
"DAY_OF_MONTH_NUM",
|
|
1924
|
-
"DAY_OF_YEAR_NUM",
|
|
1925
|
-
"QUARTER_NUM",
|
|
1926
|
-
"YEAR_NUM",
|
|
1927
|
-
"HOUR_OF_DAY_NUM",
|
|
1928
|
-
"MINUTE_OF_HOUR_NUM"
|
|
1929
|
-
]
|
|
1930
|
-
},
|
|
1931
|
-
{
|
|
1932
|
-
"type": "string"
|
|
1933
|
-
}
|
|
1934
|
-
]
|
|
1935
|
-
}
|
|
1936
|
-
},
|
|
1937
|
-
{
|
|
1938
|
-
"type": "string",
|
|
1939
|
-
"enum": ["default", "OFF"]
|
|
1940
|
-
}
|
|
1941
|
-
]
|
|
1942
|
-
},
|
|
1943
|
-
"convert_timezone": {
|
|
1944
|
-
"type": "boolean",
|
|
1945
|
-
"description": "When false, this dimension is rendered in its raw warehouse value and is not converted to the project timezone for display. Filter SQL still converts. Defaults to true."
|
|
1946
|
-
},
|
|
1947
|
-
"timestamp_domain": {
|
|
1948
|
-
"type": "string",
|
|
1949
|
-
"enum": ["aware", "naive"],
|
|
1950
|
-
"description": "Declares whether this timestamp column stores an instant ('aware') or a bare wall clock ('naive'); overrides the warehouse catalog."
|
|
1951
|
-
},
|
|
1952
|
-
"hidden": {
|
|
1953
|
-
"type": "boolean"
|
|
1954
|
-
},
|
|
1955
|
-
"round": {
|
|
1956
|
-
"type": "number",
|
|
1957
|
-
"minimum": 0
|
|
1958
|
-
},
|
|
1959
|
-
"format": {
|
|
1960
|
-
"type": "string"
|
|
1961
|
-
},
|
|
1962
|
-
"separator": {
|
|
1963
|
-
"$ref": "#/$defs/separator"
|
|
1964
|
-
},
|
|
1965
|
-
"compact": {
|
|
1966
|
-
"type": "string",
|
|
1967
|
-
"enum": [
|
|
1968
|
-
"auto",
|
|
1969
|
-
"thousands",
|
|
1970
|
-
"millions",
|
|
1971
|
-
"billions",
|
|
1972
|
-
"trillions",
|
|
1973
|
-
"thousand",
|
|
1974
|
-
"million",
|
|
1975
|
-
"billion",
|
|
1976
|
-
"trillion",
|
|
1977
|
-
"K",
|
|
1978
|
-
"M",
|
|
1979
|
-
"B",
|
|
1980
|
-
"T",
|
|
1981
|
-
"kilobytes",
|
|
1982
|
-
"megabytes",
|
|
1983
|
-
"gigabytes",
|
|
1984
|
-
"terabytes",
|
|
1985
|
-
"petabytes",
|
|
1986
|
-
"kilobyte",
|
|
1987
|
-
"megabyte",
|
|
1988
|
-
"gigabyte",
|
|
1989
|
-
"terabyte",
|
|
1990
|
-
"petabyte",
|
|
1991
|
-
"KB",
|
|
1992
|
-
"MB",
|
|
1993
|
-
"GB",
|
|
1994
|
-
"TB",
|
|
1995
|
-
"PB",
|
|
1996
|
-
"kibibytes",
|
|
1997
|
-
"mebibytes",
|
|
1998
|
-
"gibibytes",
|
|
1999
|
-
"tebibytes",
|
|
2000
|
-
"pebibytes",
|
|
2001
|
-
"kibibyte",
|
|
2002
|
-
"mebibyte",
|
|
2003
|
-
"gibibyte",
|
|
2004
|
-
"tebibyte",
|
|
2005
|
-
"pebibyte",
|
|
2006
|
-
"KiB",
|
|
2007
|
-
"MiB",
|
|
2008
|
-
"GiB",
|
|
2009
|
-
"TiB",
|
|
2010
|
-
"PiB"
|
|
2011
|
-
]
|
|
2012
|
-
},
|
|
2013
|
-
"group_label": {
|
|
2014
|
-
"type": "string",
|
|
2015
|
-
"deprecated": true,
|
|
2016
|
-
"description": "Deprecated: use groups instead"
|
|
2017
|
-
},
|
|
2018
|
-
"urls": {
|
|
2019
|
-
"type": "array",
|
|
2020
|
-
"items": {
|
|
2021
|
-
"type": "object",
|
|
2022
|
-
"properties": {
|
|
2023
|
-
"url": {
|
|
2024
|
-
"type": "string",
|
|
2025
|
-
"description": "Liquidjs template for the URL. Available variables: ${value.raw}, ${value.formatted}, ${row.table_name.field_name.raw}, ${row.table_name.field_name.formatted}"
|
|
2026
|
-
},
|
|
2027
|
-
"label": {
|
|
2028
|
-
"type": "string"
|
|
2029
|
-
}
|
|
2030
|
-
}
|
|
2031
|
-
}
|
|
2032
|
-
},
|
|
2033
|
-
"image": {
|
|
2034
|
-
"type": "object",
|
|
2035
|
-
"description": "Displays the dimension value as an image",
|
|
2036
|
-
"properties": {
|
|
2037
|
-
"url": {
|
|
2038
|
-
"type": "string",
|
|
2039
|
-
"description": "Liquidjs template for the image URL. Available variables: ${value.raw}, ${value.formatted}, ${row.table_name.field_name.raw}, ${row.table_name.field_name.formatted}. Only fields selected in the query are available in row context."
|
|
2040
|
-
}
|
|
2041
|
-
},
|
|
2042
|
-
"required": ["url"]
|
|
2043
|
-
},
|
|
2044
|
-
"tags": {
|
|
2045
|
-
"oneOf": [
|
|
2046
|
-
{
|
|
2047
|
-
"type": "string"
|
|
2048
|
-
},
|
|
2049
|
-
{
|
|
2050
|
-
"type": "array",
|
|
2051
|
-
"items": {
|
|
2052
|
-
"type": "string"
|
|
2053
|
-
}
|
|
2054
|
-
}
|
|
2055
|
-
]
|
|
2056
|
-
},
|
|
2057
|
-
"required_attributes": {
|
|
2058
|
-
"type": "object",
|
|
2059
|
-
"properties": {},
|
|
2060
|
-
"additionalProperties": {
|
|
2061
|
-
"oneOf": [
|
|
2062
|
-
{
|
|
2063
|
-
"type": "array",
|
|
2064
|
-
"items": {
|
|
2065
|
-
"type": "string"
|
|
2066
|
-
}
|
|
2067
|
-
},
|
|
2068
|
-
{
|
|
2069
|
-
"type": "string"
|
|
2070
|
-
}
|
|
2071
|
-
]
|
|
2072
|
-
}
|
|
2073
|
-
},
|
|
2074
|
-
"any_attributes": {
|
|
2075
|
-
"type": "object",
|
|
2076
|
-
"properties": {},
|
|
2077
|
-
"additionalProperties": {
|
|
2078
|
-
"oneOf": [
|
|
2079
|
-
{
|
|
2080
|
-
"type": "array",
|
|
2081
|
-
"items": {
|
|
2082
|
-
"type": "string"
|
|
2083
|
-
}
|
|
2084
|
-
},
|
|
2085
|
-
{
|
|
2086
|
-
"type": "string"
|
|
2087
|
-
}
|
|
2088
|
-
]
|
|
2089
|
-
}
|
|
2090
|
-
},
|
|
2091
|
-
"filter_autocomplete": {
|
|
2092
|
-
"type": "object",
|
|
2093
|
-
"description": "Configure static filter autocomplete suggestions and warehouse fetching for this dimension.",
|
|
2094
|
-
"properties": {
|
|
2095
|
-
"values": {
|
|
2096
|
-
"type": "array",
|
|
2097
|
-
"items": {
|
|
2098
|
-
"type": "object",
|
|
2099
|
-
"properties": {
|
|
2100
|
-
"value": {
|
|
2101
|
-
"type": "string"
|
|
2102
|
-
},
|
|
2103
|
-
"label": {
|
|
2104
|
-
"type": "string"
|
|
2105
|
-
}
|
|
2106
|
-
},
|
|
2107
|
-
"required": ["value"]
|
|
2108
|
-
}
|
|
2109
|
-
},
|
|
2110
|
-
"fetch_from_warehouse": {
|
|
2111
|
-
"type": "boolean",
|
|
2112
|
-
"description": "When false, filter autocomplete will not fetch values from the warehouse for this dimension. Defaults to true."
|
|
2113
|
-
},
|
|
2114
|
-
"label_dimension": {
|
|
2115
|
-
"type": "string",
|
|
2116
|
-
"description": "Name of another dimension in the same table whose value is shown as the display label for each warehouse-fetched value."
|
|
2117
|
-
},
|
|
2118
|
-
"options_from_dimension": {
|
|
2119
|
-
"type": "object",
|
|
2120
|
-
"description": "Fetch autocomplete values from a dimension in another model. Cascading filters are not applied.",
|
|
2121
|
-
"properties": {
|
|
2122
|
-
"model": {
|
|
2123
|
-
"type": "string"
|
|
2124
|
-
},
|
|
2125
|
-
"dimension": {
|
|
2126
|
-
"type": "string"
|
|
2127
|
-
},
|
|
2128
|
-
"label_dimension": {
|
|
2129
|
-
"type": "string"
|
|
2130
|
-
}
|
|
2131
|
-
},
|
|
2132
|
-
"required": ["model", "dimension"]
|
|
2133
|
-
}
|
|
2134
|
-
}
|
|
2135
|
-
}
|
|
2136
|
-
}
|
|
2165
|
+
"$ref": "#/$defs/additionalDimension"
|
|
2137
2166
|
}
|
|
2138
2167
|
}
|
|
2139
2168
|
}
|
package/dist/cjs/types/dbt.d.ts
CHANGED
|
@@ -152,6 +152,11 @@ export type FieldSetDefinition = {
|
|
|
152
152
|
fields: string[];
|
|
153
153
|
};
|
|
154
154
|
export type DbtModelLightdashConfig = ExploreConfig & SharedDbtModelLightdashConfig & {
|
|
155
|
+
/**
|
|
156
|
+
* Model-level dimensions. They belong to the table, so they are
|
|
157
|
+
* available in every explore that includes it, joins included.
|
|
158
|
+
*/
|
|
159
|
+
additional_dimensions?: Record<string, DbtExploreLightdashAdditionalDimension>;
|
|
155
160
|
metrics?: Record<string, DbtModelLightdashMetric>;
|
|
156
161
|
sets?: Record<string, FieldSetDefinition>;
|
|
157
162
|
order_fields_by?: OrderFieldsByStrategy;
|