@@ -8,6 +8,7 @@ import * as C from "../../../../../../app/components";
88import { DatasetsResponse } from "app/apis/azul/anvil-cmg/common/responses" ;
99import { ROUTES } from "../../../export/routes" ;
1010import * as MDX from "../../../../../../app/components/common/MDXContent/anvil-cmg" ;
11+ import { CurlDownloadExportMethod } from "../../../../../../app/components/Export/components/AnVILExplorer/CurlDownload/curlDownloadExportMethod" ;
1112import { ExportMethod } from "../../../../../../app/components/Export/components/AnVILExplorer/platform/ExportMethod/exportMethod" ;
1213import { EXPORT_METHODS , EXPORTS } from "../../../export/constants" ;
1314import { ExportToPlatform } from "../../../../../../app/components/Export/components/AnVILExplorer/platform/ExportToPlatform/exportToPlatform" ;
@@ -25,6 +26,59 @@ const DATASET_ACCESSIBILITY_BADGE = {
2526 */
2627export const exportConfig : ExportConfig = {
2728 exportMethods : [
29+ {
30+ mainColumn : [
31+ /* --------- */
32+ /* Dataset is not accessible; render warning */
33+ /* --------- */
34+ {
35+ children : [
36+ {
37+ children : [
38+ {
39+ component : MDX . Alert ,
40+ viewBuilder : V . buildAlertDatasetExportWarning ,
41+ } as ComponentConfig < typeof MDX . Alert , DatasetsResponse > ,
42+ ] ,
43+ component : C . BackPageContentSingleColumn ,
44+ } as ComponentConfig < typeof C . BackPageContentSingleColumn > ,
45+ ] ,
46+ component : C . ConditionalComponent ,
47+ viewBuilder : V . renderDatasetExportWarning ,
48+ } as ComponentConfig < typeof C . ConditionalComponent , DatasetsResponse > ,
49+ /* ------ */
50+ /* Dataset is accessible; render curl download method */
51+ /* ------ */
52+ {
53+ children : [
54+ {
55+ children : [
56+ {
57+ component : C . DownloadCurlCommand ,
58+ viewBuilder : V . buildDatasetDownloadCurlCommand ,
59+ } as ComponentConfig <
60+ typeof C . DownloadCurlCommand ,
61+ DatasetsResponse
62+ > ,
63+ ] ,
64+ component : C . BackPageContentMainColumn ,
65+ } as ComponentConfig < typeof C . BackPageContentMainColumn > ,
66+ /* sideColumn */
67+ ...exportSideColumn ,
68+ ] ,
69+ component : C . ConditionalComponent ,
70+ viewBuilder : V . renderDatasetExport ,
71+ } as ComponentConfig < typeof C . ConditionalComponent , DatasetsResponse > ,
72+ ] ,
73+ route : ROUTES . CURL_DOWNLOAD ,
74+ top : [
75+ {
76+ children : [ DATASET_ACCESSIBILITY_BADGE ] ,
77+ component : C . BackPageHero ,
78+ viewBuilder : V . buildDatasetExportMethodHeroCurlCommand ,
79+ } as ComponentConfig < typeof C . BackPageHero > ,
80+ ] ,
81+ } ,
2882 {
2983 mainColumn : [
3084 /* --------- */
@@ -324,6 +378,10 @@ export const exportConfig: ExportConfig = {
324378 component : C . AnVILExportEntity ,
325379 viewBuilder : V . buildDatasetExportPropsWithFilter ,
326380 } as ComponentConfig < typeof C . AnVILExportEntity > ,
381+ {
382+ component : CurlDownloadExportMethod ,
383+ viewBuilder : V . buildDatasetExportMethodCurlCommand ,
384+ } as ComponentConfig < typeof CurlDownloadExportMethod > ,
327385 {
328386 component : C . ExportMethod ,
329387 viewBuilder : V . buildDatasetExportMethodTerra ,
0 commit comments