Update API surface to use GLOB match type instead of PREFIX

Replace PREFIX with GLOB in GraphQL enum, MCP specification, CLI
interactive prompts, and n8n node options.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-05-06 20:41:31 +04:00
parent d006d4e462
commit 0358aafb62
4 changed files with 10 additions and 10 deletions

View File

@@ -60,12 +60,12 @@ export const description: INodeProperties[] = [
value: 'EXACT',
},
{
name: 'Prefix',
value: 'PREFIX',
name: 'Glob',
value: 'GLOB',
},
],
default: 'EXACT',
description: 'How the pattern should be matched against tracker names',
description: 'How the pattern should be matched against tracker names. GLOB uses * as wildcard.',
required: true,
},
{

View File

@@ -96,7 +96,7 @@ func NewCmdCreate(f *cmdutil.Factory) *cobra.Command {
Title("Match type").
Options(
huh.NewOption("Exact", "EXACT"),
huh.NewOption("Prefix", "PREFIX"),
huh.NewOption("Glob", "GLOB"),
).
Value(&flagMatchType).Run(); err != nil {
return err
@@ -152,7 +152,7 @@ func NewCmdCreate(f *cmdutil.Factory) *cobra.Command {
cmd.Flags().StringVar(&flagCategoryID, "category-id", "", "Cookie category ID (required)")
_ = cmd.MarkFlagRequired("category-id")
cmd.Flags().StringVar(&flagPattern, "pattern", "", "Tracker pattern (required)")
cmd.Flags().StringVar(&flagMatchType, "match-type", "", "Match type: EXACT or PREFIX (required)")
cmd.Flags().StringVar(&flagMatchType, "match-type", "", "Match type: EXACT or GLOB (required)")
cmd.Flags().StringVar(&flagDisplayName, "display-name", "", "Display name (required)")
cmd.Flags().StringVar(&flagDescription, "description", "", "Description")
cmd.Flags().IntVar(&flagMaxAge, "max-age-seconds", 0, "Maximum age in seconds")

View File

@@ -207,9 +207,9 @@ enum TrackerPatternMatchType
@goEnum(
value: "go.probo.inc/probo/pkg/coredata.TrackerPatternMatchTypeExact"
)
PREFIX
GLOB
@goEnum(
value: "go.probo.inc/probo/pkg/coredata.TrackerPatternMatchTypePrefix"
value: "go.probo.inc/probo/pkg/coredata.TrackerPatternMatchTypeGlob"
)
}

View File

@@ -9457,8 +9457,8 @@ components:
description: Tracker name pattern
match_type:
type: string
enum: [EXACT, PREFIX]
description: Pattern match type
enum: [EXACT, GLOB]
description: "Pattern match type. GLOB uses * as single wildcard (e.g. ph_phc_*_posthog)"
display_name:
type: string
description: Human-friendly display name
@@ -9989,7 +9989,7 @@ components:
type: string
match_type:
type: string
enum: [EXACT, PREFIX]
enum: [EXACT, GLOB]
display_name:
type: string
max_age_seconds: