@hostafrica/ha-sdk-typescript 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/BillingApi.d.ts +45 -0
- package/dist/apis/BillingApi.js +122 -0
- package/dist/apis/DNSApi.d.ts +8 -8
- package/dist/apis/DNSApi.js +8 -8
- package/dist/apis/VPSManagementApi.d.ts +18 -3
- package/dist/apis/VPSManagementApi.js +49 -2
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/BillingApi.d.ts +45 -0
- package/dist/esm/apis/BillingApi.js +118 -0
- package/dist/esm/apis/DNSApi.d.ts +8 -8
- package/dist/esm/apis/DNSApi.js +8 -8
- package/dist/esm/apis/VPSManagementApi.d.ts +18 -3
- package/dist/esm/apis/VPSManagementApi.js +50 -3
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AddDnsRecordRequestContent.d.ts +22 -3
- package/dist/esm/models/AddDnsRecordRequestContent.js +8 -3
- package/dist/esm/models/DeleteDnsRecordRequestContent.d.ts +22 -3
- package/dist/esm/models/DeleteDnsRecordRequestContent.js +8 -3
- package/dist/esm/models/DnsBackend.d.ts +28 -0
- package/dist/esm/models/DnsBackend.js +46 -0
- package/dist/esm/models/DnsRecordMutationRecord.d.ts +3 -2
- package/dist/esm/models/DnsZoneInfo.d.ts +7 -0
- package/dist/esm/models/DnsZoneInfo.js +3 -0
- package/dist/esm/models/EditDnsRecordRequestContent.d.ts +22 -3
- package/dist/esm/models/EditDnsRecordRequestContent.js +8 -3
- package/dist/esm/models/EncryptedPasswordResponseData.d.ts +45 -0
- package/dist/esm/models/EncryptedPasswordResponseData.js +52 -0
- package/dist/esm/models/GetDnsZoneDetailsRequestContent.d.ts +7 -0
- package/dist/esm/models/GetDnsZoneDetailsRequestContent.js +3 -0
- package/dist/esm/models/GetEncryptedPasswordRequestContent.d.ts +38 -0
- package/dist/esm/models/GetEncryptedPasswordRequestContent.js +47 -0
- package/dist/esm/models/GetEncryptedPasswordResponseContent.d.ts +40 -0
- package/dist/esm/models/GetEncryptedPasswordResponseContent.js +49 -0
- package/dist/esm/models/GetInvoiceDetailsRequestContent.d.ts +32 -0
- package/dist/esm/models/GetInvoiceDetailsRequestContent.js +43 -0
- package/dist/esm/models/GetInvoiceDetailsResponseContent.d.ts +40 -0
- package/dist/esm/models/GetInvoiceDetailsResponseContent.js +49 -0
- package/dist/esm/models/GetInvoiceDetailsResponseData.d.ts +40 -0
- package/dist/esm/models/GetInvoiceDetailsResponseData.js +47 -0
- package/dist/esm/models/InvoiceDetails.d.ts +143 -0
- package/dist/esm/models/InvoiceDetails.js +112 -0
- package/dist/esm/models/InvoiceIssuedTo.d.ts +69 -0
- package/dist/esm/models/InvoiceIssuedTo.js +66 -0
- package/dist/esm/models/InvoiceIssuedToTax.d.ts +44 -0
- package/dist/esm/models/InvoiceIssuedToTax.js +51 -0
- package/dist/esm/models/InvoiceItem.d.ts +56 -0
- package/dist/esm/models/InvoiceItem.js +59 -0
- package/dist/esm/models/InvoiceSummary.d.ts +98 -0
- package/dist/esm/models/InvoiceSummary.js +83 -0
- package/dist/esm/models/InvoiceTransaction.d.ts +74 -0
- package/dist/esm/models/InvoiceTransaction.js +57 -0
- package/dist/esm/models/ListInvoicesResponseContent.d.ts +40 -0
- package/dist/esm/models/ListInvoicesResponseContent.js +49 -0
- package/dist/esm/models/ListInvoicesResponseData.d.ts +39 -0
- package/dist/esm/models/ListInvoicesResponseData.js +48 -0
- package/dist/esm/models/NoVncConsoleDetails.d.ts +19 -1
- package/dist/esm/models/NoVncConsoleDetails.js +7 -3
- package/dist/esm/models/PasswordEncryptionInfo.d.ts +50 -0
- package/dist/esm/models/PasswordEncryptionInfo.js +55 -0
- package/dist/esm/models/SelcomMetadata.d.ts +56 -0
- package/dist/esm/models/SelcomMetadata.js +59 -0
- package/dist/esm/models/VpsCredentials.d.ts +1 -1
- package/dist/esm/models/VpsDetailsResponse.d.ts +4 -3
- package/dist/esm/models/VpsDetailsResponse.js +3 -2
- package/dist/esm/models/VpsIpAddressDetail.d.ts +56 -0
- package/dist/esm/models/VpsIpAddressDetail.js +51 -0
- package/dist/esm/models/VpsVmInfo.d.ts +3 -3
- package/dist/esm/models/index.d.ts +18 -0
- package/dist/esm/models/index.js +18 -0
- package/dist/esm/retryablePaths.js +3 -0
- package/dist/models/AddDnsRecordRequestContent.d.ts +22 -3
- package/dist/models/AddDnsRecordRequestContent.js +8 -3
- package/dist/models/DeleteDnsRecordRequestContent.d.ts +22 -3
- package/dist/models/DeleteDnsRecordRequestContent.js +8 -3
- package/dist/models/DnsBackend.d.ts +28 -0
- package/dist/models/DnsBackend.js +54 -0
- package/dist/models/DnsRecordMutationRecord.d.ts +3 -2
- package/dist/models/DnsZoneInfo.d.ts +7 -0
- package/dist/models/DnsZoneInfo.js +3 -0
- package/dist/models/EditDnsRecordRequestContent.d.ts +22 -3
- package/dist/models/EditDnsRecordRequestContent.js +8 -3
- package/dist/models/EncryptedPasswordResponseData.d.ts +45 -0
- package/dist/models/EncryptedPasswordResponseData.js +59 -0
- package/dist/models/GetDnsZoneDetailsRequestContent.d.ts +7 -0
- package/dist/models/GetDnsZoneDetailsRequestContent.js +3 -0
- package/dist/models/GetEncryptedPasswordRequestContent.d.ts +38 -0
- package/dist/models/GetEncryptedPasswordRequestContent.js +54 -0
- package/dist/models/GetEncryptedPasswordResponseContent.d.ts +40 -0
- package/dist/models/GetEncryptedPasswordResponseContent.js +56 -0
- package/dist/models/GetInvoiceDetailsRequestContent.d.ts +32 -0
- package/dist/models/GetInvoiceDetailsRequestContent.js +50 -0
- package/dist/models/GetInvoiceDetailsResponseContent.d.ts +40 -0
- package/dist/models/GetInvoiceDetailsResponseContent.js +56 -0
- package/dist/models/GetInvoiceDetailsResponseData.d.ts +40 -0
- package/dist/models/GetInvoiceDetailsResponseData.js +54 -0
- package/dist/models/InvoiceDetails.d.ts +143 -0
- package/dist/models/InvoiceDetails.js +119 -0
- package/dist/models/InvoiceIssuedTo.d.ts +69 -0
- package/dist/models/InvoiceIssuedTo.js +73 -0
- package/dist/models/InvoiceIssuedToTax.d.ts +44 -0
- package/dist/models/InvoiceIssuedToTax.js +58 -0
- package/dist/models/InvoiceItem.d.ts +56 -0
- package/dist/models/InvoiceItem.js +66 -0
- package/dist/models/InvoiceSummary.d.ts +98 -0
- package/dist/models/InvoiceSummary.js +90 -0
- package/dist/models/InvoiceTransaction.d.ts +74 -0
- package/dist/models/InvoiceTransaction.js +64 -0
- package/dist/models/ListInvoicesResponseContent.d.ts +40 -0
- package/dist/models/ListInvoicesResponseContent.js +56 -0
- package/dist/models/ListInvoicesResponseData.d.ts +39 -0
- package/dist/models/ListInvoicesResponseData.js +55 -0
- package/dist/models/NoVncConsoleDetails.d.ts +19 -1
- package/dist/models/NoVncConsoleDetails.js +7 -3
- package/dist/models/PasswordEncryptionInfo.d.ts +50 -0
- package/dist/models/PasswordEncryptionInfo.js +62 -0
- package/dist/models/SelcomMetadata.d.ts +56 -0
- package/dist/models/SelcomMetadata.js +66 -0
- package/dist/models/VpsCredentials.d.ts +1 -1
- package/dist/models/VpsDetailsResponse.d.ts +4 -3
- package/dist/models/VpsDetailsResponse.js +3 -2
- package/dist/models/VpsIpAddressDetail.d.ts +56 -0
- package/dist/models/VpsIpAddressDetail.js +58 -0
- package/dist/models/VpsVmInfo.d.ts +3 -3
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +18 -0
- package/dist/retryablePaths.js +3 -0
- package/dist.zip +0 -0
- package/docs/AddDnsRecordRequestContent.md +6 -0
- package/docs/BillingApi.md +159 -0
- package/docs/DNSApi.md +4 -4
- package/docs/DeleteDnsRecordRequestContent.md +6 -0
- package/docs/DnsBackend.md +33 -0
- package/docs/DnsRecordMutationRecord.md +1 -1
- package/docs/DnsZoneInfo.md +2 -0
- package/docs/EditDnsRecordRequestContent.md +6 -0
- package/docs/EncryptedPasswordResponseData.md +39 -0
- package/docs/GetDnsZoneDetailsRequestContent.md +2 -0
- package/docs/GetEncryptedPasswordRequestContent.md +36 -0
- package/docs/GetEncryptedPasswordResponseContent.md +36 -0
- package/docs/GetInvoiceDetailsRequestContent.md +34 -0
- package/docs/GetInvoiceDetailsResponseContent.md +36 -0
- package/docs/GetInvoiceDetailsResponseData.md +37 -0
- package/docs/InvoiceDetails.md +71 -0
- package/docs/InvoiceIssuedTo.md +47 -0
- package/docs/InvoiceIssuedToTax.md +39 -0
- package/docs/InvoiceItem.md +43 -0
- package/docs/InvoiceSummary.md +57 -0
- package/docs/InvoiceTransaction.md +49 -0
- package/docs/ListInvoicesResponseContent.md +36 -0
- package/docs/ListInvoicesResponseData.md +37 -0
- package/docs/NoVncConsoleDetails.md +6 -0
- package/docs/PasswordEncryptionInfo.md +41 -0
- package/docs/SelcomMetadata.md +43 -0
- package/docs/VPSManagementApi.md +81 -1
- package/docs/VpsDetailsResponse.md +1 -1
- package/docs/VpsIpAddressDetail.md +43 -0
- package/docs/VpsVmInfo.md +1 -1
- package/package.json +1 -1
- package/src/apis/BillingApi.ts +164 -0
- package/src/apis/DNSApi.ts +8 -8
- package/src/apis/VPSManagementApi.ts +67 -2
- package/src/apis/index.ts +1 -0
- package/src/models/AddDnsRecordRequestContent.ts +37 -5
- package/src/models/DeleteDnsRecordRequestContent.ts +37 -5
- package/src/models/DnsBackend.ts +56 -0
- package/src/models/DnsRecordMutationRecord.ts +3 -2
- package/src/models/DnsZoneInfo.ts +17 -0
- package/src/models/EditDnsRecordRequestContent.ts +37 -5
- package/src/models/EncryptedPasswordResponseData.ts +92 -0
- package/src/models/GetDnsZoneDetailsRequestContent.ts +18 -0
- package/src/models/GetEncryptedPasswordRequestContent.ts +75 -0
- package/src/models/GetEncryptedPasswordResponseContent.ts +92 -0
- package/src/models/GetInvoiceDetailsRequestContent.ts +66 -0
- package/src/models/GetInvoiceDetailsResponseContent.ts +92 -0
- package/src/models/GetInvoiceDetailsResponseData.ts +89 -0
- package/src/models/InvoiceDetails.ts +247 -0
- package/src/models/InvoiceIssuedTo.ts +127 -0
- package/src/models/InvoiceIssuedToTax.ts +84 -0
- package/src/models/InvoiceItem.ts +102 -0
- package/src/models/InvoiceSummary.ts +163 -0
- package/src/models/InvoiceTransaction.ts +122 -0
- package/src/models/ListInvoicesResponseContent.ts +92 -0
- package/src/models/ListInvoicesResponseData.ts +83 -0
- package/src/models/NoVncConsoleDetails.ts +26 -3
- package/src/models/PasswordEncryptionInfo.ts +93 -0
- package/src/models/SelcomMetadata.ts +102 -0
- package/src/models/VpsCredentials.ts +1 -1
- package/src/models/VpsDetailsResponse.ts +12 -5
- package/src/models/VpsIpAddressDetail.ts +98 -0
- package/src/models/VpsVmInfo.ts +3 -3
- package/src/models/index.ts +18 -0
- package/src/retryablePaths.ts +3 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostAfricaApi
|
|
3
|
+
* HostAfrica API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Detailed IP address assignment for a VPS
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VpsIpAddressDetail
|
|
16
|
+
*/
|
|
17
|
+
export interface VpsIpAddressDetail {
|
|
18
|
+
/**
|
|
19
|
+
* Primary IP address
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VpsIpAddressDetail
|
|
22
|
+
*/
|
|
23
|
+
ip: string;
|
|
24
|
+
/**
|
|
25
|
+
* IP address (may mirror ip)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VpsIpAddressDetail
|
|
28
|
+
*/
|
|
29
|
+
address?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Subnet mask
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VpsIpAddressDetail
|
|
34
|
+
*/
|
|
35
|
+
subnet?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Gateway address
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VpsIpAddressDetail
|
|
40
|
+
*/
|
|
41
|
+
gateway?: string;
|
|
42
|
+
/**
|
|
43
|
+
* MAC address when available
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof VpsIpAddressDetail
|
|
46
|
+
*/
|
|
47
|
+
mac?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the VpsIpAddressDetail interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfVpsIpAddressDetail(value: object): value is VpsIpAddressDetail;
|
|
53
|
+
export declare function VpsIpAddressDetailFromJSON(json: any): VpsIpAddressDetail;
|
|
54
|
+
export declare function VpsIpAddressDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): VpsIpAddressDetail;
|
|
55
|
+
export declare function VpsIpAddressDetailToJSON(json: any): VpsIpAddressDetail;
|
|
56
|
+
export declare function VpsIpAddressDetailToJSONTyped(value?: VpsIpAddressDetail | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* HostAfricaApi
|
|
5
|
+
* HostAfrica API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the VpsIpAddressDetail interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVpsIpAddressDetail(value) {
|
|
18
|
+
if (!('ip' in value) || value['ip'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function VpsIpAddressDetailFromJSON(json) {
|
|
23
|
+
return VpsIpAddressDetailFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function VpsIpAddressDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'ip': json['ip'],
|
|
31
|
+
'address': json['address'] == null ? undefined : json['address'],
|
|
32
|
+
'subnet': json['subnet'] == null ? undefined : json['subnet'],
|
|
33
|
+
'gateway': json['gateway'] == null ? undefined : json['gateway'],
|
|
34
|
+
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function VpsIpAddressDetailToJSON(json) {
|
|
38
|
+
return VpsIpAddressDetailToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function VpsIpAddressDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'ip': value['ip'],
|
|
46
|
+
'address': value['address'],
|
|
47
|
+
'subnet': value['subnet'],
|
|
48
|
+
'gateway': value['gateway'],
|
|
49
|
+
'mac': value['mac'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -40,11 +40,11 @@ export interface VpsVmInfo {
|
|
|
40
40
|
*/
|
|
41
41
|
hostname?: string;
|
|
42
42
|
/**
|
|
43
|
-
* Boot devices configuration
|
|
44
|
-
* @type {string}
|
|
43
|
+
* Boot devices configuration (e.g., scsi0, scsi1)
|
|
44
|
+
* @type {Array<string>}
|
|
45
45
|
* @memberof VpsVmInfo
|
|
46
46
|
*/
|
|
47
|
-
bootDevices?: string
|
|
47
|
+
bootDevices?: Array<string>;
|
|
48
48
|
/**
|
|
49
49
|
* Proxmox VM ID
|
|
50
50
|
* @type {string}
|
|
@@ -66,6 +66,7 @@ export * from './DeleteSnapshotJobRequestContent.js';
|
|
|
66
66
|
export * from './DeleteSnapshotJobResponseContent.js';
|
|
67
67
|
export * from './DeleteSnapshotRequestContent.js';
|
|
68
68
|
export * from './DeleteSnapshotResponseContent.js';
|
|
69
|
+
export * from './DnsBackend.js';
|
|
69
70
|
export * from './DnsCreateCandidateInfo.js';
|
|
70
71
|
export * from './DnsRecordInfo.js';
|
|
71
72
|
export * from './DnsRecordMutationData.js';
|
|
@@ -95,6 +96,7 @@ export * from './EditBackupScheduleRequestContent.js';
|
|
|
95
96
|
export * from './EditBackupScheduleResponseContent.js';
|
|
96
97
|
export * from './EditDnsRecordRequestContent.js';
|
|
97
98
|
export * from './EditDnsRecordResponseContent.js';
|
|
99
|
+
export * from './EncryptedPasswordResponseData.js';
|
|
98
100
|
export * from './FirewallListResponseData.js';
|
|
99
101
|
export * from './FirewallMoveDirection.js';
|
|
100
102
|
export * from './FirewallMoveResponseData.js';
|
|
@@ -114,6 +116,11 @@ export * from './GetDomainContactsResponseContent.js';
|
|
|
114
116
|
export * from './GetDomainData.js';
|
|
115
117
|
export * from './GetDomainRequestContent.js';
|
|
116
118
|
export * from './GetDomainResponseContent.js';
|
|
119
|
+
export * from './GetEncryptedPasswordRequestContent.js';
|
|
120
|
+
export * from './GetEncryptedPasswordResponseContent.js';
|
|
121
|
+
export * from './GetInvoiceDetailsRequestContent.js';
|
|
122
|
+
export * from './GetInvoiceDetailsResponseContent.js';
|
|
123
|
+
export * from './GetInvoiceDetailsResponseData.js';
|
|
117
124
|
export * from './GetNoVncConsoleRequestContent.js';
|
|
118
125
|
export * from './GetNoVncConsoleResponseContent.js';
|
|
119
126
|
export * from './GetVpsConfigRequestContent.js';
|
|
@@ -122,6 +129,12 @@ export * from './GetVpsDetailsRequestContent.js';
|
|
|
122
129
|
export * from './GetVpsDetailsResponseContent.js';
|
|
123
130
|
export * from './InternalServiceErrorResponseContent.js';
|
|
124
131
|
export * from './InvalidStateErrorResponseContent.js';
|
|
132
|
+
export * from './InvoiceDetails.js';
|
|
133
|
+
export * from './InvoiceIssuedTo.js';
|
|
134
|
+
export * from './InvoiceIssuedToTax.js';
|
|
135
|
+
export * from './InvoiceItem.js';
|
|
136
|
+
export * from './InvoiceSummary.js';
|
|
137
|
+
export * from './InvoiceTransaction.js';
|
|
125
138
|
export * from './ListBackupSchedulesRequestContent.js';
|
|
126
139
|
export * from './ListBackupSchedulesResponseContent.js';
|
|
127
140
|
export * from './ListBackupsRequestContent.js';
|
|
@@ -139,6 +152,8 @@ export * from './ListDomainsRequiringDataResponseContent.js';
|
|
|
139
152
|
export * from './ListDomainsResponseContent.js';
|
|
140
153
|
export * from './ListFirewallRulesRequestContent.js';
|
|
141
154
|
export * from './ListFirewallRulesResponseContent.js';
|
|
155
|
+
export * from './ListInvoicesResponseContent.js';
|
|
156
|
+
export * from './ListInvoicesResponseData.js';
|
|
142
157
|
export * from './ListIsosRequestContent.js';
|
|
143
158
|
export * from './ListIsosResponseContent.js';
|
|
144
159
|
export * from './ListIsosResponseData.js';
|
|
@@ -174,6 +189,7 @@ export * from './OperationStatus.js';
|
|
|
174
189
|
export * from './Order.js';
|
|
175
190
|
export * from './OrderLastAttempt.js';
|
|
176
191
|
export * from './OrderWarning.js';
|
|
192
|
+
export * from './PasswordEncryptionInfo.js';
|
|
177
193
|
export * from './PaymentError.js';
|
|
178
194
|
export * from './PaymentStatus.js';
|
|
179
195
|
export * from './PowerTask.js';
|
|
@@ -199,6 +215,7 @@ export * from './RollbackSnapshotResponseContent.js';
|
|
|
199
215
|
export * from './SaveDomainRequiredDataData.js';
|
|
200
216
|
export * from './SaveDomainRequiredDataRequestContent.js';
|
|
201
217
|
export * from './SaveDomainRequiredDataResponseContent.js';
|
|
218
|
+
export * from './SelcomMetadata.js';
|
|
202
219
|
export * from './ServiceBackupsResponseData.js';
|
|
203
220
|
export * from './ServiceSnapshotsResponseData.js';
|
|
204
221
|
export * from './ServiceUnavailableErrorResponseContent.js';
|
|
@@ -270,6 +287,7 @@ export * from './VpsCpuInfo.js';
|
|
|
270
287
|
export * from './VpsCredentials.js';
|
|
271
288
|
export * from './VpsDetailsResponse.js';
|
|
272
289
|
export * from './VpsDiskInfo.js';
|
|
290
|
+
export * from './VpsIpAddressDetail.js';
|
|
273
291
|
export * from './VpsMemoryInfo.js';
|
|
274
292
|
export * from './VpsNetworkRate.js';
|
|
275
293
|
export * from './VpsOsInfo.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -68,6 +68,7 @@ export * from './DeleteSnapshotJobRequestContent.js';
|
|
|
68
68
|
export * from './DeleteSnapshotJobResponseContent.js';
|
|
69
69
|
export * from './DeleteSnapshotRequestContent.js';
|
|
70
70
|
export * from './DeleteSnapshotResponseContent.js';
|
|
71
|
+
export * from './DnsBackend.js';
|
|
71
72
|
export * from './DnsCreateCandidateInfo.js';
|
|
72
73
|
export * from './DnsRecordInfo.js';
|
|
73
74
|
export * from './DnsRecordMutationData.js';
|
|
@@ -97,6 +98,7 @@ export * from './EditBackupScheduleRequestContent.js';
|
|
|
97
98
|
export * from './EditBackupScheduleResponseContent.js';
|
|
98
99
|
export * from './EditDnsRecordRequestContent.js';
|
|
99
100
|
export * from './EditDnsRecordResponseContent.js';
|
|
101
|
+
export * from './EncryptedPasswordResponseData.js';
|
|
100
102
|
export * from './FirewallListResponseData.js';
|
|
101
103
|
export * from './FirewallMoveDirection.js';
|
|
102
104
|
export * from './FirewallMoveResponseData.js';
|
|
@@ -116,6 +118,11 @@ export * from './GetDomainContactsResponseContent.js';
|
|
|
116
118
|
export * from './GetDomainData.js';
|
|
117
119
|
export * from './GetDomainRequestContent.js';
|
|
118
120
|
export * from './GetDomainResponseContent.js';
|
|
121
|
+
export * from './GetEncryptedPasswordRequestContent.js';
|
|
122
|
+
export * from './GetEncryptedPasswordResponseContent.js';
|
|
123
|
+
export * from './GetInvoiceDetailsRequestContent.js';
|
|
124
|
+
export * from './GetInvoiceDetailsResponseContent.js';
|
|
125
|
+
export * from './GetInvoiceDetailsResponseData.js';
|
|
119
126
|
export * from './GetNoVncConsoleRequestContent.js';
|
|
120
127
|
export * from './GetNoVncConsoleResponseContent.js';
|
|
121
128
|
export * from './GetVpsConfigRequestContent.js';
|
|
@@ -124,6 +131,12 @@ export * from './GetVpsDetailsRequestContent.js';
|
|
|
124
131
|
export * from './GetVpsDetailsResponseContent.js';
|
|
125
132
|
export * from './InternalServiceErrorResponseContent.js';
|
|
126
133
|
export * from './InvalidStateErrorResponseContent.js';
|
|
134
|
+
export * from './InvoiceDetails.js';
|
|
135
|
+
export * from './InvoiceIssuedTo.js';
|
|
136
|
+
export * from './InvoiceIssuedToTax.js';
|
|
137
|
+
export * from './InvoiceItem.js';
|
|
138
|
+
export * from './InvoiceSummary.js';
|
|
139
|
+
export * from './InvoiceTransaction.js';
|
|
127
140
|
export * from './ListBackupSchedulesRequestContent.js';
|
|
128
141
|
export * from './ListBackupSchedulesResponseContent.js';
|
|
129
142
|
export * from './ListBackupsRequestContent.js';
|
|
@@ -141,6 +154,8 @@ export * from './ListDomainsRequiringDataResponseContent.js';
|
|
|
141
154
|
export * from './ListDomainsResponseContent.js';
|
|
142
155
|
export * from './ListFirewallRulesRequestContent.js';
|
|
143
156
|
export * from './ListFirewallRulesResponseContent.js';
|
|
157
|
+
export * from './ListInvoicesResponseContent.js';
|
|
158
|
+
export * from './ListInvoicesResponseData.js';
|
|
144
159
|
export * from './ListIsosRequestContent.js';
|
|
145
160
|
export * from './ListIsosResponseContent.js';
|
|
146
161
|
export * from './ListIsosResponseData.js';
|
|
@@ -176,6 +191,7 @@ export * from './OperationStatus.js';
|
|
|
176
191
|
export * from './Order.js';
|
|
177
192
|
export * from './OrderLastAttempt.js';
|
|
178
193
|
export * from './OrderWarning.js';
|
|
194
|
+
export * from './PasswordEncryptionInfo.js';
|
|
179
195
|
export * from './PaymentError.js';
|
|
180
196
|
export * from './PaymentStatus.js';
|
|
181
197
|
export * from './PowerTask.js';
|
|
@@ -201,6 +217,7 @@ export * from './RollbackSnapshotResponseContent.js';
|
|
|
201
217
|
export * from './SaveDomainRequiredDataData.js';
|
|
202
218
|
export * from './SaveDomainRequiredDataRequestContent.js';
|
|
203
219
|
export * from './SaveDomainRequiredDataResponseContent.js';
|
|
220
|
+
export * from './SelcomMetadata.js';
|
|
204
221
|
export * from './ServiceBackupsResponseData.js';
|
|
205
222
|
export * from './ServiceSnapshotsResponseData.js';
|
|
206
223
|
export * from './ServiceUnavailableErrorResponseContent.js';
|
|
@@ -272,6 +289,7 @@ export * from './VpsCpuInfo.js';
|
|
|
272
289
|
export * from './VpsCredentials.js';
|
|
273
290
|
export * from './VpsDetailsResponse.js';
|
|
274
291
|
export * from './VpsDiskInfo.js';
|
|
292
|
+
export * from './VpsIpAddressDetail.js';
|
|
275
293
|
export * from './VpsMemoryInfo.js';
|
|
276
294
|
export * from './VpsNetworkRate.js';
|
|
277
295
|
export * from './VpsOsInfo.js';
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
export const RETRYABLE_PATHS = new Set([
|
|
7
7
|
"/vps/list-vps-services",
|
|
8
8
|
"/vps/get-details",
|
|
9
|
+
"/vps/get-encrypted-password",
|
|
9
10
|
"/vps/get-config",
|
|
10
11
|
"/vps/novnc-console",
|
|
11
12
|
"/vps/list-backups",
|
|
@@ -20,6 +21,8 @@ export const RETRYABLE_PATHS = new Set([
|
|
|
20
21
|
"/vps/get-catalogue",
|
|
21
22
|
"/vps/validate-pricing",
|
|
22
23
|
"/vps/list-orders",
|
|
24
|
+
"/billing/list-invoices",
|
|
25
|
+
"/billing/get-invoice-details",
|
|
23
26
|
"/dns/list-rdns-records",
|
|
24
27
|
"/domain/check-availability",
|
|
25
28
|
"/domain/suggest",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DnsRecordMutationRecord } from './DnsRecordMutationRecord.js';
|
|
13
|
+
import type { DnsBackend } from './DnsBackend.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -17,17 +18,35 @@ import type { DnsRecordMutationRecord } from './DnsRecordMutationRecord.js';
|
|
|
17
18
|
*/
|
|
18
19
|
export interface AddDnsRecordRequestContent {
|
|
19
20
|
/**
|
|
20
|
-
* DNS zone domain name (FQDN); optional when zone_id is provided
|
|
21
|
+
* DNS zone domain name (FQDN); optional for dns_manager when zone_id is provided. Not forwarded on DirectAdmin mutations.
|
|
21
22
|
* @type {string}
|
|
22
23
|
* @memberof AddDnsRecordRequestContent
|
|
23
24
|
*/
|
|
24
25
|
domainName?: string;
|
|
25
26
|
/**
|
|
26
|
-
* DNS zone identifier from list-dns-zones or get-dns-zone-details
|
|
27
|
+
* DNS zone identifier from list-dns-zones or get-dns-zone-details; required for dns_manager / legacy callers
|
|
27
28
|
* @type {string}
|
|
28
29
|
* @memberof AddDnsRecordRequestContent
|
|
29
30
|
*/
|
|
30
|
-
zoneId
|
|
31
|
+
zoneId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* WHMCS domain id from list-dns-zones; required when backend is directadmin
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AddDnsRecordRequestContent
|
|
36
|
+
*/
|
|
37
|
+
domainId?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Optional WHMCS hosting service id from list-dns-zones hosting_id. Not forwarded on DirectAdmin mutations.
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof AddDnsRecordRequestContent
|
|
42
|
+
*/
|
|
43
|
+
serviceId?: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {DnsBackend}
|
|
47
|
+
* @memberof AddDnsRecordRequestContent
|
|
48
|
+
*/
|
|
49
|
+
backend?: DnsBackend;
|
|
31
50
|
/**
|
|
32
51
|
*
|
|
33
52
|
* @type {DnsRecordMutationRecord}
|
|
@@ -19,12 +19,11 @@ exports.AddDnsRecordRequestContentFromJSONTyped = AddDnsRecordRequestContentFrom
|
|
|
19
19
|
exports.AddDnsRecordRequestContentToJSON = AddDnsRecordRequestContentToJSON;
|
|
20
20
|
exports.AddDnsRecordRequestContentToJSONTyped = AddDnsRecordRequestContentToJSONTyped;
|
|
21
21
|
const DnsRecordMutationRecord_js_1 = require("./DnsRecordMutationRecord.js");
|
|
22
|
+
const DnsBackend_js_1 = require("./DnsBackend.js");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the AddDnsRecordRequestContent interface.
|
|
24
25
|
*/
|
|
25
26
|
function instanceOfAddDnsRecordRequestContent(value) {
|
|
26
|
-
if (!('zoneId' in value) || value['zoneId'] === undefined)
|
|
27
|
-
return false;
|
|
28
27
|
if (!('record' in value) || value['record'] === undefined)
|
|
29
28
|
return false;
|
|
30
29
|
return true;
|
|
@@ -38,7 +37,10 @@ function AddDnsRecordRequestContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
37
|
}
|
|
39
38
|
return {
|
|
40
39
|
'domainName': json['domain_name'] == null ? undefined : json['domain_name'],
|
|
41
|
-
'zoneId': json['zone_id'],
|
|
40
|
+
'zoneId': json['zone_id'] == null ? undefined : json['zone_id'],
|
|
41
|
+
'domainId': json['domain_id'] == null ? undefined : json['domain_id'],
|
|
42
|
+
'serviceId': json['service_id'] == null ? undefined : json['service_id'],
|
|
43
|
+
'backend': json['backend'] == null ? undefined : (0, DnsBackend_js_1.DnsBackendFromJSON)(json['backend']),
|
|
42
44
|
'record': (0, DnsRecordMutationRecord_js_1.DnsRecordMutationRecordFromJSON)(json['record']),
|
|
43
45
|
};
|
|
44
46
|
}
|
|
@@ -52,6 +54,9 @@ function AddDnsRecordRequestContentToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
52
54
|
return {
|
|
53
55
|
'domain_name': value['domainName'],
|
|
54
56
|
'zone_id': value['zoneId'],
|
|
57
|
+
'domain_id': value['domainId'],
|
|
58
|
+
'service_id': value['serviceId'],
|
|
59
|
+
'backend': (0, DnsBackend_js_1.DnsBackendToJSON)(value['backend']),
|
|
55
60
|
'record': (0, DnsRecordMutationRecord_js_1.DnsRecordMutationRecordToJSON)(value['record']),
|
|
56
61
|
};
|
|
57
62
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DnsRecordMutationRecord } from './DnsRecordMutationRecord.js';
|
|
13
|
+
import type { DnsBackend } from './DnsBackend.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -17,17 +18,35 @@ import type { DnsRecordMutationRecord } from './DnsRecordMutationRecord.js';
|
|
|
17
18
|
*/
|
|
18
19
|
export interface DeleteDnsRecordRequestContent {
|
|
19
20
|
/**
|
|
20
|
-
* DNS zone domain name (FQDN); optional when zone_id is provided
|
|
21
|
+
* DNS zone domain name (FQDN); optional for dns_manager when zone_id is provided. Not forwarded on DirectAdmin mutations.
|
|
21
22
|
* @type {string}
|
|
22
23
|
* @memberof DeleteDnsRecordRequestContent
|
|
23
24
|
*/
|
|
24
25
|
domainName?: string;
|
|
25
26
|
/**
|
|
26
|
-
* DNS zone identifier from list-dns-zones or get-dns-zone-details
|
|
27
|
+
* DNS zone identifier from list-dns-zones or get-dns-zone-details; required for dns_manager / legacy callers
|
|
27
28
|
* @type {string}
|
|
28
29
|
* @memberof DeleteDnsRecordRequestContent
|
|
29
30
|
*/
|
|
30
|
-
zoneId
|
|
31
|
+
zoneId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* WHMCS domain id from list-dns-zones; required when backend is directadmin
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof DeleteDnsRecordRequestContent
|
|
36
|
+
*/
|
|
37
|
+
domainId?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Optional WHMCS hosting service id from list-dns-zones hosting_id. Not forwarded on DirectAdmin mutations.
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof DeleteDnsRecordRequestContent
|
|
42
|
+
*/
|
|
43
|
+
serviceId?: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {DnsBackend}
|
|
47
|
+
* @memberof DeleteDnsRecordRequestContent
|
|
48
|
+
*/
|
|
49
|
+
backend?: DnsBackend;
|
|
31
50
|
/**
|
|
32
51
|
*
|
|
33
52
|
* @type {DnsRecordMutationRecord}
|
|
@@ -19,12 +19,11 @@ exports.DeleteDnsRecordRequestContentFromJSONTyped = DeleteDnsRecordRequestConte
|
|
|
19
19
|
exports.DeleteDnsRecordRequestContentToJSON = DeleteDnsRecordRequestContentToJSON;
|
|
20
20
|
exports.DeleteDnsRecordRequestContentToJSONTyped = DeleteDnsRecordRequestContentToJSONTyped;
|
|
21
21
|
const DnsRecordMutationRecord_js_1 = require("./DnsRecordMutationRecord.js");
|
|
22
|
+
const DnsBackend_js_1 = require("./DnsBackend.js");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the DeleteDnsRecordRequestContent interface.
|
|
24
25
|
*/
|
|
25
26
|
function instanceOfDeleteDnsRecordRequestContent(value) {
|
|
26
|
-
if (!('zoneId' in value) || value['zoneId'] === undefined)
|
|
27
|
-
return false;
|
|
28
27
|
if (!('record' in value) || value['record'] === undefined)
|
|
29
28
|
return false;
|
|
30
29
|
return true;
|
|
@@ -38,7 +37,10 @@ function DeleteDnsRecordRequestContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
37
|
}
|
|
39
38
|
return {
|
|
40
39
|
'domainName': json['domain_name'] == null ? undefined : json['domain_name'],
|
|
41
|
-
'zoneId': json['zone_id'],
|
|
40
|
+
'zoneId': json['zone_id'] == null ? undefined : json['zone_id'],
|
|
41
|
+
'domainId': json['domain_id'] == null ? undefined : json['domain_id'],
|
|
42
|
+
'serviceId': json['service_id'] == null ? undefined : json['service_id'],
|
|
43
|
+
'backend': json['backend'] == null ? undefined : (0, DnsBackend_js_1.DnsBackendFromJSON)(json['backend']),
|
|
42
44
|
'record': (0, DnsRecordMutationRecord_js_1.DnsRecordMutationRecordFromJSON)(json['record']),
|
|
43
45
|
};
|
|
44
46
|
}
|
|
@@ -52,6 +54,9 @@ function DeleteDnsRecordRequestContentToJSONTyped(value, ignoreDiscriminator = f
|
|
|
52
54
|
return {
|
|
53
55
|
'domain_name': value['domainName'],
|
|
54
56
|
'zone_id': value['zoneId'],
|
|
57
|
+
'domain_id': value['domainId'],
|
|
58
|
+
'service_id': value['serviceId'],
|
|
59
|
+
'backend': (0, DnsBackend_js_1.DnsBackendToJSON)(value['backend']),
|
|
55
60
|
'record': (0, DnsRecordMutationRecord_js_1.DnsRecordMutationRecordToJSON)(value['record']),
|
|
56
61
|
};
|
|
57
62
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostAfricaApi
|
|
3
|
+
* HostAfrica API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Upstream DNS management backend for a zone.
|
|
14
|
+
*
|
|
15
|
+
* - `dns_manager` — WHMCS DNS Manager
|
|
16
|
+
* - `directadmin` — DirectAdmin DNS
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DnsBackend: {
|
|
20
|
+
readonly DnsManager: "dns_manager";
|
|
21
|
+
readonly Directadmin: "directadmin";
|
|
22
|
+
};
|
|
23
|
+
export type DnsBackend = typeof DnsBackend[keyof typeof DnsBackend];
|
|
24
|
+
export declare function instanceOfDnsBackend(value: any): boolean;
|
|
25
|
+
export declare function DnsBackendFromJSON(json: any): DnsBackend;
|
|
26
|
+
export declare function DnsBackendFromJSONTyped(json: any, ignoreDiscriminator: boolean): DnsBackend;
|
|
27
|
+
export declare function DnsBackendToJSON(value?: DnsBackend | null): any;
|
|
28
|
+
export declare function DnsBackendToJSONTyped(value: any, ignoreDiscriminator: boolean): DnsBackend;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* HostAfricaApi
|
|
6
|
+
* HostAfrica API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DnsBackend = void 0;
|
|
17
|
+
exports.instanceOfDnsBackend = instanceOfDnsBackend;
|
|
18
|
+
exports.DnsBackendFromJSON = DnsBackendFromJSON;
|
|
19
|
+
exports.DnsBackendFromJSONTyped = DnsBackendFromJSONTyped;
|
|
20
|
+
exports.DnsBackendToJSON = DnsBackendToJSON;
|
|
21
|
+
exports.DnsBackendToJSONTyped = DnsBackendToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Upstream DNS management backend for a zone.
|
|
24
|
+
*
|
|
25
|
+
* - `dns_manager` — WHMCS DNS Manager
|
|
26
|
+
* - `directadmin` — DirectAdmin DNS
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.DnsBackend = {
|
|
30
|
+
DnsManager: 'dns_manager',
|
|
31
|
+
Directadmin: 'directadmin'
|
|
32
|
+
};
|
|
33
|
+
function instanceOfDnsBackend(value) {
|
|
34
|
+
for (const key in exports.DnsBackend) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(exports.DnsBackend, key)) {
|
|
36
|
+
if (exports.DnsBackend[key] === value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
function DnsBackendFromJSON(json) {
|
|
44
|
+
return DnsBackendFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function DnsBackendFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
function DnsBackendToJSON(value) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
function DnsBackendToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
* DNS record fields for add, edit, or delete via DNSManager.
|
|
14
14
|
*
|
|
15
15
|
* See `DnsRecordInfo` for how `content` and structured fields map to upstream record data.
|
|
16
|
-
* Delete requires only `id`, `name`, and `type`.
|
|
16
|
+
* Delete requires only `id`, `name`, and `type`. For edit and delete, `id` must be the
|
|
17
|
+
* numeric zone line from get-dns-zone-details (a positive integer string).
|
|
17
18
|
* @export
|
|
18
19
|
* @interface DnsRecordMutationRecord
|
|
19
20
|
*/
|
|
20
21
|
export interface DnsRecordMutationRecord {
|
|
21
22
|
/**
|
|
22
|
-
* Record line
|
|
23
|
+
* Record line from get-dns-zone-details (positive integer string); required for edit and delete
|
|
23
24
|
* @type {string}
|
|
24
25
|
* @memberof DnsRecordMutationRecord
|
|
25
26
|
*/
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DomainHostingLink } from './DomainHostingLink.js';
|
|
13
|
+
import type { DnsBackend } from './DnsBackend.js';
|
|
13
14
|
/**
|
|
14
15
|
* A DNS zone owned by the authenticated client
|
|
15
16
|
* @export
|
|
@@ -70,6 +71,12 @@ export interface DnsZoneInfo {
|
|
|
70
71
|
* @memberof DnsZoneInfo
|
|
71
72
|
*/
|
|
72
73
|
hasDnsManagerZone: boolean;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {DnsBackend}
|
|
77
|
+
* @memberof DnsZoneInfo
|
|
78
|
+
*/
|
|
79
|
+
backend?: DnsBackend;
|
|
73
80
|
}
|
|
74
81
|
/**
|
|
75
82
|
* Check if a given object implements the DnsZoneInfo interface.
|
|
@@ -19,6 +19,7 @@ exports.DnsZoneInfoFromJSONTyped = DnsZoneInfoFromJSONTyped;
|
|
|
19
19
|
exports.DnsZoneInfoToJSON = DnsZoneInfoToJSON;
|
|
20
20
|
exports.DnsZoneInfoToJSONTyped = DnsZoneInfoToJSONTyped;
|
|
21
21
|
const DomainHostingLink_js_1 = require("./DomainHostingLink.js");
|
|
22
|
+
const DnsBackend_js_1 = require("./DnsBackend.js");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the DnsZoneInfo interface.
|
|
24
25
|
*/
|
|
@@ -44,6 +45,7 @@ function DnsZoneInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
45
|
'packageName': json['package_name'] == null ? undefined : json['package_name'],
|
|
45
46
|
'hasHosting': json['has_hosting'] == null ? undefined : (0, DomainHostingLink_js_1.DomainHostingLinkFromJSON)(json['has_hosting']),
|
|
46
47
|
'hasDnsManagerZone': json['has_dns_manager_zone'],
|
|
48
|
+
'backend': json['backend'] == null ? undefined : (0, DnsBackend_js_1.DnsBackendFromJSON)(json['backend']),
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
function DnsZoneInfoToJSON(json) {
|
|
@@ -63,5 +65,6 @@ function DnsZoneInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
65
|
'package_name': value['packageName'],
|
|
64
66
|
'has_hosting': (0, DomainHostingLink_js_1.DomainHostingLinkToJSON)(value['hasHosting']),
|
|
65
67
|
'has_dns_manager_zone': value['hasDnsManagerZone'],
|
|
68
|
+
'backend': (0, DnsBackend_js_1.DnsBackendToJSON)(value['backend']),
|
|
66
69
|
};
|
|
67
70
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DnsRecordMutationRecord } from './DnsRecordMutationRecord.js';
|
|
13
|
+
import type { DnsBackend } from './DnsBackend.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -17,17 +18,35 @@ import type { DnsRecordMutationRecord } from './DnsRecordMutationRecord.js';
|
|
|
17
18
|
*/
|
|
18
19
|
export interface EditDnsRecordRequestContent {
|
|
19
20
|
/**
|
|
20
|
-
* DNS zone domain name (FQDN); optional when zone_id is provided
|
|
21
|
+
* DNS zone domain name (FQDN); optional for dns_manager when zone_id is provided. Not forwarded on DirectAdmin mutations.
|
|
21
22
|
* @type {string}
|
|
22
23
|
* @memberof EditDnsRecordRequestContent
|
|
23
24
|
*/
|
|
24
25
|
domainName?: string;
|
|
25
26
|
/**
|
|
26
|
-
* DNS zone identifier from list-dns-zones or get-dns-zone-details
|
|
27
|
+
* DNS zone identifier from list-dns-zones or get-dns-zone-details; required for dns_manager / legacy callers
|
|
27
28
|
* @type {string}
|
|
28
29
|
* @memberof EditDnsRecordRequestContent
|
|
29
30
|
*/
|
|
30
|
-
zoneId
|
|
31
|
+
zoneId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* WHMCS domain id from list-dns-zones; required when backend is directadmin
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof EditDnsRecordRequestContent
|
|
36
|
+
*/
|
|
37
|
+
domainId?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Optional WHMCS hosting service id from list-dns-zones hosting_id. Not forwarded on DirectAdmin mutations.
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof EditDnsRecordRequestContent
|
|
42
|
+
*/
|
|
43
|
+
serviceId?: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {DnsBackend}
|
|
47
|
+
* @memberof EditDnsRecordRequestContent
|
|
48
|
+
*/
|
|
49
|
+
backend?: DnsBackend;
|
|
31
50
|
/**
|
|
32
51
|
*
|
|
33
52
|
* @type {DnsRecordMutationRecord}
|