Skip to content

Commit d1a22d9

Browse files
authored
feat(domain): add informations on scaleway product using the domain/dnszone (#1024)
1 parent 0891cd0 commit d1a22d9

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export type {
7676
ImportRawDNSZoneRequestBindSource,
7777
ImportRawDNSZoneRequestTsigKey,
7878
ImportRawDNSZoneResponse,
79+
LinkedProduct,
7980
ListContactsRequestRole,
8081
ListContactsResponse,
8182
ListDNSZoneNameserversRequest,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ export const unmarshalDNSZone = (data: unknown): DNSZone => {
303303

304304
return {
305305
domain: data.domain,
306+
linkedProducts: data.linked_products,
306307
message: data.message,
307308
ns: data.ns,
308309
nsDefault: data.ns_default,
@@ -582,6 +583,7 @@ export const unmarshalDomain = (data: unknown): Domain => {
582583
)
583584
: undefined,
584585
isExternal: data.is_external,
586+
linkedProducts: data.linked_products,
585587
organizationId: data.organization_id,
586588
ownerContact: data.owner_contact
587589
? unmarshalContact(data.owner_contact)

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ export type DomainStatus =
133133

134134
export type HostStatus = 'unknown_status' | 'active' | 'updating' | 'deleting'
135135

136+
export type LinkedProduct = 'unknown_product' | 'vpc'
137+
136138
export type ListContactsRequestRole =
137139
| 'unknown_role'
138140
| 'owner'
@@ -504,6 +506,7 @@ export interface DNSZone {
504506
message?: string
505507
updatedAt?: Date
506508
projectId: string
509+
linkedProducts: LinkedProduct[]
507510
}
508511

509512
export interface DomainDNSSEC {
@@ -735,6 +738,7 @@ export interface Domain {
735738
*/
736739
transferRegistrationStatus?: DomainRegistrationStatusTransfer
737740
tld?: Tld
741+
linkedProducts: LinkedProduct[]
738742
}
739743

740744
export type ExportRawDNSZoneRequest = {

0 commit comments

Comments
 (0)