Surface last_matched_at on all API surfaces
Add lastMatchedAt to the CookiePattern GraphQL type, MCP schema, CLI view/list commands, and n8n get/getAll operations. Run codegen to regenerate gqlgen models and MCP types. Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -205,6 +205,7 @@ type CookiePattern implements Node {
|
||||
source: CookieSource!
|
||||
excluded: Boolean!
|
||||
cookieCount: Int! @goField(forceResolver: true)
|
||||
lastMatchedAt: Datetime
|
||||
createdAt: Datetime!
|
||||
updatedAt: Datetime!
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ func NewCookiePattern(cp *coredata.CookiePattern) *CookiePattern {
|
||||
Description: cp.Description,
|
||||
Source: cp.Source,
|
||||
Excluded: cp.Excluded,
|
||||
LastMatchedAt: cp.LastMatchedAt,
|
||||
CreatedAt: cp.CreatedAt,
|
||||
UpdatedAt: cp.UpdatedAt,
|
||||
}
|
||||
|
||||
@@ -9185,6 +9185,12 @@ components:
|
||||
excluded:
|
||||
type: boolean
|
||||
description: Whether this pattern is excluded from the consent banner
|
||||
last_matched_at:
|
||||
type:
|
||||
- string
|
||||
- "null"
|
||||
format: date-time
|
||||
description: Timestamp when a cookie last matched this pattern
|
||||
created_at:
|
||||
type: string
|
||||
format: date-time
|
||||
|
||||
@@ -32,6 +32,7 @@ func NewCookiePattern(p *coredata.CookiePattern) *CookiePattern {
|
||||
Description: p.Description,
|
||||
Source: CookiePatternSource(p.Source),
|
||||
Excluded: p.Excluded,
|
||||
LastMatchedAt: p.LastMatchedAt,
|
||||
CreatedAt: p.CreatedAt,
|
||||
UpdatedAt: p.UpdatedAt,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user