diff --git a/packages/clients/src/api/webhosting/v1/marshalling.gen.ts b/packages/clients/src/api/webhosting/v1/marshalling.gen.ts index cc7e962c3..fedf852dc 100644 --- a/packages/clients/src/api/webhosting/v1/marshalling.gen.ts +++ b/packages/clients/src/api/webhosting/v1/marshalling.gen.ts @@ -298,8 +298,9 @@ export const unmarshalHosting = (data: unknown): Hosting => { return { createdAt: unmarshalDate(data.created_at), - dnsStatus: data.dns_status, + dnsStatus: data.dns_status ? data.dns_status : undefined, domain: data.domain, + domainStatus: data.domain_status, id: data.id, ipv4: data.ipv4, offer: data.offer ? unmarshalOffer(data.offer) : undefined, @@ -401,14 +402,16 @@ const unmarshalHostingSummary = (data: unknown): HostingSummary => { return { createdAt: unmarshalDate(data.created_at), - dnsStatus: data.dns_status, + dnsStatus: data.dns_status ? data.dns_status : undefined, domain: data.domain, + domainStatus: data.domain_status, + hostingStatus: data.hosting_status, id: data.id, offerName: data.offer_name, projectId: data.project_id, protected: data.protected, region: data.region, - status: data.status, + status: data.status ? data.status : undefined, updatedAt: unmarshalDate(data.updated_at), } as HostingSummary } diff --git a/packages/clients/src/api/webhosting/v1/types.gen.ts b/packages/clients/src/api/webhosting/v1/types.gen.ts index 14b96d2cf..e840b8b44 100644 --- a/packages/clients/src/api/webhosting/v1/types.gen.ts +++ b/packages/clients/src/api/webhosting/v1/types.gen.ts @@ -301,16 +301,20 @@ export interface HostingSummary { createdAt?: Date /** Date on which the Web Hosting plan was last updated. */ updatedAt?: Date - /** Status of the Web Hosting plan. */ - status: HostingSummaryStatus + /** @deprecated Status of the Web Hosting plan. */ + status?: HostingSummaryStatus /** Main domain associated with the Web Hosting plan. */ domain: string /** Whether the hosting is protected or not. */ protected: boolean - /** DNS status of the Web Hosting plan. */ - dnsStatus: DnsRecordsStatus + /** @deprecated DNS status of the Web Hosting plan. */ + dnsStatus?: DnsRecordsStatus /** Name of the active offer for the Web Hosting plan. */ offerName: string + /** Status of the Web Hosting plan. */ + hostingStatus: HostingStatus + /** Main domain status of the Web Hosting plan. */ + domainStatus: DomainStatus /** Region where the Web Hosting plan is hosted. */ region: ScwRegion } @@ -708,14 +712,16 @@ export interface Hosting { platform?: Platform /** List of tags associated with the Web Hosting plan. */ tags: string[] - /** DNS status of the Web Hosting plan. */ - dnsStatus: DnsRecordsStatus + /** @deprecated DNS status of the Web Hosting plan. */ + dnsStatus?: DnsRecordsStatus /** Current IPv4 address of the hosting. */ ipv4: string /** Whether the hosting is protected or not. */ protected: boolean /** Details of the hosting user. */ user?: HostingUser + /** Main domain status of the Web Hosting plan. */ + domainStatus: DomainStatus /** Region where the Web Hosting plan is hosted. */ region: ScwRegion }