Skip to content

Commit e51acb2

Browse files
chore: sdk update
1 parent b6a0ad5 commit e51acb2

12 files changed

Lines changed: 61 additions & 45 deletions

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
## @hostinger/sdk@2.2.0
1+
## @hostinger/sdk@2.3.0
22

33
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
44

55
### Usage
66

77
```
8-
npm install @hostinger/sdk@2.2.0 --save
8+
npm install @hostinger/sdk@2.3.0 --save
99
```

‎api.ts‎

Lines changed: 44 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 2.2.0
6+
* API Version: 2.3.0
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13209,6 +13209,37 @@ export interface ReachV1ContactsBulkStoreRequestContactsInner {
1320913209
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
1321013210
*/
1321113211
'phone': string | null;
13212+
/**
13213+
* Custom field values to set on the contact. For a contact whose email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped.
13214+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
13215+
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
13216+
*/
13217+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
13218+
}
13219+
/**
13220+
*
13221+
* @export
13222+
* @interface ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
13223+
*/
13224+
export interface ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner {
13225+
/**
13226+
*
13227+
* @type {string}
13228+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
13229+
*/
13230+
'uuid': string;
13231+
/**
13232+
* For the scalar field types
13233+
* @type {string}
13234+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
13235+
*/
13236+
'value': string | null;
13237+
/**
13238+
* For the choice field types
13239+
* @type {Array<string>}
13240+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
13241+
*/
13242+
'selected_option_uuids': Array<string>;
1321213243
}
1321313244
/**
1321413245
*
@@ -14532,6 +14563,12 @@ export interface ReachV1ContactsStoreRequest {
1453214563
* @memberof ReachV1ContactsStoreRequest
1453314564
*/
1453414565
'tag_uuids': Array<string>;
14566+
/**
14567+
* Custom field values to set on the contact. When a contact with this email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped.
14568+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
14569+
* @memberof ReachV1ContactsStoreRequest
14570+
*/
14571+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
1453514572
}
1453614573
/**
1453714574
* Contacts to assign to, or remove from, a tag
@@ -14661,10 +14698,10 @@ export interface ReachV1ContactsUpdateRequest {
1466114698
'note': string | null;
1466214699
/**
1466314700
* Set custom field values. Omit to leave untouched, send an empty array to clear them all.
14664-
* @type {Array<ReachV1ContactsUpdateRequestFieldsInner>}
14701+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
1466514702
* @memberof ReachV1ContactsUpdateRequest
1466614703
*/
14667-
'fields': Array<ReachV1ContactsUpdateRequestFieldsInner>;
14704+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
1466814705
}
1466914706

1467014707
export const ReachV1ContactsUpdateRequestSubscriptionStatusEnum = {
@@ -14676,31 +14713,6 @@ export const ReachV1ContactsUpdateRequestSubscriptionStatusEnum = {
1467614713

1467714714
export type ReachV1ContactsUpdateRequestSubscriptionStatusEnum = typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum[keyof typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum];
1467814715

14679-
/**
14680-
*
14681-
* @export
14682-
* @interface ReachV1ContactsUpdateRequestFieldsInner
14683-
*/
14684-
export interface ReachV1ContactsUpdateRequestFieldsInner {
14685-
/**
14686-
*
14687-
* @type {string}
14688-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
14689-
*/
14690-
'uuid': string;
14691-
/**
14692-
* For the scalar field types
14693-
* @type {string}
14694-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
14695-
*/
14696-
'value': string | null;
14697-
/**
14698-
* For the choice field types
14699-
* @type {Array<string>}
14700-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
14701-
*/
14702-
'selected_option_uuids': Array<string>;
14703-
}
1470414716
/**
1470514717
* Tags every future submitter of the form receives
1470614718
* @export
@@ -43374,7 +43386,7 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
4337443386
};
4337543387
},
4337643388
/**
43377-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
43389+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
4337843390
* @summary Create contacts in bulk
4337943391
* @param {string} profileUuid Profile uuid parameter
4338043392
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
@@ -43804,7 +43816,7 @@ export const ReachContactsApiFp = function(configuration?: Configuration) {
4380443816
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4380543817
},
4380643818
/**
43807-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
43819+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
4380843820
* @summary Create contacts in bulk
4380943821
* @param {string} profileUuid Profile uuid parameter
4381043822
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
@@ -43948,7 +43960,7 @@ export const ReachContactsApiFactory = function (configuration?: Configuration,
4394843960
return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
4394943961
},
4395043962
/**
43951-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
43963+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
4395243964
* @summary Create contacts in bulk
4395343965
* @param {string} profileUuid Profile uuid parameter
4395443966
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
@@ -44076,7 +44088,7 @@ export class ReachContactsApi extends BaseAPI {
4407644088
}
4407744089

4407844090
/**
44079-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
44091+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
4408044092
* @summary Create contacts in bulk
4408144093
* @param {string} profileUuid Profile uuid parameter
4408244094
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest

‎base.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 2.2.0
6+
* API Version: 2.3.0
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

‎common.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 2.2.0
6+
* API Version: 2.3.0
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

‎configuration.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 2.2.0
6+
* API Version: 2.3.0
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -48,7 +48,7 @@ export class Configuration {
4848
this.baseOptions = {
4949
...param.baseOptions,
5050
headers: {
51-
'User-Agent': "hostinger-typescript-sdk/2.2.0",
51+
'User-Agent': "hostinger-typescript-sdk/2.3.0",
5252
...param.baseOptions?.headers,
5353
},
5454
};

‎docs/ReachContactsApi.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const { status, data } = await apiInstance.createANewContactV1(
7373
# **createContactsInBulkV1**
7474
> CommonSuccessEmptyResource createContactsInBulkV1(reachV1ContactsBulkStoreRequest)
7575
76-
Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
76+
Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
7777

7878
### Example
7979

‎docs/ReachV1ContactsBulkStoreRequestContactsInner.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**name** | **string** | | [optional] [default to undefined]
1010
**surname** | **string** | | [optional] [default to undefined]
1111
**phone** | **string** | Phone number in E.164 format (leading \&quot;+\&quot; then 7-15 digits) | [optional] [default to undefined]
12+
**fields** | [**Array&lt;ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner&gt;**](ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md) | Custom field values to set on the contact. For a contact whose email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped. | [optional] [default to undefined]
1213

1314
## Example
1415

@@ -20,6 +21,7 @@ const instance: ReachV1ContactsBulkStoreRequestContactsInner = {
2021
name,
2122
surname,
2223
phone,
24+
fields,
2325
};
2426
```
2527

docs/ReachV1ContactsUpdateRequestFieldsInner.md renamed to docs/ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ReachV1ContactsUpdateRequestFieldsInner
1+
# ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
22

33

44
## Properties
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
1212
## Example
1313

1414
```typescript
15-
import { ReachV1ContactsUpdateRequestFieldsInner } from '@hostinger/sdk';
15+
import { ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner } from '@hostinger/sdk';
1616

17-
const instance: ReachV1ContactsUpdateRequestFieldsInner = {
17+
const instance: ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner = {
1818
uuid,
1919
value,
2020
selected_option_uuids,

‎docs/ReachV1ContactsStoreRequest.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**phone** | **string** | Phone number in E.164 format (leading \&quot;+\&quot; then 7-15 digits) | [optional] [default to undefined]
1212
**note** | **string** | | [optional] [default to undefined]
1313
**tag_uuids** | **Array&lt;string&gt;** | Existing tags to attach to the created contact | [optional] [default to undefined]
14+
**fields** | [**Array&lt;ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner&gt;**](ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md) | Custom field values to set on the contact. When a contact with this email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped. | [optional] [default to undefined]
1415

1516
## Example
1617

@@ -24,6 +25,7 @@ const instance: ReachV1ContactsStoreRequest = {
2425
phone,
2526
note,
2627
tag_uuids,
28+
fields,
2729
};
2830
```
2931

‎docs/ReachV1ContactsUpdateRequest.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
1212
**phone** | **string** | Phone number in E.164 format (leading \&quot;+\&quot; then 7-15 digits) | [optional] [default to undefined]
1313
**subscription_status** | **string** | | [optional] [default to undefined]
1414
**note** | **string** | | [optional] [default to undefined]
15-
**fields** | [**Array&lt;ReachV1ContactsUpdateRequestFieldsInner&gt;**](ReachV1ContactsUpdateRequestFieldsInner.md) | Set custom field values. Omit to leave untouched, send an empty array to clear them all. | [optional] [default to undefined]
15+
**fields** | [**Array&lt;ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner&gt;**](ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md) | Set custom field values. Omit to leave untouched, send an empty array to clear them all. | [optional] [default to undefined]
1616

1717
## Example
1818

0 commit comments

Comments
 (0)