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:
@@ -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)}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user