Skip to content

Commit

Permalink
add unique_id filter support
Browse files Browse the repository at this point in the history
  • Loading branch information
katyatitkova committed Jun 14, 2024
1 parent 74e249c commit aecc055
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ type PropertyFilter struct {
Formula *FormulaFilterCondition `json:"formula,omitempty"`
Rollup *RollupFilterCondition `json:"rollup,omitempty"`
Status *StatusFilterCondition `json:"status,omitempty"`
UniqueId *UniqueIdFilterCondition `json:"unique_id,omitempty"`
}

func (f PropertyFilter) filter() {}
Expand Down Expand Up @@ -178,3 +179,12 @@ type StatusFilterCondition struct {
IsEmpty bool `json:"is_empty,omitempty"`
IsNotEmpty bool `json:"is_not_empty,omitempty"`
}

type UniqueIdFilterCondition struct {
Equals *int `json:"equals,omitempty"`
DoesNotEqual *int `json:"does_not_equal,omitempty"`
GreaterThan *int `json:"greater_than,omitempty"`
LessThan *int `json:"less_than,omitempty"`
GreaterThanOrEqualTo *int `json:"greater_than_or_equal_to,omitempty"`
LessThanOrEqualTo *int `json:"less_than_or_equal_to,omitempty"`
}

0 comments on commit aecc055

Please sign in to comment.