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', value: 'EXACT',
}, },
{ {
name: 'Prefix', name: 'Glob',
value: 'PREFIX', value: 'GLOB',
}, },
], ],
default: 'EXACT', 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, required: true,
}, },
{ {

View File

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

View File

@@ -207,9 +207,9 @@ enum TrackerPatternMatchType
@goEnum( @goEnum(
value: "go.probo.inc/probo/pkg/coredata.TrackerPatternMatchTypeExact" value: "go.probo.inc/probo/pkg/coredata.TrackerPatternMatchTypeExact"
) )
PREFIX GLOB
@goEnum( @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 description: Tracker name pattern
match_type: match_type:
type: string type: string
enum: [EXACT, PREFIX] enum: [EXACT, GLOB]
description: Pattern match type description: "Pattern match type. GLOB uses * as single wildcard (e.g. ph_phc_*_posthog)"
display_name: display_name:
type: string type: string
description: Human-friendly display name description: Human-friendly display name
@@ -9989,7 +9989,7 @@ components:
type: string type: string
match_type: match_type:
type: string type: string
enum: [EXACT, PREFIX] enum: [EXACT, GLOB]
display_name: display_name:
type: string type: string
max_age_seconds: max_age_seconds: