Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions packages/clients/src/api/webhosting/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
}
Expand Down
18 changes: 12 additions & 6 deletions packages/clients/src/api/webhosting/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down
Loading