hostinger-api-sdk 1.27.0 → 1.29.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 (38) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1622 -150
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +843 -17
  7. package/dist/api.js +1248 -44
  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 +843 -17
  15. package/dist/esm/api.js +1236 -36
  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/ReachListProfileSegmentsV1200Response.md +22 -0
  27. package/docs/ReachSegmentsApi.md +359 -4
  28. package/docs/ReachTagsApi.md +483 -0
  29. package/docs/ReachV1ContactsSegmentsProfileStoreRequest.md +25 -0
  30. package/docs/ReachV1ContactsSegmentsProfileStoreRequestConditionsInner.md +24 -0
  31. package/docs/ReachV1ContactsSegmentsProfileUpdateRequest.md +25 -0
  32. package/docs/ReachV1ContactsSegmentsSegmentContactsCountResource.md +20 -0
  33. package/docs/ReachV1ContactsSegmentsSegmentListItemResource.md +28 -0
  34. package/docs/ReachV1ContactsTagsManageContactsRequest.md +23 -0
  35. package/docs/ReachV1ContactsTagsStoreRequest.md +21 -0
  36. package/docs/ReachV1ContactsTagsUpdateRequest.md +21 -0
  37. package/index.ts +1 -1
  38. package/package.json +1 -1
@@ -0,0 +1,483 @@
1
+ # ReachTagsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**assignAContactToATagV1**](#assignacontacttoatagv1) | **POST** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid} | Assign a contact to a tag|
8
+ |[**assignContactsToATagV1**](#assigncontactstoatagv1) | **POST** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts | Assign contacts to a tag|
9
+ |[**createOrFindTagsV1**](#createorfindtagsv1) | **POST** /api/reach/v1/profiles/{profileUuid}/tags | Create or find tags|
10
+ |[**deleteATagV1**](#deleteatagv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid} | Delete a tag|
11
+ |[**listProfileTagsV1**](#listprofiletagsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/tags | List profile tags|
12
+ |[**removeAContactFromATagV1**](#removeacontactfromatagv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid} | Remove a contact from a tag|
13
+ |[**removeContactsFromATagV1**](#removecontactsfromatagv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts | Remove contacts from a tag|
14
+ |[**renameATagV1**](#renameatagv1) | **PATCH** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid} | Rename a tag|
15
+
16
+ # **assignAContactToATagV1**
17
+ > ReachV1ContactsTagsTagResource assignAContactToATagV1()
18
+
19
+ Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
20
+
21
+ ### Example
22
+
23
+ ```typescript
24
+ import {
25
+ ReachTagsApi,
26
+ Configuration
27
+ } from 'hostinger-api-sdk';
28
+
29
+ const configuration = new Configuration();
30
+ const apiInstance = new ReachTagsApi(configuration);
31
+
32
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
33
+ let tagUuid: string; //Tag uuid parameter (default to undefined)
34
+ let contactUuid: string; //Contact uuid parameter (default to undefined)
35
+
36
+ const { status, data } = await apiInstance.assignAContactToATagV1(
37
+ profileUuid,
38
+ tagUuid,
39
+ contactUuid
40
+ );
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ |Name | Type | Description | Notes|
46
+ |------------- | ------------- | ------------- | -------------|
47
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
48
+ | **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
49
+ | **contactUuid** | [**string**] | Contact uuid parameter | defaults to undefined|
50
+
51
+
52
+ ### Return type
53
+
54
+ **ReachV1ContactsTagsTagResource**
55
+
56
+ ### Authorization
57
+
58
+ [apiToken](../README.md#apiToken)
59
+
60
+ ### HTTP request headers
61
+
62
+ - **Content-Type**: Not defined
63
+ - **Accept**: application/json
64
+
65
+
66
+ ### HTTP response details
67
+ | Status code | Description | Response headers |
68
+ |-------------|-------------|------------------|
69
+ |**200** | Success response | - |
70
+ |**401** | Unauthenticated response | - |
71
+ |**500** | Error response | - |
72
+
73
+ [[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)
74
+
75
+ # **assignContactsToATagV1**
76
+ > CommonSuccessEmptyResource assignContactsToATagV1(reachV1ContactsTagsManageContactsRequest)
77
+
78
+ Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
79
+
80
+ ### Example
81
+
82
+ ```typescript
83
+ import {
84
+ ReachTagsApi,
85
+ Configuration,
86
+ ReachV1ContactsTagsManageContactsRequest
87
+ } from 'hostinger-api-sdk';
88
+
89
+ const configuration = new Configuration();
90
+ const apiInstance = new ReachTagsApi(configuration);
91
+
92
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
93
+ let tagUuid: string; //Tag uuid parameter (default to undefined)
94
+ let reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest; //
95
+
96
+ const { status, data } = await apiInstance.assignContactsToATagV1(
97
+ profileUuid,
98
+ tagUuid,
99
+ reachV1ContactsTagsManageContactsRequest
100
+ );
101
+ ```
102
+
103
+ ### Parameters
104
+
105
+ |Name | Type | Description | Notes|
106
+ |------------- | ------------- | ------------- | -------------|
107
+ | **reachV1ContactsTagsManageContactsRequest** | **ReachV1ContactsTagsManageContactsRequest**| | |
108
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
109
+ | **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
110
+
111
+
112
+ ### Return type
113
+
114
+ **CommonSuccessEmptyResource**
115
+
116
+ ### Authorization
117
+
118
+ [apiToken](../README.md#apiToken)
119
+
120
+ ### HTTP request headers
121
+
122
+ - **Content-Type**: application/json
123
+ - **Accept**: application/json
124
+
125
+
126
+ ### HTTP response details
127
+ | Status code | Description | Response headers |
128
+ |-------------|-------------|------------------|
129
+ |**200** | Success empty response | - |
130
+ |**422** | Validation error response | - |
131
+ |**401** | Unauthenticated response | - |
132
+ |**500** | Error response | - |
133
+
134
+ [[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)
135
+
136
+ # **createOrFindTagsV1**
137
+ > Array<ReachV1ContactsTagsTagResource> createOrFindTagsV1(reachV1ContactsTagsStoreRequest)
138
+
139
+ Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
140
+
141
+ ### Example
142
+
143
+ ```typescript
144
+ import {
145
+ ReachTagsApi,
146
+ Configuration,
147
+ ReachV1ContactsTagsStoreRequest
148
+ } from 'hostinger-api-sdk';
149
+
150
+ const configuration = new Configuration();
151
+ const apiInstance = new ReachTagsApi(configuration);
152
+
153
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
154
+ let reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest; //
155
+
156
+ const { status, data } = await apiInstance.createOrFindTagsV1(
157
+ profileUuid,
158
+ reachV1ContactsTagsStoreRequest
159
+ );
160
+ ```
161
+
162
+ ### Parameters
163
+
164
+ |Name | Type | Description | Notes|
165
+ |------------- | ------------- | ------------- | -------------|
166
+ | **reachV1ContactsTagsStoreRequest** | **ReachV1ContactsTagsStoreRequest**| | |
167
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
168
+
169
+
170
+ ### Return type
171
+
172
+ **Array<ReachV1ContactsTagsTagResource>**
173
+
174
+ ### Authorization
175
+
176
+ [apiToken](../README.md#apiToken)
177
+
178
+ ### HTTP request headers
179
+
180
+ - **Content-Type**: application/json
181
+ - **Accept**: application/json
182
+
183
+
184
+ ### HTTP response details
185
+ | Status code | Description | Response headers |
186
+ |-------------|-------------|------------------|
187
+ |**200** | Success response | - |
188
+ |**422** | Validation error response | - |
189
+ |**401** | Unauthenticated response | - |
190
+ |**500** | Error response | - |
191
+
192
+ [[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)
193
+
194
+ # **deleteATagV1**
195
+ > CommonSuccessEmptyResource deleteATagV1()
196
+
197
+ Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
198
+
199
+ ### Example
200
+
201
+ ```typescript
202
+ import {
203
+ ReachTagsApi,
204
+ Configuration
205
+ } from 'hostinger-api-sdk';
206
+
207
+ const configuration = new Configuration();
208
+ const apiInstance = new ReachTagsApi(configuration);
209
+
210
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
211
+ let tagUuid: string; //Tag uuid parameter (default to undefined)
212
+
213
+ const { status, data } = await apiInstance.deleteATagV1(
214
+ profileUuid,
215
+ tagUuid
216
+ );
217
+ ```
218
+
219
+ ### Parameters
220
+
221
+ |Name | Type | Description | Notes|
222
+ |------------- | ------------- | ------------- | -------------|
223
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
224
+ | **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
225
+
226
+
227
+ ### Return type
228
+
229
+ **CommonSuccessEmptyResource**
230
+
231
+ ### Authorization
232
+
233
+ [apiToken](../README.md#apiToken)
234
+
235
+ ### HTTP request headers
236
+
237
+ - **Content-Type**: Not defined
238
+ - **Accept**: application/json
239
+
240
+
241
+ ### HTTP response details
242
+ | Status code | Description | Response headers |
243
+ |-------------|-------------|------------------|
244
+ |**200** | Success empty response | - |
245
+ |**401** | Unauthenticated response | - |
246
+ |**500** | Error response | - |
247
+
248
+ [[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)
249
+
250
+ # **listProfileTagsV1**
251
+ > Array<ReachV1ContactsTagsTagResource> listProfileTagsV1()
252
+
253
+ Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
254
+
255
+ ### Example
256
+
257
+ ```typescript
258
+ import {
259
+ ReachTagsApi,
260
+ Configuration
261
+ } from 'hostinger-api-sdk';
262
+
263
+ const configuration = new Configuration();
264
+ const apiInstance = new ReachTagsApi(configuration);
265
+
266
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
267
+
268
+ const { status, data } = await apiInstance.listProfileTagsV1(
269
+ profileUuid
270
+ );
271
+ ```
272
+
273
+ ### Parameters
274
+
275
+ |Name | Type | Description | Notes|
276
+ |------------- | ------------- | ------------- | -------------|
277
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
278
+
279
+
280
+ ### Return type
281
+
282
+ **Array<ReachV1ContactsTagsTagResource>**
283
+
284
+ ### Authorization
285
+
286
+ [apiToken](../README.md#apiToken)
287
+
288
+ ### HTTP request headers
289
+
290
+ - **Content-Type**: Not defined
291
+ - **Accept**: application/json
292
+
293
+
294
+ ### HTTP response details
295
+ | Status code | Description | Response headers |
296
+ |-------------|-------------|------------------|
297
+ |**200** | Success response | - |
298
+ |**401** | Unauthenticated response | - |
299
+ |**500** | Error response | - |
300
+
301
+ [[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)
302
+
303
+ # **removeAContactFromATagV1**
304
+ > CommonSuccessEmptyResource removeAContactFromATagV1()
305
+
306
+ Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
307
+
308
+ ### Example
309
+
310
+ ```typescript
311
+ import {
312
+ ReachTagsApi,
313
+ Configuration
314
+ } from 'hostinger-api-sdk';
315
+
316
+ const configuration = new Configuration();
317
+ const apiInstance = new ReachTagsApi(configuration);
318
+
319
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
320
+ let tagUuid: string; //Tag uuid parameter (default to undefined)
321
+ let contactUuid: string; //Contact uuid parameter (default to undefined)
322
+
323
+ const { status, data } = await apiInstance.removeAContactFromATagV1(
324
+ profileUuid,
325
+ tagUuid,
326
+ contactUuid
327
+ );
328
+ ```
329
+
330
+ ### Parameters
331
+
332
+ |Name | Type | Description | Notes|
333
+ |------------- | ------------- | ------------- | -------------|
334
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
335
+ | **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
336
+ | **contactUuid** | [**string**] | Contact uuid parameter | defaults to undefined|
337
+
338
+
339
+ ### Return type
340
+
341
+ **CommonSuccessEmptyResource**
342
+
343
+ ### Authorization
344
+
345
+ [apiToken](../README.md#apiToken)
346
+
347
+ ### HTTP request headers
348
+
349
+ - **Content-Type**: Not defined
350
+ - **Accept**: application/json
351
+
352
+
353
+ ### HTTP response details
354
+ | Status code | Description | Response headers |
355
+ |-------------|-------------|------------------|
356
+ |**200** | Success empty response | - |
357
+ |**401** | Unauthenticated response | - |
358
+ |**500** | Error response | - |
359
+
360
+ [[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)
361
+
362
+ # **removeContactsFromATagV1**
363
+ > CommonSuccessEmptyResource removeContactsFromATagV1(reachV1ContactsTagsManageContactsRequest)
364
+
365
+ Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
366
+
367
+ ### Example
368
+
369
+ ```typescript
370
+ import {
371
+ ReachTagsApi,
372
+ Configuration,
373
+ ReachV1ContactsTagsManageContactsRequest
374
+ } from 'hostinger-api-sdk';
375
+
376
+ const configuration = new Configuration();
377
+ const apiInstance = new ReachTagsApi(configuration);
378
+
379
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
380
+ let tagUuid: string; //Tag uuid parameter (default to undefined)
381
+ let reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest; //
382
+
383
+ const { status, data } = await apiInstance.removeContactsFromATagV1(
384
+ profileUuid,
385
+ tagUuid,
386
+ reachV1ContactsTagsManageContactsRequest
387
+ );
388
+ ```
389
+
390
+ ### Parameters
391
+
392
+ |Name | Type | Description | Notes|
393
+ |------------- | ------------- | ------------- | -------------|
394
+ | **reachV1ContactsTagsManageContactsRequest** | **ReachV1ContactsTagsManageContactsRequest**| | |
395
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
396
+ | **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
397
+
398
+
399
+ ### Return type
400
+
401
+ **CommonSuccessEmptyResource**
402
+
403
+ ### Authorization
404
+
405
+ [apiToken](../README.md#apiToken)
406
+
407
+ ### HTTP request headers
408
+
409
+ - **Content-Type**: application/json
410
+ - **Accept**: application/json
411
+
412
+
413
+ ### HTTP response details
414
+ | Status code | Description | Response headers |
415
+ |-------------|-------------|------------------|
416
+ |**200** | Success empty response | - |
417
+ |**422** | Validation error response | - |
418
+ |**401** | Unauthenticated response | - |
419
+ |**500** | Error response | - |
420
+
421
+ [[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)
422
+
423
+ # **renameATagV1**
424
+ > ReachV1ContactsTagsTagResource renameATagV1(reachV1ContactsTagsUpdateRequest)
425
+
426
+ Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
427
+
428
+ ### Example
429
+
430
+ ```typescript
431
+ import {
432
+ ReachTagsApi,
433
+ Configuration,
434
+ ReachV1ContactsTagsUpdateRequest
435
+ } from 'hostinger-api-sdk';
436
+
437
+ const configuration = new Configuration();
438
+ const apiInstance = new ReachTagsApi(configuration);
439
+
440
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
441
+ let tagUuid: string; //Tag uuid parameter (default to undefined)
442
+ let reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest; //
443
+
444
+ const { status, data } = await apiInstance.renameATagV1(
445
+ profileUuid,
446
+ tagUuid,
447
+ reachV1ContactsTagsUpdateRequest
448
+ );
449
+ ```
450
+
451
+ ### Parameters
452
+
453
+ |Name | Type | Description | Notes|
454
+ |------------- | ------------- | ------------- | -------------|
455
+ | **reachV1ContactsTagsUpdateRequest** | **ReachV1ContactsTagsUpdateRequest**| | |
456
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
457
+ | **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
458
+
459
+
460
+ ### Return type
461
+
462
+ **ReachV1ContactsTagsTagResource**
463
+
464
+ ### Authorization
465
+
466
+ [apiToken](../README.md#apiToken)
467
+
468
+ ### HTTP request headers
469
+
470
+ - **Content-Type**: application/json
471
+ - **Accept**: application/json
472
+
473
+
474
+ ### HTTP response details
475
+ | Status code | Description | Response headers |
476
+ |-------------|-------------|------------------|
477
+ |**200** | Success response | - |
478
+ |**422** | Validation error response | - |
479
+ |**401** | Unauthenticated response | - |
480
+ |**500** | Error response | - |
481
+
482
+ [[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)
483
+
@@ -0,0 +1,25 @@
1
+ # ReachV1ContactsSegmentsProfileStoreRequest
2
+
3
+ Create a segment from a set of conditions
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | | [default to undefined]
10
+ **conditions** | [**Array&lt;ReachV1ContactsSegmentsProfileStoreRequestConditionsInner&gt;**](ReachV1ContactsSegmentsProfileStoreRequestConditionsInner.md) | Conditions a contact must satisfy to fall into the segment | [default to undefined]
11
+ **logic** | **string** | How to combine multiple conditions | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ReachV1ContactsSegmentsProfileStoreRequest } from 'hostinger-api-sdk';
17
+
18
+ const instance: ReachV1ContactsSegmentsProfileStoreRequest = {
19
+ name,
20
+ conditions,
21
+ logic,
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,24 @@
1
+ # ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **attribute** | **string** | A built-in contact attribute, or &#x60;cf:{fieldUuid}&#x60; to target a custom contact field. Custom fields are addressed by field UUID; their slug is not accepted. Built-in attributes: &#x60;email&#x60;, &#x60;note&#x60;, &#x60;domain&#x60;, &#x60;source&#x60;, &#x60;opt_in_method&#x60;, &#x60;subscription_status&#x60;, &#x60;subscribed_at&#x60;, &#x60;unsubscribed_at&#x60;, &#x60;created_at&#x60;, &#x60;tag&#x60;, &#x60;campaigns&#x60;, &#x60;processed&#x60;, &#x60;opened&#x60;, &#x60;clicked&#x60;, &#x60;delivered&#x60;, &#x60;bounced&#x60;, &#x60;soft_bounced&#x60;, &#x60;dropped&#x60;. Which operators are accepted depends on the attribute. | [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 { ReachV1ContactsSegmentsProfileStoreRequestConditionsInner } from 'hostinger-api-sdk';
16
+
17
+ const instance: ReachV1ContactsSegmentsProfileStoreRequestConditionsInner = {
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,25 @@
1
+ # ReachV1ContactsSegmentsProfileUpdateRequest
2
+
3
+ Rename a segment and/or replace the conditions that define it
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | | [default to undefined]
10
+ **conditions** | [**Array&lt;ReachV1ContactsSegmentsProfileStoreRequestConditionsInner&gt;**](ReachV1ContactsSegmentsProfileStoreRequestConditionsInner.md) | Replaces the existing conditions entirely. Omit to keep the current ones. | [optional] [default to undefined]
11
+ **logic** | **string** | How to combine multiple conditions. Required when conditions are given. | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ReachV1ContactsSegmentsProfileUpdateRequest } from 'hostinger-api-sdk';
17
+
18
+ const instance: ReachV1ContactsSegmentsProfileUpdateRequest = {
19
+ name,
20
+ conditions,
21
+ logic,
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,20 @@
1
+ # ReachV1ContactsSegmentsSegmentContactsCountResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **count** | **number** | Contacts currently matching the segment conditions | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ReachV1ContactsSegmentsSegmentContactsCountResource } from 'hostinger-api-sdk';
14
+
15
+ const instance: ReachV1ContactsSegmentsSegmentContactsCountResource = {
16
+ count,
17
+ };
18
+ ```
19
+
20
+ [[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,28 @@
1
+ # ReachV1ContactsSegmentsSegmentListItemResource
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
+ **contacts_count** | **number** | Contacts currently matching the segment conditions | [optional] [default to undefined]
11
+ **created_at** | **string** | | [optional] [default to undefined]
12
+ **updated_at** | **string** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ReachV1ContactsSegmentsSegmentListItemResource } from 'hostinger-api-sdk';
18
+
19
+ const instance: ReachV1ContactsSegmentsSegmentListItemResource = {
20
+ uuid,
21
+ name,
22
+ contacts_count,
23
+ created_at,
24
+ updated_at,
25
+ };
26
+ ```
27
+
28
+ [[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&lt;string&gt;** | 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&lt;string&gt;** | | [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,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)
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.28.0
6
+ * API Version: 1.30.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.27.0",
3
+ "version": "1.29.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {