hostinger-api-sdk 1.40.2 → 1.41.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 +7281 -3521
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +10985 -8179
- package/dist/api.js +1981 -108
- 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 +10985 -8179
- package/dist/esm/api.js +1977 -117
- 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/EcommerceDiscountsApi.md +129 -0
- package/docs/EcommerceListDiscountsV1200Response.md +22 -0
- package/docs/EcommerceListProductVariantsV1200Response.md +22 -0
- package/docs/EcommerceListProductsV1200Response.md +22 -0
- package/docs/EcommerceListStoreOrdersV1200Response.md +22 -0
- package/docs/EcommerceOrdersApi.md +269 -0
- package/docs/EcommercePaymentsApi.md +114 -0
- package/docs/EcommerceProductVariantsApi.md +251 -0
- package/docs/EcommerceProductsApi.md +188 -0
- package/docs/EcommerceSalesChannelsApi.md +5 -5
- package/docs/EcommerceV1DiscountCreateDiscountRequest.md +38 -0
- package/docs/EcommerceV1DiscountDiscountResource.md +40 -0
- package/docs/EcommerceV1DiscountDiscountResponseResource.md +20 -0
- package/docs/EcommerceV1OrderCancelRequest.md +20 -0
- package/docs/EcommerceV1OrderFulfillRequest.md +26 -0
- package/docs/EcommerceV1OrderFulfillRequestItemsInner.md +22 -0
- package/docs/EcommerceV1OrderOrderDetailResource.md +60 -0
- package/docs/EcommerceV1OrderOrderDetailResourceBillingAddress.md +37 -0
- package/docs/EcommerceV1OrderOrderDetailResourceFulfillmentsInner.md +28 -0
- package/docs/EcommerceV1OrderOrderDetailResourceFulfillmentsInnerTrackingInner.md +22 -0
- package/docs/EcommerceV1OrderOrderDetailResourceItemsInner.md +36 -0
- package/docs/EcommerceV1OrderOrderDetailResourceShippingAddress.md +37 -0
- package/docs/EcommerceV1OrderOrderDetailResponseResource.md +20 -0
- package/docs/EcommerceV1OrderOrderResource.md +38 -0
- package/docs/EcommerceV1OrderOrderResponseResource.md +20 -0
- package/docs/EcommerceV1PaymentProviderPaymentProviderConnectLinkResource.md +20 -0
- package/docs/EcommerceV1PaymentProviderPaymentProviderConnectLinkResourceData.md +22 -0
- package/docs/EcommerceV1PaymentProviderPaymentProviderListResource.md +20 -0
- package/docs/EcommerceV1PaymentProviderPaymentProviderListResourceData.md +22 -0
- package/docs/EcommerceV1PaymentProviderPaymentProviderListResourceDataAvailableInner.md +28 -0
- package/docs/EcommerceV1PaymentProviderPaymentProviderListResourceDataConnectedInner.md +30 -0
- package/docs/EcommerceV1ProductProductDeletedResource.md +20 -0
- package/docs/EcommerceV1ProductProductDeletedResourceData.md +24 -0
- package/docs/EcommerceV1ProductProductResource.md +36 -0
- package/docs/EcommerceV1ProductProductResourceMediaInner.md +24 -0
- package/docs/EcommerceV1ProductProductResourcePriceRange.md +25 -0
- package/docs/EcommerceV1ProductProductResourceVariantsInner.md +32 -0
- package/docs/EcommerceV1ProductProductResourceVariantsInnerOptionsInner.md +22 -0
- package/docs/EcommerceV1ProductProductResourceVariantsInnerPricesInner.md +24 -0
- package/docs/EcommerceV1ProductProductResponseResource.md +20 -0
- package/docs/EcommerceV1ProductUpdateRequest.md +24 -0
- package/docs/EcommerceV1SalesChannelStoreRequest.md +3 -3
- package/docs/EcommerceV1VariantBatchUpdateVariantsRequest.md +20 -0
- package/docs/EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner.md +28 -0
- package/docs/EcommerceV1VariantBatchUpdateVariantsRequestVariantsInnerPricesInner.md +24 -0
- package/docs/EcommerceV1VariantCreateVariantRequest.md +30 -0
- package/docs/EcommerceV1VariantCreateVariantRequestOptionsInner.md +22 -0
- package/docs/EcommerceV1VariantCreateVariantRequestPricesInner.md +24 -0
- package/docs/EcommerceV1VariantVariantDeletedResource.md +20 -0
- package/docs/EcommerceV1VariantVariantDeletedResourceData.md +22 -0
- package/docs/EcommerceV1VariantVariantListResponseResource.md +20 -0
- package/docs/EcommerceV1VariantVariantResource.md +32 -0
- package/docs/EcommerceV1VariantVariantResourceOptionsInner.md +22 -0
- package/docs/EcommerceV1VariantVariantResponseResource.md +20 -0
- package/docs/HostingNodeJSApi.md +2 -2
- package/docs/ReachProfilesApi.md +108 -0
- package/docs/ReachSegmentsApi.md +113 -0
- package/docs/ReachV1ContactsSegmentsProfileFilterContactsRequest.md +33 -0
- package/docs/ReachV1ContactsSegmentsProfileFilterContactsRequestConditionsInner.md +24 -0
- package/docs/ReachV1ContactsSegmentsSegmentFilterAttributeResource.md +27 -0
- package/docs/ReachV1ContactsSegmentsSegmentFilterAttributesResource.md +23 -0
- package/docs/ReachV1ContactsSegmentsSegmentFilterOperatorResource.md +29 -0
- package/docs/ReachV1ContactsStoreRequest.md +2 -0
- package/docs/ReachV1ProfilesDomainsSendingDomainResource.md +29 -0
- package/docs/ReachV1ProfilesDomainsSuspendedSenderEmailResource.md +25 -0
- package/docs/ReachV1ProfilesFeaturesPlanFeatureResource.md +25 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/ReachSegmentsApi.md
CHANGED
|
@@ -13,7 +13,9 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
13
13
|
|[**listProfileSegmentContactsV1**](#listprofilesegmentcontactsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts | List profile segment contacts|
|
|
14
14
|
|[**listProfileSegmentsV1**](#listprofilesegmentsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/segmentation/segments | List profile segments|
|
|
15
15
|
|[**listSegmentContactsV1**](#listsegmentcontactsv1) | **GET** /api/reach/v1/segmentation/segments/{segmentUuid}/contacts | List segment contacts|
|
|
16
|
+
|[**listSegmentFilterAttributesV1**](#listsegmentfilterattributesv1) | **GET** /api/reach/v1/profiles/{profileUuid}/segmentation/filters/attributes | List segment filter attributes|
|
|
16
17
|
|[**listSegmentsV1**](#listsegmentsv1) | **GET** /api/reach/v1/segmentation/segments | List segments|
|
|
18
|
+
|[**previewContactsMatchingConditionsV1**](#previewcontactsmatchingconditionsv1) | **POST** /api/reach/v1/profiles/{profileUuid}/segmentation/filters/contacts | Preview contacts matching conditions|
|
|
17
19
|
|[**updateAProfileSegmentV1**](#updateaprofilesegmentv1) | **PUT** /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid} | Update a profile segment|
|
|
18
20
|
|
|
19
21
|
# **countProfileSegmentContactsV1**
|
|
@@ -524,6 +526,59 @@ const { status, data } = await apiInstance.listSegmentContactsV1(
|
|
|
524
526
|
- **Accept**: application/json
|
|
525
527
|
|
|
526
528
|
|
|
529
|
+
### HTTP response details
|
|
530
|
+
| Status code | Description | Response headers |
|
|
531
|
+
|-------------|-------------|------------------|
|
|
532
|
+
|**200** | Success response | - |
|
|
533
|
+
|**401** | Unauthenticated response | - |
|
|
534
|
+
|**500** | Error response | - |
|
|
535
|
+
|
|
536
|
+
[[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)
|
|
537
|
+
|
|
538
|
+
# **listSegmentFilterAttributesV1**
|
|
539
|
+
> ReachV1ContactsSegmentsSegmentFilterAttributesResource listSegmentFilterAttributesV1()
|
|
540
|
+
|
|
541
|
+
List every attribute a segment condition can filter on, with the operators each attribute accepts, the value format they expect and, where the value is constrained, the allowed values. The list is profile specific: it includes the profile\'s custom contact fields, its tags and its 20 most recently published campaigns, so the valid attributes cannot be hardcoded. Read it before creating or updating a segment to discover the valid `attribute`, `operator` and `value` combinations.
|
|
542
|
+
|
|
543
|
+
### Example
|
|
544
|
+
|
|
545
|
+
```typescript
|
|
546
|
+
import {
|
|
547
|
+
ReachSegmentsApi,
|
|
548
|
+
Configuration
|
|
549
|
+
} from 'hostinger-api-sdk';
|
|
550
|
+
|
|
551
|
+
const configuration = new Configuration();
|
|
552
|
+
const apiInstance = new ReachSegmentsApi(configuration);
|
|
553
|
+
|
|
554
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
555
|
+
|
|
556
|
+
const { status, data } = await apiInstance.listSegmentFilterAttributesV1(
|
|
557
|
+
profileUuid
|
|
558
|
+
);
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
### Parameters
|
|
562
|
+
|
|
563
|
+
|Name | Type | Description | Notes|
|
|
564
|
+
|------------- | ------------- | ------------- | -------------|
|
|
565
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
### Return type
|
|
569
|
+
|
|
570
|
+
**ReachV1ContactsSegmentsSegmentFilterAttributesResource**
|
|
571
|
+
|
|
572
|
+
### Authorization
|
|
573
|
+
|
|
574
|
+
[apiToken](../README.md#apiToken)
|
|
575
|
+
|
|
576
|
+
### HTTP request headers
|
|
577
|
+
|
|
578
|
+
- **Content-Type**: Not defined
|
|
579
|
+
- **Accept**: application/json
|
|
580
|
+
|
|
581
|
+
|
|
527
582
|
### HTTP response details
|
|
528
583
|
| Status code | Description | Response headers |
|
|
529
584
|
|-------------|-------------|------------------|
|
|
@@ -579,6 +634,64 @@ This endpoint does not have any parameters.
|
|
|
579
634
|
|
|
580
635
|
[[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)
|
|
581
636
|
|
|
637
|
+
# **previewContactsMatchingConditionsV1**
|
|
638
|
+
> ReachListProfileContactsV1200Response previewContactsMatchingConditionsV1(reachV1ContactsSegmentsProfileFilterContactsRequest)
|
|
639
|
+
|
|
640
|
+
Preview the contacts matching a set of conditions without saving a segment. The body is the same set of conditions accepted when creating or updating a segment, so this is how to check who a filter reaches, and how many, before persisting it. Nothing is stored and no contact is modified. Call the segment filter attributes endpoint first to discover the valid `attribute`, `operator` and `value` combinations.
|
|
641
|
+
|
|
642
|
+
### Example
|
|
643
|
+
|
|
644
|
+
```typescript
|
|
645
|
+
import {
|
|
646
|
+
ReachSegmentsApi,
|
|
647
|
+
Configuration,
|
|
648
|
+
ReachV1ContactsSegmentsProfileFilterContactsRequest
|
|
649
|
+
} from 'hostinger-api-sdk';
|
|
650
|
+
|
|
651
|
+
const configuration = new Configuration();
|
|
652
|
+
const apiInstance = new ReachSegmentsApi(configuration);
|
|
653
|
+
|
|
654
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
655
|
+
let reachV1ContactsSegmentsProfileFilterContactsRequest: ReachV1ContactsSegmentsProfileFilterContactsRequest; //
|
|
656
|
+
|
|
657
|
+
const { status, data } = await apiInstance.previewContactsMatchingConditionsV1(
|
|
658
|
+
profileUuid,
|
|
659
|
+
reachV1ContactsSegmentsProfileFilterContactsRequest
|
|
660
|
+
);
|
|
661
|
+
```
|
|
662
|
+
|
|
663
|
+
### Parameters
|
|
664
|
+
|
|
665
|
+
|Name | Type | Description | Notes|
|
|
666
|
+
|------------- | ------------- | ------------- | -------------|
|
|
667
|
+
| **reachV1ContactsSegmentsProfileFilterContactsRequest** | **ReachV1ContactsSegmentsProfileFilterContactsRequest**| | |
|
|
668
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
### Return type
|
|
672
|
+
|
|
673
|
+
**ReachListProfileContactsV1200Response**
|
|
674
|
+
|
|
675
|
+
### Authorization
|
|
676
|
+
|
|
677
|
+
[apiToken](../README.md#apiToken)
|
|
678
|
+
|
|
679
|
+
### HTTP request headers
|
|
680
|
+
|
|
681
|
+
- **Content-Type**: application/json
|
|
682
|
+
- **Accept**: application/json
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
### HTTP response details
|
|
686
|
+
| Status code | Description | Response headers |
|
|
687
|
+
|-------------|-------------|------------------|
|
|
688
|
+
|**200** | Success response | - |
|
|
689
|
+
|**422** | Validation error response | - |
|
|
690
|
+
|**401** | Unauthenticated response | - |
|
|
691
|
+
|**500** | Error response | - |
|
|
692
|
+
|
|
693
|
+
[[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)
|
|
694
|
+
|
|
582
695
|
# **updateAProfileSegmentV1**
|
|
583
696
|
> ReachV1ContactsSegmentsSegmentResource updateAProfileSegmentV1(reachV1ContactsSegmentsProfileUpdateRequest)
|
|
584
697
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# ReachV1ContactsSegmentsProfileFilterContactsRequest
|
|
2
|
+
|
|
3
|
+
Conditions to preview, in the same shape accepted when creating a segment
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**conditions** | [**Array<ReachV1ContactsSegmentsProfileFilterContactsRequestConditionsInner>**](ReachV1ContactsSegmentsProfileFilterContactsRequestConditionsInner.md) | Conditions a contact must satisfy to appear in the preview | [default to undefined]
|
|
10
|
+
**logic** | **string** | How to combine multiple conditions | [default to undefined]
|
|
11
|
+
**page** | **number** | Page number | [optional] [default to undefined]
|
|
12
|
+
**per_page** | **number** | Number of items per page | [optional] [default to undefined]
|
|
13
|
+
**search** | **string** | Narrow the preview to contacts whose email matches | [optional] [default to undefined]
|
|
14
|
+
**sort_by** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**sort_direction** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { ReachV1ContactsSegmentsProfileFilterContactsRequest } from 'hostinger-api-sdk';
|
|
21
|
+
|
|
22
|
+
const instance: ReachV1ContactsSegmentsProfileFilterContactsRequest = {
|
|
23
|
+
conditions,
|
|
24
|
+
logic,
|
|
25
|
+
page,
|
|
26
|
+
per_page,
|
|
27
|
+
search,
|
|
28
|
+
sort_by,
|
|
29
|
+
sort_direction,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[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
|
+
# ReachV1ContactsSegmentsProfileFilterContactsRequestConditionsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**attribute** | **string** | A built-in contact attribute, or `cf:{fieldUuid}` to target a custom contact field. Which operators are accepted depends on the attribute, so read the segment filter attributes endpoint for the authoritative list. | [default to undefined]
|
|
9
|
+
**operator** | **string** | | [default to undefined]
|
|
10
|
+
**value** | **string** | Always a string, including for numeric and date comparisons | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ReachV1ContactsSegmentsProfileFilterContactsRequestConditionsInner } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ReachV1ContactsSegmentsProfileFilterContactsRequestConditionsInner = {
|
|
18
|
+
attribute,
|
|
19
|
+
operator,
|
|
20
|
+
value,
|
|
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,27 @@
|
|
|
1
|
+
# ReachV1ContactsSegmentsSegmentFilterAttributeResource
|
|
2
|
+
|
|
3
|
+
One attribute a segment condition can filter on.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | Value to send as the condition `attribute`. | [optional] [default to undefined]
|
|
10
|
+
**type** | **string** | Where the attribute is sourced from. | [optional] [default to undefined]
|
|
11
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**operators** | [**{ [key: string]: ReachV1ContactsSegmentsSegmentFilterOperatorResource; }**](ReachV1ContactsSegmentsSegmentFilterOperatorResource.md) | Operators this attribute accepts, keyed by operator name. | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ReachV1ContactsSegmentsSegmentFilterAttributeResource } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ReachV1ContactsSegmentsSegmentFilterAttributeResource = {
|
|
20
|
+
name,
|
|
21
|
+
type,
|
|
22
|
+
description,
|
|
23
|
+
operators,
|
|
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,23 @@
|
|
|
1
|
+
# ReachV1ContactsSegmentsSegmentFilterAttributesResource
|
|
2
|
+
|
|
3
|
+
The vocabulary a segment condition can be built from, for one profile.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**attributes** | [**{ [key: string]: ReachV1ContactsSegmentsSegmentFilterAttributeResource; }**](ReachV1ContactsSegmentsSegmentFilterAttributeResource.md) | Every attribute a condition can filter on, keyed by the value to send as `attribute`. Custom contact fields are keyed `cf:{fieldUuid}`, tags and campaigns by their uuid, so the keys are not a fixed list and should be read from this response rather than hardcoded. | [optional] [default to undefined]
|
|
10
|
+
**logic_operators** | **{ [key: string]: string; }** | The values accepted by `logic` when a segment combines several conditions. | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ReachV1ContactsSegmentsSegmentFilterAttributesResource } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ReachV1ContactsSegmentsSegmentFilterAttributesResource = {
|
|
18
|
+
attributes,
|
|
19
|
+
logic_operators,
|
|
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,29 @@
|
|
|
1
|
+
# ReachV1ContactsSegmentsSegmentFilterOperatorResource
|
|
2
|
+
|
|
3
|
+
One operator an attribute accepts, and the value format it expects.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**operator** | **string** | Value to send as the condition `operator`. | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**input_type** | **string** | Shape of the value this operator expects, useful for rendering an input. | [optional] [default to undefined]
|
|
12
|
+
**example** | **string** | An example value in the format this operator expects. | [optional] [default to undefined]
|
|
13
|
+
**enum_values** | **{ [key: string]: string; }** | The values this operator accepts, keyed by the value to send. Only present when the operator is constrained to a fixed set, such as a tag or campaign picker. | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ReachV1ContactsSegmentsSegmentFilterOperatorResource } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: ReachV1ContactsSegmentsSegmentFilterOperatorResource = {
|
|
21
|
+
operator,
|
|
22
|
+
description,
|
|
23
|
+
input_type,
|
|
24
|
+
example,
|
|
25
|
+
enum_values,
|
|
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)
|
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**surname** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**phone** | **string** | Phone number in E.164 format (leading \"+\" then 7-15 digits) | [optional] [default to undefined]
|
|
12
12
|
**note** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**tag_uuids** | **Array<string>** | Existing tags to attach to the created contact | [optional] [default to undefined]
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -22,6 +23,7 @@ const instance: ReachV1ContactsStoreRequest = {
|
|
|
22
23
|
surname,
|
|
23
24
|
phone,
|
|
24
25
|
note,
|
|
26
|
+
tag_uuids,
|
|
25
27
|
};
|
|
26
28
|
```
|
|
27
29
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# ReachV1ProfilesDomainsSendingDomainResource
|
|
2
|
+
|
|
3
|
+
The sending domain connected to the profile. When no domain is connected every field is `null` and `suspended_sender_emails` is empty, so the shape stays the same whether or not the profile is set up for sending.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**domain** | **string** | Domain campaigns are sent from. It may be a subdomain of the domain that was connected, so it will not always match the website domain. | [optional] [default to undefined]
|
|
10
|
+
**status** | **string** | Campaigns can only be sent while the domain is `active`. | [optional] [default to undefined]
|
|
11
|
+
**created_at** | **string** | When the domain was connected to the profile. | [optional] [default to undefined]
|
|
12
|
+
**updated_at** | **string** | When the domain or its verification state last changed. | [optional] [default to undefined]
|
|
13
|
+
**suspended_sender_emails** | [**Array<ReachV1ProfilesDomainsSuspendedSenderEmailResource>**](ReachV1ProfilesDomainsSuspendedSenderEmailResource.md) | Sender addresses on this domain that have been suspended. A campaign using one of them will not go out even while the domain itself is active. | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ReachV1ProfilesDomainsSendingDomainResource } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: ReachV1ProfilesDomainsSendingDomainResource = {
|
|
21
|
+
domain,
|
|
22
|
+
status,
|
|
23
|
+
created_at,
|
|
24
|
+
updated_at,
|
|
25
|
+
suspended_sender_emails,
|
|
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)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# ReachV1ProfilesDomainsSuspendedSenderEmailResource
|
|
2
|
+
|
|
3
|
+
A sender address on the connected domain that is no longer allowed to send.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**email_local_part** | **string** | The part of the address before the @. | [optional] [default to undefined]
|
|
11
|
+
**suspended_at** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ReachV1ProfilesDomainsSuspendedSenderEmailResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ReachV1ProfilesDomainsSuspendedSenderEmailResource = {
|
|
19
|
+
email,
|
|
20
|
+
email_local_part,
|
|
21
|
+
suspended_at,
|
|
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
|
+
# ReachV1ProfilesFeaturesPlanFeatureResource
|
|
2
|
+
|
|
3
|
+
Whether a single plan feature can be used on the profile.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**feature** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**is_available** | **boolean** | Whether the feature can be used right now. | [optional] [default to undefined]
|
|
11
|
+
**is_locked** | **boolean** | Whether the feature sits outside the base plan and needs an upgrade. | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ReachV1ProfilesFeaturesPlanFeatureResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ReachV1ProfilesFeaturesPlanFeatureResource = {
|
|
19
|
+
feature,
|
|
20
|
+
is_available,
|
|
21
|
+
is_locked,
|
|
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)
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.43.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
|