Skip to content

Commit c87321f

Browse files
authored
fix: Snake case (#73)
1 parent c144341 commit c87321f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/domains/interfaces/create-domain-options.interface.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { PostOptions } from '../../common/interfaces';
33
export type DomainRegion = 'us-east-1' | 'eu-west-1' | 'sa-east-1';
44

55
export interface CreateDomainOptions {
6-
domain: string;
6+
name: string;
77
region?: DomainRegion;
88
}
99

@@ -33,9 +33,9 @@ export interface DomainSpfRecord {
3333
type: 'MX' | 'TXT';
3434
ttl: string;
3535
status: DomainStatus;
36-
routingPolicy?: string;
36+
routing_policy?: string;
3737
priority?: number;
38-
proxStatus?: 'enable' | 'disable';
38+
proxy_status?: 'enable' | 'disable';
3939
}
4040

4141
export interface DomainDkimRecord {
@@ -45,17 +45,16 @@ export interface DomainDkimRecord {
4545
type: 'CNAME';
4646
ttl: string;
4747
status: DomainStatus;
48-
routingPolicy?: string;
48+
routing_policy?: string;
4949
priority?: number;
50-
proxStatus?: 'enable' | 'disable';
50+
proxy_status?: 'enable' | 'disable';
5151
}
5252

5353
export type CreateDomainResponse = {
5454
name: string;
5555
id: string;
56-
dnsProvider: DomainNameservers;
5756
status: DomainStatus;
58-
createdAt: string;
57+
created_at: string;
5958
records: (DomainSpfRecord | DomainDkimRecord)[];
6059
region: DomainRegion;
6160
};

0 commit comments

Comments
 (0)