@hostinger/sdk 1.52.1 → 1.52.2
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.
- package/README.md +2 -2
- package/api.ts +450 -18
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +317 -16
- package/dist/api.js +250 -15
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +317 -16
- package/dist/esm/api.js +250 -15
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HostingGitApi.md +178 -2
- package/docs/HostingNodeJSApi.md +1 -1
- package/docs/HostingV1GitGitAutoDeploymentSettingsResource.md +31 -0
- package/docs/HostingV1GitGitCommitAuthorResource.md +22 -0
- package/docs/HostingV1GitGitCommitResource.md +24 -0
- package/docs/HostingV1GitUpdateGitAutoDeploymentSettingsRequest.md +30 -0
- package/docs/HostingV1NodeJsSourceOptionsResource.md +11 -0
- package/docs/HostingV1NodeJsStartBuildRequest.md +1 -1
- package/docs/HostingV1NodeJsStartBuildRequestSourceOptions.md +9 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/HostingGitApi.md
CHANGED
|
@@ -4,13 +4,128 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**deleteGitAutoDeploymentSettingsV1**](#deletegitautodeploymentsettingsv1) | **DELETE** /api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings | Delete Git auto-deployment settings|
|
|
8
|
+
|[**getGitAutoDeploymentSettingsV1**](#getgitautodeploymentsettingsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings | Get Git auto-deployment settings|
|
|
7
9
|
|[**listGitInstallationRepositoriesV1**](#listgitinstallationrepositoriesv1) | **GET** /api/hosting/v1/git/installations/{uuid}/repositories | List Git installation repositories|
|
|
8
10
|
|[**listGitInstallationsV1**](#listgitinstallationsv1) | **GET** /api/hosting/v1/git/installations | List Git installations|
|
|
11
|
+
|[**updateGitAutoDeploymentSettingsV1**](#updategitautodeploymentsettingsv1) | **PUT** /api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings | Update Git auto-deployment settings|
|
|
12
|
+
|
|
13
|
+
# **deleteGitAutoDeploymentSettingsV1**
|
|
14
|
+
> CommonSuccessEmptyResource deleteGitAutoDeploymentSettingsV1()
|
|
15
|
+
|
|
16
|
+
Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
HostingGitApi,
|
|
23
|
+
Configuration
|
|
24
|
+
} from '@hostinger/sdk';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new HostingGitApi(configuration);
|
|
28
|
+
|
|
29
|
+
let username: string; // (default to undefined)
|
|
30
|
+
let domain: string; //Domain name (default to undefined)
|
|
31
|
+
|
|
32
|
+
const { status, data } = await apiInstance.deleteGitAutoDeploymentSettingsV1(
|
|
33
|
+
username,
|
|
34
|
+
domain
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
43
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**CommonSuccessEmptyResource**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[apiToken](../README.md#apiToken)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: Not defined
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**200** | Success empty response | - |
|
|
64
|
+
|**401** | Unauthenticated response | - |
|
|
65
|
+
|**500** | Error response | - |
|
|
66
|
+
|
|
67
|
+
[[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)
|
|
68
|
+
|
|
69
|
+
# **getGitAutoDeploymentSettingsV1**
|
|
70
|
+
> HostingV1GitGitAutoDeploymentSettingsResource getGitAutoDeploymentSettingsV1()
|
|
71
|
+
|
|
72
|
+
Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
HostingGitApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from '@hostinger/sdk';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new HostingGitApi(configuration);
|
|
84
|
+
|
|
85
|
+
let username: string; // (default to undefined)
|
|
86
|
+
let domain: string; //Domain name (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.getGitAutoDeploymentSettingsV1(
|
|
89
|
+
username,
|
|
90
|
+
domain
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
99
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
**HostingV1GitGitAutoDeploymentSettingsResource**
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
[apiToken](../README.md#apiToken)
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: Not defined
|
|
113
|
+
- **Accept**: application/json
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### HTTP response details
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
|**200** | Success response | - |
|
|
120
|
+
|**401** | Unauthenticated response | - |
|
|
121
|
+
|**500** | Error response | - |
|
|
122
|
+
|
|
123
|
+
[[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)
|
|
9
124
|
|
|
10
125
|
# **listGitInstallationRepositoriesV1**
|
|
11
126
|
> Array<HostingV1GitGitRepositoryResource> listGitInstallationRepositoriesV1()
|
|
12
127
|
|
|
13
|
-
Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and `default_branch`
|
|
128
|
+
Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
14
129
|
|
|
15
130
|
### Example
|
|
16
131
|
|
|
@@ -65,7 +180,7 @@ const { status, data } = await apiInstance.listGitInstallationRepositoriesV1(
|
|
|
65
180
|
# **listGitInstallationsV1**
|
|
66
181
|
> Array<HostingV1GitGitInstallationResource> listGitInstallationsV1()
|
|
67
182
|
|
|
68
|
-
Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git
|
|
183
|
+
Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
69
184
|
|
|
70
185
|
### Example
|
|
71
186
|
|
|
@@ -119,3 +234,64 @@ const { status, data } = await apiInstance.listGitInstallationsV1(
|
|
|
119
234
|
|
|
120
235
|
[[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)
|
|
121
236
|
|
|
237
|
+
# **updateGitAutoDeploymentSettingsV1**
|
|
238
|
+
> CommonSuccessEmptyResource updateGitAutoDeploymentSettingsV1(hostingV1GitUpdateGitAutoDeploymentSettingsRequest)
|
|
239
|
+
|
|
240
|
+
Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
241
|
+
|
|
242
|
+
### Example
|
|
243
|
+
|
|
244
|
+
```typescript
|
|
245
|
+
import {
|
|
246
|
+
HostingGitApi,
|
|
247
|
+
Configuration,
|
|
248
|
+
HostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
249
|
+
} from '@hostinger/sdk';
|
|
250
|
+
|
|
251
|
+
const configuration = new Configuration();
|
|
252
|
+
const apiInstance = new HostingGitApi(configuration);
|
|
253
|
+
|
|
254
|
+
let username: string; // (default to undefined)
|
|
255
|
+
let domain: string; //Domain name (default to undefined)
|
|
256
|
+
let hostingV1GitUpdateGitAutoDeploymentSettingsRequest: HostingV1GitUpdateGitAutoDeploymentSettingsRequest; //
|
|
257
|
+
|
|
258
|
+
const { status, data } = await apiInstance.updateGitAutoDeploymentSettingsV1(
|
|
259
|
+
username,
|
|
260
|
+
domain,
|
|
261
|
+
hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
262
|
+
);
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Parameters
|
|
266
|
+
|
|
267
|
+
|Name | Type | Description | Notes|
|
|
268
|
+
|------------- | ------------- | ------------- | -------------|
|
|
269
|
+
| **hostingV1GitUpdateGitAutoDeploymentSettingsRequest** | **HostingV1GitUpdateGitAutoDeploymentSettingsRequest**| | |
|
|
270
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
271
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
### Return type
|
|
275
|
+
|
|
276
|
+
**CommonSuccessEmptyResource**
|
|
277
|
+
|
|
278
|
+
### Authorization
|
|
279
|
+
|
|
280
|
+
[apiToken](../README.md#apiToken)
|
|
281
|
+
|
|
282
|
+
### HTTP request headers
|
|
283
|
+
|
|
284
|
+
- **Content-Type**: application/json
|
|
285
|
+
- **Accept**: application/json
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
### HTTP response details
|
|
289
|
+
| Status code | Description | Response headers |
|
|
290
|
+
|-------------|-------------|------------------|
|
|
291
|
+
|**200** | Success empty response | - |
|
|
292
|
+
|**422** | Validation error response | - |
|
|
293
|
+
|**401** | Unauthenticated response | - |
|
|
294
|
+
|**500** | Error response | - |
|
|
295
|
+
|
|
296
|
+
[[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)
|
|
297
|
+
|
package/docs/HostingNodeJSApi.md
CHANGED
|
@@ -804,7 +804,7 @@ const { status, data } = await apiInstance.restartNodeJsApplicationV1(
|
|
|
804
804
|
# **startNodeJsBuildV1**
|
|
805
805
|
> HostingV1NodeJsBuildResource startNodeJsBuildV1(hostingV1NodeJsStartBuildRequest)
|
|
806
806
|
|
|
807
|
-
Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint.
|
|
807
|
+
Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
808
808
|
|
|
809
809
|
### Example
|
|
810
810
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# HostingV1GitGitAutoDeploymentSettingsResource
|
|
2
|
+
|
|
3
|
+
Every field is null when the website has no Git auto-deployment configured.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**installation_uuid** | **string** | Git installation the repository is accessed through | [default to undefined]
|
|
10
|
+
**is_enabled** | **boolean** | Whether pushes to the branch deploy automatically | [default to undefined]
|
|
11
|
+
**owner** | **string** | Repository owner login | [default to undefined]
|
|
12
|
+
**repository** | **string** | Repository name | [default to undefined]
|
|
13
|
+
**branch** | **string** | Branch that is deployed | [default to undefined]
|
|
14
|
+
**directory** | **string** | Subdirectory under the website document root the repository deploys into. Empty means the document root. | [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { HostingV1GitGitAutoDeploymentSettingsResource } from '@hostinger/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: HostingV1GitGitAutoDeploymentSettingsResource = {
|
|
22
|
+
installation_uuid,
|
|
23
|
+
is_enabled,
|
|
24
|
+
owner,
|
|
25
|
+
repository,
|
|
26
|
+
branch,
|
|
27
|
+
directory,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[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,22 @@
|
|
|
1
|
+
# HostingV1GitGitCommitAuthorResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Author name as recorded in the commit | [default to undefined]
|
|
9
|
+
**avatar_url** | **string** | Avatar URL of the author on the Git provider | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { HostingV1GitGitCommitAuthorResource } from '@hostinger/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: HostingV1GitGitCommitAuthorResource = {
|
|
17
|
+
name,
|
|
18
|
+
avatar_url,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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
|
+
# HostingV1GitGitCommitResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**hash** | **string** | Full commit SHA | [default to undefined]
|
|
9
|
+
**message** | **string** | Commit message | [default to undefined]
|
|
10
|
+
**author** | [**HostingV1GitGitCommitAuthorResource**](HostingV1GitGitCommitAuthorResource.md) | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { HostingV1GitGitCommitResource } from '@hostinger/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: HostingV1GitGitCommitResource = {
|
|
18
|
+
hash,
|
|
19
|
+
message,
|
|
20
|
+
author,
|
|
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,30 @@
|
|
|
1
|
+
# HostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**installation_uuid** | **string** | Active Git installation from `List Git installations` | [default to undefined]
|
|
9
|
+
**owner** | **string** | Repository owner login, as returned by `List Git installation repositories`. GitLab group paths use slashes. | [default to undefined]
|
|
10
|
+
**repository** | **string** | Repository name without the .git suffix | [default to undefined]
|
|
11
|
+
**branch** | **string** | Branch to deploy | [default to undefined]
|
|
12
|
+
**directory** | **string** | Subdirectory under the website document root to deploy into. Empty, null or omitted means the document root. | [optional] [default to '']
|
|
13
|
+
**is_enabled** | **boolean** | Whether pushes to the branch deploy automatically | [optional] [default to true]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { HostingV1GitUpdateGitAutoDeploymentSettingsRequest } from '@hostinger/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: HostingV1GitUpdateGitAutoDeploymentSettingsRequest = {
|
|
21
|
+
installation_uuid,
|
|
22
|
+
owner,
|
|
23
|
+
repository,
|
|
24
|
+
branch,
|
|
25
|
+
directory,
|
|
26
|
+
is_enabled,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
# HostingV1NodeJsSourceOptionsResource
|
|
2
2
|
|
|
3
|
+
Which keys carry values depends on the parent source_type; the others are null.
|
|
3
4
|
|
|
4
5
|
## Properties
|
|
5
6
|
|
|
6
7
|
Name | Type | Description | Notes
|
|
7
8
|
------------ | ------------- | ------------- | -------------
|
|
8
9
|
**archive_path** | **string** | Present if sourceType is \"archive\" | [optional] [default to undefined]
|
|
10
|
+
**owner** | **string** | Repository owner login (present if source_type is \"git\") | [default to undefined]
|
|
11
|
+
**repository** | **string** | Repository name without the .git suffix (present if source_type is \"git\") | [default to undefined]
|
|
12
|
+
**branch** | **string** | Branch that was built (present if source_type is \"git\") | [default to undefined]
|
|
13
|
+
**installation_uuid** | **string** | Git installation used to access the repository (present if source_type is \"git\") | [default to undefined]
|
|
14
|
+
**commit** | [**HostingV1GitGitCommitResource**](HostingV1GitGitCommitResource.md) | | [default to undefined]
|
|
9
15
|
|
|
10
16
|
## Example
|
|
11
17
|
|
|
@@ -14,6 +20,11 @@ import { HostingV1NodeJsSourceOptionsResource } from '@hostinger/sdk';
|
|
|
14
20
|
|
|
15
21
|
const instance: HostingV1NodeJsSourceOptionsResource = {
|
|
16
22
|
archive_path,
|
|
23
|
+
owner,
|
|
24
|
+
repository,
|
|
25
|
+
branch,
|
|
26
|
+
installation_uuid,
|
|
27
|
+
commit,
|
|
17
28
|
};
|
|
18
29
|
```
|
|
19
30
|
|
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**build_script** | **string** | Build script that will be ran to build the application | [default to undefined]
|
|
13
13
|
**entry_file** | **string** | The main entry point file for the application | [optional] [default to undefined]
|
|
14
14
|
**package_manager** | **string** | Package manager | [optional] [default to undefined]
|
|
15
|
-
**source_type** | **string** |
|
|
15
|
+
**source_type** | **string** | Where the files come from: `archive` (an uploaded archive on the website) or `git` (a branch of a repository reachable through a Git installation). | [default to undefined]
|
|
16
16
|
**source_options** | [**HostingV1NodeJsStartBuildRequestSourceOptions**](HostingV1NodeJsStartBuildRequestSourceOptions.md) | | [default to undefined]
|
|
17
17
|
|
|
18
18
|
## Example
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# HostingV1NodeJsStartBuildRequestSourceOptions
|
|
2
2
|
|
|
3
|
-
Source-specific options
|
|
3
|
+
Source-specific options. For `archive` send `archive_path`. For `git` send `owner`, `repository`, `branch` and `installation_uuid`, taken from `List Git installations` and `List Git installation repositories`.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**archive_path** | **string** | The path to the archive file relative to the document root of the vhost (required if source is \"archive\") | [optional] [default to undefined]
|
|
10
|
+
**owner** | **string** | Repository owner login (required if source is \"git\"). GitLab group paths use slashes. | [optional] [default to undefined]
|
|
11
|
+
**repository** | **string** | Repository name without the .git suffix (required if source is \"git\") | [optional] [default to undefined]
|
|
12
|
+
**branch** | **string** | Branch to build (required if source is \"git\") | [optional] [default to undefined]
|
|
13
|
+
**installation_uuid** | **string** | Git installation used to access the repository (required if source is \"git\") | [optional] [default to undefined]
|
|
10
14
|
|
|
11
15
|
## Example
|
|
12
16
|
|
|
@@ -15,6 +19,10 @@ import { HostingV1NodeJsStartBuildRequestSourceOptions } from '@hostinger/sdk';
|
|
|
15
19
|
|
|
16
20
|
const instance: HostingV1NodeJsStartBuildRequestSourceOptions = {
|
|
17
21
|
archive_path,
|
|
22
|
+
owner,
|
|
23
|
+
repository,
|
|
24
|
+
branch,
|
|
25
|
+
installation_uuid,
|
|
18
26
|
};
|
|
19
27
|
```
|
|
20
28
|
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.52.
|
|
6
|
+
* API Version: 1.52.2
|
|
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
|