diff --git a/packages_generated/webhosting/src/v1/marshalling.gen.ts b/packages_generated/webhosting/src/v1/marshalling.gen.ts index 73e2e4653..4342040dd 100644 --- a/packages_generated/webhosting/src/v1/marshalling.gen.ts +++ b/packages_generated/webhosting/src/v1/marshalling.gen.ts @@ -371,6 +371,21 @@ const unmarshalPlatformControlPanelUrls = ( } as PlatformControlPanelUrls } +const unmarshalControlPanel = (data: unknown): ControlPanel => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'ControlPanel' failed as data isn't a dictionary.`, + ) + } + + return { + available: data.available, + availableLanguages: data.available_languages, + logoUrl: data.logo_url, + name: data.name, + } as ControlPanel +} + const unmarshalOfferOption = (data: unknown): OfferOption => { if (!isJSONObject(data)) { throw new TypeError( @@ -429,6 +444,10 @@ const unmarshalOffer = (data: unknown): Offer => { available: data.available, billingOperationPath: data.billing_operation_path, controlPanelName: data.control_panel_name, + controlPanels: unmarshalArrayOfObject( + data.control_panels, + unmarshalControlPanel, + ), endOfLife: data.end_of_life, id: data.id, name: data.name, @@ -547,21 +566,6 @@ export const unmarshalListBackupsResponse = ( } as ListBackupsResponse } -const unmarshalControlPanel = (data: unknown): ControlPanel => { - if (!isJSONObject(data)) { - throw new TypeError( - `Unmarshalling the type 'ControlPanel' failed as data isn't a dictionary.`, - ) - } - - return { - available: data.available, - availableLanguages: data.available_languages, - logoUrl: data.logo_url, - name: data.name, - } as ControlPanel -} - export const unmarshalListControlPanelsResponse = ( data: unknown, ): ListControlPanelsResponse => { diff --git a/packages_generated/webhosting/src/v1/types.gen.ts b/packages_generated/webhosting/src/v1/types.gen.ts index ed5a9cb16..92ad4392d 100644 --- a/packages_generated/webhosting/src/v1/types.gen.ts +++ b/packages_generated/webhosting/src/v1/types.gen.ts @@ -206,6 +206,25 @@ export interface HostingDomainCustomDomain { autoConfigDomainDns?: AutoConfigDomainDns } +export interface ControlPanel { + /** + * Control panel name. + */ + name: string + /** + * Define if the control panel type is available to order. + */ + available: boolean + /** + * URL of the control panel's logo. + */ + logoUrl: string + /** + * List of available languages for the control panel. + */ + availableLanguages: StdLanguageCode[] +} + export interface OfferOption { /** * Option ID. @@ -431,6 +450,10 @@ export interface Offer { * Defines a warning if the maximum value for an option in the offer is exceeded. */ quotaWarning: OfferOptionWarning + /** + * Lists available control panels for the specified offer. + */ + controlPanels: ControlPanel[] /** * Region where the offer is hosted. */ @@ -498,25 +521,6 @@ export interface Backup { totalItems: number } -export interface ControlPanel { - /** - * Control panel name. - */ - name: string - /** - * Define if the control panel type is available to order. - */ - available: boolean - /** - * URL of the control panel's logo. - */ - logoUrl: string - /** - * List of available languages for the control panel. - */ - availableLanguages: StdLanguageCode[] -} - export interface DatabaseUser { /** * Name of the database user.