@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,74 @@
|
|
|
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
|
+
* A payment or refund transaction recorded against an invoice
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InvoiceTransaction
|
|
16
|
+
*/
|
|
17
|
+
export interface InvoiceTransaction {
|
|
18
|
+
/**
|
|
19
|
+
* Transaction identifier
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof InvoiceTransaction
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
* Payment gateway identifier
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InvoiceTransaction
|
|
28
|
+
*/
|
|
29
|
+
gateway?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Transaction date (ISO 8601 or upstream date string)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InvoiceTransaction
|
|
34
|
+
*/
|
|
35
|
+
date?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Transaction description
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof InvoiceTransaction
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Amount received as a decimal string
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof InvoiceTransaction
|
|
46
|
+
*/
|
|
47
|
+
amountIn?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Gateway fees as a decimal string
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof InvoiceTransaction
|
|
52
|
+
*/
|
|
53
|
+
fees?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Amount paid out (e.g. refund) as a decimal string
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof InvoiceTransaction
|
|
58
|
+
*/
|
|
59
|
+
amountOut?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Gateway transaction reference
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof InvoiceTransaction
|
|
64
|
+
*/
|
|
65
|
+
transId?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the InvoiceTransaction interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfInvoiceTransaction(value: object): value is InvoiceTransaction;
|
|
71
|
+
export declare function InvoiceTransactionFromJSON(json: any): InvoiceTransaction;
|
|
72
|
+
export declare function InvoiceTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceTransaction;
|
|
73
|
+
export declare function InvoiceTransactionToJSON(json: any): InvoiceTransaction;
|
|
74
|
+
export declare function InvoiceTransactionToJSONTyped(value?: InvoiceTransaction | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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 InvoiceTransaction interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfInvoiceTransaction(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function InvoiceTransactionFromJSON(json) {
|
|
23
|
+
return InvoiceTransactionFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function InvoiceTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'id': json['id'],
|
|
31
|
+
'gateway': json['gateway'] == null ? undefined : json['gateway'],
|
|
32
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
33
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
34
|
+
'amountIn': json['amount_in'] == null ? undefined : json['amount_in'],
|
|
35
|
+
'fees': json['fees'] == null ? undefined : json['fees'],
|
|
36
|
+
'amountOut': json['amount_out'] == null ? undefined : json['amount_out'],
|
|
37
|
+
'transId': json['trans_id'] == null ? undefined : json['trans_id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function InvoiceTransactionToJSON(json) {
|
|
41
|
+
return InvoiceTransactionToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function InvoiceTransactionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
'gateway': value['gateway'],
|
|
50
|
+
'date': value['date'],
|
|
51
|
+
'description': value['description'],
|
|
52
|
+
'amount_in': value['amountIn'],
|
|
53
|
+
'fees': value['fees'],
|
|
54
|
+
'amount_out': value['amountOut'],
|
|
55
|
+
'trans_id': value['transId'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
import type { ListInvoicesResponseData } from './ListInvoicesResponseData.js';
|
|
13
|
+
import type { OperationStatus } from './OperationStatus.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ListInvoicesResponseContent
|
|
18
|
+
*/
|
|
19
|
+
export interface ListInvoicesResponseContent {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {OperationStatus}
|
|
23
|
+
* @memberof ListInvoicesResponseContent
|
|
24
|
+
*/
|
|
25
|
+
status: OperationStatus;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ListInvoicesResponseData}
|
|
29
|
+
* @memberof ListInvoicesResponseContent
|
|
30
|
+
*/
|
|
31
|
+
data: ListInvoicesResponseData;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the ListInvoicesResponseContent interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfListInvoicesResponseContent(value: object): value is ListInvoicesResponseContent;
|
|
37
|
+
export declare function ListInvoicesResponseContentFromJSON(json: any): ListInvoicesResponseContent;
|
|
38
|
+
export declare function ListInvoicesResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListInvoicesResponseContent;
|
|
39
|
+
export declare function ListInvoicesResponseContentToJSON(json: any): ListInvoicesResponseContent;
|
|
40
|
+
export declare function ListInvoicesResponseContentToJSONTyped(value?: ListInvoicesResponseContent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
import { ListInvoicesResponseDataFromJSON, ListInvoicesResponseDataToJSON, } from './ListInvoicesResponseData.js';
|
|
15
|
+
import { OperationStatusFromJSON, OperationStatusToJSON, } from './OperationStatus.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the ListInvoicesResponseContent interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfListInvoicesResponseContent(value) {
|
|
20
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function ListInvoicesResponseContentFromJSON(json) {
|
|
27
|
+
return ListInvoicesResponseContentFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function ListInvoicesResponseContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'status': OperationStatusFromJSON(json['status']),
|
|
35
|
+
'data': ListInvoicesResponseDataFromJSON(json['data']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function ListInvoicesResponseContentToJSON(json) {
|
|
39
|
+
return ListInvoicesResponseContentToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ListInvoicesResponseContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'status': OperationStatusToJSON(value['status']),
|
|
47
|
+
'data': ListInvoicesResponseDataToJSON(value['data']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
import type { InvoiceSummary } from './InvoiceSummary.js';
|
|
13
|
+
/**
|
|
14
|
+
* Top-level data payload for the ListInvoices response
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListInvoicesResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface ListInvoicesResponseData {
|
|
19
|
+
/**
|
|
20
|
+
* List of invoices for the authenticated user
|
|
21
|
+
* @type {Array<InvoiceSummary>}
|
|
22
|
+
* @memberof ListInvoicesResponseData
|
|
23
|
+
*/
|
|
24
|
+
invoices: Array<InvoiceSummary>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of invoices returned
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ListInvoicesResponseData
|
|
29
|
+
*/
|
|
30
|
+
totalCount: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ListInvoicesResponseData interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfListInvoicesResponseData(value: object): value is ListInvoicesResponseData;
|
|
36
|
+
export declare function ListInvoicesResponseDataFromJSON(json: any): ListInvoicesResponseData;
|
|
37
|
+
export declare function ListInvoicesResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListInvoicesResponseData;
|
|
38
|
+
export declare function ListInvoicesResponseDataToJSON(json: any): ListInvoicesResponseData;
|
|
39
|
+
export declare function ListInvoicesResponseDataToJSONTyped(value?: ListInvoicesResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
import { InvoiceSummaryFromJSON, InvoiceSummaryToJSON, } from './InvoiceSummary.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ListInvoicesResponseData interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfListInvoicesResponseData(value) {
|
|
19
|
+
if (!('invoices' in value) || value['invoices'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('totalCount' in value) || value['totalCount'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function ListInvoicesResponseDataFromJSON(json) {
|
|
26
|
+
return ListInvoicesResponseDataFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function ListInvoicesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'invoices': (json['invoices'].map(InvoiceSummaryFromJSON)),
|
|
34
|
+
'totalCount': json['total_count'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ListInvoicesResponseDataToJSON(json) {
|
|
38
|
+
return ListInvoicesResponseDataToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ListInvoicesResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'invoices': (value['invoices'].map(InvoiceSummaryToJSON)),
|
|
46
|
+
'total_count': value['totalCount'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -20,7 +20,25 @@ export interface NoVncConsoleDetails {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof NoVncConsoleDetails
|
|
22
22
|
*/
|
|
23
|
-
novncRedirectUrl
|
|
23
|
+
novncRedirectUrl?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Console connection mode
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof NoVncConsoleDetails
|
|
28
|
+
*/
|
|
29
|
+
mode?: string;
|
|
30
|
+
/**
|
|
31
|
+
* WebSocket URL for proxied console access
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof NoVncConsoleDetails
|
|
34
|
+
*/
|
|
35
|
+
websocketUrl?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Password for proxied console access
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof NoVncConsoleDetails
|
|
40
|
+
*/
|
|
41
|
+
password?: string;
|
|
24
42
|
}
|
|
25
43
|
/**
|
|
26
44
|
* Check if a given object implements the NoVncConsoleDetails interface.
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
* Check if a given object implements the NoVncConsoleDetails interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfNoVncConsoleDetails(value) {
|
|
18
|
-
if (!('novncRedirectUrl' in value) || value['novncRedirectUrl'] === undefined)
|
|
19
|
-
return false;
|
|
20
18
|
return true;
|
|
21
19
|
}
|
|
22
20
|
export function NoVncConsoleDetailsFromJSON(json) {
|
|
@@ -27,7 +25,10 @@ export function NoVncConsoleDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
25
|
return json;
|
|
28
26
|
}
|
|
29
27
|
return {
|
|
30
|
-
'novncRedirectUrl': json['novnc_redirect_url'],
|
|
28
|
+
'novncRedirectUrl': json['novnc_redirect_url'] == null ? undefined : json['novnc_redirect_url'],
|
|
29
|
+
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
30
|
+
'websocketUrl': json['websocket_url'] == null ? undefined : json['websocket_url'],
|
|
31
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export function NoVncConsoleDetailsToJSON(json) {
|
|
@@ -39,5 +40,8 @@ export function NoVncConsoleDetailsToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
42
|
'novnc_redirect_url': value['novncRedirectUrl'],
|
|
43
|
+
'mode': value['mode'],
|
|
44
|
+
'websocket_url': value['websocketUrl'],
|
|
45
|
+
'password': value['password'],
|
|
42
46
|
};
|
|
43
47
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* Encryption metadata for an RSA-OAEP encrypted password
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PasswordEncryptionInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface PasswordEncryptionInfo {
|
|
18
|
+
/**
|
|
19
|
+
* Asymmetric encryption algorithm. Always "RSA-OAEP".
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PasswordEncryptionInfo
|
|
22
|
+
*/
|
|
23
|
+
algorithm: string;
|
|
24
|
+
/**
|
|
25
|
+
* OAEP hash / MGF1 hash function. Always "SHA-256".
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PasswordEncryptionInfo
|
|
28
|
+
*/
|
|
29
|
+
hash: string;
|
|
30
|
+
/**
|
|
31
|
+
* RSA modulus size in bits. Always 4096.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PasswordEncryptionInfo
|
|
34
|
+
*/
|
|
35
|
+
keySize: number;
|
|
36
|
+
/**
|
|
37
|
+
* Encoding of the password ciphertext field. Always "base64" (standard alphabet, not URL-safe).
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PasswordEncryptionInfo
|
|
40
|
+
*/
|
|
41
|
+
encoding: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PasswordEncryptionInfo interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPasswordEncryptionInfo(value: object): value is PasswordEncryptionInfo;
|
|
47
|
+
export declare function PasswordEncryptionInfoFromJSON(json: any): PasswordEncryptionInfo;
|
|
48
|
+
export declare function PasswordEncryptionInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordEncryptionInfo;
|
|
49
|
+
export declare function PasswordEncryptionInfoToJSON(json: any): PasswordEncryptionInfo;
|
|
50
|
+
export declare function PasswordEncryptionInfoToJSONTyped(value?: PasswordEncryptionInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 PasswordEncryptionInfo interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPasswordEncryptionInfo(value) {
|
|
18
|
+
if (!('algorithm' in value) || value['algorithm'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('hash' in value) || value['hash'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('keySize' in value) || value['keySize'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('encoding' in value) || value['encoding'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function PasswordEncryptionInfoFromJSON(json) {
|
|
29
|
+
return PasswordEncryptionInfoFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function PasswordEncryptionInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'algorithm': json['algorithm'],
|
|
37
|
+
'hash': json['hash'],
|
|
38
|
+
'keySize': json['keySize'],
|
|
39
|
+
'encoding': json['encoding'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function PasswordEncryptionInfoToJSON(json) {
|
|
43
|
+
return PasswordEncryptionInfoToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function PasswordEncryptionInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'algorithm': value['algorithm'],
|
|
51
|
+
'hash': value['hash'],
|
|
52
|
+
'keySize': value['keySize'],
|
|
53
|
+
'encoding': value['encoding'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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
|
+
* Selcom alt-gateway payment details included on an invoice when configured
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SelcomMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface SelcomMetadata {
|
|
18
|
+
/**
|
|
19
|
+
* Due amount formatted for display (e.g. "TZS 29,000.00"). Non-TZS amounts are converted using the WHMCS currency rate.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SelcomMetadata
|
|
22
|
+
*/
|
|
23
|
+
amount: string;
|
|
24
|
+
/**
|
|
25
|
+
* Selcom Pesa account: 5-digit padded client id plus 6-digit padded invoice id
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SelcomMetadata
|
|
28
|
+
*/
|
|
29
|
+
pesaAccount: string;
|
|
30
|
+
/**
|
|
31
|
+
* Mobile payment reference: 61107370 plus the same padded client and invoice ids
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SelcomMetadata
|
|
34
|
+
*/
|
|
35
|
+
mobileReference: string;
|
|
36
|
+
/**
|
|
37
|
+
* USSD shortcode for Selcom (always *150*50*1#)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SelcomMetadata
|
|
40
|
+
*/
|
|
41
|
+
ussdCode: string;
|
|
42
|
+
/**
|
|
43
|
+
* WHMCS Selcom alt-gateway instructions HTML with placeholders filled
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SelcomMetadata
|
|
46
|
+
*/
|
|
47
|
+
instructions: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the SelcomMetadata interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfSelcomMetadata(value: object): value is SelcomMetadata;
|
|
53
|
+
export declare function SelcomMetadataFromJSON(json: any): SelcomMetadata;
|
|
54
|
+
export declare function SelcomMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelcomMetadata;
|
|
55
|
+
export declare function SelcomMetadataToJSON(json: any): SelcomMetadata;
|
|
56
|
+
export declare function SelcomMetadataToJSONTyped(value?: SelcomMetadata | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 SelcomMetadata interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSelcomMetadata(value) {
|
|
18
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('pesaAccount' in value) || value['pesaAccount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('mobileReference' in value) || value['mobileReference'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('ussdCode' in value) || value['ussdCode'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('instructions' in value) || value['instructions'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function SelcomMetadataFromJSON(json) {
|
|
31
|
+
return SelcomMetadataFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function SelcomMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'amount': json['amount'],
|
|
39
|
+
'pesaAccount': json['pesa_account'],
|
|
40
|
+
'mobileReference': json['mobile_reference'],
|
|
41
|
+
'ussdCode': json['ussd_code'],
|
|
42
|
+
'instructions': json['instructions'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function SelcomMetadataToJSON(json) {
|
|
46
|
+
return SelcomMetadataToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function SelcomMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'amount': value['amount'],
|
|
54
|
+
'pesa_account': value['pesaAccount'],
|
|
55
|
+
'mobile_reference': value['mobileReference'],
|
|
56
|
+
'ussd_code': value['ussdCode'],
|
|
57
|
+
'instructions': value['instructions'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -22,7 +22,7 @@ export interface VpsCredentials {
|
|
|
22
22
|
*/
|
|
23
23
|
username: string;
|
|
24
24
|
/**
|
|
25
|
-
* Password for VPS access
|
|
25
|
+
* Password for VPS access. Always returned as "<redacted>" from get-details; plaintext passwords are never included in API responses.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof VpsCredentials
|
|
28
28
|
*/
|
|
@@ -15,6 +15,7 @@ import type { VpsCredentials } from './VpsCredentials.js';
|
|
|
15
15
|
import type { VpsOsInfo } from './VpsOsInfo.js';
|
|
16
16
|
import type { VpsCpuInfo } from './VpsCpuInfo.js';
|
|
17
17
|
import type { VpsNetworkRate } from './VpsNetworkRate.js';
|
|
18
|
+
import type { VpsIpAddressDetail } from './VpsIpAddressDetail.js';
|
|
18
19
|
import type { VpsMemoryInfo } from './VpsMemoryInfo.js';
|
|
19
20
|
import type { VpsVmInfo } from './VpsVmInfo.js';
|
|
20
21
|
/**
|
|
@@ -60,11 +61,11 @@ export interface VpsDetailsResponse {
|
|
|
60
61
|
*/
|
|
61
62
|
networkRate?: VpsNetworkRate;
|
|
62
63
|
/**
|
|
63
|
-
* List of IP addresses assigned to the VPS
|
|
64
|
-
* @type {Array<
|
|
64
|
+
* List of IP addresses assigned to the VPS, including subnet, gateway, and MAC
|
|
65
|
+
* @type {Array<VpsIpAddressDetail>}
|
|
65
66
|
* @memberof VpsDetailsResponse
|
|
66
67
|
*/
|
|
67
|
-
ipAddresses: Array<
|
|
68
|
+
ipAddresses: Array<VpsIpAddressDetail>;
|
|
68
69
|
/**
|
|
69
70
|
*
|
|
70
71
|
* @type {VpsCredentials}
|
|
@@ -17,6 +17,7 @@ import { VpsCredentialsFromJSON, VpsCredentialsToJSON, } from './VpsCredentials.
|
|
|
17
17
|
import { VpsOsInfoFromJSON, VpsOsInfoToJSON, } from './VpsOsInfo.js';
|
|
18
18
|
import { VpsCpuInfoFromJSON, VpsCpuInfoToJSON, } from './VpsCpuInfo.js';
|
|
19
19
|
import { VpsNetworkRateFromJSON, VpsNetworkRateToJSON, } from './VpsNetworkRate.js';
|
|
20
|
+
import { VpsIpAddressDetailFromJSON, VpsIpAddressDetailToJSON, } from './VpsIpAddressDetail.js';
|
|
20
21
|
import { VpsMemoryInfoFromJSON, VpsMemoryInfoToJSON, } from './VpsMemoryInfo.js';
|
|
21
22
|
import { VpsVmInfoFromJSON, VpsVmInfoToJSON, } from './VpsVmInfo.js';
|
|
22
23
|
/**
|
|
@@ -55,7 +56,7 @@ export function VpsDetailsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
56
|
'memory': VpsMemoryInfoFromJSON(json['memory']),
|
|
56
57
|
'disk': VpsDiskInfoFromJSON(json['disk']),
|
|
57
58
|
'networkRate': json['network_rate'] == null ? undefined : VpsNetworkRateFromJSON(json['network_rate']),
|
|
58
|
-
'ipAddresses': json['ip_addresses'],
|
|
59
|
+
'ipAddresses': (json['ip_addresses'].map(VpsIpAddressDetailFromJSON)),
|
|
59
60
|
'credentials': VpsCredentialsFromJSON(json['credentials']),
|
|
60
61
|
'availableFeatures': VpsAvailableFeaturesFromJSON(json['available_features']),
|
|
61
62
|
'osInfo': json['os_info'] == null ? undefined : VpsOsInfoFromJSON(json['os_info']),
|
|
@@ -75,7 +76,7 @@ export function VpsDetailsResponseToJSONTyped(value, ignoreDiscriminator = false
|
|
|
75
76
|
'memory': VpsMemoryInfoToJSON(value['memory']),
|
|
76
77
|
'disk': VpsDiskInfoToJSON(value['disk']),
|
|
77
78
|
'network_rate': VpsNetworkRateToJSON(value['networkRate']),
|
|
78
|
-
'ip_addresses': value['ipAddresses'],
|
|
79
|
+
'ip_addresses': (value['ipAddresses'].map(VpsIpAddressDetailToJSON)),
|
|
79
80
|
'credentials': VpsCredentialsToJSON(value['credentials']),
|
|
80
81
|
'available_features': VpsAvailableFeaturesToJSON(value['availableFeatures']),
|
|
81
82
|
'os_info': VpsOsInfoToJSON(value['osInfo']),
|