hostinger-api-sdk 3.3.0 → 3.3.2

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/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.3.0
6
+ * API Version: 3.3.2
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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.3.0
4
+ * API Version: 3.3.2
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.3.0
6
+ * API Version: 3.3.2
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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.3.0
4
+ * API Version: 3.3.2
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.3.0
6
+ * API Version: 3.3.2
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
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.3.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.3.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.3.0
4
+ * API Version: 3.3.2
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.3.0
6
+ * API Version: 3.3.2
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
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.3.0
4
+ * API Version: 3.3.2
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 3.3.0
7
+ * API Version: 3.3.2
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -0,0 +1,66 @@
1
+ # DNSPropagationApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**checkDNSRecordPropagationV1**](#checkdnsrecordpropagationv1) | **GET** /api/dns/v1/propagation/{domain}/{type} | Check DNS record propagation|
8
+
9
+ # **checkDNSRecordPropagationV1**
10
+ > DNSV1PropagationPropagationReportResource checkDNSRecordPropagationV1()
11
+
12
+ Check whether a DNS record of a domain or host name has propagated to public resolvers around the world. `authoritative` shows what the domain\'s authoritative nameservers serve now. It is the best signal of the current record value. Its TTL tells how long resolvers may keep serving the old value. `vantage_points` shows what public resolvers at different locations return. `is_propagated` is true when the location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated. When every responding authoritative nameserver returns no records, `is_propagated` is true. Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing. A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ DNSPropagationApi,
19
+ Configuration
20
+ } from '@hostinger/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new DNSPropagationApi(configuration);
24
+
25
+ let domain: string; //Domain or host name to check, either a domain or a subdomain (default to undefined)
26
+ let type: string; //DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.checkDNSRecordPropagationV1(
29
+ domain,
30
+ type
31
+ );
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ |Name | Type | Description | Notes|
37
+ |------------- | ------------- | ------------- | -------------|
38
+ | **domain** | [**string**] | Domain or host name to check, either a domain or a subdomain | defaults to undefined|
39
+ | **type** | [**string**] | DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA | defaults to undefined|
40
+
41
+
42
+ ### Return type
43
+
44
+ **DNSV1PropagationPropagationReportResource**
45
+
46
+ ### Authorization
47
+
48
+ [apiToken](../README.md#apiToken)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: Not defined
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**200** | Success response | - |
60
+ |**401** | Unauthenticated response | - |
61
+ |**404** | Error response | - |
62
+ |**422** | Validation error response | - |
63
+ |**500** | Error response | - |
64
+
65
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
66
+
@@ -0,0 +1,23 @@
1
+ # DNSV1PropagationAuthoritativeAnswerResource
2
+
3
+ What the authoritative nameservers serve now: the best signal of the current record value
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **zone** | **string** | DNS zone that holds the record | [optional] [default to undefined]
10
+ **nameservers** | [**Array<DNSV1PropagationNameserverAnswerResource>**](DNSV1PropagationNameserverAnswerResource.md) | Answer of each authoritative nameserver of the zone | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DNSV1PropagationAuthoritativeAnswerResource } from '@hostinger/sdk';
16
+
17
+ const instance: DNSV1PropagationAuthoritativeAnswerResource = {
18
+ zone,
19
+ nameservers,
20
+ };
21
+ ```
22
+
23
+ [[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
+ # DNSV1PropagationNameserverAnswerResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **nameserver** | **string** | Authoritative nameserver | [optional] [default to undefined]
9
+ **records** | **Array<string>** | Records the nameserver serves; null or empty when it serves none | [optional] [default to undefined]
10
+ **ttl** | **number** | TTL in seconds: how long resolvers may keep serving a previously cached value | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DNSV1PropagationNameserverAnswerResource } from '@hostinger/sdk';
16
+
17
+ const instance: DNSV1PropagationNameserverAnswerResource = {
18
+ nameserver,
19
+ records,
20
+ ttl,
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)
@@ -0,0 +1,22 @@
1
+ # DNSV1PropagationPropagationReportResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **authoritative** | [**DNSV1PropagationAuthoritativeAnswerResource**](DNSV1PropagationAuthoritativeAnswerResource.md) | | [optional] [default to undefined]
9
+ **vantage_points** | [**Array<DNSV1PropagationVantagePointResource>**](DNSV1PropagationVantagePointResource.md) | Answers of public resolvers at locations around the world | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { DNSV1PropagationPropagationReportResource } from '@hostinger/sdk';
15
+
16
+ const instance: DNSV1PropagationPropagationReportResource = {
17
+ authoritative,
18
+ vantage_points,
19
+ };
20
+ ```
21
+
22
+ [[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,35 @@
1
+ # DNSV1PropagationVantagePointResource
2
+
3
+ Answer of a public resolver at one location
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **country** | **string** | Country code of the resolver | [optional] [default to undefined]
10
+ **provider** | **string** | Resolver provider | [optional] [default to undefined]
11
+ **ip** | **string** | IP address of the resolver | [optional] [default to undefined]
12
+ **location** | **string** | Location of the resolver | [optional] [default to undefined]
13
+ **latitude** | **number** | | [optional] [default to undefined]
14
+ **longitude** | **number** | | [optional] [default to undefined]
15
+ **records** | **Array<string>** | Records the resolver returned; null when it returned none or could not be queried | [optional] [default to undefined]
16
+ **is_propagated** | **boolean** | Whether this location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated when the location also returns CDN addresses. True when every responding authoritative nameserver returns no records. Null when the location could not be queried or no authoritative answer could be compared. | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { DNSV1PropagationVantagePointResource } from '@hostinger/sdk';
22
+
23
+ const instance: DNSV1PropagationVantagePointResource = {
24
+ country,
25
+ provider,
26
+ ip,
27
+ location,
28
+ latitude,
29
+ longitude,
30
+ records,
31
+ is_propagated,
32
+ };
33
+ ```
34
+
35
+ [[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: 3.3.0
6
+ * API Version: 3.3.2
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {