From 0f783a355aad3e6431c01542894a56f9349c0322 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 15 Mar 2024 10:03:21 +0000 Subject: [PATCH] feat: update generated APIs --- .../src/api/domain/v2beta1/marshalling.gen.ts | 3 +++ .../src/api/domain/v2beta1/types.gen.ts | 21 +++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/packages/clients/src/api/domain/v2beta1/marshalling.gen.ts b/packages/clients/src/api/domain/v2beta1/marshalling.gen.ts index bbe1cfb84..1c2bac7b7 100644 --- a/packages/clients/src/api/domain/v2beta1/marshalling.gen.ts +++ b/packages/clients/src/api/domain/v2beta1/marshalling.gen.ts @@ -589,6 +589,7 @@ export const unmarshalDomain = (data: unknown): Domain => { ownerContact: data.owner_contact ? unmarshalContact(data.owner_contact) : undefined, + pendingTrade: data.pending_trade, projectId: data.project_id, registrar: data.registrar, status: data.status, @@ -1072,6 +1073,7 @@ const unmarshalDomainSummary = (data: unknown): DomainSummary => { return { autoRenewStatus: data.auto_renew_status, + createdAt: unmarshalDate(data.created_at), dnssecStatus: data.dnssec_status, domain: data.domain, eppCode: data.epp_code, @@ -1083,6 +1085,7 @@ const unmarshalDomainSummary = (data: unknown): DomainSummary => { : undefined, isExternal: data.is_external, organizationId: data.organization_id, + pendingTrade: data.pending_trade, projectId: data.project_id, registrar: data.registrar, status: data.status, diff --git a/packages/clients/src/api/domain/v2beta1/types.gen.ts b/packages/clients/src/api/domain/v2beta1/types.gen.ts index 7a141fd00..899aabb4f 100644 --- a/packages/clients/src/api/domain/v2beta1/types.gen.ts +++ b/packages/clients/src/api/domain/v2beta1/types.gen.ts @@ -599,6 +599,8 @@ export interface DomainSummary { */ transferRegistrationStatus?: DomainRegistrationStatusTransfer organizationId: string + createdAt?: Date + pendingTrade: boolean } export interface RenewableDomain { @@ -727,32 +729,51 @@ export interface Domain { domain: string organizationId: string projectId: string + /** Status of the automatic renewal of the domain. */ autoRenewStatus: DomainFeatureStatus + /** Status of the DNSSEC configuration of the domain. */ dnssec?: DomainDNSSEC + /** List of the domain's EPP codes. */ eppCode: string[] + /** Date of expiration of the domain. */ expiredAt?: Date + /** Domain's last modification date. */ updatedAt?: Date registrar: string + /** Indicates whether Scaleway is the domain's registrar. */ isExternal: boolean + /** Status of the domain. */ status: DomainStatus + /** List of the domain's DNS zones. */ dnsZones: DNSZone[] + /** Contact information of the domain's owner. */ ownerContact?: Contact + /** Contact information of the domain's technical contact. */ technicalContact?: Contact + /** Contact information of the domain's administrative contact. */ administrativeContact?: Contact /** + * Registration status of an external domain, if available. + * * One-of ('registrationStatus'): at most one of * 'externalDomainRegistrationStatus', 'transferRegistrationStatus' could be * set. */ externalDomainRegistrationStatus?: DomainRegistrationStatusExternalDomain /** + * Status of a domain, when available for transfer. + * * One-of ('registrationStatus'): at most one of * 'externalDomainRegistrationStatus', 'transferRegistrationStatus' could be * set. */ transferRegistrationStatus?: DomainRegistrationStatusTransfer + /** Domain's TLD information. */ tld?: Tld + /** List of Scaleway resources linked to the domain. */ linkedProducts: LinkedProduct[] + /** Indicates if a trade is ongoing. */ + pendingTrade: boolean } export type ExportRawDNSZoneRequest = {