From 3e2f875e5fca3445e577ccdbe9abda9b6856cd19 Mon Sep 17 00:00:00 2001 From: frank basham Date: Mon, 16 Oct 2023 09:14:18 -0400 Subject: [PATCH] update graphQL queries and references --- .../benefitsNavigatorArticlesQuery.graphql | 18 ++++----- .../queries/benefitsNavigatorQuery.graphql | 38 +++++++++---------- graphql/queries/customErrorQuery.graphql | 8 ++-- graphql/queries/error404Query.graphql | 6 +-- graphql/queries/error500Query.graphql | 8 ++-- graphql/queries/homePageQuery.graphql | 16 ++++---- graphql/queries/mscadPageQuery.graphql | 18 ++++----- graphql/queries/notsupportedQuery.graphql | 8 ++-- .../oasBenefitsEstimatorArticlesQuery.graphql | 18 ++++----- .../queries/oasBenefitsEstimatorQuery.graphql | 34 ++++++++--------- graphql/queries/projectQuery.graphql | 16 ++++---- graphql/queries/projectUpdatesQuery.graphql | 10 ++--- graphql/queries/projectsPageQuery.graphql | 16 ++++---- pages/404.js | 2 +- pages/500.js | 2 +- pages/error.js | 2 +- pages/home.js | 4 +- pages/notsupported.js | 2 +- pages/projects/benefits-navigator/[id].js | 4 +- pages/projects/benefits-navigator/index.js | 4 +- pages/projects/dashboard/index.js | 2 +- pages/projects/oas-benefits-estimator/[id].js | 4 +- .../projects/oas-benefits-estimator/index.js | 4 +- 23 files changed, 122 insertions(+), 122 deletions(-) diff --git a/graphql/queries/benefitsNavigatorArticlesQuery.graphql b/graphql/queries/benefitsNavigatorArticlesQuery.graphql index c483f8c21e..3f8e8d7e64 100644 --- a/graphql/queries/benefitsNavigatorArticlesQuery.graphql +++ b/graphql/queries/benefitsNavigatorArticlesQuery.graphql @@ -1,5 +1,5 @@ query getBenefitsNavigatorArticles { - scLabsPagev1List( + sclabsPageV1List( filter: { scContentType: { _expressions: [ @@ -29,7 +29,7 @@ query getBenefitsNavigatorArticles { scShortTitleEn scShortTitleFr scBreadcrumbParentPages { - ... on SCLabsPagev1Model { + ... on SclabsPageV1Model { scTitleEn scTitleFr scPageNameEn @@ -65,7 +65,7 @@ query getBenefitsNavigatorArticles { scNoIndex scNoFollow scFragments { - ... on SCLabsContentv1Model { + ... on SclabsContentV1Model { _path scId scContentEn { @@ -75,7 +75,7 @@ query getBenefitsNavigatorArticles { json } } - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on ImageRef { @@ -126,7 +126,7 @@ query getBenefitsNavigatorArticles { json } } - ... on SCLabsButtonv1Model { + ... on SclabsButtonV1Model { scId scTitleEn scTitleFr @@ -134,7 +134,7 @@ query getBenefitsNavigatorArticles { scDestinationURLFr scButtonType } - ... on SCLabsFeaturev1Model { + ... on SclabsFeatureV1Model { scId scTitleEn scTitleFr @@ -165,7 +165,7 @@ query getBenefitsNavigatorArticles { } } scFragments { - ... on SCLabsAlertv1Model { + ... on SclabsAlertV1Model { _path scId scTitleEn @@ -190,7 +190,7 @@ query getBenefitsNavigatorArticles { scButtonType } } - ... on Tooltipv1Model { + ... on TooltipV1Model { _path scId scTitleEn @@ -205,4 +205,4 @@ query getBenefitsNavigatorArticles { } } } -} +} \ No newline at end of file diff --git a/graphql/queries/benefitsNavigatorQuery.graphql b/graphql/queries/benefitsNavigatorQuery.graphql index 4d950e4c7e..a4f3e96a42 100644 --- a/graphql/queries/benefitsNavigatorQuery.graphql +++ b/graphql/queries/benefitsNavigatorQuery.graphql @@ -1,5 +1,5 @@ query getBenefitsNavigatorPage { - scLabsPagev1ByPath( + sclabsPageV1ByPath( _path: "/content/dam/decd-endc/content-fragments/sclabs/pages/projects/benefits-navigator/overview" ) { item { @@ -24,7 +24,7 @@ query getBenefitsNavigatorPage { json } scLabProjectUpdates { - ... on SCLabsPagev1Model { + ... on SclabsPageV1Model { _path scId scPageNameEn @@ -34,7 +34,7 @@ query getBenefitsNavigatorPage { scShortTitleEn scShortTitleFr scBreadcrumbParentPages { - ... on SCLabsPagev1Model { + ... on SclabsPageV1Model { scTitleEn scTitleFr scPageNameEn @@ -70,7 +70,7 @@ query getBenefitsNavigatorPage { scNoIndex scNoFollow scFragments { - ... on SCLabsContentv1Model { + ... on SclabsContentV1Model { _path scId scContentEn { @@ -80,7 +80,7 @@ query getBenefitsNavigatorPage { json } } - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on ImageRef { @@ -131,7 +131,7 @@ query getBenefitsNavigatorPage { json } } - ... on SCLabsButtonv1Model { + ... on SclabsButtonV1Model { scId scTitleEn scTitleFr @@ -139,7 +139,7 @@ query getBenefitsNavigatorPage { scDestinationURLFr scButtonType } - ... on SCLabsFeaturev1Model { + ... on SclabsFeatureV1Model { scId scTitleEn scTitleFr @@ -170,7 +170,7 @@ query getBenefitsNavigatorPage { } } scFragments { - ... on SCLabsAlertv1Model { + ... on SclabsAlertV1Model { _path scId scTitleEn @@ -195,7 +195,7 @@ query getBenefitsNavigatorPage { scButtonType } } - ... on Tooltipv1Model { + ... on TooltipV1Model { _path scId scTitleEn @@ -211,7 +211,7 @@ query getBenefitsNavigatorPage { } } scBreadcrumbParentPages { - ... on SCLabsPagev1Model { + ... on SclabsPageV1Model { scTitleEn scTitleFr scPageNameEn @@ -247,7 +247,7 @@ query getBenefitsNavigatorPage { scNoIndex scNoFollow scFragments { - ... on SCLabsContentv1Model { + ... on SclabsContentV1Model { _path scId scContentEn { @@ -257,7 +257,7 @@ query getBenefitsNavigatorPage { json } scFragments { - ... on SCLabsContentv1Model { + ... on SclabsContentV1Model { _path scId scContentEn { @@ -267,7 +267,7 @@ query getBenefitsNavigatorPage { json } scFragments { - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on ImageRef { @@ -330,7 +330,7 @@ query getBenefitsNavigatorPage { } } } - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on ImageRef { @@ -381,7 +381,7 @@ query getBenefitsNavigatorPage { json } } - ... on SCLabsButtonv1Model { + ... on SclabsButtonV1Model { scId scTitleEn scTitleFr @@ -389,7 +389,7 @@ query getBenefitsNavigatorPage { scDestinationURLFr scButtonType } - ... on SCLabsFeaturev1Model { + ... on SclabsFeatureV1Model { scId scTitleEn scTitleFr @@ -420,7 +420,7 @@ query getBenefitsNavigatorPage { } } scFragments { - ... on SCLabsAlertv1Model { + ... on SclabsAlertV1Model { _path scId scTitleEn @@ -445,7 +445,7 @@ query getBenefitsNavigatorPage { scButtonType } } - ... on Tooltipv1Model { + ... on TooltipV1Model { _path scId scTitleEn @@ -460,4 +460,4 @@ query getBenefitsNavigatorPage { } } } -} +} \ No newline at end of file diff --git a/graphql/queries/customErrorQuery.graphql b/graphql/queries/customErrorQuery.graphql index b38c7e54af..d6a4d39fa2 100644 --- a/graphql/queries/customErrorQuery.graphql +++ b/graphql/queries/customErrorQuery.graphql @@ -1,10 +1,10 @@ query getCustomErrorPage { - scLabsErrorPagev1ByPath( + sclabsErrorpageV1ByPath( _path: "/content/dam/decd-endc/content-fragments/sclabs/pages/custom-error-page" ) { item { scGcImages { - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on DocumentRef { @@ -21,7 +21,7 @@ query getCustomErrorPage { } } scImageList { - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on DocumentRef { @@ -49,4 +49,4 @@ query getCustomErrorPage { } } } -} +} \ No newline at end of file diff --git a/graphql/queries/error404Query.graphql b/graphql/queries/error404Query.graphql index 60fff62620..dba3b5bafa 100644 --- a/graphql/queries/error404Query.graphql +++ b/graphql/queries/error404Query.graphql @@ -1,10 +1,10 @@ query get404Page { - scLabsErrorPagev1ByPath( + sclabsErrorpageV1ByPath( _path: "/content/dam/decd-endc/content-fragments/sclabs/pages/404-error-page" ) { item { scGcImages { - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on DocumentRef { @@ -21,7 +21,7 @@ query get404Page { } } scImageList { - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on DocumentRef { diff --git a/graphql/queries/error500Query.graphql b/graphql/queries/error500Query.graphql index 143442fa74..aa12250483 100644 --- a/graphql/queries/error500Query.graphql +++ b/graphql/queries/error500Query.graphql @@ -1,10 +1,10 @@ query get500Page { - scLabsErrorPagev1ByPath( + sclabsErrorpageV1ByPath ( _path: "/content/dam/decd-endc/content-fragments/sclabs/pages/500-error-page" ) { item { scGcImages { - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on DocumentRef { @@ -21,7 +21,7 @@ query get500Page { } } scImageList { - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on DocumentRef { @@ -49,4 +49,4 @@ query get500Page { } } } -} +} \ No newline at end of file diff --git a/graphql/queries/homePageQuery.graphql b/graphql/queries/homePageQuery.graphql index 19186e8632..183325e881 100644 --- a/graphql/queries/homePageQuery.graphql +++ b/graphql/queries/homePageQuery.graphql @@ -1,5 +1,5 @@ query getHomePage { - scLabsPagev1ByPath( + sclabsPageV1ByPath( _path: "/content/dam/decd-endc/content-fragments/sclabs/pages/home-page" ) { item { @@ -17,7 +17,7 @@ query getHomePage { json } scBreadcrumbParentPages { - ... on SCLabsPagev1Model { + ... on SclabsPageV1Model { scTitleEn scTitleFr scPageNameEn @@ -57,7 +57,7 @@ query getHomePage { scNoIndex scNoFollow scFragments { - ... on SCLabsContentv1Model { + ... on SclabsContentV1Model { _path scId scContentEn { @@ -67,7 +67,7 @@ query getHomePage { json } } - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on ImageRef { @@ -118,7 +118,7 @@ query getHomePage { json } } - ... on SCLabsButtonv1Model { + ... on SclabsButtonV1Model { scId scTitleEn scTitleFr @@ -126,7 +126,7 @@ query getHomePage { scDestinationURLFr scButtonType } - ... on SCLabsFeaturev1Model { + ... on SclabsFeatureV1Model { scId scTitleEn scTitleFr @@ -167,7 +167,7 @@ query getHomePage { scButtonType } } - ... on SCLabsAlertv1Model { + ... on SclabsAlertV1Model { scId scTitleEn scTitleFr @@ -181,4 +181,4 @@ query getHomePage { } } } -} +} \ No newline at end of file diff --git a/graphql/queries/mscadPageQuery.graphql b/graphql/queries/mscadPageQuery.graphql index c5508a4958..70229de39f 100644 --- a/graphql/queries/mscadPageQuery.graphql +++ b/graphql/queries/mscadPageQuery.graphql @@ -1,5 +1,5 @@ query getMscadPage { - scLabsPagev1ByPath( + sclabsPageV1ByPath ( _path: "/content/dam/decd-endc/content-fragments/sclabs/pages/projects/client-hub/dashboard-overview" ) { item { @@ -18,7 +18,7 @@ query getMscadPage { json } scBreadcrumbParentPages { - ... on SCLabsPagev1Model { + ... on SclabsPageV1Model { scTitleEn scTitleFr scPageNameEn @@ -54,7 +54,7 @@ query getMscadPage { scNoIndex scNoFollow scFragments { - ... on SCLabsContentv1Model { + ... on SclabsContentV1Model { _path scId scContentEn { @@ -64,7 +64,7 @@ query getMscadPage { json } } - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on ImageRef { @@ -115,7 +115,7 @@ query getMscadPage { json } } - ... on SCLabsButtonv1Model { + ... on SclabsButtonV1Model { scId scTitleEn scTitleFr @@ -123,7 +123,7 @@ query getMscadPage { scDestinationURLFr scButtonType } - ... on SCLabsFeaturev1Model { + ... on SclabsFeatureV1Model { scId scTitleEn scTitleFr @@ -154,7 +154,7 @@ query getMscadPage { } } scFragments { - ... on SCLabsAlertv1Model { + ... on SclabsAlertV1Model { _path scId scTitleEn @@ -179,7 +179,7 @@ query getMscadPage { scButtonType } } - ... on Tooltipv1Model { + ... on TooltipV1Model { _path scId scTitleEn @@ -194,4 +194,4 @@ query getMscadPage { } } } -} +} \ No newline at end of file diff --git a/graphql/queries/notsupportedQuery.graphql b/graphql/queries/notsupportedQuery.graphql index ca67941ed0..fd9598d2f6 100644 --- a/graphql/queries/notsupportedQuery.graphql +++ b/graphql/queries/notsupportedQuery.graphql @@ -1,10 +1,10 @@ query getNotSupported { - scLabsErrorPagev1ByPath( + sclabsErrorpageV1ByPath( _path: "/content/dam/decd-endc/content-fragments/sclabs/pages/browser-not-supported-page" ) { item { scGcImages { - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on DocumentRef { @@ -21,7 +21,7 @@ query getNotSupported { } } scImageList { - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on ImageRef { @@ -59,4 +59,4 @@ query getNotSupported { } } } -} +} \ No newline at end of file diff --git a/graphql/queries/oasBenefitsEstimatorArticlesQuery.graphql b/graphql/queries/oasBenefitsEstimatorArticlesQuery.graphql index 3e37b07eba..8ea123918a 100644 --- a/graphql/queries/oasBenefitsEstimatorArticlesQuery.graphql +++ b/graphql/queries/oasBenefitsEstimatorArticlesQuery.graphql @@ -1,5 +1,5 @@ query getOASBenefitsEstimatorArticles { - scLabsPagev1List( + sclabsPageV1List ( filter: { scContentType: { _expressions: [ @@ -29,7 +29,7 @@ query getOASBenefitsEstimatorArticles { scShortTitleEn scShortTitleFr scBreadcrumbParentPages { - ... on SCLabsPagev1Model { + ... on SclabsPageV1Model { scTitleEn scTitleFr scPageNameEn @@ -65,7 +65,7 @@ query getOASBenefitsEstimatorArticles { scNoIndex scNoFollow scFragments { - ... on SCLabsContentv1Model { + ... on SclabsContentV1Model { _path scId scContentEn { @@ -75,7 +75,7 @@ query getOASBenefitsEstimatorArticles { json } } - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on ImageRef { @@ -126,7 +126,7 @@ query getOASBenefitsEstimatorArticles { json } } - ... on SCLabsButtonv1Model { + ... on SclabsButtonV1Model { scId scTitleEn scTitleFr @@ -134,7 +134,7 @@ query getOASBenefitsEstimatorArticles { scDestinationURLFr scButtonType } - ... on SCLabsFeaturev1Model { + ... on SclabsFeatureV1Model { scId scTitleEn scTitleFr @@ -165,7 +165,7 @@ query getOASBenefitsEstimatorArticles { } } scFragments { - ... on SCLabsAlertv1Model { + ... on SclabsAlertV1Model { _path scId scTitleEn @@ -190,7 +190,7 @@ query getOASBenefitsEstimatorArticles { scButtonType } } - ... on Tooltipv1Model { + ... on TooltipV1Model { _path scId scTitleEn @@ -205,4 +205,4 @@ query getOASBenefitsEstimatorArticles { } } } -} +} \ No newline at end of file diff --git a/graphql/queries/oasBenefitsEstimatorQuery.graphql b/graphql/queries/oasBenefitsEstimatorQuery.graphql index e5455f240c..9ed1b0ec62 100644 --- a/graphql/queries/oasBenefitsEstimatorQuery.graphql +++ b/graphql/queries/oasBenefitsEstimatorQuery.graphql @@ -1,5 +1,5 @@ query getOASBenefitsEstimatorPage { - scLabsPagev1ByPath( + sclabsPageV1ByPath ( _path: "/content/dam/decd-endc/content-fragments/sclabs/pages/projects/oas-benefits-estimator/overview" ) { item { @@ -24,7 +24,7 @@ query getOASBenefitsEstimatorPage { json } scLabProjectUpdates { - ... on SCLabsPagev1Model { + ... on SclabsPageV1Model { _path scId scPageNameEn @@ -34,7 +34,7 @@ query getOASBenefitsEstimatorPage { scShortTitleEn scShortTitleFr scBreadcrumbParentPages { - ... on SCLabsPagev1Model { + ... on SclabsPageV1Model { scTitleEn scTitleFr scPageNameEn @@ -70,7 +70,7 @@ query getOASBenefitsEstimatorPage { scNoIndex scNoFollow scFragments { - ... on SCLabsContentv1Model { + ... on SclabsContentV1Model { _path scId scContentEn { @@ -80,7 +80,7 @@ query getOASBenefitsEstimatorPage { json } } - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on ImageRef { @@ -131,7 +131,7 @@ query getOASBenefitsEstimatorPage { json } } - ... on SCLabsButtonv1Model { + ... on SclabsButtonV1Model { scId scTitleEn scTitleFr @@ -139,7 +139,7 @@ query getOASBenefitsEstimatorPage { scDestinationURLFr scButtonType } - ... on SCLabsFeaturev1Model { + ... on SclabsFeatureV1Model { scId scTitleEn scTitleFr @@ -170,7 +170,7 @@ query getOASBenefitsEstimatorPage { } } scFragments { - ... on SCLabsAlertv1Model { + ... on SclabsAlertV1Model { _path scId scTitleEn @@ -195,7 +195,7 @@ query getOASBenefitsEstimatorPage { scButtonType } } - ... on Tooltipv1Model { + ... on TooltipV1Model { _path scId scTitleEn @@ -211,7 +211,7 @@ query getOASBenefitsEstimatorPage { } } scBreadcrumbParentPages { - ... on SCLabsPagev1Model { + ... on SclabsPageV1Model { scTitleEn scTitleFr scPageNameEn @@ -247,7 +247,7 @@ query getOASBenefitsEstimatorPage { scNoIndex scNoFollow scFragments { - ... on SCLabsContentv1Model { + ... on SclabsContentV1Model { _path scId scContentEn { @@ -257,7 +257,7 @@ query getOASBenefitsEstimatorPage { json } } - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on ImageRef { @@ -308,7 +308,7 @@ query getOASBenefitsEstimatorPage { json } } - ... on SCLabsButtonv1Model { + ... on SclabsButtonV1Model { scId scTitleEn scTitleFr @@ -316,7 +316,7 @@ query getOASBenefitsEstimatorPage { scDestinationURLFr scButtonType } - ... on SCLabsFeaturev1Model { + ... on SclabsFeatureV1Model { scId scTitleEn scTitleFr @@ -347,7 +347,7 @@ query getOASBenefitsEstimatorPage { } } scFragments { - ... on SCLabsAlertv1Model { + ... on SclabsAlertV1Model { _path scId scTitleEn @@ -372,7 +372,7 @@ query getOASBenefitsEstimatorPage { scButtonType } } - ... on Tooltipv1Model { + ... on TooltipV1Model { _path scId scTitleEn @@ -387,4 +387,4 @@ query getOASBenefitsEstimatorPage { } } } -} +} \ No newline at end of file diff --git a/graphql/queries/projectQuery.graphql b/graphql/queries/projectQuery.graphql index ab6f618568..a18b3c0e7d 100644 --- a/graphql/queries/projectQuery.graphql +++ b/graphql/queries/projectQuery.graphql @@ -1,5 +1,5 @@ query getAllProjects { - scLabsPagev1List( + sclabsPageV1List( filter: { scLabProjectStatus: { _logOp: OR @@ -66,7 +66,7 @@ query getAllProjects { scNoIndex scNoFollow scFragments { - ... on SCLabsContentv1Model { + ... on SclabsContentV1Model { _path scId scContentEn { @@ -76,7 +76,7 @@ query getAllProjects { json } } - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on ImageRef { @@ -127,7 +127,7 @@ query getAllProjects { json } } - ... on SCLabsButtonv1Model { + ... on SclabsButtonV1Model { scId scTitleEn scTitleFr @@ -135,7 +135,7 @@ query getAllProjects { scDestinationURLFr scButtonType } - ... on SCLabsFeaturev1Model { + ... on SclabsFeatureV1Model { scId scTitleEn scTitleFr @@ -166,7 +166,7 @@ query getAllProjects { } } scFragments { - ... on SCLabsAlertv1Model { + ... on SclabsAlertV1Model { _path scId scTitleEn @@ -191,7 +191,7 @@ query getAllProjects { scButtonType } } - ... on Tooltipv1Model { + ... on TooltipV1Model { _path scId scTitleEn @@ -217,4 +217,4 @@ query getAllProjects { } } } -} +} \ No newline at end of file diff --git a/graphql/queries/projectUpdatesQuery.graphql b/graphql/queries/projectUpdatesQuery.graphql index 47bc18b1be..1c01e7ef3a 100644 --- a/graphql/queries/projectUpdatesQuery.graphql +++ b/graphql/queries/projectUpdatesQuery.graphql @@ -1,5 +1,5 @@ query getProjectUpdates { - scLabsPagev1ByPath( + sclabsPageV1ByPath( _path: "/content/dam/decd-endc/content-fragments/sclabs/pages/projects/virtual-assistant/project-updates/what-we-learned-building-the-service-canada-virtual-assistant" ) { item { @@ -17,7 +17,7 @@ query getProjectUpdates { json } scBreadcrumbParentPages { - ... on SCLabsPagev1Model { + ... on SclabsPageV1Model { scPageNameEn scPageNameFr } @@ -51,7 +51,7 @@ query getProjectUpdates { scNoIndex scNoFollow scFragments { - ... on SCLabsContentv1Model { + ... on SclabsContentV1Model { _path scId scContentEn { @@ -61,7 +61,7 @@ query getProjectUpdates { json } } - ... on SCLabsFeaturev1Model { + ... on SclabsFeatureV1Model { scId scTitleEn scTitleFr @@ -105,4 +105,4 @@ query getProjectUpdates { } } } -} +} \ No newline at end of file diff --git a/graphql/queries/projectsPageQuery.graphql b/graphql/queries/projectsPageQuery.graphql index ffd7a9e51b..748dfff0f7 100644 --- a/graphql/queries/projectsPageQuery.graphql +++ b/graphql/queries/projectsPageQuery.graphql @@ -1,5 +1,5 @@ query getProjectsPage { - scLabsPagev1ByPath( + sclabsPageV1ByPath ( _path: "/content/dam/decd-endc/content-fragments/sclabs/pages/projects-page" ) { item { @@ -17,7 +17,7 @@ query getProjectsPage { json } scBreadcrumbParentPages { - ... on SCLabsPagev1Model { + ... on SclabsPageV1Model { scTitleEn scTitleFr scPageNameEn @@ -53,7 +53,7 @@ query getProjectsPage { scNoIndex scNoFollow scFragments { - ... on SCLabsContentv1Model { + ... on SclabsContentV1Model { _path scId scContentEn { @@ -63,7 +63,7 @@ query getProjectsPage { json } } - ... on SCLabsImagev1Model { + ... on SclabsImageV1Model { scId scImageEn { ... on ImageRef { @@ -114,7 +114,7 @@ query getProjectsPage { json } } - ... on SCLabsButtonv1Model { + ... on SclabsButtonV1Model { scId scTitleEn scTitleFr @@ -122,7 +122,7 @@ query getProjectsPage { scDestinationURLFr scButtonType } - ... on SCLabsFeaturev1Model { + ... on SclabsFeatureV1Model { scId scTitleEn scTitleFr @@ -163,7 +163,7 @@ query getProjectsPage { scButtonType } } - ... on SCLabsAlertv1Model { + ... on SclabsAlertV1Model { scId scTitleEn scTitleFr @@ -177,4 +177,4 @@ query getProjectsPage { } } } -} +} \ No newline at end of file diff --git a/pages/404.js b/pages/404.js index 5e078fc86a..7cce3acd18 100644 --- a/pages/404.js +++ b/pages/404.js @@ -255,7 +255,7 @@ export const getStaticProps = async ({ locale }) => { adobeAnalyticsUrl: process.env.ADOBE_ANALYTICS_URL, ...(await serverSideTranslations("en", ["common"])), ...(await serverSideTranslations("fr", ["common"])), - pageData: data.scLabsErrorPagev1ByPath, + pageData: data.sclabsErrorpageV1ByPath, }, }; }; diff --git a/pages/500.js b/pages/500.js index 0f7094b793..e6d8009a56 100644 --- a/pages/500.js +++ b/pages/500.js @@ -281,7 +281,7 @@ export const getStaticProps = async ({ locale }) => { adobeAnalyticsUrl: process.env.ADOBE_ANALYTICS_URL, ...(await serverSideTranslations("en", ["common"])), ...(await serverSideTranslations("fr", ["common"])), - pageData: data.scLabsErrorPagev1ByPath, + pageData: data.sclabsErrorpageV1ByPath, }, }; }; diff --git a/pages/error.js b/pages/error.js index 3e68c543c3..eafd66da6c 100644 --- a/pages/error.js +++ b/pages/error.js @@ -468,7 +468,7 @@ export const getStaticProps = async ({ locale }) => { adobeAnalyticsUrl: process.env.ADOBE_ANALYTICS_URL, ...(await serverSideTranslations("en", ["common"])), ...(await serverSideTranslations("fr", ["common"])), - pageData: data.scLabsErrorPagev1ByPath, + pageData: data.sclabsErrorpageV1ByPath, }, }; }; diff --git a/pages/home.js b/pages/home.js index 05f2471af8..d4b32b1570 100644 --- a/pages/home.js +++ b/pages/home.js @@ -399,8 +399,8 @@ export const getStaticProps = async ({ locale }) => { props: { locale: locale, adobeAnalyticsUrl: process.env.ADOBE_ANALYTICS_URL, - pageData: pageData.scLabsPagev1ByPath, - experimentsData: experimentsData.scLabsPagev1List.items, + pageData: pageData.sclabsPageV1ByPath, + experimentsData: experimentsData.sclabsPageV1List.items, ...(await serverSideTranslations(locale, ["common"])), }, revalidate: process.env.ENVIRONMENT === "development" ? 10 : false, diff --git a/pages/notsupported.js b/pages/notsupported.js index 6d59ef60a6..62095296f6 100644 --- a/pages/notsupported.js +++ b/pages/notsupported.js @@ -490,7 +490,7 @@ export const getStaticProps = async ({ locale }) => { adobeAnalyticsUrl: process.env.ADOBE_ANALYTICS_URL, ...(await serverSideTranslations("en", ["common"])), ...(await serverSideTranslations("fr", ["common"])), - pageData: data.scLabsErrorPagev1ByPath, + pageData: data.sclabsErrorpageV1ByPath, }, }; }; diff --git a/pages/projects/benefits-navigator/[id].js b/pages/projects/benefits-navigator/[id].js index 6b96f69bd0..d2690eeb85 100644 --- a/pages/projects/benefits-navigator/[id].js +++ b/pages/projects/benefits-navigator/[id].js @@ -260,7 +260,7 @@ export async function getStaticPaths() { "benefitsNavigatorArticlesQuery" ); // Get paths for dynamic routes from the page name data - const paths = getAllUpdateIds(data.scLabsPagev1List.items); + const paths = getAllUpdateIds(data.sclabsPageV1List.items); paths.map((path) => (path.params.id = path.params.id.split("/").at(-1))); return { paths, @@ -277,7 +277,7 @@ export const getStaticProps = async ({ locale, params }) => { const { data: dictionary } = await aemServiceInstance.getFragment( "dictionaryQuery" ); - const pages = data.scLabsPagev1List.items; + const pages = data.sclabsPageV1List.items; // Return page data that matches the current page being built const pageData = pages.filter((page) => { return ( diff --git a/pages/projects/benefits-navigator/index.js b/pages/projects/benefits-navigator/index.js index b72b9068bf..f431fd23fe 100644 --- a/pages/projects/benefits-navigator/index.js +++ b/pages/projects/benefits-navigator/index.js @@ -796,8 +796,8 @@ export const getStaticProps = async ({ locale }) => { props: { locale: locale, adobeAnalyticsUrl: process.env.ADOBE_ANALYTICS_URL, - pageData: pageData.scLabsPagev1ByPath, - updatesData: pageData.scLabsPagev1ByPath.item.scLabProjectUpdates, + pageData: pageData.sclabsPageV1ByPath, + updatesData: pageData.sclabsPageV1ByPath.item?.scLabProjectUpdates, dictionary: dictionary.dictionaryV1List, ...(await serverSideTranslations(locale, ["common"])), }, diff --git a/pages/projects/dashboard/index.js b/pages/projects/dashboard/index.js index ddd02a3723..27d09f6878 100644 --- a/pages/projects/dashboard/index.js +++ b/pages/projects/dashboard/index.js @@ -433,7 +433,7 @@ export const getStaticProps = async ({ locale }) => { props: { locale: locale, adobeAnalyticsUrl: process.env.ADOBE_ANALYTICS_URL, - pageData: pageData.scLabsPagev1ByPath, + pageData: pageData.sclabsPageV1ByPath, dictionary: dictionary.dictionaryV1List, ...(await serverSideTranslations(locale, ["common"])), }, diff --git a/pages/projects/oas-benefits-estimator/[id].js b/pages/projects/oas-benefits-estimator/[id].js index ed5b1d40f6..047e14550f 100644 --- a/pages/projects/oas-benefits-estimator/[id].js +++ b/pages/projects/oas-benefits-estimator/[id].js @@ -313,7 +313,7 @@ export async function getStaticPaths() { "oasBenefitsEstimatorArticlesQuery" ); // Get paths for dynamic routes from the page name data - const paths = getAllUpdateIds(data.scLabsPagev1List.items); + const paths = getAllUpdateIds(data.sclabsPageV1List.items); // Remove characters preceding the page name itself i.e. change "/en/projects/oas-benefits-estimator/what-we-learned" to "what-we-learned" paths.map((path) => (path.params.id = path.params.id.split("/").at(-1))); return { @@ -331,7 +331,7 @@ export const getStaticProps = async ({ locale, params }) => { const { data: dictionary } = await aemServiceInstance.getFragment( "dictionaryQuery" ); - const pages = data.scLabsPagev1List.items; + const pages = data.sclabsPageV1List.items; // Return page data that matches the current page being built const pageData = pages.filter((page) => { return ( diff --git a/pages/projects/oas-benefits-estimator/index.js b/pages/projects/oas-benefits-estimator/index.js index 27cdfa92fb..3aa255fa90 100644 --- a/pages/projects/oas-benefits-estimator/index.js +++ b/pages/projects/oas-benefits-estimator/index.js @@ -467,8 +467,8 @@ export const getStaticProps = async ({ locale }) => { props: { locale: locale, adobeAnalyticsUrl: process.env.ADOBE_ANALYTICS_URL, - pageData: pageData.scLabsPagev1ByPath, - updatesData: pageData.scLabsPagev1ByPath.item.scLabProjectUpdates, + pageData: pageData.sclabsPageV1ByPath, + updatesData: pageData.sclabsPageV1ByPath.item.scLabProjectUpdates, dictionary: dictionary.dictionaryV1List, ...(await serverSideTranslations(locale, ["common"])), },