Skip to content

Commit

Permalink
Added support for custom fields in search queries
Browse files Browse the repository at this point in the history
  • Loading branch information
petefox committed Jun 21, 2024
1 parent 03d9a51 commit 4d401fd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Close/Close.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<Nullable>disable</Nullable>
<AssemblyName>Close</AssemblyName>
<RootNamespace>Close</RootNamespace>
<Version>0.2.2</Version>
<Version>0.2.3</Version>
<Authors>Peter Schroeder</Authors>
<Company>Telzio, Inc.</Company>
<Copyright>© 2013-2023 Telzio, Inc.</Copyright>
<Copyright>© 2013-2024 Telzio, Inc.</Copyright>
<Product>Close</Product>
<Title>Close</Title>
<Description>ASP.NET Core client for Close's API</Description>
Expand Down
6 changes: 6 additions & 0 deletions src/Close/Models/Condition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ public class Condition

[JsonPropertyName("values")]
public List<string> Values { get; set; }

[JsonPropertyName("gte")]
public int? Gte { get; set; }

[JsonPropertyName("lte")]
public int? Lte { get; set; }
}
3 changes: 2 additions & 1 deletion src/Close/Models/Enums/FieldType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ namespace Close.Models.Enums;

public enum FieldType
{
regular_field
regular_field,
custom_field
}
3 changes: 3 additions & 0 deletions src/Close/Models/Field.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ public class Field
{
[JsonPropertyName("field_name")]
public string FieldName { get; set; }

[JsonPropertyName("custom_field_id")]
public string CustomFieldId { get; set; }

[JsonPropertyName("object_type")]
public ObjectType ObjectType { get; set; }
Expand Down

0 comments on commit 4d401fd

Please sign in to comment.