Skip to content

Commit

Permalink
feat: add comparators to ConfigBody
Browse files Browse the repository at this point in the history
  • Loading branch information
suthar26 committed Aug 8, 2024
1 parent a20e243 commit 93323fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions lib/shared/types/src/types/config/models/audience.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export enum FilterComparator {
'!exist' = '!exist',
'contain' = 'contain',
'!contain' = '!contain',
'startWith' = 'startWith',
'!startWith' = '!startWith',
'endWith' = 'endWith',
'!endWith' = '!endWith',
}

export enum BooleanFilterComparator {
Expand All @@ -27,6 +31,10 @@ export enum StringFilterComparator {
'!exist' = '!exist',
'contain' = 'contain',
'!contain' = '!contain',
'startWith' = 'startWith',
'!startWith' = '!startWith',
'endWith' = 'endWith',
'!endWith' = '!endWith',
}

export enum NumberFilterComparator {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Audience, AudienceFilter, TopLevelOperator } from './audience'
import { TopLevelOperator } from './audience'
import { Type } from 'class-transformer'

export enum TargetingRuleTypes {
Expand Down

0 comments on commit 93323fd

Please sign in to comment.