From 806bd672ed353932656e6458330ed14c1e9423ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Thu, 7 May 2026 14:38:10 +0400 Subject: [PATCH] Surface regulation and country code enums across API layers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add proper enum types for Regulation and CountryCode in GraphQL (with @goModel/@goEnum directives) and MCP (as standalone reusable schemas with $ref). Update CLI, console UI, and n8n to include the new fields. Signed-off-by: Émile Ré --- .../CookieBannerConsentRecordPage.tsx | 6 + .../CookieBannerConsentRecordsPage.tsx | 1 + .../_components/ConsentRecordRow.tsx | 6 + .../cookieConsentRecord/get.operation.ts | 2 + .../cookieConsentRecord/getAll.operation.ts | 2 + pkg/cmd/consent-record/list/list.go | 18 +- pkg/cmd/consent-record/view/view.go | 6 + .../v1/graphql/cookie_consent_record.graphql | 67 ++++- .../console/v1/types/cookie_consent_record.go | 3 +- pkg/server/api/mcp/v1/specification.yaml | 282 ++++++++++++++++++ .../api/mcp/v1/types/cookie_consent_record.go | 2 + 11 files changed, 386 insertions(+), 9 deletions(-) diff --git a/apps/console/src/pages/organizations/cookie-banners/configuration/consent-records/CookieBannerConsentRecordPage.tsx b/apps/console/src/pages/organizations/cookie-banners/configuration/consent-records/CookieBannerConsentRecordPage.tsx index 1aa7cdd7b..e0b574ee2 100644 --- a/apps/console/src/pages/organizations/cookie-banners/configuration/consent-records/CookieBannerConsentRecordPage.tsx +++ b/apps/console/src/pages/organizations/cookie-banners/configuration/consent-records/CookieBannerConsentRecordPage.tsx @@ -58,6 +58,7 @@ export const cookieBannerConsentRecordPageQuery = graphql` userAgent sdkVersion regulation + countryCode consentData createdAt } @@ -158,6 +159,11 @@ export default function CookieBannerConsentRecordPage({ {record.regulation || "-"} + + + {record.countryCode || "-"} + +