Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion packages/types/src/config/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ export type VisitorDataExistsMatchRule = BaseRuleWithBooleanValue & {
export type CookieMatchRule = BaseRuleWithStringValue & {
rule_type: CookieMatchRulesTypes;
matching?: (BaseMatch & {
match_type?: TextMatchingOptions;
match_type?: CookieMatchingOptions;
});
/**
* The name of the cookie which value is compared to the given rule value
Expand Down Expand Up @@ -734,6 +734,18 @@ export const TextMatchingOptions = {
STARTS_WITH: 'startsWith'
} as const;

export type CookieMatchingOptions = 'matches' | 'regexMatches' | 'contains' | 'endsWith' | 'startsWith' | 'exists' | 'doesNotExist';
Comment thread
JosephSamirL marked this conversation as resolved.

export const CookieMatchingOptions = {
MATCHES: 'matches',
REGEX_MATCHES: 'regexMatches',
CONTAINS: 'contains',
ENDS_WITH: 'endsWith',
STARTS_WITH: 'startsWith',
EXISTS: 'exists',
DOES_NOT_EXIST: 'doesNotExist'
} as const;

export type NumericMatchingOptions = 'equalsNumber' | 'less' | 'lessEqual';

export const NumericMatchingOptions = {
Expand Down
Loading