Skip to content

Commit 3dcae9b

Browse files
chore: sdk update
1 parent 0e3177c commit 3dcae9b

10 files changed

Lines changed: 32 additions & 16 deletions

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
## @hostinger/sdk@3.2.0
1+
## @hostinger/sdk@3.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@3.2.0 --save
8+
npm install @hostinger/sdk@3.3.0 --save
99
```

‎api.ts‎

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 3.2.0
6+
* API Version: 3.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
@@ -9868,6 +9868,12 @@ export interface HostingV1NodeJsSourceOptionsResource {
98689868
* @memberof HostingV1NodeJsSourceOptionsResource
98699869
*/
98709870
'archive_path': string | null;
9871+
/**
9872+
* Summary of the deployment given when it was started (present if source_type is \"archive\" and one was sent)
9873+
* @type {string}
9874+
* @memberof HostingV1NodeJsSourceOptionsResource
9875+
*/
9876+
'message': string | null;
98719877
/**
98729878
* Repository owner login (present if source_type is \"git\")
98739879
* @type {string}
@@ -10007,7 +10013,7 @@ export const HostingV1NodeJsStartBuildRequestSourceTypeEnum = {
1000710013
export type HostingV1NodeJsStartBuildRequestSourceTypeEnum = typeof HostingV1NodeJsStartBuildRequestSourceTypeEnum[keyof typeof HostingV1NodeJsStartBuildRequestSourceTypeEnum];
1000810014

1000910015
/**
10010-
* 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`.
10016+
* Source-specific options. For `archive` send `archive_path` and a `message` describing the change. For `git` send `owner`, `repository`, `branch` and `installation_uuid`, taken from `List Git installations` and `List Git installation repositories`.
1001110017
* @export
1001210018
* @interface HostingV1NodeJsStartBuildRequestSourceOptions
1001310019
*/
@@ -10018,6 +10024,12 @@ export interface HostingV1NodeJsStartBuildRequestSourceOptions {
1001810024
* @memberof HostingV1NodeJsStartBuildRequestSourceOptions
1001910025
*/
1002010026
'archive_path': string;
10027+
/**
10028+
* Short summary of what this deployment changes, shown in the website\'s deployment history the way a commit message is for git deployments. Without it the history only shows the archive file name, so always send one: keep the first line under 72 characters and describe the change, not the upload. Only used if source is \"archive\".
10029+
* @type {string}
10030+
* @memberof HostingV1NodeJsStartBuildRequestSourceOptions
10031+
*/
10032+
'message': string | null;
1002110033
/**
1002210034
* Repository owner login (required if source is \"git\"). GitLab group paths use slashes.
1002310035
* @type {string}
@@ -37957,7 +37969,7 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration?: Confi
3795737969
};
3795837970
},
3795937971
/**
37960-
* 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.
37972+
* 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. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. 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.
3796137973
* @summary Start Node.js build
3796237974
* @param {string} username
3796337975
* @param {string} domain Domain name
@@ -38264,7 +38276,7 @@ export const HostingNodeJSApiFp = function(configuration?: Configuration) {
3826438276
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3826538277
},
3826638278
/**
38267-
* 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.
38279+
* 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. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. 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.
3826838280
* @summary Start Node.js build
3826938281
* @param {string} username
3827038282
* @param {string} domain Domain name
@@ -38475,7 +38487,7 @@ export const HostingNodeJSApiFactory = function (configuration?: Configuration,
3847538487
return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
3847638488
},
3847738489
/**
38478-
* 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.
38490+
* 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. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. 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.
3847938491
* @summary Start Node.js build
3848038492
* @param {string} username
3848138493
* @param {string} domain Domain name
@@ -38710,7 +38722,7 @@ export class HostingNodeJSApi extends BaseAPI {
3871038722
}
3871138723

3871238724
/**
38713-
* 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.
38725+
* 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. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. 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.
3871438726
* @summary Start Node.js build
3871538727
* @param {string} username
3871638728
* @param {string} domain Domain name

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

‎docs/HostingNodeJSApi.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ const { status, data } = await apiInstance.restartNodeJsApplicationV1(
874874
# **startNodeJsBuildV1**
875875
> HostingV1NodeJsBuildResource startNodeJsBuildV1(hostingV1NodeJsStartBuildRequest)
876876
877-
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.
877+
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. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. 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.
878878

879879
### Example
880880

‎docs/HostingV1NodeJsSourceOptionsResource.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Which keys carry values depends on the parent source_type; the others are null.
77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**archive_path** | **string** | Present if sourceType is \"archive\" | [optional] [default to undefined]
10+
**message** | **string** | Summary of the deployment given when it was started (present if source_type is \"archive\" and one was sent) | [optional] [default to undefined]
1011
**owner** | **string** | Repository owner login (present if source_type is \"git\") | [default to undefined]
1112
**repository** | **string** | Repository name without the .git suffix (present if source_type is \"git\") | [default to undefined]
1213
**branch** | **string** | Branch that was built (present if source_type is \"git\") | [default to undefined]
@@ -20,6 +21,7 @@ import { HostingV1NodeJsSourceOptionsResource } from '@hostinger/sdk';
2021

2122
const instance: HostingV1NodeJsSourceOptionsResource = {
2223
archive_path,
24+
message,
2325
owner,
2426
repository,
2527
branch,

‎docs/HostingV1NodeJsStartBuildRequestSourceOptions.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# HostingV1NodeJsStartBuildRequestSourceOptions
22

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`.
3+
Source-specific options. For `archive` send `archive_path` and a `message` describing the change. For `git` send `owner`, `repository`, `branch` and `installation_uuid`, taken from `List Git installations` and `List Git installation repositories`.
44

55
## Properties
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**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+
**message** | **string** | Short summary of what this deployment changes, shown in the website\'s deployment history the way a commit message is for git deployments. Without it the history only shows the archive file name, so always send one: keep the first line under 72 characters and describe the change, not the upload. Only used if source is \"archive\". | [optional] [default to undefined]
1011
**owner** | **string** | Repository owner login (required if source is \"git\"). GitLab group paths use slashes. | [optional] [default to undefined]
1112
**repository** | **string** | Repository name without the .git suffix (required if source is \"git\") | [optional] [default to undefined]
1213
**branch** | **string** | Branch to build (required if source is \"git\") | [optional] [default to undefined]
@@ -19,6 +20,7 @@ import { HostingV1NodeJsStartBuildRequestSourceOptions } from '@hostinger/sdk';
1920

2021
const instance: HostingV1NodeJsStartBuildRequestSourceOptions = {
2122
archive_path,
23+
message,
2224
owner,
2325
repository,
2426
branch,

‎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: 3.2.0
6+
* API Version: 3.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

0 commit comments

Comments
 (0)