Skip to content

Commit bdad381

Browse files
chore: sdk update
1 parent 687616d commit bdad381

10 files changed

Lines changed: 255 additions & 19 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.4.4
1+
## @hostinger/sdk@2.5.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.4.4 --save
8+
npm install @hostinger/sdk@2.5.0 --save
99
```

‎api.ts‎

Lines changed: 138 additions & 9 deletions
Large diffs are not rendered by default.

‎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.4.4
6+
* API Version: 2.5.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.4.4
6+
* API Version: 2.5.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.4.4
6+
* API Version: 2.5.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.4.4",
51+
'User-Agent': "hostinger-typescript-sdk/2.5.0",
5252
...param.baseOptions?.headers,
5353
},
5454
};

‎docs/ReachIntegrationsApi.md‎

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All URIs are relative to *https://developers.hostinger.com*
55
|Method | HTTP request | Description|
66
|------------- | ------------- | -------------|
77
|[**connectAIWebsiteBuilderSiteV1**](#connectaiwebsitebuildersitev1) | **POST** /api/reach/v1/profiles/{profileUuid}/websites/website-builder | Connect AI Website Builder site|
8+
|[**connectEcommerceStoreV1**](#connectecommercestorev1) | **POST** /api/reach/v1/profiles/{profileUuid}/ecommerce/stores/{storeId} | Connect Ecommerce store|
89
|[**disconnectAIWebsiteBuilderSiteV1**](#disconnectaiwebsitebuildersitev1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/websites/website-builder | Disconnect AI Website Builder site|
910
|[**disconnectEcommerceStoreV1**](#disconnectecommercestorev1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/ecommerce/stores/{storeId} | Disconnect Ecommerce store|
1011
|[**disconnectWordPressSiteV1**](#disconnectwordpresssitev1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/websites/wordpress | Disconnect WordPress site|
@@ -69,6 +70,63 @@ const { status, data } = await apiInstance.connectAIWebsiteBuilderSiteV1(
6970

7071
[[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)
7172

73+
# **connectEcommerceStoreV1**
74+
> ReachV1StoresConnectionResource connectEcommerceStoreV1()
75+
76+
Connect one of the customer\'s eCommerce stores to the profile, so Reach receives its customers and orders. Take `store_id` from the list eCommerce stores endpoint. Fails with not found (`ECOMMERCE_STORE_NOT_FOUND`) when the store is not one of the customer\'s own stores, also when the eCommerce service cannot be reached. Fails with a conflict (`ECOMMERCE_CONNECTION_ALREADY_EXISTS`) when the store is connected to any profile or this profile already has a store - to move a store to another plan, disconnect it from the profile that holds it first.
77+
78+
### Example
79+
80+
```typescript
81+
import {
82+
ReachIntegrationsApi,
83+
Configuration
84+
} from '@hostinger/sdk';
85+
86+
const configuration = new Configuration();
87+
const apiInstance = new ReachIntegrationsApi(configuration);
88+
89+
let profileUuid: string; //Profile uuid parameter (default to undefined)
90+
let storeId: string; //Hostinger eCommerce store ID, as returned by the eCommerce stores list (default to undefined)
91+
92+
const { status, data } = await apiInstance.connectEcommerceStoreV1(
93+
profileUuid,
94+
storeId
95+
);
96+
```
97+
98+
### Parameters
99+
100+
|Name | Type | Description | Notes|
101+
|------------- | ------------- | ------------- | -------------|
102+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
103+
| **storeId** | [**string**] | Hostinger eCommerce store ID, as returned by the eCommerce stores list | defaults to undefined|
104+
105+
106+
### Return type
107+
108+
**ReachV1StoresConnectionResource**
109+
110+
### Authorization
111+
112+
[apiToken](../README.md#apiToken)
113+
114+
### HTTP request headers
115+
116+
- **Content-Type**: Not defined
117+
- **Accept**: application/json
118+
119+
120+
### HTTP response details
121+
| Status code | Description | Response headers |
122+
|-------------|-------------|------------------|
123+
|**200** | Success response | - |
124+
|**401** | Unauthenticated response | - |
125+
|**409** | Conflict response. &#x60;Retry-After&#x60;, when present, is the number of seconds to wait before retrying. | * Retry-After - Seconds to wait before retrying the request <br> |
126+
|**500** | Error response | - |
127+
128+
[[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)
129+
72130
# **disconnectAIWebsiteBuilderSiteV1**
73131
> CommonSuccessEmptyResource disconnectAIWebsiteBuilderSiteV1(reachV1WebsitesWebsiteBuilderDisconnectRequest)
74132
@@ -130,7 +188,7 @@ const { status, data } = await apiInstance.disconnectAIWebsiteBuilderSiteV1(
130188
# **disconnectEcommerceStoreV1**
131189
> CommonSuccessEmptyResource disconnectEcommerceStoreV1()
132190
133-
Disconnect an eCommerce store from the profile. Reach stops receiving the store\'s customers and orders, and its products and coupons are removed from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce stores endpoint; for a store that is `connected_to_other_profile`, call this with that profile. Also succeeds when the store is not connected to this profile, so success is not proof that anything was disconnected. Confirm the store and the plan with the customer before calling.
191+
Disconnect an eCommerce store from the profile. Reach stops receiving the store\'s customers and orders, and its products and coupons are removed from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce stores endpoint; for a store that is `connected_to_other_profile`, call this with that profile. Also succeeds when the store is not connected to this profile, so success is not proof that anything was disconnected. To move the store to another plan, connect it to the new profile afterwards. Confirm the store and the plan with the customer before calling.
134192

135193
### Example
136194

@@ -297,7 +355,7 @@ const { status, data } = await apiInstance.listConnectedWebsitesV1(
297355
# **listEcommerceStoresV1**
298356
> Array<ReachV1StoresStoreResource> listEcommerceStoresV1()
299357
300-
Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce store endpoint. Connecting an AI Website Builder site connects the store selling on it.
358+
Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the connect or disconnect eCommerce store endpoint.
301359

302360
### Example
303361

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# ReachV1StoresConnectionResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**uuid** | **string** | UUID of the connection between the store and the profile. | [optional] [default to undefined]
9+
**store_id** | **string** | | [optional] [default to undefined]
10+
**store** | [**ReachV1StoresConnectionResourceStore**](ReachV1StoresConnectionResourceStore.md) | | [optional] [default to undefined]
11+
12+
## Example
13+
14+
```typescript
15+
import { ReachV1StoresConnectionResource } from '@hostinger/sdk';
16+
17+
const instance: ReachV1StoresConnectionResource = {
18+
uuid,
19+
store_id,
20+
store,
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)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# ReachV1StoresConnectionResourceStore
2+
3+
Reach store created for the connection.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**uuid** | **string** | | [optional] [default to undefined]
10+
**currency** | **string** | | [optional] [default to undefined]
11+
**synced_at** | **string** | | [optional] [default to undefined]
12+
13+
## Example
14+
15+
```typescript
16+
import { ReachV1StoresConnectionResourceStore } from '@hostinger/sdk';
17+
18+
const instance: ReachV1StoresConnectionResourceStore = {
19+
uuid,
20+
currency,
21+
synced_at,
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)

‎index.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.4.4
6+
* API Version: 2.5.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

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hostinger/sdk",
3-
"version": "2.4.4",
3+
"version": "2.5.0",
44
"description": "Hostinger API TypeScript SDK",
55
"author": "Hostinger",
66
"repository": {

0 commit comments

Comments
 (0)