hostinger-api-sdk 1.31.0 → 1.33.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 +1440 -52
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1045 -15
- package/dist/api.js +710 -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 +1045 -15
- package/dist/esm/api.js +693 -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/ReachCampaignsApi.md +190 -0
- package/docs/ReachFormsApi.md +182 -0
- package/docs/ReachListCampaignsV1200Response.md +22 -0
- package/docs/ReachListFormsV1200Response.md +22 -0
- package/docs/ReachProfilesApi.md +54 -0
- package/docs/ReachV1CampaignsCampaignDeliveryResource.md +25 -0
- package/docs/ReachV1CampaignsCampaignDetailsResource.md +52 -0
- package/docs/ReachV1CampaignsCampaignResource.md +44 -0
- package/docs/ReachV1CampaignsCampaignStatisticsResource.md +49 -0
- package/docs/ReachV1CampaignsCampaignSummaryStatisticsResource.md +27 -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,44 @@
|
|
|
1
|
+
# ReachV1CampaignsCampaignResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uuid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**subject** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**sender_name** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**sender_email** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**template_uuid** | **string** | The email template this campaign uses. The template title is not exposed. | [optional] [default to undefined]
|
|
14
|
+
**status** | **string** | A fully sent campaign is `publish`. There is no `sent`, `paused` or `archived` status. | [optional] [default to undefined]
|
|
15
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**sent_at** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**scheduled_at** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**statistics** | [**ReachV1CampaignsCampaignSummaryStatisticsResource**](ReachV1CampaignsCampaignSummaryStatisticsResource.md) | | [optional] [default to undefined]
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { ReachV1CampaignsCampaignResource } from 'hostinger-api-sdk';
|
|
26
|
+
|
|
27
|
+
const instance: ReachV1CampaignsCampaignResource = {
|
|
28
|
+
uuid,
|
|
29
|
+
title,
|
|
30
|
+
subject,
|
|
31
|
+
sender_name,
|
|
32
|
+
sender_email,
|
|
33
|
+
template_uuid,
|
|
34
|
+
status,
|
|
35
|
+
type,
|
|
36
|
+
created_at,
|
|
37
|
+
updated_at,
|
|
38
|
+
sent_at,
|
|
39
|
+
scheduled_at,
|
|
40
|
+
statistics,
|
|
41
|
+
};
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[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,49 @@
|
|
|
1
|
+
# ReachV1CampaignsCampaignStatisticsResource
|
|
2
|
+
|
|
3
|
+
Campaign performance. Every count is unique contacts rather than raw events, so a contact who opens the same email five times is counted once.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**total_sent** | **number** | Emails sent for this campaign, and the denominator of every rate below. | [optional] [default to undefined]
|
|
10
|
+
**estimated_total_recipients** | **number** | Recipients this campaign was estimated to reach when sending started. Null for campaigns that have not started sending. | [optional] [default to undefined]
|
|
11
|
+
**processed_count** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**delivered_count** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**dropped_count** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**bounced_count** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**soft_bounced_count** | **number** | | [optional] [default to undefined]
|
|
16
|
+
**opened_count** | **number** | Contacts who opened this campaign. | [optional] [default to undefined]
|
|
17
|
+
**clicked_count** | **number** | Contacts who clicked a link. Only clicks from contacts who also registered an open count. | [optional] [default to undefined]
|
|
18
|
+
**unsubscribed_count** | **number** | Contacts who unsubscribed through this campaign. | [optional] [default to undefined]
|
|
19
|
+
**open_rate** | **number** | Percentage of sent emails that were opened. | [optional] [default to undefined]
|
|
20
|
+
**click_rate** | **number** | Percentage of sent emails that got a click. | [optional] [default to undefined]
|
|
21
|
+
**click_to_open_rate** | **number** | Percentage of the contacts who opened that went on to click. | [optional] [default to undefined]
|
|
22
|
+
**unsubscribe_rate** | **number** | Percentage of sent emails that led to an unsubscribe. | [optional] [default to undefined]
|
|
23
|
+
**has_bounced_contacts** | **boolean** | | [optional] [default to undefined]
|
|
24
|
+
|
|
25
|
+
## Example
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { ReachV1CampaignsCampaignStatisticsResource } from 'hostinger-api-sdk';
|
|
29
|
+
|
|
30
|
+
const instance: ReachV1CampaignsCampaignStatisticsResource = {
|
|
31
|
+
total_sent,
|
|
32
|
+
estimated_total_recipients,
|
|
33
|
+
processed_count,
|
|
34
|
+
delivered_count,
|
|
35
|
+
dropped_count,
|
|
36
|
+
bounced_count,
|
|
37
|
+
soft_bounced_count,
|
|
38
|
+
opened_count,
|
|
39
|
+
clicked_count,
|
|
40
|
+
unsubscribed_count,
|
|
41
|
+
open_rate,
|
|
42
|
+
click_rate,
|
|
43
|
+
click_to_open_rate,
|
|
44
|
+
unsubscribe_rate,
|
|
45
|
+
has_bounced_contacts,
|
|
46
|
+
};
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
[[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
|
+
# ReachV1CampaignsCampaignSummaryStatisticsResource
|
|
2
|
+
|
|
3
|
+
Headline engagement rates. The statistics endpoint carries the full breakdown.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**total_sent** | **number** | Emails sent for this campaign, and the denominator of the rates below. | [optional] [default to undefined]
|
|
10
|
+
**open_rate** | **number** | Percentage of sent emails that were opened. | [optional] [default to undefined]
|
|
11
|
+
**click_rate** | **number** | Percentage of sent emails that got a click. | [optional] [default to undefined]
|
|
12
|
+
**click_to_open_rate** | **number** | Percentage of the contacts who opened that went on to click. | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ReachV1CampaignsCampaignSummaryStatisticsResource } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ReachV1CampaignsCampaignSummaryStatisticsResource = {
|
|
20
|
+
total_sent,
|
|
21
|
+
open_rate,
|
|
22
|
+
click_rate,
|
|
23
|
+
click_to_open_rate,
|
|
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,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.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
|