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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.27.0
4
+ * API Version: 1.29.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js 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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.27.0
4
+ * API Version: 1.29.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.27.0
4
+ * API Version: 1.29.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -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
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.26.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.28.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.27.0
4
+ * API Version: 1.29.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js 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/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.27.0
4
+ * API Version: 1.29.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.27.0
7
+ * API Version: 1.29.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -0,0 +1,239 @@
1
+ # ReachContactFieldsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createAContactFieldV1**](#createacontactfieldv1) | **POST** /api/reach/v1/profiles/{profileUuid}/contacts/fields | Create a contact field|
8
+ |[**deleteAContactFieldV1**](#deleteacontactfieldv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid} | Delete a contact field|
9
+ |[**listContactFieldsV1**](#listcontactfieldsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/contacts/fields | List contact fields|
10
+ |[**updateAContactFieldV1**](#updateacontactfieldv1) | **PATCH** /api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid} | Update a contact field|
11
+
12
+ # **createAContactFieldV1**
13
+ > ReachV1ContactsFieldsContactFieldResource createAContactFieldV1(reachV1ContactsFieldsStoreRequest)
14
+
15
+ Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ ReachContactFieldsApi,
22
+ Configuration,
23
+ ReachV1ContactsFieldsStoreRequest
24
+ } from 'hostinger-api-sdk';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new ReachContactFieldsApi(configuration);
28
+
29
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
30
+ let reachV1ContactsFieldsStoreRequest: ReachV1ContactsFieldsStoreRequest; //
31
+
32
+ const { status, data } = await apiInstance.createAContactFieldV1(
33
+ profileUuid,
34
+ reachV1ContactsFieldsStoreRequest
35
+ );
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ |Name | Type | Description | Notes|
41
+ |------------- | ------------- | ------------- | -------------|
42
+ | **reachV1ContactsFieldsStoreRequest** | **ReachV1ContactsFieldsStoreRequest**| | |
43
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
44
+
45
+
46
+ ### Return type
47
+
48
+ **ReachV1ContactsFieldsContactFieldResource**
49
+
50
+ ### Authorization
51
+
52
+ [apiToken](../README.md#apiToken)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: application/json
57
+ - **Accept**: application/json
58
+
59
+
60
+ ### HTTP response details
61
+ | Status code | Description | Response headers |
62
+ |-------------|-------------|------------------|
63
+ |**200** | Success response | - |
64
+ |**422** | Validation error response | - |
65
+ |**401** | Unauthenticated response | - |
66
+ |**500** | Error response | - |
67
+
68
+ [[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)
69
+
70
+ # **deleteAContactFieldV1**
71
+ > CommonSuccessEmptyResource deleteAContactFieldV1()
72
+
73
+ Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
74
+
75
+ ### Example
76
+
77
+ ```typescript
78
+ import {
79
+ ReachContactFieldsApi,
80
+ Configuration
81
+ } from 'hostinger-api-sdk';
82
+
83
+ const configuration = new Configuration();
84
+ const apiInstance = new ReachContactFieldsApi(configuration);
85
+
86
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
87
+ let fieldUuid: string; //Contact field uuid parameter (default to undefined)
88
+
89
+ const { status, data } = await apiInstance.deleteAContactFieldV1(
90
+ profileUuid,
91
+ fieldUuid
92
+ );
93
+ ```
94
+
95
+ ### Parameters
96
+
97
+ |Name | Type | Description | Notes|
98
+ |------------- | ------------- | ------------- | -------------|
99
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
100
+ | **fieldUuid** | [**string**] | Contact field uuid parameter | defaults to undefined|
101
+
102
+
103
+ ### Return type
104
+
105
+ **CommonSuccessEmptyResource**
106
+
107
+ ### Authorization
108
+
109
+ [apiToken](../README.md#apiToken)
110
+
111
+ ### HTTP request headers
112
+
113
+ - **Content-Type**: Not defined
114
+ - **Accept**: application/json
115
+
116
+
117
+ ### HTTP response details
118
+ | Status code | Description | Response headers |
119
+ |-------------|-------------|------------------|
120
+ |**200** | Success empty response | - |
121
+ |**401** | Unauthenticated response | - |
122
+ |**500** | Error response | - |
123
+
124
+ [[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)
125
+
126
+ # **listContactFieldsV1**
127
+ > Array<ReachV1ContactsFieldsContactFieldResource> listContactFieldsV1()
128
+
129
+ Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
130
+
131
+ ### Example
132
+
133
+ ```typescript
134
+ import {
135
+ ReachContactFieldsApi,
136
+ Configuration
137
+ } from 'hostinger-api-sdk';
138
+
139
+ const configuration = new Configuration();
140
+ const apiInstance = new ReachContactFieldsApi(configuration);
141
+
142
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
143
+
144
+ const { status, data } = await apiInstance.listContactFieldsV1(
145
+ profileUuid
146
+ );
147
+ ```
148
+
149
+ ### Parameters
150
+
151
+ |Name | Type | Description | Notes|
152
+ |------------- | ------------- | ------------- | -------------|
153
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
154
+
155
+
156
+ ### Return type
157
+
158
+ **Array<ReachV1ContactsFieldsContactFieldResource>**
159
+
160
+ ### Authorization
161
+
162
+ [apiToken](../README.md#apiToken)
163
+
164
+ ### HTTP request headers
165
+
166
+ - **Content-Type**: Not defined
167
+ - **Accept**: application/json
168
+
169
+
170
+ ### HTTP response details
171
+ | Status code | Description | Response headers |
172
+ |-------------|-------------|------------------|
173
+ |**200** | Success response | - |
174
+ |**401** | Unauthenticated response | - |
175
+ |**500** | Error response | - |
176
+
177
+ [[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)
178
+
179
+ # **updateAContactFieldV1**
180
+ > ReachV1ContactsFieldsContactFieldResource updateAContactFieldV1(reachV1ContactsFieldsUpdateRequest)
181
+
182
+ Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
183
+
184
+ ### Example
185
+
186
+ ```typescript
187
+ import {
188
+ ReachContactFieldsApi,
189
+ Configuration,
190
+ ReachV1ContactsFieldsUpdateRequest
191
+ } from 'hostinger-api-sdk';
192
+
193
+ const configuration = new Configuration();
194
+ const apiInstance = new ReachContactFieldsApi(configuration);
195
+
196
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
197
+ let fieldUuid: string; //Contact field uuid parameter (default to undefined)
198
+ let reachV1ContactsFieldsUpdateRequest: ReachV1ContactsFieldsUpdateRequest; //
199
+
200
+ const { status, data } = await apiInstance.updateAContactFieldV1(
201
+ profileUuid,
202
+ fieldUuid,
203
+ reachV1ContactsFieldsUpdateRequest
204
+ );
205
+ ```
206
+
207
+ ### Parameters
208
+
209
+ |Name | Type | Description | Notes|
210
+ |------------- | ------------- | ------------- | -------------|
211
+ | **reachV1ContactsFieldsUpdateRequest** | **ReachV1ContactsFieldsUpdateRequest**| | |
212
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
213
+ | **fieldUuid** | [**string**] | Contact field uuid parameter | defaults to undefined|
214
+
215
+
216
+ ### Return type
217
+
218
+ **ReachV1ContactsFieldsContactFieldResource**
219
+
220
+ ### Authorization
221
+
222
+ [apiToken](../README.md#apiToken)
223
+
224
+ ### HTTP request headers
225
+
226
+ - **Content-Type**: application/json
227
+ - **Accept**: application/json
228
+
229
+
230
+ ### HTTP response details
231
+ | Status code | Description | Response headers |
232
+ |-------------|-------------|------------------|
233
+ |**200** | Success response | - |
234
+ |**422** | Validation error response | - |
235
+ |**401** | Unauthenticated response | - |
236
+ |**500** | Error response | - |
237
+
238
+ [[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)
239
+