From 5a3ddcf39bc3a3cd1d39be6b57c995bd9a2b27a5 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 18 Nov 2024 17:48:26 +0100 Subject: [PATCH] fix(apiclient): Ensure mandatory parameter in CloudlyApiClient constructor --- changelog.md | 5 +++++ ts/00_commitinfo_data.ts | 2 +- ts_apiclient/classes.cloudlyapiclient.ts | 2 +- ts_interfaces/data/deploymentdirective.ts | 5 +++++ ts_web/00_commitinfo_data.ts | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 5f44087..2b64afb 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2024-11-18 - 4.3.20 - fix(apiclient) +Ensure mandatory parameter in CloudlyApiClient constructor + +- Made the 'optionsArg' parameter mandatory in the constructor of CloudlyApiClient class. + ## 2024-11-18 - 4.3.19 - fix(docker) Fix improper Docker push command preventing push to the correct registry. diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 74fc188..535dc46 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/cloudly', - version: '4.3.19', + version: '4.3.20', description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.' } diff --git a/ts_apiclient/classes.cloudlyapiclient.ts b/ts_apiclient/classes.cloudlyapiclient.ts index d599c2e..cdc2c1e 100644 --- a/ts_apiclient/classes.cloudlyapiclient.ts +++ b/ts_apiclient/classes.cloudlyapiclient.ts @@ -20,7 +20,7 @@ export class CloudlyApiClient { plugins.servezoneInterfaces.requests.server.IRequest_TriggerServerAction['request'] >(); - constructor(optionsArg?: { + constructor(optionsArg: { registerAs: TClientType; cloudlyUrl?: string; }) { diff --git a/ts_interfaces/data/deploymentdirective.ts b/ts_interfaces/data/deploymentdirective.ts index 5775a7d..a9dfd00 100644 --- a/ts_interfaces/data/deploymentdirective.ts +++ b/ts_interfaces/data/deploymentdirective.ts @@ -8,6 +8,11 @@ export interface IDeploymentDirective { id: string; name: string; imageClaim: string; + /** + * ports to be exposed + * hostPort is the port on the host + * containerPort is the port on the container + */ ports: { hostPort: number; containerPort: number }[]; environment: { [key: string]: string }; resources?: IServiceRessources; diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 74fc188..535dc46 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/cloudly', - version: '4.3.19', + version: '4.3.20', description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.' }