@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
|
@@ -19,12 +19,11 @@ exports.EditDnsRecordRequestContentFromJSONTyped = EditDnsRecordRequestContentFr
|
|
|
19
19
|
exports.EditDnsRecordRequestContentToJSON = EditDnsRecordRequestContentToJSON;
|
|
20
20
|
exports.EditDnsRecordRequestContentToJSONTyped = EditDnsRecordRequestContentToJSONTyped;
|
|
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 EditDnsRecordRequestContent interface.
|
|
24
25
|
*/
|
|
25
26
|
function instanceOfEditDnsRecordRequestContent(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 EditDnsRecordRequestContentFromJSONTyped(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 EditDnsRecordRequestContentToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
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,45 @@
|
|
|
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 { PasswordEncryptionInfo } from './PasswordEncryptionInfo.js';
|
|
13
|
+
/**
|
|
14
|
+
* Response data for get-encrypted-password
|
|
15
|
+
* @export
|
|
16
|
+
* @interface EncryptedPasswordResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface EncryptedPasswordResponseData {
|
|
19
|
+
/**
|
|
20
|
+
* Username for VPS access (plaintext)
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof EncryptedPasswordResponseData
|
|
23
|
+
*/
|
|
24
|
+
username: string;
|
|
25
|
+
/**
|
|
26
|
+
* Base64-encoded ciphertext of the VPS password. Produced with RSA-OAEP (SHA-256) and the request public_key. Decode from base64, then decrypt with the matching private key via openssl pkeyutl -decrypt -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:sha256 -pkeyopt rsa_mgf1_md:sha256.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof EncryptedPasswordResponseData
|
|
29
|
+
*/
|
|
30
|
+
password: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {PasswordEncryptionInfo}
|
|
34
|
+
* @memberof EncryptedPasswordResponseData
|
|
35
|
+
*/
|
|
36
|
+
encryption: PasswordEncryptionInfo;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the EncryptedPasswordResponseData interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfEncryptedPasswordResponseData(value: object): value is EncryptedPasswordResponseData;
|
|
42
|
+
export declare function EncryptedPasswordResponseDataFromJSON(json: any): EncryptedPasswordResponseData;
|
|
43
|
+
export declare function EncryptedPasswordResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): EncryptedPasswordResponseData;
|
|
44
|
+
export declare function EncryptedPasswordResponseDataToJSON(json: any): EncryptedPasswordResponseData;
|
|
45
|
+
export declare function EncryptedPasswordResponseDataToJSONTyped(value?: EncryptedPasswordResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfEncryptedPasswordResponseData = instanceOfEncryptedPasswordResponseData;
|
|
17
|
+
exports.EncryptedPasswordResponseDataFromJSON = EncryptedPasswordResponseDataFromJSON;
|
|
18
|
+
exports.EncryptedPasswordResponseDataFromJSONTyped = EncryptedPasswordResponseDataFromJSONTyped;
|
|
19
|
+
exports.EncryptedPasswordResponseDataToJSON = EncryptedPasswordResponseDataToJSON;
|
|
20
|
+
exports.EncryptedPasswordResponseDataToJSONTyped = EncryptedPasswordResponseDataToJSONTyped;
|
|
21
|
+
const PasswordEncryptionInfo_js_1 = require("./PasswordEncryptionInfo.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the EncryptedPasswordResponseData interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfEncryptedPasswordResponseData(value) {
|
|
26
|
+
if (!('username' in value) || value['username'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('encryption' in value) || value['encryption'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function EncryptedPasswordResponseDataFromJSON(json) {
|
|
35
|
+
return EncryptedPasswordResponseDataFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function EncryptedPasswordResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'username': json['username'],
|
|
43
|
+
'password': json['password'],
|
|
44
|
+
'encryption': (0, PasswordEncryptionInfo_js_1.PasswordEncryptionInfoFromJSON)(json['encryption']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function EncryptedPasswordResponseDataToJSON(json) {
|
|
48
|
+
return EncryptedPasswordResponseDataToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function EncryptedPasswordResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'username': value['username'],
|
|
56
|
+
'password': value['password'],
|
|
57
|
+
'encryption': (0, PasswordEncryptionInfo_js_1.PasswordEncryptionInfoToJSON)(value['encryption']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DnsBackend } from './DnsBackend.js';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -21,6 +22,12 @@ export interface GetDnsZoneDetailsRequestContent {
|
|
|
21
22
|
* @memberof GetDnsZoneDetailsRequestContent
|
|
22
23
|
*/
|
|
23
24
|
domainId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {DnsBackend}
|
|
28
|
+
* @memberof GetDnsZoneDetailsRequestContent
|
|
29
|
+
*/
|
|
30
|
+
backend?: DnsBackend;
|
|
24
31
|
}
|
|
25
32
|
/**
|
|
26
33
|
* Check if a given object implements the GetDnsZoneDetailsRequestContent interface.
|
|
@@ -18,6 +18,7 @@ exports.GetDnsZoneDetailsRequestContentFromJSON = GetDnsZoneDetailsRequestConten
|
|
|
18
18
|
exports.GetDnsZoneDetailsRequestContentFromJSONTyped = GetDnsZoneDetailsRequestContentFromJSONTyped;
|
|
19
19
|
exports.GetDnsZoneDetailsRequestContentToJSON = GetDnsZoneDetailsRequestContentToJSON;
|
|
20
20
|
exports.GetDnsZoneDetailsRequestContentToJSONTyped = GetDnsZoneDetailsRequestContentToJSONTyped;
|
|
21
|
+
const DnsBackend_js_1 = require("./DnsBackend.js");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the GetDnsZoneDetailsRequestContent interface.
|
|
23
24
|
*/
|
|
@@ -35,6 +36,7 @@ function GetDnsZoneDetailsRequestContentFromJSONTyped(json, ignoreDiscriminator)
|
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
37
38
|
'domainId': json['domain_id'],
|
|
39
|
+
'backend': json['backend'] == null ? undefined : (0, DnsBackend_js_1.DnsBackendFromJSON)(json['backend']),
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
function GetDnsZoneDetailsRequestContentToJSON(json) {
|
|
@@ -46,5 +48,6 @@ function GetDnsZoneDetailsRequestContentToJSONTyped(value, ignoreDiscriminator =
|
|
|
46
48
|
}
|
|
47
49
|
return {
|
|
48
50
|
'domain_id': value['domainId'],
|
|
51
|
+
'backend': (0, DnsBackend_js_1.DnsBackendToJSON)(value['backend']),
|
|
49
52
|
};
|
|
50
53
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetEncryptedPasswordRequestContent
|
|
16
|
+
*/
|
|
17
|
+
export interface GetEncryptedPasswordRequestContent {
|
|
18
|
+
/**
|
|
19
|
+
* Service ID - must be sent as a string
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetEncryptedPasswordRequestContent
|
|
22
|
+
*/
|
|
23
|
+
serviceId: string;
|
|
24
|
+
/**
|
|
25
|
+
* PEM-encoded RSA public key only (never the private key). Accepts SPKI (`-----BEGIN PUBLIC KEY-----`) or PKCS#1 (`-----BEGIN RSA PUBLIC KEY-----`). Must be exactly 4096-bit. Used with RSA-OAEP and SHA-256 to encrypt the password.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetEncryptedPasswordRequestContent
|
|
28
|
+
*/
|
|
29
|
+
publicKey: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GetEncryptedPasswordRequestContent interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfGetEncryptedPasswordRequestContent(value: object): value is GetEncryptedPasswordRequestContent;
|
|
35
|
+
export declare function GetEncryptedPasswordRequestContentFromJSON(json: any): GetEncryptedPasswordRequestContent;
|
|
36
|
+
export declare function GetEncryptedPasswordRequestContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEncryptedPasswordRequestContent;
|
|
37
|
+
export declare function GetEncryptedPasswordRequestContentToJSON(json: any): GetEncryptedPasswordRequestContent;
|
|
38
|
+
export declare function GetEncryptedPasswordRequestContentToJSONTyped(value?: GetEncryptedPasswordRequestContent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfGetEncryptedPasswordRequestContent = instanceOfGetEncryptedPasswordRequestContent;
|
|
17
|
+
exports.GetEncryptedPasswordRequestContentFromJSON = GetEncryptedPasswordRequestContentFromJSON;
|
|
18
|
+
exports.GetEncryptedPasswordRequestContentFromJSONTyped = GetEncryptedPasswordRequestContentFromJSONTyped;
|
|
19
|
+
exports.GetEncryptedPasswordRequestContentToJSON = GetEncryptedPasswordRequestContentToJSON;
|
|
20
|
+
exports.GetEncryptedPasswordRequestContentToJSONTyped = GetEncryptedPasswordRequestContentToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetEncryptedPasswordRequestContent interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetEncryptedPasswordRequestContent(value) {
|
|
25
|
+
if (!('serviceId' in value) || value['serviceId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('publicKey' in value) || value['publicKey'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function GetEncryptedPasswordRequestContentFromJSON(json) {
|
|
32
|
+
return GetEncryptedPasswordRequestContentFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function GetEncryptedPasswordRequestContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'serviceId': json['service_id'],
|
|
40
|
+
'publicKey': json['public_key'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function GetEncryptedPasswordRequestContentToJSON(json) {
|
|
44
|
+
return GetEncryptedPasswordRequestContentToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function GetEncryptedPasswordRequestContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'service_id': value['serviceId'],
|
|
52
|
+
'public_key': value['publicKey'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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 { OperationStatus } from './OperationStatus.js';
|
|
13
|
+
import type { EncryptedPasswordResponseData } from './EncryptedPasswordResponseData.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetEncryptedPasswordResponseContent
|
|
18
|
+
*/
|
|
19
|
+
export interface GetEncryptedPasswordResponseContent {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {OperationStatus}
|
|
23
|
+
* @memberof GetEncryptedPasswordResponseContent
|
|
24
|
+
*/
|
|
25
|
+
status: OperationStatus;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {EncryptedPasswordResponseData}
|
|
29
|
+
* @memberof GetEncryptedPasswordResponseContent
|
|
30
|
+
*/
|
|
31
|
+
data: EncryptedPasswordResponseData;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the GetEncryptedPasswordResponseContent interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfGetEncryptedPasswordResponseContent(value: object): value is GetEncryptedPasswordResponseContent;
|
|
37
|
+
export declare function GetEncryptedPasswordResponseContentFromJSON(json: any): GetEncryptedPasswordResponseContent;
|
|
38
|
+
export declare function GetEncryptedPasswordResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEncryptedPasswordResponseContent;
|
|
39
|
+
export declare function GetEncryptedPasswordResponseContentToJSON(json: any): GetEncryptedPasswordResponseContent;
|
|
40
|
+
export declare function GetEncryptedPasswordResponseContentToJSONTyped(value?: GetEncryptedPasswordResponseContent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfGetEncryptedPasswordResponseContent = instanceOfGetEncryptedPasswordResponseContent;
|
|
17
|
+
exports.GetEncryptedPasswordResponseContentFromJSON = GetEncryptedPasswordResponseContentFromJSON;
|
|
18
|
+
exports.GetEncryptedPasswordResponseContentFromJSONTyped = GetEncryptedPasswordResponseContentFromJSONTyped;
|
|
19
|
+
exports.GetEncryptedPasswordResponseContentToJSON = GetEncryptedPasswordResponseContentToJSON;
|
|
20
|
+
exports.GetEncryptedPasswordResponseContentToJSONTyped = GetEncryptedPasswordResponseContentToJSONTyped;
|
|
21
|
+
const OperationStatus_js_1 = require("./OperationStatus.js");
|
|
22
|
+
const EncryptedPasswordResponseData_js_1 = require("./EncryptedPasswordResponseData.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetEncryptedPasswordResponseContent interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetEncryptedPasswordResponseContent(value) {
|
|
27
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GetEncryptedPasswordResponseContentFromJSON(json) {
|
|
34
|
+
return GetEncryptedPasswordResponseContentFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GetEncryptedPasswordResponseContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'status': (0, OperationStatus_js_1.OperationStatusFromJSON)(json['status']),
|
|
42
|
+
'data': (0, EncryptedPasswordResponseData_js_1.EncryptedPasswordResponseDataFromJSON)(json['data']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function GetEncryptedPasswordResponseContentToJSON(json) {
|
|
46
|
+
return GetEncryptedPasswordResponseContentToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function GetEncryptedPasswordResponseContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'status': (0, OperationStatus_js_1.OperationStatusToJSON)(value['status']),
|
|
54
|
+
'data': (0, EncryptedPasswordResponseData_js_1.EncryptedPasswordResponseDataToJSON)(value['data']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetInvoiceDetailsRequestContent
|
|
16
|
+
*/
|
|
17
|
+
export interface GetInvoiceDetailsRequestContent {
|
|
18
|
+
/**
|
|
19
|
+
* Invoice ID - must be sent as a string
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetInvoiceDetailsRequestContent
|
|
22
|
+
*/
|
|
23
|
+
invoiceId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetInvoiceDetailsRequestContent interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetInvoiceDetailsRequestContent(value: object): value is GetInvoiceDetailsRequestContent;
|
|
29
|
+
export declare function GetInvoiceDetailsRequestContentFromJSON(json: any): GetInvoiceDetailsRequestContent;
|
|
30
|
+
export declare function GetInvoiceDetailsRequestContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetInvoiceDetailsRequestContent;
|
|
31
|
+
export declare function GetInvoiceDetailsRequestContentToJSON(json: any): GetInvoiceDetailsRequestContent;
|
|
32
|
+
export declare function GetInvoiceDetailsRequestContentToJSONTyped(value?: GetInvoiceDetailsRequestContent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfGetInvoiceDetailsRequestContent = instanceOfGetInvoiceDetailsRequestContent;
|
|
17
|
+
exports.GetInvoiceDetailsRequestContentFromJSON = GetInvoiceDetailsRequestContentFromJSON;
|
|
18
|
+
exports.GetInvoiceDetailsRequestContentFromJSONTyped = GetInvoiceDetailsRequestContentFromJSONTyped;
|
|
19
|
+
exports.GetInvoiceDetailsRequestContentToJSON = GetInvoiceDetailsRequestContentToJSON;
|
|
20
|
+
exports.GetInvoiceDetailsRequestContentToJSONTyped = GetInvoiceDetailsRequestContentToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetInvoiceDetailsRequestContent interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetInvoiceDetailsRequestContent(value) {
|
|
25
|
+
if (!('invoiceId' in value) || value['invoiceId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function GetInvoiceDetailsRequestContentFromJSON(json) {
|
|
30
|
+
return GetInvoiceDetailsRequestContentFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function GetInvoiceDetailsRequestContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'invoiceId': json['invoice_id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function GetInvoiceDetailsRequestContentToJSON(json) {
|
|
41
|
+
return GetInvoiceDetailsRequestContentToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GetInvoiceDetailsRequestContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'invoice_id': value['invoiceId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 { OperationStatus } from './OperationStatus.js';
|
|
13
|
+
import type { GetInvoiceDetailsResponseData } from './GetInvoiceDetailsResponseData.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetInvoiceDetailsResponseContent
|
|
18
|
+
*/
|
|
19
|
+
export interface GetInvoiceDetailsResponseContent {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {OperationStatus}
|
|
23
|
+
* @memberof GetInvoiceDetailsResponseContent
|
|
24
|
+
*/
|
|
25
|
+
status: OperationStatus;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {GetInvoiceDetailsResponseData}
|
|
29
|
+
* @memberof GetInvoiceDetailsResponseContent
|
|
30
|
+
*/
|
|
31
|
+
data: GetInvoiceDetailsResponseData;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the GetInvoiceDetailsResponseContent interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfGetInvoiceDetailsResponseContent(value: object): value is GetInvoiceDetailsResponseContent;
|
|
37
|
+
export declare function GetInvoiceDetailsResponseContentFromJSON(json: any): GetInvoiceDetailsResponseContent;
|
|
38
|
+
export declare function GetInvoiceDetailsResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetInvoiceDetailsResponseContent;
|
|
39
|
+
export declare function GetInvoiceDetailsResponseContentToJSON(json: any): GetInvoiceDetailsResponseContent;
|
|
40
|
+
export declare function GetInvoiceDetailsResponseContentToJSONTyped(value?: GetInvoiceDetailsResponseContent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfGetInvoiceDetailsResponseContent = instanceOfGetInvoiceDetailsResponseContent;
|
|
17
|
+
exports.GetInvoiceDetailsResponseContentFromJSON = GetInvoiceDetailsResponseContentFromJSON;
|
|
18
|
+
exports.GetInvoiceDetailsResponseContentFromJSONTyped = GetInvoiceDetailsResponseContentFromJSONTyped;
|
|
19
|
+
exports.GetInvoiceDetailsResponseContentToJSON = GetInvoiceDetailsResponseContentToJSON;
|
|
20
|
+
exports.GetInvoiceDetailsResponseContentToJSONTyped = GetInvoiceDetailsResponseContentToJSONTyped;
|
|
21
|
+
const OperationStatus_js_1 = require("./OperationStatus.js");
|
|
22
|
+
const GetInvoiceDetailsResponseData_js_1 = require("./GetInvoiceDetailsResponseData.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetInvoiceDetailsResponseContent interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetInvoiceDetailsResponseContent(value) {
|
|
27
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GetInvoiceDetailsResponseContentFromJSON(json) {
|
|
34
|
+
return GetInvoiceDetailsResponseContentFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GetInvoiceDetailsResponseContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'status': (0, OperationStatus_js_1.OperationStatusFromJSON)(json['status']),
|
|
42
|
+
'data': (0, GetInvoiceDetailsResponseData_js_1.GetInvoiceDetailsResponseDataFromJSON)(json['data']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function GetInvoiceDetailsResponseContentToJSON(json) {
|
|
46
|
+
return GetInvoiceDetailsResponseContentToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function GetInvoiceDetailsResponseContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'status': (0, OperationStatus_js_1.OperationStatusToJSON)(value['status']),
|
|
54
|
+
'data': (0, GetInvoiceDetailsResponseData_js_1.GetInvoiceDetailsResponseDataToJSON)(value['data']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -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 { InvoiceDetails } from './InvoiceDetails.js';
|
|
13
|
+
import type { SelcomMetadata } from './SelcomMetadata.js';
|
|
14
|
+
/**
|
|
15
|
+
* Top-level data payload for the GetInvoiceDetails response
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetInvoiceDetailsResponseData
|
|
18
|
+
*/
|
|
19
|
+
export interface GetInvoiceDetailsResponseData {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {InvoiceDetails}
|
|
23
|
+
* @memberof GetInvoiceDetailsResponseData
|
|
24
|
+
*/
|
|
25
|
+
invoice: InvoiceDetails;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {SelcomMetadata}
|
|
29
|
+
* @memberof GetInvoiceDetailsResponseData
|
|
30
|
+
*/
|
|
31
|
+
selcomMetadata?: SelcomMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the GetInvoiceDetailsResponseData interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfGetInvoiceDetailsResponseData(value: object): value is GetInvoiceDetailsResponseData;
|
|
37
|
+
export declare function GetInvoiceDetailsResponseDataFromJSON(json: any): GetInvoiceDetailsResponseData;
|
|
38
|
+
export declare function GetInvoiceDetailsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetInvoiceDetailsResponseData;
|
|
39
|
+
export declare function GetInvoiceDetailsResponseDataToJSON(json: any): GetInvoiceDetailsResponseData;
|
|
40
|
+
export declare function GetInvoiceDetailsResponseDataToJSONTyped(value?: GetInvoiceDetailsResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfGetInvoiceDetailsResponseData = instanceOfGetInvoiceDetailsResponseData;
|
|
17
|
+
exports.GetInvoiceDetailsResponseDataFromJSON = GetInvoiceDetailsResponseDataFromJSON;
|
|
18
|
+
exports.GetInvoiceDetailsResponseDataFromJSONTyped = GetInvoiceDetailsResponseDataFromJSONTyped;
|
|
19
|
+
exports.GetInvoiceDetailsResponseDataToJSON = GetInvoiceDetailsResponseDataToJSON;
|
|
20
|
+
exports.GetInvoiceDetailsResponseDataToJSONTyped = GetInvoiceDetailsResponseDataToJSONTyped;
|
|
21
|
+
const InvoiceDetails_js_1 = require("./InvoiceDetails.js");
|
|
22
|
+
const SelcomMetadata_js_1 = require("./SelcomMetadata.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetInvoiceDetailsResponseData interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetInvoiceDetailsResponseData(value) {
|
|
27
|
+
if (!('invoice' in value) || value['invoice'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function GetInvoiceDetailsResponseDataFromJSON(json) {
|
|
32
|
+
return GetInvoiceDetailsResponseDataFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function GetInvoiceDetailsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'invoice': (0, InvoiceDetails_js_1.InvoiceDetailsFromJSON)(json['invoice']),
|
|
40
|
+
'selcomMetadata': json['selcom_metadata'] == null ? undefined : (0, SelcomMetadata_js_1.SelcomMetadataFromJSON)(json['selcom_metadata']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function GetInvoiceDetailsResponseDataToJSON(json) {
|
|
44
|
+
return GetInvoiceDetailsResponseDataToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function GetInvoiceDetailsResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'invoice': (0, InvoiceDetails_js_1.InvoiceDetailsToJSON)(value['invoice']),
|
|
52
|
+
'selcom_metadata': (0, SelcomMetadata_js_1.SelcomMetadataToJSON)(value['selcomMetadata']),
|
|
53
|
+
};
|
|
54
|
+
}
|