-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(models): add dnsrecordset and behaviors for dnszone
- Loading branch information
1 parent
94d8345
commit 101e79f
Showing
12 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { DataModel } from "../../base/index.js"; | ||
import { DnsRecordSetData } from "./types.js"; | ||
import { DnsZone, DnsZoneCommon } from "../DnsZone/index.js"; | ||
|
||
export class DnsRecordSet extends DataModel<DnsRecordSetData> { | ||
public readonly zone: DnsZone; | ||
public constructor(zone: DnsZoneCommon, data: DnsRecordSetData) { | ||
super(data); | ||
this.zone = zone; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./DnsRecordSet.js"; | ||
export * from "./types.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { MittwaldAPIV2 } from "@mittwald/api-client"; | ||
|
||
export type CNameRecordData = MittwaldAPIV2.Components.Schemas.DnsRecordCNAME; | ||
export type CombinedARecordData = | ||
MittwaldAPIV2.Components.Schemas.DnsRecordCombinedA; | ||
export type MXRecordData = MittwaldAPIV2.Components.Schemas.DnsRecordMX; | ||
export type SRVRecordData = MittwaldAPIV2.Components.Schemas.DnsRecordSRV; | ||
export type TXTRecordData = MittwaldAPIV2.Components.Schemas.DnsRecordTXT; | ||
|
||
export type RecordSettings = MittwaldAPIV2.Components.Schemas.DnsRecordSettings; | ||
|
||
export type DnsRecordSetData = { | ||
cname: CNameRecordData; | ||
combinedARecords: CombinedARecordData; | ||
mx: MXRecordData; | ||
srv: SRVRecordData; | ||
txt: TXTRecordData; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters