Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.277.6 (#264)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored May 2, 2024
1 parent 0f09780 commit 7e836c3
Show file tree
Hide file tree
Showing 27 changed files with 2,139 additions and 382 deletions.
18 changes: 10 additions & 8 deletions platform/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 803b84ac-e26a-4a5c-9224-dbc3d0c7712a
management:
docChecksum: 91b86a7707fc536ccbdc7b7345d775a0
docChecksum: 45c9274f0e3c7dac25b46ab3b4007b5f
docVersion: 3.0.0
speakeasyVersion: 1.274.1
generationVersion: 2.314.0
releaseVersion: 3.6.0
configChecksum: da622ef0f54bd9e9d3a34c5694447ea5
speakeasyVersion: 1.277.6
generationVersion: 2.319.7
releaseVersion: 3.6.1
configChecksum: e1137e6a45616de97875384f08e19dd5
repoURL: https://github.com/codatio/client-sdk-csharp.git
repoSubDirectory: platform
published: true
features:
csharp:
constsAndDefaults: 0.0.1
core: 3.8.0
core: 3.8.2
deprecations: 2.81.2
examples: 2.81.3
globalSecurity: 2.83.4
Expand All @@ -22,7 +22,7 @@ features:
ignores: 2.81.1
inputOutputModels: 2.83.0
nameOverrides: 2.81.2
responseFormat: 0.0.1
responseFormat: 0.0.2
webhooks: 1.0.0
generatedFiles:
- Codat/Platform/Settings.cs
Expand All @@ -49,7 +49,7 @@ generatedFiles:
- Codat/Platform/Utils/IsoDateTimeSerializer.cs
- Codat/Platform/Utils/RequestBodySerializer.cs
- Codat/Platform/Utils/ResponseBodyDeserializer.cs
- Codat/Platform/Utils/SecuritySerializer.cs
- Codat/Platform/Utils/SecurityMetadata.cs
- Codat/Platform/Utils/SpeakeasyHttpClient.cs
- Codat/Platform/Utils/SpeakeasyMetadata.cs
- Codat/Platform/Utils/URLBuilder.cs
Expand Down Expand Up @@ -449,3 +449,5 @@ generatedFiles:
- docs/sdks/webhooks/README.md
- USAGE.md
- .gitattributes
- Codat/Platform/Hooks/SDKHooks.cs
- Codat/Platform/Hooks/HookTypes.cs
2 changes: 1 addition & 1 deletion platform/Codat/Platform/Codat.Platform.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Codat.Platform</PackageId>
<Version>3.6.0</Version>
<Version>3.6.1</Version>
<Authors>Codat</Authors>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
Expand Down
60 changes: 48 additions & 12 deletions platform/Codat/Platform/CodatPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#nullable enable
namespace Codat.Platform
{
using Codat.Platform.Hooks;
using Codat.Platform.Models.Errors;
using Codat.Platform.Models.Shared;
using Codat.Platform.Utils;
Expand Down Expand Up @@ -117,16 +118,28 @@ public class SDKConfig
"https://api.codat.io",
};

public string serverUrl = "";
public int serverIndex = 0;
public string ServerUrl = "";
public int ServerIndex = 0;
public SDKHooks hooks = new SDKHooks();

public string GetTemplatedServerDetails()
public string GetTemplatedServerUrl()
{
if (!String.IsNullOrEmpty(this.serverUrl))
if (!String.IsNullOrEmpty(this.ServerUrl))
{
return Utilities.TemplateUrl(Utilities.RemoveSuffix(this.serverUrl, "/"), new Dictionary<string, string>());
return Utilities.TemplateUrl(Utilities.RemoveSuffix(this.ServerUrl, "/"), new Dictionary<string, string>());
}
return Utilities.TemplateUrl(SDKConfig.ServerList[this.serverIndex], new Dictionary<string, string>());
return Utilities.TemplateUrl(SDKConfig.ServerList[this.ServerIndex], new Dictionary<string, string>());
}

public ISpeakeasyHttpClient InitHooks(ISpeakeasyHttpClient client)
{
string preHooksUrl = GetTemplatedServerUrl();
var (postHooksUrl, postHooksClient) = this.hooks.SDKInit(preHooksUrl, client);
if (preHooksUrl != postHooksUrl)
{
this.ServerUrl = postHooksUrl;
}
return postHooksClient;
}
}

Expand Down Expand Up @@ -165,10 +178,10 @@ public class CodatPlatform: ICodatPlatform
public SDKConfig SDKConfiguration { get; private set; }

private const string _language = "csharp";
private const string _sdkVersion = "3.6.0";
private const string _sdkGenVersion = "2.314.0";
private const string _sdkVersion = "3.6.1";
private const string _sdkGenVersion = "2.319.7";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 3.6.0 2.314.0 3.0.0 Codat.Platform";
private const string _userAgent = "speakeasy-sdk/csharp 3.6.1 2.319.7 3.0.0 Codat.Platform";
private string _serverUrl = "";
private int _serverIndex = 0;
private ISpeakeasyHttpClient _defaultClient;
Expand Down Expand Up @@ -222,21 +235,44 @@ public CodatPlatform(Security? security = null, Func<Security>? securitySource =

SDKConfiguration = new SDKConfig()
{
serverIndex = _serverIndex,
serverUrl = _serverUrl
ServerIndex = _serverIndex,
ServerUrl = _serverUrl
};

_defaultClient = SDKConfiguration.InitHooks(_defaultClient);


Settings = new Settings(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);


Companies = new Companies(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);


ConnectionManagement = new ConnectionManagement(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);


Connections = new Connections(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);


CustomDataType = new CustomDataType(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);


PushData = new PushData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);


RefreshData = new RefreshData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);


Groups = new Groups(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);


Integrations = new Integrations(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);


SupplementalData = new SupplementalData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);


Webhooks = new Webhooks(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
}
}
}
}
Loading

0 comments on commit 7e836c3

Please sign in to comment.