Skip to content

Commit 78b4d64

Browse files
authored
feat(domain): add filter to endpoint listContacts (#788)
1 parent 0b056b5 commit 78b4d64

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,13 +979,15 @@ export class RegistrarAPI extends ParentAPI {
979979
path: `/domain/v2beta1/contacts`,
980980
urlParams: urlParams(
981981
['domain', request.domain],
982+
['email_status', request.emailStatus ?? 'email_status_unknown'],
982983
['organization_id', request.organizationId],
983984
['page', request.page],
984985
[
985986
'page_size',
986987
request.pageSize ?? this.client.settings.defaultPageSize,
987988
],
988989
['project_id', request.projectId],
990+
['role', request.role ?? 'unknown_role'],
989991
),
990992
},
991993
unmarshalListContactsResponse,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export type {
7777
ImportRawDNSZoneRequestTsigKey,
7878
ImportRawDNSZoneResponse,
7979
LanguageCode,
80+
ListContactsRequestRole,
8081
ListContactsResponse,
8182
ListDNSZoneNameserversRequest,
8283
ListDNSZoneNameserversResponse,

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ export type HostStatus = 'unknown_status' | 'active' | 'updating' | 'deleting'
134134

135135
export type LanguageCode = 'unknown_language_code' | 'en_US' | 'fr_FR' | 'de_DE'
136136

137+
export type ListContactsRequestRole =
138+
| 'unknown_role'
139+
| 'owner'
140+
| 'administrative'
141+
| 'technical'
142+
137143
export type ListDNSZoneRecordsRequestOrderBy = 'name_asc' | 'name_desc'
138144

139145
export type ListDNSZonesRequestOrderBy =
@@ -1184,6 +1190,8 @@ export type RegistrarApiListContactsRequest = {
11841190
domain?: string
11851191
projectId?: string
11861192
organizationId?: string
1193+
role?: ListContactsRequestRole
1194+
emailStatus?: ContactEmailStatus
11871195
}
11881196

11891197
export type RegistrarApiGetContactRequest = {

0 commit comments

Comments
 (0)