hostinger-api-sdk 1.1.0 → 1.2.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 +1227 -29
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +768 -1
  7. package/dist/api.js +818 -6
  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 +768 -1
  15. package/dist/esm/api.js +801 -1
  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/EcommerceMiscellaneousApi.md +54 -0
  27. package/docs/EcommerceSalesChannelsApi.md +120 -0
  28. package/docs/EcommerceV1MiscellaneousCustomStorefrontInstructionsResource.md +20 -0
  29. package/docs/EcommerceV1SalesChannelSalesChannelCreationResource.md +20 -0
  30. package/docs/EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel.md +32 -0
  31. package/docs/EcommerceV1SalesChannelSalesChannelListResource.md +20 -0
  32. package/docs/EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner.md +32 -0
  33. package/docs/EcommerceV1SalesChannelStoreRequest.md +24 -0
  34. package/docs/HostingPHPApi.md +364 -0
  35. package/docs/HostingV1PhpPhpDetailsResource.md +30 -0
  36. package/docs/HostingV1PhpPhpInfoResource.md +20 -0
  37. package/docs/HostingV1PhpPhpOptionResource.md +30 -0
  38. package/docs/HostingV1PhpPhpVersionsResource.md +22 -0
  39. package/docs/HostingV1PhpUpdatePhpExtensionsRequest.md +22 -0
  40. package/docs/HostingV1PhpUpdatePhpOptionsRequest.md +20 -0
  41. package/docs/HostingV1PhpUpdatePhpOptionsRequestOptionsValue.md +18 -0
  42. package/docs/HostingV1PhpUpdatePhpVersionRequest.md +20 -0
  43. package/index.ts +1 -1
  44. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.1.0
4
+ * API Version: 1.2.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.1.0
6
+ * API Version: 1.2.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.1.0
4
+ * API Version: 1.2.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.1.0
6
+ * API Version: 1.2.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.1.0
4
+ * API Version: 1.2.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.1.0
6
+ * API Version: 1.2.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.1.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.2.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.1.0
4
+ * API Version: 1.2.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.1.0
6
+ * API Version: 1.2.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.1.0
4
+ * API Version: 1.2.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.1.0
7
+ * API Version: 1.2.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,54 @@
1
+ # EcommerceMiscellaneousApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getCustomStorefrontSetupInstructionsV1**](#getcustomstorefrontsetupinstructionsv1) | **GET** /api/ecommerce/v1/miscellaneous/custom-storefront-instructions | Get custom storefront setup instructions|
8
+
9
+ # **getCustomStorefrontSetupInstructionsV1**
10
+ > EcommerceV1MiscellaneousCustomStorefrontInstructionsResource getCustomStorefrontSetupInstructionsV1()
11
+
12
+ Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ EcommerceMiscellaneousApi,
19
+ Configuration
20
+ } from 'hostinger-api-sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new EcommerceMiscellaneousApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.getCustomStorefrontSetupInstructionsV1();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **EcommerceV1MiscellaneousCustomStorefrontInstructionsResource**
35
+
36
+ ### Authorization
37
+
38
+ [apiToken](../README.md#apiToken)
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Success response | - |
50
+ |**401** | Unauthenticated response | - |
51
+ |**500** | Error response | - |
52
+
53
+ [[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)
54
+
@@ -0,0 +1,120 @@
1
+ # EcommerceSalesChannelsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createACustomSalesChannelV1**](#createacustomsaleschannelv1) | **POST** /api/ecommerce/v1/stores/{store_id}/sales-channels | Create a custom sales channel|
8
+ |[**listSalesChannelsV1**](#listsaleschannelsv1) | **GET** /api/ecommerce/v1/stores/{store_id}/sales-channels | List sales channels|
9
+
10
+ # **createACustomSalesChannelV1**
11
+ > EcommerceV1SalesChannelSalesChannelCreationResource createACustomSalesChannelV1(ecommerceV1SalesChannelStoreRequest)
12
+
13
+ Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ EcommerceSalesChannelsApi,
20
+ Configuration,
21
+ EcommerceV1SalesChannelStoreRequest
22
+ } from 'hostinger-api-sdk';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new EcommerceSalesChannelsApi(configuration);
26
+
27
+ let storeId: string; //The ID of the store to create the sales channel for. (default to undefined)
28
+ let ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest; //
29
+
30
+ const { status, data } = await apiInstance.createACustomSalesChannelV1(
31
+ storeId,
32
+ ecommerceV1SalesChannelStoreRequest
33
+ );
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ |Name | Type | Description | Notes|
39
+ |------------- | ------------- | ------------- | -------------|
40
+ | **ecommerceV1SalesChannelStoreRequest** | **EcommerceV1SalesChannelStoreRequest**| | |
41
+ | **storeId** | [**string**] | The ID of the store to create the sales channel for. | defaults to undefined|
42
+
43
+
44
+ ### Return type
45
+
46
+ **EcommerceV1SalesChannelSalesChannelCreationResource**
47
+
48
+ ### Authorization
49
+
50
+ [apiToken](../README.md#apiToken)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: application/json
55
+ - **Accept**: application/json
56
+
57
+
58
+ ### HTTP response details
59
+ | Status code | Description | Response headers |
60
+ |-------------|-------------|------------------|
61
+ |**201** | Created response | - |
62
+ |**422** | Validation error response | - |
63
+ |**401** | Unauthenticated response | - |
64
+ |**500** | Error response | - |
65
+
66
+ [[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)
67
+
68
+ # **listSalesChannelsV1**
69
+ > EcommerceV1SalesChannelSalesChannelListResource listSalesChannelsV1()
70
+
71
+ List a store\'s active sales channels with their full metadata.
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ EcommerceSalesChannelsApi,
78
+ Configuration
79
+ } from 'hostinger-api-sdk';
80
+
81
+ const configuration = new Configuration();
82
+ const apiInstance = new EcommerceSalesChannelsApi(configuration);
83
+
84
+ let storeId: string; //The ID of the store to list sales channels for. (default to undefined)
85
+
86
+ const { status, data } = await apiInstance.listSalesChannelsV1(
87
+ storeId
88
+ );
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ |Name | Type | Description | Notes|
94
+ |------------- | ------------- | ------------- | -------------|
95
+ | **storeId** | [**string**] | The ID of the store to list sales channels for. | defaults to undefined|
96
+
97
+
98
+ ### Return type
99
+
100
+ **EcommerceV1SalesChannelSalesChannelListResource**
101
+
102
+ ### Authorization
103
+
104
+ [apiToken](../README.md#apiToken)
105
+
106
+ ### HTTP request headers
107
+
108
+ - **Content-Type**: Not defined
109
+ - **Accept**: application/json
110
+
111
+
112
+ ### HTTP response details
113
+ | Status code | Description | Response headers |
114
+ |-------------|-------------|------------------|
115
+ |**200** | Success response | - |
116
+ |**401** | Unauthenticated response | - |
117
+ |**500** | Error response | - |
118
+
119
+ [[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)
120
+
@@ -0,0 +1,20 @@
1
+ # EcommerceV1MiscellaneousCustomStorefrontInstructionsResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **instructions** | **string** | Markdown setup instructions for connecting a custom sales channel to your store. | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { EcommerceV1MiscellaneousCustomStorefrontInstructionsResource } from 'hostinger-api-sdk';
14
+
15
+ const instance: EcommerceV1MiscellaneousCustomStorefrontInstructionsResource = {
16
+ instructions,
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,20 @@
1
+ # EcommerceV1SalesChannelSalesChannelCreationResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sales_channel** | [**EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel**](EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { EcommerceV1SalesChannelSalesChannelCreationResource } from 'hostinger-api-sdk';
14
+
15
+ const instance: EcommerceV1SalesChannelSalesChannelCreationResource = {
16
+ sales_channel,
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,32 @@
1
+ # EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Sales channel ID | [optional] [default to undefined]
9
+ **type** | **string** | Sales channel type | [optional] [default to undefined]
10
+ **is_primary** | **boolean** | Whether this is the primary sales channel. | [optional] [default to undefined]
11
+ **is_active** | **boolean** | Whether the sales channel is active. | [optional] [default to undefined]
12
+ **external_id** | **string** | External identifier for the sales channel. | [optional] [default to undefined]
13
+ **name** | **string** | Merchant-facing custom name. | [optional] [default to undefined]
14
+ **domain** | **string** | Public address where the custom sales channel lives. | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel } from 'hostinger-api-sdk';
20
+
21
+ const instance: EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel = {
22
+ id,
23
+ type,
24
+ is_primary,
25
+ is_active,
26
+ external_id,
27
+ name,
28
+ domain,
29
+ };
30
+ ```
31
+
32
+ [[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
+ # EcommerceV1SalesChannelSalesChannelListResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sales_channels** | [**Array<EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner>**](EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner.md) | The store\'s active sales channels. | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { EcommerceV1SalesChannelSalesChannelListResource } from 'hostinger-api-sdk';
14
+
15
+ const instance: EcommerceV1SalesChannelSalesChannelListResource = {
16
+ sales_channels,
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,32 @@
1
+ # EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Sales channel ID | [optional] [default to undefined]
9
+ **type** | **string** | Sales channel type | [optional] [default to undefined]
10
+ **is_primary** | **boolean** | Whether this is the primary sales channel. | [optional] [default to undefined]
11
+ **is_active** | **boolean** | Whether the sales channel is active. | [optional] [default to undefined]
12
+ **external_id** | **string** | External identifier for the sales channel. | [optional] [default to undefined]
13
+ **name** | **string** | Merchant-facing custom name. | [optional] [default to undefined]
14
+ **domain** | **string** | Public address where the sales channel lives. | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner } from 'hostinger-api-sdk';
20
+
21
+ const instance: EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner = {
22
+ id,
23
+ type,
24
+ is_primary,
25
+ is_active,
26
+ external_id,
27
+ name,
28
+ domain,
29
+ };
30
+ ```
31
+
32
+ [[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
+ # EcommerceV1SalesChannelStoreRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **type** | **string** | Sales channel type. Only \"custom\" channels can be created via the API. | [default to undefined]
9
+ **name** | **string** | Merchant-facing custom name shown in the sales channels list. | [default to undefined]
10
+ **url** | **string** | Optional public address where the custom sales channel lives. | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { EcommerceV1SalesChannelStoreRequest } from 'hostinger-api-sdk';
16
+
17
+ const instance: EcommerceV1SalesChannelStoreRequest = {
18
+ type,
19
+ name,
20
+ url,
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)