Add gcmConsentTypes to GraphQL schema and resolvers

Expose gcmConsentTypes on CookieCategory type and accept
it in UpdateCookieCategoryInput so the console can read
and write GCM consent type mappings per category.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-24 13:47:59 +04:00
parent 60705af3a2
commit 4436059483
3 changed files with 20 additions and 7 deletions

View File

@@ -123,6 +123,7 @@ type CookieCategory implements Node {
description: String!
kind: CookieCategoryKind!
rank: Int!
gcmConsentTypes: [String!]!
cookies(
first: Int
@@ -308,6 +309,7 @@ input UpdateCookieCategoryInput {
name: String
slug: String
description: String
gcmConsentTypes: [String!]
}
input DeleteCookieCategoryInput {