Skip to content

Commit be04eda

Browse files
fix(webhosting): add hosting status naming (#1859)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 4c86fbd commit be04eda

File tree

4 files changed

+4
-24
lines changed

4 files changed

+4
-24
lines changed

packages/clients/src/api/webhosting/v1/content.gen.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type {
44
DomainAvailabilityStatus,
55
DomainStatus,
66
HostingStatus,
7-
HostingSummaryStatus,
87
} from './types.gen'
98

109
/** Lists transient statutes of the enum {@link DomainAvailabilityStatus}. */
@@ -20,10 +19,3 @@ export const HOSTING_TRANSIENT_STATUSES: HostingStatus[] = [
2019
'deleting',
2120
'migrating',
2221
]
23-
24-
/** Lists transient statutes of the enum {@link HostingSummaryStatus}. */
25-
export const HOSTING_SUMMARY_TRANSIENT_STATUSES: HostingSummaryStatus[] = [
26-
'delivering',
27-
'deleting',
28-
'migrating',
29-
]

packages/clients/src/api/webhosting/v1/index.gen.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export type {
6464
HostingApiUpdateHostingRequest,
6565
HostingStatus,
6666
HostingSummary,
67-
HostingSummaryStatus,
6867
HostingUser,
6968
ListControlPanelsResponse,
7069
ListDatabaseUsersRequestOrderBy,

packages/clients/src/api/webhosting/v1/marshalling.gen.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,12 @@ const unmarshalHostingSummary = (data: unknown): HostingSummary => {
406406
dnsStatus: data.dns_status ? data.dns_status : undefined,
407407
domain: data.domain,
408408
domainStatus: data.domain_status,
409-
hostingStatus: data.hosting_status,
410409
id: data.id,
411410
offerName: data.offer_name,
412411
projectId: data.project_id,
413412
protected: data.protected,
414413
region: data.region,
415-
status: data.status ? data.status : undefined,
414+
status: data.status,
416415
updatedAt: unmarshalDate(data.updated_at),
417416
} as HostingSummary
418417
}

packages/clients/src/api/webhosting/v1/types.gen.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export type DomainDnsAction =
4242
| 'auto_config_web_records'
4343
| 'auto_config_mail_records'
4444
| 'auto_config_nameservers'
45+
| 'auto_config_none'
4546

4647
export type DomainStatus =
4748
| 'unknown_status'
@@ -66,15 +67,6 @@ export type HostingStatus =
6667
| 'locked'
6768
| 'migrating'
6869

69-
export type HostingSummaryStatus =
70-
| 'unknown_status'
71-
| 'delivering'
72-
| 'ready'
73-
| 'deleting'
74-
| 'error'
75-
| 'locked'
76-
| 'migrating'
77-
7870
export type ListDatabaseUsersRequestOrderBy = 'username_asc' | 'username_desc'
7971

8072
export type ListDatabasesRequestOrderBy =
@@ -301,8 +293,8 @@ export interface HostingSummary {
301293
createdAt?: Date
302294
/** Date on which the Web Hosting plan was last updated. */
303295
updatedAt?: Date
304-
/** @deprecated Status of the Web Hosting plan. */
305-
status?: HostingSummaryStatus
296+
/** Status of the Web Hosting plan. */
297+
status: HostingStatus
306298
/** Main domain associated with the Web Hosting plan. */
307299
domain: string
308300
/** Whether the hosting is protected or not. */
@@ -311,8 +303,6 @@ export interface HostingSummary {
311303
dnsStatus?: DnsRecordsStatus
312304
/** Name of the active offer for the Web Hosting plan. */
313305
offerName: string
314-
/** Status of the Web Hosting plan. */
315-
hostingStatus: HostingStatus
316306
/** Main domain status of the Web Hosting plan. */
317307
domainStatus: DomainStatus
318308
/** Region where the Web Hosting plan is hosted. */

0 commit comments

Comments
 (0)