From 4d401fdbdeb656173292698b6f2f202015e96111 Mon Sep 17 00:00:00 2001 From: petefox Date: Fri, 21 Jun 2024 10:30:28 -0700 Subject: [PATCH] Added support for custom fields in search queries --- src/Close/Close.csproj | 4 ++-- src/Close/Models/Condition.cs | 6 ++++++ src/Close/Models/Enums/FieldType.cs | 3 ++- src/Close/Models/Field.cs | 3 +++ 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/Close/Close.csproj b/src/Close/Close.csproj index 92fd563..b8e61b1 100644 --- a/src/Close/Close.csproj +++ b/src/Close/Close.csproj @@ -5,10 +5,10 @@ disable Close Close - 0.2.2 + 0.2.3 Peter Schroeder Telzio, Inc. - © 2013-2023 Telzio, Inc. + © 2013-2024 Telzio, Inc. Close Close ASP.NET Core client for Close's API diff --git a/src/Close/Models/Condition.cs b/src/Close/Models/Condition.cs index e405d0a..65df338 100644 --- a/src/Close/Models/Condition.cs +++ b/src/Close/Models/Condition.cs @@ -9,4 +9,10 @@ public class Condition [JsonPropertyName("values")] public List Values { get; set; } + + [JsonPropertyName("gte")] + public int? Gte { get; set; } + + [JsonPropertyName("lte")] + public int? Lte { get; set; } } \ No newline at end of file diff --git a/src/Close/Models/Enums/FieldType.cs b/src/Close/Models/Enums/FieldType.cs index 834fc62..005b57c 100644 --- a/src/Close/Models/Enums/FieldType.cs +++ b/src/Close/Models/Enums/FieldType.cs @@ -2,5 +2,6 @@ namespace Close.Models.Enums; public enum FieldType { - regular_field + regular_field, + custom_field } \ No newline at end of file diff --git a/src/Close/Models/Field.cs b/src/Close/Models/Field.cs index 591847d..6a39287 100644 --- a/src/Close/Models/Field.cs +++ b/src/Close/Models/Field.cs @@ -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; }