Skip to content

Commit 1a23b6a

Browse files
authored
feat(domain): add status on Domain for trade integration (#1185)
1 parent 9f3c669 commit 1a23b6a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

packages/clients/src/api/domain/v2beta1/marshalling.gen.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ export const unmarshalDomain = (data: unknown): Domain => {
589589
ownerContact: data.owner_contact
590590
? unmarshalContact(data.owner_contact)
591591
: undefined,
592+
pendingTrade: data.pending_trade,
592593
projectId: data.project_id,
593594
registrar: data.registrar,
594595
status: data.status,
@@ -1072,6 +1073,7 @@ const unmarshalDomainSummary = (data: unknown): DomainSummary => {
10721073

10731074
return {
10741075
autoRenewStatus: data.auto_renew_status,
1076+
createdAt: unmarshalDate(data.created_at),
10751077
dnssecStatus: data.dnssec_status,
10761078
domain: data.domain,
10771079
eppCode: data.epp_code,
@@ -1083,6 +1085,7 @@ const unmarshalDomainSummary = (data: unknown): DomainSummary => {
10831085
: undefined,
10841086
isExternal: data.is_external,
10851087
organizationId: data.organization_id,
1088+
pendingTrade: data.pending_trade,
10861089
projectId: data.project_id,
10871090
registrar: data.registrar,
10881091
status: data.status,

packages/clients/src/api/domain/v2beta1/types.gen.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,8 @@ export interface DomainSummary {
599599
*/
600600
transferRegistrationStatus?: DomainRegistrationStatusTransfer
601601
organizationId: string
602+
createdAt?: Date
603+
pendingTrade: boolean
602604
}
603605

604606
export interface RenewableDomain {
@@ -727,32 +729,51 @@ export interface Domain {
727729
domain: string
728730
organizationId: string
729731
projectId: string
732+
/** Status of the automatic renewal of the domain. */
730733
autoRenewStatus: DomainFeatureStatus
734+
/** Status of the DNSSEC configuration of the domain. */
731735
dnssec?: DomainDNSSEC
736+
/** List of the domain's EPP codes. */
732737
eppCode: string[]
738+
/** Date of expiration of the domain. */
733739
expiredAt?: Date
740+
/** Domain's last modification date. */
734741
updatedAt?: Date
735742
registrar: string
743+
/** Indicates whether Scaleway is the domain's registrar. */
736744
isExternal: boolean
745+
/** Status of the domain. */
737746
status: DomainStatus
747+
/** List of the domain's DNS zones. */
738748
dnsZones: DNSZone[]
749+
/** Contact information of the domain's owner. */
739750
ownerContact?: Contact
751+
/** Contact information of the domain's technical contact. */
740752
technicalContact?: Contact
753+
/** Contact information of the domain's administrative contact. */
741754
administrativeContact?: Contact
742755
/**
756+
* Registration status of an external domain, if available.
757+
*
743758
* One-of ('registrationStatus'): at most one of
744759
* 'externalDomainRegistrationStatus', 'transferRegistrationStatus' could be
745760
* set.
746761
*/
747762
externalDomainRegistrationStatus?: DomainRegistrationStatusExternalDomain
748763
/**
764+
* Status of a domain, when available for transfer.
765+
*
749766
* One-of ('registrationStatus'): at most one of
750767
* 'externalDomainRegistrationStatus', 'transferRegistrationStatus' could be
751768
* set.
752769
*/
753770
transferRegistrationStatus?: DomainRegistrationStatusTransfer
771+
/** Domain's TLD information. */
754772
tld?: Tld
773+
/** List of Scaleway resources linked to the domain. */
755774
linkedProducts: LinkedProduct[]
775+
/** Indicates if a trade is ongoing. */
776+
pendingTrade: boolean
756777
}
757778

758779
export type ExportRawDNSZoneRequest = {

0 commit comments

Comments
 (0)