hostinger-api-sdk 1.26.0 → 1.28.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.
Files changed (48) hide show
  1. package/README.md +2 -2
  2. package/api.ts +2789 -531
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1522 -78
  7. package/dist/api.js +2011 -490
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +1522 -78
  15. package/dist/esm/api.js +1935 -423
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/ReachContactFieldsApi.md +239 -0
  27. package/docs/ReachContactsApi.md +308 -4
  28. package/docs/ReachListProfileContactsV1200Response.md +22 -0
  29. package/docs/ReachTagsApi.md +483 -0
  30. package/docs/ReachV1ContactsBulkStoreRequest.md +25 -0
  31. package/docs/ReachV1ContactsBulkStoreRequestContactsInner.md +26 -0
  32. package/docs/ReachV1ContactsContactDetailsResource.md +46 -0
  33. package/docs/ReachV1ContactsFieldsContactFieldOptionResource.md +24 -0
  34. package/docs/ReachV1ContactsFieldsContactFieldResource.md +30 -0
  35. package/docs/ReachV1ContactsFieldsContactFieldValueResource.md +33 -0
  36. package/docs/ReachV1ContactsFieldsStoreRequest.md +25 -0
  37. package/docs/ReachV1ContactsFieldsUpdateRequest.md +23 -0
  38. package/docs/ReachV1ContactsFieldsUpdateRequestOptionsInner.md +22 -0
  39. package/docs/ReachV1ContactsProfileContactResource.md +38 -0
  40. package/docs/ReachV1ContactsProfileContactUpdateResource.md +34 -0
  41. package/docs/ReachV1ContactsTagsManageContactsRequest.md +23 -0
  42. package/docs/ReachV1ContactsTagsStoreRequest.md +21 -0
  43. package/docs/ReachV1ContactsTagsTagResource.md +26 -0
  44. package/docs/ReachV1ContactsTagsUpdateRequest.md +21 -0
  45. package/docs/ReachV1ContactsUpdateRequest.md +33 -0
  46. package/docs/ReachV1ContactsUpdateRequestFieldsInner.md +24 -0
  47. package/index.ts +1 -1
  48. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ # ReachV1ContactsFieldsUpdateRequest
