Surface regulation and country code enums across API layers

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é <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-05-07 14:38:10 +04:00
parent b4d8bd8de2
commit 806bd672ed
11 changed files with 386 additions and 9 deletions

View File

@@ -58,6 +58,7 @@ export const cookieBannerConsentRecordPageQuery = graphql`
userAgent
sdkVersion
regulation
countryCode
consentData
createdAt
}
@@ -158,6 +159,11 @@ export default function CookieBannerConsentRecordPage({
{record.regulation || "-"}
</span>
</PropertyRow>
<PropertyRow label={__("Country")}>
<span className="font-mono text-sm">
{record.countryCode || "-"}
</span>
</PropertyRow>
<PropertyRow label={__("Date")}>
<time dateTime={record.createdAt}>
{formatDate(record.createdAt)}

View File

@@ -217,6 +217,7 @@ export default function CookieBannerConsentRecordsPage({
<Th>{__("IP Address")}</Th>
<Th>{__("SDK Version")}</Th>
<Th>{__("Regulation")}</Th>
<Th>{__("Country")}</Th>
<SortableTh field="CREATED_AT">{__("Date")}</SortableTh>
</Tr>
</Thead>

View File

@@ -36,6 +36,7 @@ const consentRecordFragment = graphql`
ipAddress
sdkVersion
regulation
countryCode
createdAt
}
`;
@@ -80,6 +81,11 @@ export function ConsentRecordRow({ recordKey }: ConsentRecordRowProps) {
{record.regulation || "-"}
</span>
</Td>
<Td>
<span className="font-mono text-sm">
{record.countryCode || "-"}
</span>
</Td>
<Td>
<time dateTime={record.createdAt}>
{formatDate(record.createdAt)}