hostinger-api-sdk 1.32.0 → 1.33.1
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 +675 -3
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +480 -2
- package/dist/api.js +395 -11
- 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 +480 -2
- package/dist/esm/api.js +382 -3
- 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/ReachFormsApi.md +182 -0
- package/docs/ReachListFormsV1200Response.md +22 -0
- package/docs/ReachProfilesApi.md +54 -0
- package/docs/ReachV1FormsFormDetailsResource.md +34 -0
- package/docs/ReachV1FormsFormResource.md +32 -0
- package/docs/ReachV1FormsFormTagResource.md +25 -0
- package/docs/ReachV1FormsFormTemplateDetailsResource.md +25 -0
- package/docs/ReachV1FormsFormTemplateResource.md +23 -0
- package/docs/ReachV1ProfilesPlanLimitUsageResource.md +25 -0
- package/docs/ReachV1ProfilesPlanLimitsResource.md +29 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# ReachFormsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**deleteFormV1**](#deleteformv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/forms/{formUuid} | Delete form|
|
|
8
|
+
|[**getFormDetailsV1**](#getformdetailsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/forms/{formUuid} | Get form details|
|
|
9
|
+
|[**listFormsV1**](#listformsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/forms | List forms|
|
|
10
|
+
|
|
11
|
+
# **deleteFormV1**
|
|
12
|
+
> CommonSuccessEmptyResource deleteFormV1()
|
|
13
|
+
|
|
14
|
+
Permanently delete a form together with its template. A form that has already captured submissions cannot be deleted, so that the contacts it collected are never silently discarded - pause the form instead to stop it collecting new ones. Views alone do not block deletion.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
ReachFormsApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from 'hostinger-api-sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new ReachFormsApi(configuration);
|
|
26
|
+
|
|
27
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
28
|
+
let formUuid: string; //Form uuid parameter (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.deleteFormV1(
|
|
31
|
+
profileUuid,
|
|
32
|
+
formUuid
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
41
|
+
| **formUuid** | [**string**] | Form uuid parameter | defaults to undefined|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**CommonSuccessEmptyResource**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[apiToken](../README.md#apiToken)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: Not defined
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | Success empty response | - |
|
|
62
|
+
|**401** | Unauthenticated response | - |
|
|
63
|
+
|**409** | Error response | - |
|
|
64
|
+
|**500** | Error response | - |
|
|
65
|
+
|
|
66
|
+
[[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)
|
|
67
|
+
|
|
68
|
+
# **getFormDetailsV1**
|
|
69
|
+
> ReachV1FormsFormDetailsResource getFormDetailsV1()
|
|
70
|
+
|
|
71
|
+
Get a single form with the URL of its hosted template and the tags it applies to the contacts it captures. There is no ready-made embed snippet in the response - either serve the template HTML yourself or build your own embed around the form uuid.
|
|
72
|
+
|
|
73
|
+
### Example
|
|
74
|
+
|
|
75
|
+
```typescript
|
|
76
|
+
import {
|
|
77
|
+
ReachFormsApi,
|
|
78
|
+
Configuration
|
|
79
|
+
} from 'hostinger-api-sdk';
|
|
80
|
+
|
|
81
|
+
const configuration = new Configuration();
|
|
82
|
+
const apiInstance = new ReachFormsApi(configuration);
|
|
83
|
+
|
|
84
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
85
|
+
let formUuid: string; //Form uuid parameter (default to undefined)
|
|
86
|
+
|
|
87
|
+
const { status, data } = await apiInstance.getFormDetailsV1(
|
|
88
|
+
profileUuid,
|
|
89
|
+
formUuid
|
|
90
|
+
);
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Parameters
|
|
94
|
+
|
|
95
|
+
|Name | Type | Description | Notes|
|
|
96
|
+
|------------- | ------------- | ------------- | -------------|
|
|
97
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
98
|
+
| **formUuid** | [**string**] | Form uuid parameter | defaults to undefined|
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Return type
|
|
102
|
+
|
|
103
|
+
**ReachV1FormsFormDetailsResource**
|
|
104
|
+
|
|
105
|
+
### Authorization
|
|
106
|
+
|
|
107
|
+
[apiToken](../README.md#apiToken)
|
|
108
|
+
|
|
109
|
+
### HTTP request headers
|
|
110
|
+
|
|
111
|
+
- **Content-Type**: Not defined
|
|
112
|
+
- **Accept**: application/json
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### HTTP response details
|
|
116
|
+
| Status code | Description | Response headers |
|
|
117
|
+
|-------------|-------------|------------------|
|
|
118
|
+
|**200** | Success response | - |
|
|
119
|
+
|**401** | Unauthenticated response | - |
|
|
120
|
+
|**500** | Error response | - |
|
|
121
|
+
|
|
122
|
+
[[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)
|
|
123
|
+
|
|
124
|
+
# **listFormsV1**
|
|
125
|
+
> ReachListFormsV1200Response listFormsV1()
|
|
126
|
+
|
|
127
|
+
Get a paginated list of the signup forms in a profile. Each form carries a reference to the template that renders it. Get the form details for a directly usable template URL and for the tags the form puts on the contacts it captures.
|
|
128
|
+
|
|
129
|
+
### Example
|
|
130
|
+
|
|
131
|
+
```typescript
|
|
132
|
+
import {
|
|
133
|
+
ReachFormsApi,
|
|
134
|
+
Configuration
|
|
135
|
+
} from 'hostinger-api-sdk';
|
|
136
|
+
|
|
137
|
+
const configuration = new Configuration();
|
|
138
|
+
const apiInstance = new ReachFormsApi(configuration);
|
|
139
|
+
|
|
140
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
141
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
142
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
143
|
+
|
|
144
|
+
const { status, data } = await apiInstance.listFormsV1(
|
|
145
|
+
profileUuid,
|
|
146
|
+
page,
|
|
147
|
+
perPage
|
|
148
|
+
);
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Parameters
|
|
152
|
+
|
|
153
|
+
|Name | Type | Description | Notes|
|
|
154
|
+
|------------- | ------------- | ------------- | -------------|
|
|
155
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
156
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
157
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Return type
|
|
161
|
+
|
|
162
|
+
**ReachListFormsV1200Response**
|
|
163
|
+
|
|
164
|
+
### Authorization
|
|
165
|
+
|
|
166
|
+
[apiToken](../README.md#apiToken)
|
|
167
|
+
|
|
168
|
+
### HTTP request headers
|
|
169
|
+
|
|
170
|
+
- **Content-Type**: Not defined
|
|
171
|
+
- **Accept**: application/json
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### HTTP response details
|
|
175
|
+
| Status code | Description | Response headers |
|
|
176
|
+
|-------------|-------------|------------------|
|
|
177
|
+
|**200** | Success response | - |
|
|
178
|
+
|**401** | Unauthenticated response | - |
|
|
179
|
+
|**500** | Error response | - |
|
|
180
|
+
|
|
181
|
+
[[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)
|
|
182
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ReachListFormsV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<ReachV1FormsFormResource>**](ReachV1FormsFormResource.md) | Array of [`Reach.V1.Forms.FormResource`](#model/reachv1formsformresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ReachListFormsV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ReachListFormsV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
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)
|
package/docs/ReachProfilesApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getProfileDomainDNSStatusV1**](#getprofiledomaindnsstatusv1) | **GET** /api/reach/v1/profiles/{profileUuid}/domains/dns-status | Get profile domain DNS status|
|
|
8
|
+
|[**getRemainingPlanLimitsV1**](#getremainingplanlimitsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/limits | Get remaining plan limits|
|
|
8
9
|
|[**listProfilesV1**](#listprofilesv1) | **GET** /api/reach/v1/profiles | List Profiles|
|
|
9
10
|
|
|
10
11
|
# **getProfileDomainDNSStatusV1**
|
|
@@ -51,6 +52,59 @@ const { status, data } = await apiInstance.getProfileDomainDNSStatusV1(
|
|
|
51
52
|
- **Accept**: application/json
|
|
52
53
|
|
|
53
54
|
|
|
55
|
+
### HTTP response details
|
|
56
|
+
| Status code | Description | Response headers |
|
|
57
|
+
|-------------|-------------|------------------|
|
|
58
|
+
|**200** | Success response | - |
|
|
59
|
+
|**401** | Unauthenticated response | - |
|
|
60
|
+
|**500** | Error response | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
64
|
+
# **getRemainingPlanLimitsV1**
|
|
65
|
+
> ReachV1ProfilesPlanLimitsResource getRemainingPlanLimitsV1()
|
|
66
|
+
|
|
67
|
+
Get how much of the plan is left for the current period. Two things to keep in mind before you build alerting on this. The period is a calendar month rather than a billing anniversary, so the counters reset on the 1st no matter when the subscription started. And usage is tracked per order, so every profile on the same order shares one pool and reports the same numbers here. Only the current period is available, past usage is not kept.
|
|
68
|
+
|
|
69
|
+
### Example
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
import {
|
|
73
|
+
ReachProfilesApi,
|
|
74
|
+
Configuration
|
|
75
|
+
} from 'hostinger-api-sdk';
|
|
76
|
+
|
|
77
|
+
const configuration = new Configuration();
|
|
78
|
+
const apiInstance = new ReachProfilesApi(configuration);
|
|
79
|
+
|
|
80
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
81
|
+
|
|
82
|
+
const { status, data } = await apiInstance.getRemainingPlanLimitsV1(
|
|
83
|
+
profileUuid
|
|
84
|
+
);
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Parameters
|
|
88
|
+
|
|
89
|
+
|Name | Type | Description | Notes|
|
|
90
|
+
|------------- | ------------- | ------------- | -------------|
|
|
91
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Return type
|
|
95
|
+
|
|
96
|
+
**ReachV1ProfilesPlanLimitsResource**
|
|
97
|
+
|
|
98
|
+
### Authorization
|
|
99
|
+
|
|
100
|
+
[apiToken](../README.md#apiToken)
|
|
101
|
+
|
|
102
|
+
### HTTP request headers
|
|
103
|
+
|
|
104
|
+
- **Content-Type**: Not defined
|
|
105
|
+
- **Accept**: application/json
|
|
106
|
+
|
|
107
|
+
|
|
54
108
|
### HTTP response details
|
|
55
109
|
| Status code | Description | Response headers |
|
|
56
110
|
|-------------|-------------|------------------|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# ReachV1FormsFormDetailsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uuid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**status** | **string** | A `paused` form keeps its template online but stops accepting submissions. | [optional] [default to undefined]
|
|
11
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**template** | [**ReachV1FormsFormTemplateDetailsResource**](ReachV1FormsFormTemplateDetailsResource.md) | | [optional] [default to undefined]
|
|
13
|
+
**tags** | [**Array<ReachV1FormsFormTagResource>**](ReachV1FormsFormTagResource.md) | Tags applied to every contact this form captures. | [optional] [default to undefined]
|
|
14
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { ReachV1FormsFormDetailsResource } from 'hostinger-api-sdk';
|
|
21
|
+
|
|
22
|
+
const instance: ReachV1FormsFormDetailsResource = {
|
|
23
|
+
uuid,
|
|
24
|
+
name,
|
|
25
|
+
status,
|
|
26
|
+
type,
|
|
27
|
+
template,
|
|
28
|
+
tags,
|
|
29
|
+
created_at,
|
|
30
|
+
updated_at,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[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,32 @@
|
|
|
1
|
+
# ReachV1FormsFormResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uuid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**status** | **string** | A `paused` form keeps its template online but stops accepting submissions. | [optional] [default to undefined]
|
|
11
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**template** | [**ReachV1FormsFormTemplateResource**](ReachV1FormsFormTemplateResource.md) | | [optional] [default to undefined]
|
|
13
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { ReachV1FormsFormResource } from 'hostinger-api-sdk';
|
|
20
|
+
|
|
21
|
+
const instance: ReachV1FormsFormResource = {
|
|
22
|
+
uuid,
|
|
23
|
+
name,
|
|
24
|
+
status,
|
|
25
|
+
type,
|
|
26
|
+
template,
|
|
27
|
+
created_at,
|
|
28
|
+
updated_at,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[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,25 @@
|
|
|
1
|
+
# ReachV1FormsFormTagResource
|
|
2
|
+
|
|
3
|
+
A tag applied to every contact this form captures.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uuid** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**value** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**type** | **string** | How the tag came about. `custom` covers the tags you create yourself, `import` the ones added by contact imports, and `form` and `system` the ones Reach creates on its own. Every form gets a `form:{name}` tag when it is created. | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ReachV1FormsFormTagResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ReachV1FormsFormTagResource = {
|
|
19
|
+
uuid,
|
|
20
|
+
value,
|
|
21
|
+
type,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[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,25 @@
|
|
|
1
|
+
# ReachV1FormsFormTemplateDetailsResource
|
|
2
|
+
|
|
3
|
+
The rendered form template. There is no ready-made embed snippet - either serve the HTML behind `url` or build your own embed around the form uuid. All fields stay null until the template has been generated.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uuid** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**path** | **string** | Storage path of the template HTML, relative to the storage directory of this profile. `url` already includes that prefix, so prefer it unless you resolve storage paths yourself. | [optional] [default to undefined]
|
|
11
|
+
**url** | **string** | Publicly reachable URL of the template HTML. | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ReachV1FormsFormTemplateDetailsResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ReachV1FormsFormTemplateDetailsResource = {
|
|
19
|
+
uuid,
|
|
20
|
+
path,
|
|
21
|
+
url,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[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,23 @@
|
|
|
1
|
+
# ReachV1FormsFormTemplateResource
|
|
2
|
+
|
|
3
|
+
The rendered form template. Both fields stay null until the template has been generated.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uuid** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**path** | **string** | Storage path of the template HTML, relative to the storage directory of this profile. Get the form details to receive a directly usable URL instead. | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ReachV1FormsFormTemplateResource } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ReachV1FormsFormTemplateResource = {
|
|
18
|
+
uuid,
|
|
19
|
+
path,
|
|
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,25 @@
|
|
|
1
|
+
# ReachV1ProfilesPlanLimitUsageResource
|
|
2
|
+
|
|
3
|
+
Allowance, consumption and headroom of a single plan limit for the current period.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**limit** | **number** | The allowance for the current period. | [optional] [default to undefined]
|
|
10
|
+
**used** | **number** | How much of the allowance has been consumed so far. | [optional] [default to undefined]
|
|
11
|
+
**remaining** | **number** | Headroom left. Floors at 0, so it never reports a negative overage. | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ReachV1ProfilesPlanLimitUsageResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ReachV1ProfilesPlanLimitUsageResource = {
|
|
19
|
+
limit,
|
|
20
|
+
used,
|
|
21
|
+
remaining,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[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,29 @@
|
|
|
1
|
+
# ReachV1ProfilesPlanLimitsResource
|
|
2
|
+
|
|
3
|
+
What the plan allows and what is left of it for the current period. `emails` counts every email sent. `recipients` counts the distinct contacts emailed - it is not the size of the contact list, a contact emailed three times counts once and a contact never emailed does not count at all. `ai_credits` counts the AI generations used, and its limit includes any extra credits bought on top of the plan.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**emails** | [**ReachV1ProfilesPlanLimitUsageResource**](ReachV1ProfilesPlanLimitUsageResource.md) | | [optional] [default to undefined]
|
|
10
|
+
**recipients** | [**ReachV1ProfilesPlanLimitUsageResource**](ReachV1ProfilesPlanLimitUsageResource.md) | | [optional] [default to undefined]
|
|
11
|
+
**ai_credits** | [**ReachV1ProfilesPlanLimitUsageResource**](ReachV1ProfilesPlanLimitUsageResource.md) | | [optional] [default to undefined]
|
|
12
|
+
**period_start** | **string** | Start of the current period. Periods are calendar months rather than billing anniversaries, so the counters reset at midnight UTC on the 1st no matter when the subscription started. | [optional] [default to undefined]
|
|
13
|
+
**period_end** | **string** | End of the current period, that is the last moment of the calendar month. | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ReachV1ProfilesPlanLimitsResource } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: ReachV1ProfilesPlanLimitsResource = {
|
|
21
|
+
emails,
|
|
22
|
+
recipients,
|
|
23
|
+
ai_credits,
|
|
24
|
+
period_start,
|
|
25
|
+
period_end,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[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.35.1
|
|
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
|