fix(cloudly-client): correct Cloudly request handling for cluster config, cluster updates, and image pushes

This commit is contained in:
2026-05-08 11:15:11 +00:00
parent a1b1234aac
commit 080d163591
5 changed files with 17 additions and 6 deletions
+3 -3
View File
@@ -125,7 +125,7 @@ export class CloudlyApiClient {
*/
public async getClusterConfigFromCloudlyByIdentity(
identityArg: plugins.servezoneInterfaces.data.IIdentity = this.identity
): Promise<plugins.servezoneInterfaces.data.ICluster> {
): Promise<plugins.servezoneInterfaces.requests.config.IRequest_Any_Cloudly_GetClusterConfig['response']> {
const clusterConfigRequest =
this.typedsocketClient.createTypedRequest<plugins.servezoneInterfaces.requests.config.IRequest_Any_Cloudly_GetClusterConfig>(
'getClusterConfig'
@@ -133,7 +133,7 @@ export class CloudlyApiClient {
const response = await clusterConfigRequest.fire({
identity: identityArg,
});
return response.configData;
return response;
}
/**
@@ -170,7 +170,7 @@ export class CloudlyApiClient {
'getCertificateForDomain'
);
const typedResponse = await typedCertificateRequest.fire({
identity: this.identity, // do proper auth here
identity: optionsArg.identity,
domainName: optionsArg.domainName,
type: optionsArg.type,
});