Skip to content

Commit

Permalink
SDK regeneration (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
  • Loading branch information
fern-api[bot] authored Jul 1, 2024
1 parent 2b69d8a commit 897a166
Show file tree
Hide file tree
Showing 18 changed files with 75 additions and 48 deletions.
20 changes: 10 additions & 10 deletions src/SchematicHQ.Client.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchematicHQ.Client", "SchematicHQ.Client\SchematicHQ.Client.csproj", "{EBD4CF4C-350D-46AA-A99D-7304014BAF37}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchematicHQ.Client", "SchematicHQ.Client\SchematicHQ.Client.csproj", "{6A39E647-F923-4508-81AE-30DB9B905AB2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchematicHQ.Client.Test", "SchematicHQ.Client.Test\SchematicHQ.Client.Test.csproj", "{8412F3CF-8C8C-4A87-A39E-56894D4DAB79}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchematicHQ.Client.Test", "SchematicHQ.Client.Test\SchematicHQ.Client.Test.csproj", "{80F38215-484B-4329-9AAA-B5973F14BF3A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -16,13 +16,13 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EBD4CF4C-350D-46AA-A99D-7304014BAF37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EBD4CF4C-350D-46AA-A99D-7304014BAF37}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EBD4CF4C-350D-46AA-A99D-7304014BAF37}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EBD4CF4C-350D-46AA-A99D-7304014BAF37}.Release|Any CPU.Build.0 = Release|Any CPU
{8412F3CF-8C8C-4A87-A39E-56894D4DAB79}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8412F3CF-8C8C-4A87-A39E-56894D4DAB79}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8412F3CF-8C8C-4A87-A39E-56894D4DAB79}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8412F3CF-8C8C-4A87-A39E-56894D4DAB79}.Release|Any CPU.Build.0 = Release|Any CPU
{6A39E647-F923-4508-81AE-30DB9B905AB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6A39E647-F923-4508-81AE-30DB9B905AB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6A39E647-F923-4508-81AE-30DB9B905AB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6A39E647-F923-4508-81AE-30DB9B905AB2}.Release|Any CPU.Build.0 = Release|Any CPU
{80F38215-484B-4329-9AAA-B5973F14BF3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{80F38215-484B-4329-9AAA-B5973F14BF3A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{80F38215-484B-4329-9AAA-B5973F14BF3A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{80F38215-484B-4329-9AAA-B5973F14BF3A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
8 changes: 4 additions & 4 deletions src/SchematicHQ.Client/Companies/CompaniesClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,9 @@ ListEntityKeyDefinitionsRequest request
{
_query["ids"] = request.Ids;
}
if (request.Key != null)
if (request.Q != null)
{
_query["key"] = request.Key;
_query["q"] = request.Q;
}
if (request.Limit != null)
{
Expand Down Expand Up @@ -454,9 +454,9 @@ CountEntityKeyDefinitionsRequest request
{
_query["ids"] = request.Ids;
}
if (request.Key != null)
if (request.Q != null)
{
_query["key"] = request.Key;
_query["q"] = request.Q;
}
if (request.Limit != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class CountEntityKeyDefinitionsRequest

public string? Ids { get; init; }

public string? Key { get; init; }
public string? Q { get; init; }

/// <summary>
/// Page limit (default 100)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class ListEntityKeyDefinitionsRequest

public string? Ids { get; init; }

public string? Key { get; init; }
public string? Q { get; init; }

/// <summary>
/// Page limit (default 100)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ public class CountEntityKeyDefinitionsParams
[JsonPropertyName("ids")]
public IEnumerable<string>? Ids { get; init; }

[JsonPropertyName("key")]
public string? Key { get; init; }

/// <summary>
/// Page limit (default 100)
/// </summary>
Expand All @@ -27,4 +24,7 @@ public class CountEntityKeyDefinitionsParams
/// </summary>
[JsonPropertyName("offset")]
public int? Offset { get; init; }

[JsonPropertyName("q")]
public string? Q { get; init; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ public class ListEntityKeyDefinitionsParams
[JsonPropertyName("ids")]
public IEnumerable<string>? Ids { get; init; }

[JsonPropertyName("key")]
public string? Key { get; init; }

/// <summary>
/// Page limit (default 100)
/// </summary>
Expand All @@ -27,4 +24,7 @@ public class ListEntityKeyDefinitionsParams
/// </summary>
[JsonPropertyName("offset")]
public int? Offset { get; init; }

[JsonPropertyName("q")]
public string? Q { get; init; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ namespace SchematicHQ.Client;
[JsonConverter(typeof(StringEnumSerializer<CreateCompanyOverrideRequestBodyValueType>))]
public enum CreateCompanyOverrideRequestBodyValueType
{
[EnumMember(Value = "Boolean")]
[EnumMember(Value = "boolean")]
Boolean,

[EnumMember(Value = "Numeric")]
[EnumMember(Value = "numeric")]
Numeric,

[EnumMember(Value = "Trait")]
[EnumMember(Value = "trait")]
Trait,

[EnumMember(Value = "Unlimited")]
[EnumMember(Value = "unlimited")]
Unlimited
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ namespace SchematicHQ.Client;
[JsonConverter(typeof(StringEnumSerializer<CreatePlanEntitlementRequestBodyValueType>))]
public enum CreatePlanEntitlementRequestBodyValueType
{
[EnumMember(Value = "Boolean")]
[EnumMember(Value = "boolean")]
Boolean,

[EnumMember(Value = "Numeric")]
[EnumMember(Value = "numeric")]
Numeric,

[EnumMember(Value = "Trait")]
[EnumMember(Value = "trait")]
Trait,

[EnumMember(Value = "Unlimited")]
[EnumMember(Value = "unlimited")]
Unlimited
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ namespace SchematicHQ.Client;
[JsonConverter(typeof(StringEnumSerializer<UpdateCompanyOverrideRequestBodyValueType>))]
public enum UpdateCompanyOverrideRequestBodyValueType
{
[EnumMember(Value = "Boolean")]
[EnumMember(Value = "boolean")]
Boolean,

[EnumMember(Value = "Numeric")]
[EnumMember(Value = "numeric")]
Numeric,

[EnumMember(Value = "Trait")]
[EnumMember(Value = "trait")]
Trait,

[EnumMember(Value = "Unlimited")]
[EnumMember(Value = "unlimited")]
Unlimited
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ namespace SchematicHQ.Client;
[JsonConverter(typeof(StringEnumSerializer<UpdatePlanEntitlementRequestBodyValueType>))]
public enum UpdatePlanEntitlementRequestBodyValueType
{
[EnumMember(Value = "Boolean")]
[EnumMember(Value = "boolean")]
Boolean,

[EnumMember(Value = "Numeric")]
[EnumMember(Value = "numeric")]
Numeric,

[EnumMember(Value = "Trait")]
[EnumMember(Value = "trait")]
Trait,

[EnumMember(Value = "Unlimited")]
[EnumMember(Value = "unlimited")]
Unlimited
}
2 changes: 1 addition & 1 deletion src/SchematicHQ.Client/SchematicApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public SchematicApi(string apiKey = null, ClientOptions clientOptions = null)
{ "X-Schematic-Api-Key", apiKey },
{ "X-Fern-Language", "C#" },
{ "X-Fern-SDK-Name", "SchematicHQ.Client" },
{ "X-Fern-SDK-Version", "0.0.15" },
{ "X-Fern-SDK-Version", "1.0.0" },
},
clientOptions ?? new ClientOptions()
);
Expand Down
2 changes: 1 addition & 1 deletion src/SchematicHQ.Client/SchematicHQ.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFrameworks>net8.0;net7.0;net6.0;</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<NuGetAudit>false</NuGetAudit>
<Version>0.0.15</Version>
<Version>1.0.0</Version>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/schematichq/schematic-csharp</PackageProjectUrl>
</PropertyGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/SchematicHQ.Client/Types/CreateReqCommonValueType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ namespace SchematicHQ.Client;
[JsonConverter(typeof(StringEnumSerializer<CreateReqCommonValueType>))]
public enum CreateReqCommonValueType
{
[EnumMember(Value = "Boolean")]
[EnumMember(Value = "boolean")]
Boolean,

[EnumMember(Value = "Numeric")]
[EnumMember(Value = "numeric")]
Numeric,

[EnumMember(Value = "Trait")]
[EnumMember(Value = "trait")]
Trait,

[EnumMember(Value = "Unlimited")]
[EnumMember(Value = "unlimited")]
Unlimited
}
8 changes: 4 additions & 4 deletions src/SchematicHQ.Client/Types/UpdateReqCommonValueType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ namespace SchematicHQ.Client;
[JsonConverter(typeof(StringEnumSerializer<UpdateReqCommonValueType>))]
public enum UpdateReqCommonValueType
{
[EnumMember(Value = "Boolean")]
[EnumMember(Value = "boolean")]
Boolean,

[EnumMember(Value = "Numeric")]
[EnumMember(Value = "numeric")]
Numeric,

[EnumMember(Value = "Trait")]
[EnumMember(Value = "trait")]
Trait,

[EnumMember(Value = "Unlimited")]
[EnumMember(Value = "unlimited")]
Unlimited
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public class WebhookEventDetailResponseData
[JsonPropertyName("id")]
public string Id { get; init; }

[JsonPropertyName("payload")]
public string Payload { get; init; }

[JsonPropertyName("request_type")]
public string RequestType { get; init; }

Expand Down
3 changes: 3 additions & 0 deletions src/SchematicHQ.Client/Types/WebhookEventResponseData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public class WebhookEventResponseData
[JsonPropertyName("id")]
public string Id { get; init; }

[JsonPropertyName("payload")]
public string Payload { get; init; }

[JsonPropertyName("request_type")]
public string RequestType { get; init; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public class UpdateWebhookRequestBody
[JsonPropertyName("request_types")]
public IEnumerable<UpdateWebhookRequestBodyRequestTypesItem>? RequestTypes { get; init; }

[JsonPropertyName("status")]
public UpdateWebhookRequestBodyStatus? Status { get; init; }

[JsonPropertyName("url")]
public string? Url { get; init; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
using SchematicHQ.Client;
using SchematicHQ.Client.Core;

#nullable enable

namespace SchematicHQ.Client;

[JsonConverter(typeof(StringEnumSerializer<UpdateWebhookRequestBodyStatus>))]
public enum UpdateWebhookRequestBodyStatus
{
[EnumMember(Value = "active")]
Active,

[EnumMember(Value = "inactive")]
Inactive
}

0 comments on commit 897a166

Please sign in to comment.