hostinger-api-sdk 1.24.0 → 1.26.0
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/README.md +2 -2
- package/api.ts +1052 -85
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +578 -32
- package/dist/api.js +753 -9
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +578 -32
- package/dist/esm/api.js +741 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/DomainsMoveApi.md +438 -0
- package/docs/DomainsPortfolioApi.md +56 -0
- package/docs/DomainsTransferApi.md +56 -0
- package/docs/DomainsV1MoveIncomingUpdateRequest.md +20 -0
- package/docs/DomainsV1MoveIncomingUpdateRequestDomainContacts.md +27 -0
- package/docs/DomainsV1MoveMoveResource.md +26 -0
- package/docs/DomainsV1MoveOutgoingStoreRequest.md +20 -0
- package/docs/DomainsV1PortfolioClaimRequest.md +24 -0
- package/docs/{DomainsV1PortfolioPurchaseRequestDomainContacts.md → DomainsV1PortfolioClaimRequestDomainContacts.md} +3 -3
- package/docs/DomainsV1PortfolioClaimResource.md +24 -0
- package/docs/DomainsV1PortfolioPurchaseRequest.md +1 -1
- package/docs/DomainsV1TransferClaimRequest.md +26 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DomainsV1MoveIncomingUpdateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain_contacts** | [**DomainsV1MoveIncomingUpdateRequestDomainContacts**](DomainsV1MoveIncomingUpdateRequestDomainContacts.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DomainsV1MoveIncomingUpdateRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DomainsV1MoveIncomingUpdateRequest = {
|
|
16
|
+
domain_contacts,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# DomainsV1MoveIncomingUpdateRequestDomainContacts
|
|
2
|
+
|
|
3
|
+
WHOIS profiles of the accepting account. Only the contact types required by the TLD are applied, but all four IDs must be provided.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**owner_id** | **number** | Owner contact WHOIS record ID | [default to undefined]
|
|
10
|
+
**admin_id** | **number** | Administrative contact WHOIS record ID | [default to undefined]
|
|
11
|
+
**billing_id** | **number** | Billing contact WHOIS record ID | [default to undefined]
|
|
12
|
+
**tech_id** | **number** | Technical contact WHOIS record ID | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { DomainsV1MoveIncomingUpdateRequestDomainContacts } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: DomainsV1MoveIncomingUpdateRequestDomainContacts = {
|
|
20
|
+
owner_id,
|
|
21
|
+
admin_id,
|
|
22
|
+
billing_id,
|
|
23
|
+
tech_id,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# DomainsV1MoveMoveResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | Status of the move | [optional] [default to undefined]
|
|
10
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { DomainsV1MoveMoveResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: DomainsV1MoveMoveResource = {
|
|
19
|
+
domain,
|
|
20
|
+
status,
|
|
21
|
+
created_at,
|
|
22
|
+
updated_at,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DomainsV1MoveOutgoingStoreRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**new_customer_email** | **string** | Email address of the Hostinger account receiving the domain | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DomainsV1MoveOutgoingStoreRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DomainsV1MoveOutgoingStoreRequest = {
|
|
16
|
+
new_customer_email,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# DomainsV1PortfolioClaimRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name | [default to undefined]
|
|
9
|
+
**domain_contacts** | [**DomainsV1PortfolioClaimRequestDomainContacts**](DomainsV1PortfolioClaimRequestDomainContacts.md) | | [optional] [default to undefined]
|
|
10
|
+
**additional_details** | **object** | Additional registration data, possible values depends on TLD | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DomainsV1PortfolioClaimRequest } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: DomainsV1PortfolioClaimRequest = {
|
|
18
|
+
domain,
|
|
19
|
+
domain_contacts,
|
|
20
|
+
additional_details,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# DomainsV1PortfolioClaimRequestDomainContacts
|
|
2
2
|
|
|
3
3
|
Domain contact information
|
|
4
4
|
|
|
@@ -14,9 +14,9 @@ Name | Type | Description | Notes
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
import {
|
|
17
|
+
import { DomainsV1PortfolioClaimRequestDomainContacts } from 'hostinger-api-sdk';
|
|
18
18
|
|
|
19
|
-
const instance:
|
|
19
|
+
const instance: DomainsV1PortfolioClaimRequestDomainContacts = {
|
|
20
20
|
owner_id,
|
|
21
21
|
admin_id,
|
|
22
22
|
billing_id,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# DomainsV1PortfolioClaimResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | Domain status | [optional] [default to undefined]
|
|
10
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DomainsV1PortfolioClaimResource } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: DomainsV1PortfolioClaimResource = {
|
|
18
|
+
domain,
|
|
19
|
+
status,
|
|
20
|
+
created_at,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**domain** | **string** | Domain name | [default to undefined]
|
|
9
9
|
**item_id** | **string** | Catalog price item ID | [default to undefined]
|
|
10
10
|
**payment_method_id** | **number** | Payment method ID, default will be used if not provided | [optional] [default to undefined]
|
|
11
|
-
**domain_contacts** | [**
|
|
11
|
+
**domain_contacts** | [**DomainsV1PortfolioClaimRequestDomainContacts**](DomainsV1PortfolioClaimRequestDomainContacts.md) | | [optional] [default to undefined]
|
|
12
12
|
**additional_details** | **object** | Additional registration data, possible values depends on TLD | [optional] [default to undefined]
|
|
13
13
|
**coupons** | **Array<any>** | Discount coupon codes | [optional] [default to undefined]
|
|
14
14
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# DomainsV1TransferClaimRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name | [default to undefined]
|
|
9
|
+
**auth_code** | **string** | Authorization code from the current registrar | [default to undefined]
|
|
10
|
+
**domain_contacts** | [**DomainsV1PortfolioClaimRequestDomainContacts**](DomainsV1PortfolioClaimRequestDomainContacts.md) | | [optional] [default to undefined]
|
|
11
|
+
**should_keep_ns** | **boolean** | Keep the existing nameservers of the domain | [optional] [default to true]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { DomainsV1TransferClaimRequest } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: DomainsV1TransferClaimRequest = {
|
|
19
|
+
domain,
|
|
20
|
+
auth_code,
|
|
21
|
+
domain_contacts,
|
|
22
|
+
should_keep_ns,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.27.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|