2
+
3
+ Rename a custom contact field and, for the choice types, replace its option set. The field type and slug are immutable.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **label** | **string** | | [default to undefined]
10
+ **_options** | [**Array<ReachV1ContactsFieldsUpdateRequestOptionsInner>**](ReachV1ContactsFieldsUpdateRequestOptionsInner.md) | Replaces the option set when provided. Entries carrying a uuid are kept and relabelled, entries without one are created, and any existing option missing from the list is deleted along with the values contacts hold for it. | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ReachV1ContactsFieldsUpdateRequest } from 'hostinger-api-sdk';
16
+
17
+ const instance: ReachV1ContactsFieldsUpdateRequest = {
18
+ label,
19
+ _options,
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,22 @@
1
+ # ReachV1ContactsFieldsUpdateRequestOptionsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uuid** | **string** | | [optional] [default to undefined]
9
+ **label** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ReachV1ContactsFieldsUpdateRequestOptionsInner } from 'hostinger-api-sdk';
15
+
16
+ const instance: ReachV1ContactsFieldsUpdateRequestOptionsInner = {
17
+ uuid,
18
+ label,
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,38 @@
1
+ # ReachV1ContactsProfileContactResource
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
+ **surname** | **string** | | [optional] [default to undefined]
11
+ **email** | **string** | | [optional] [default to undefined]
12
+ **phone** | **string** | | [optional] [default to undefined]
13
+ **subscription_status** | **string** | | [optional] [default to undefined]
14
+ **subscribed_at** | **string** | | [optional] [default to undefined]
15
+ **unsubscribed_at** | **string** | | [optional] [default to undefined]
16
+ **source** | **string** | | [optional] [default to undefined]
17
+ **note** | **string** | | [optional] [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { ReachV1ContactsProfileContactResource } from 'hostinger-api-sdk';
23
+
24
+ const instance: ReachV1ContactsProfileContactResource = {
25
+ uuid,
26
+ name,
27
+ surname,
28
+ email,
29
+ phone,
30
+ subscription_status,
31
+ subscribed_at,
32
+ unsubscribed_at,
33
+ source,
34
+ note,
35
+ };
36
+ ```
37
+
38
+ [[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
+ # ReachV1ContactsProfileContactUpdateResource
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
+ **surname** | **string** | | [optional] [default to undefined]
11
+ **email** | **string** | | [optional] [default to undefined]
12
+ **phone** | **string** | | [optional] [default to undefined]
13
+ **subscription_status** | **string** | | [optional] [default to undefined]
14
+ **subscribed_at** | **string** | | [optional] [default to undefined]
15
+ **unsubscribed_at** | **string** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { ReachV1ContactsProfileContactUpdateResource } from 'hostinger-api-sdk';
21
+
22
+ const instance: ReachV1ContactsProfileContactUpdateResource = {
23
+ uuid,
24
+ name,
25
+ surname,
26
+ email,
27
+ phone,
28
+ subscription_status,
29
+ subscribed_at,
30
+ unsubscribed_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,23 @@
1
+ # ReachV1ContactsTagsManageContactsRequest
2
+
3
+ Contacts to assign to, or remove from, a tag
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **contact_uuids** | **Array<string>** | Contacts to apply the change to. Required unless all_contacts is true. | [optional] [default to undefined]
10
+ **all_contacts** | **boolean** | Apply to every contact in the profile | [optional] [default to false]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ReachV1ContactsTagsManageContactsRequest } from 'hostinger-api-sdk';
16
+
17
+ const instance: ReachV1ContactsTagsManageContactsRequest = {
18
+ contact_uuids,
19
+ all_contacts,
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,21 @@
1
+ # ReachV1ContactsTagsStoreRequest
2
+
3
+ Names to create. Names that already exist in the profile are returned as they are.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **names** | **Array<string>** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ReachV1ContactsTagsStoreRequest } from 'hostinger-api-sdk';
15
+
16
+ const instance: ReachV1ContactsTagsStoreRequest = {
17
+ names,
18
+ };
19
+ ```
20
+
21
+ [[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
+ # ReachV1ContactsTagsTagResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uuid** | **string** | | [optional] [default to undefined]
9
+ **type** | **string** | How the tag came about. `custom` covers the tags you create yourself, `form` covers the ones Reach creates for its forms. | [optional] [default to undefined]
10
+ **value** | **string** | | [optional] [default to undefined]
11
+ **created_at** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ReachV1ContactsTagsTagResource } from 'hostinger-api-sdk';
17
+
18
+ const instance: ReachV1ContactsTagsTagResource = {
19
+ uuid,
20
+ type,
21
+ value,
22
+ created_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,21 @@
1
+ # ReachV1ContactsTagsUpdateRequest
2
+
3
+ Rename a tag
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **value** | **string** | New tag name | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ReachV1ContactsTagsUpdateRequest } from 'hostinger-api-sdk';
15
+
16
+ const instance: ReachV1ContactsTagsUpdateRequest = {
17
+ value,
18
+ };
19
+ ```
20
+
21
+ [[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,33 @@
1
+ # ReachV1ContactsUpdateRequest
2
+
3
+ Fields to change on a contact. Omitted properties are left untouched.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **email** | **string** | | [optional] [default to undefined]
10
+ **name** | **string** | | [optional] [default to undefined]
11
+ **surname** | **string** | | [optional] [default to undefined]
12
+ **phone** | **string** | Phone number in E.164 format (leading \"+\" then 7-15 digits) | [optional] [default to undefined]
13
+ **subscription_status** | **string** | | [optional] [default to undefined]
14
+ **note** | **string** | | [optional] [default to undefined]
15
+ **fields** | [**Array<ReachV1ContactsUpdateRequestFieldsInner>**](ReachV1ContactsUpdateRequestFieldsInner.md) | Set custom field values. Omit to leave untouched, send an empty array to clear them all. | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { ReachV1ContactsUpdateRequest } from 'hostinger-api-sdk';
21
+
22
+ const instance: ReachV1ContactsUpdateRequest = {
23
+ email,
24
+ name,
25
+ surname,
26
+ phone,
27
+ subscription_status,
28
+ note,
29
+ fields,
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
+ # ReachV1ContactsUpdateRequestFieldsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uuid** | **string** | | [default to undefined]
9
+ **value** | **string** | For the scalar field types | [optional] [default to undefined]
10
+ **selected_option_uuids** | **Array<string>** | For the choice field types | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ReachV1ContactsUpdateRequestFieldsInner } from 'hostinger-api-sdk';
16
+
17
+ const instance: ReachV1ContactsUpdateRequestFieldsInner = {
18
+ uuid,
19
+ value,
20
+ selected_option_uuids,
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)
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.27.0
6
+ * API Version: 1.29.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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "1.26.0",
3
+ "version": "1.28.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {