hostinger-api-sdk 1.26.0 → 1.27.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 (44) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1625 -119
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1074 -13
  7. package/dist/api.js +1067 -216
  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 +1074 -13
  15. package/dist/esm/api.js +1051 -205
  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/ReachV1ContactsBulkStoreRequest.md +25 -0
  30. package/docs/ReachV1ContactsBulkStoreRequestContactsInner.md +26 -0
  31. package/docs/ReachV1ContactsContactDetailsResource.md +46 -0
  32. package/docs/ReachV1ContactsFieldsContactFieldOptionResource.md +24 -0
  33. package/docs/ReachV1ContactsFieldsContactFieldResource.md +30 -0
  34. package/docs/ReachV1ContactsFieldsContactFieldValueResource.md +33 -0
  35. package/docs/ReachV1ContactsFieldsStoreRequest.md +25 -0
  36. package/docs/ReachV1ContactsFieldsUpdateRequest.md +23 -0
  37. package/docs/ReachV1ContactsFieldsUpdateRequestOptionsInner.md +22 -0
  38. package/docs/ReachV1ContactsProfileContactResource.md +38 -0
  39. package/docs/ReachV1ContactsProfileContactUpdateResource.md +34 -0
  40. package/docs/ReachV1ContactsTagsTagResource.md +26 -0
  41. package/docs/ReachV1ContactsUpdateRequest.md +33 -0
  42. package/docs/ReachV1ContactsUpdateRequestFieldsInner.md +24 -0
  43. package/index.ts +1 -1
  44. package/package.json +1 -1
@@ -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,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,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.28.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.27.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {