Add regenerateCookieBannerTrackerPolicy mutation
Expose a non-destructive re-trigger that re-arms tracker policy generation for a banner that already has a published version, so the tracker-policy worker regenerates the document after iterating on the generator. RegenerateTrackerPolicy returns a conflict when nothing has been published yet. Wire it across all API surfaces per the api-surface rule: the console GraphQL mutation and resolver, the MCP tool, the prb cookie-banner regenerate-policy command, and the n8n operation, with console e2e coverage for the success and no-published-version paths. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -21,6 +21,7 @@ import * as deleteOp from './delete.operation';
|
||||
import * as activateOp from './activate.operation';
|
||||
import * as deactivateOp from './deactivate.operation';
|
||||
import * as publishOp from './publish.operation';
|
||||
import * as regeneratePolicyOp from './regeneratePolicy.operation';
|
||||
import * as translateOp from './translate.operation';
|
||||
|
||||
export const description: INodeProperties[] = [
|
||||
@@ -77,6 +78,12 @@ export const description: INodeProperties[] = [
|
||||
description: 'Publish a new cookie banner version',
|
||||
action: 'Publish a cookie banner version',
|
||||
},
|
||||
{
|
||||
name: 'Regenerate Policy',
|
||||
value: 'regeneratePolicy',
|
||||
description: 'Re-arm tracker policy generation for a published cookie banner',
|
||||
action: 'Regenerate a cookie banner tracker policy',
|
||||
},
|
||||
{
|
||||
name: 'Translate',
|
||||
value: 'translate',
|
||||
@@ -100,6 +107,7 @@ export const description: INodeProperties[] = [
|
||||
...activateOp.description,
|
||||
...deactivateOp.description,
|
||||
...publishOp.description,
|
||||
...regeneratePolicyOp.description,
|
||||
...translateOp.description,
|
||||
];
|
||||
|
||||
@@ -112,5 +120,6 @@ export {
|
||||
activateOp as activate,
|
||||
deactivateOp as deactivate,
|
||||
publishOp as publish,
|
||||
regeneratePolicyOp as regeneratePolicy,
|
||||
translateOp as translate,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user