hostinger-api-sdk 2.1.3 → 2.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.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@2.1.3
1
+ ## @hostinger/sdk@2.2.0
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install @hostinger/sdk@2.1.3 --save
8
+ npm install @hostinger/sdk@2.2.0 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.1.3
6
+ * API Version: 2.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
@@ -8937,6 +8937,37 @@ export interface HostingV1NodeJsEnvVarResource {
8937
8937
  */
8938
8938
  'value': string;
8939
8939
  }
8940
+ /**
8941
+ *
8942
+ * @export
8943
+ * @interface HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8944
+ */
8945
+ export interface HostingV1NodeJsGetBuildSettingsFromRepositoryRequest {
8946
+ /**
8947
+ * Repository owner login, as returned by `List Git installation repositories`. GitLab group paths use slashes.
8948
+ * @type {string}
8949
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8950
+ */
8951
+ 'owner': string;
8952
+ /**
8953
+ * Repository name without the .git suffix
8954
+ * @type {string}
8955
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8956
+ */
8957
+ 'repository': string;
8958
+ /**
8959
+ * Branch whose package.json is inspected
8960
+ * @type {string}
8961
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8962
+ */
8963
+ 'branch': string;
8964
+ /**
8965
+ * Git installation used to access the repository, taken from `List Git installations`
8966
+ * @type {string}
8967
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8968
+ */
8969
+ 'installation_uuid': string;
8970
+ }
8940
8971
  /**
8941
8972
  *
8942
8973
  * @export
@@ -35129,6 +35160,76 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration?: Confi
35129
35160
 
35130
35161
 
35131
35162
 
35163
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35164
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35165
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35166
+
35167
+ return {
35168
+ url: toPathString(localVarUrlObj),
35169
+ options: localVarRequestOptions,
35170
+ };
35171
+ },
35172
+ /**
35173
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
35174
+ * @summary Get Node.js build settings from repository
35175
+ * @param {string} username
35176
+ * @param {string} domain Domain name
35177
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
35178
+ * @param {string} repository Repository name without the .git suffix
35179
+ * @param {string} branch Branch whose package.json is inspected
35180
+ * @param {string} installationUuid Git installation used to access the repository, taken from `List Git installations`
35181
+ * @param {*} [options] Override http request option.
35182
+ * @throws {RequiredError}
35183
+ */
35184
+ getNodeJsBuildSettingsFromRepositoryV1: async (username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35185
+ // verify required parameter 'username' is not null or undefined
35186
+ assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'username', username)
35187
+ // verify required parameter 'domain' is not null or undefined
35188
+ assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'domain', domain)
35189
+ // verify required parameter 'owner' is not null or undefined
35190
+ assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'owner', owner)
35191
+ // verify required parameter 'repository' is not null or undefined
35192
+ assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'repository', repository)
35193
+ // verify required parameter 'branch' is not null or undefined
35194
+ assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'branch', branch)
35195
+ // verify required parameter 'installationUuid' is not null or undefined
35196
+ assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'installationUuid', installationUuid)
35197
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-repository`
35198
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
35199
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
35200
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35201
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35202
+ let baseOptions;
35203
+ if (configuration) {
35204
+ baseOptions = configuration.baseOptions;
35205
+ }
35206
+
35207
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35208
+ const localVarHeaderParameter = {} as any;
35209
+ const localVarQueryParameter = {} as any;
35210
+
35211
+ // authentication apiToken required
35212
+ // http bearer authentication required
35213
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
35214
+
35215
+ if (owner !== undefined) {
35216
+ localVarQueryParameter['owner'] = owner;
35217
+ }
35218
+
35219
+ if (repository !== undefined) {
35220
+ localVarQueryParameter['repository'] = repository;
35221
+ }
35222
+
35223
+ if (branch !== undefined) {
35224
+ localVarQueryParameter['branch'] = branch;
35225
+ }
35226
+
35227
+ if (installationUuid !== undefined) {
35228
+ localVarQueryParameter['installation_uuid'] = installationUuid;
35229
+ }
35230
+
35231
+
35232
+
35132
35233
  setSearchParams(localVarUrlObj, localVarQueryParameter);
35133
35234
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35134
35235
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -35702,6 +35803,23 @@ export const HostingNodeJSApiFp = function(configuration?: Configuration) {
35702
35803
  const localVarOperationServerBasePath = operationServerMap['HostingNodeJSApi.getNodeJsBuildSettingsFromArchiveV1']?.[0]?.url;
35703
35804
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35704
35805
  },
35806
+ /**
35807
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
35808
+ * @summary Get Node.js build settings from repository
35809
+ * @param {string} username
35810
+ * @param {string} domain Domain name
35811
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
35812
+ * @param {string} repository Repository name without the .git suffix
35813
+ * @param {string} branch Branch whose package.json is inspected
35814
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
35815
+ * @param {*} [options] Override http request option.
35816
+ * @throws {RequiredError}
35817
+ */
35818
+ async getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1NodeJsBuildSettingsResource>> {
35819
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options);
35820
+ const localVarOperationServerBasePath = operationServerMap['HostingNodeJSApi.getNodeJsBuildSettingsFromRepositoryV1']?.[0]?.url;
35821
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35822
+ },
35705
35823
  /**
35706
35824
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
35707
35825
  * @summary Get Node.js build settings
@@ -35914,6 +36032,21 @@ export const HostingNodeJSApiFactory = function (configuration?: Configuration,
35914
36032
  getNodeJsBuildSettingsFromArchiveV1(username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsBuildSettingsResource> {
35915
36033
  return localVarFp.getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(axios, basePath));
35916
36034
  },
36035
+ /**
36036
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
36037
+ * @summary Get Node.js build settings from repository
36038
+ * @param {string} username
36039
+ * @param {string} domain Domain name
36040
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
36041
+ * @param {string} repository Repository name without the .git suffix
36042
+ * @param {string} branch Branch whose package.json is inspected
36043
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
36044
+ * @param {*} [options] Override http request option.
36045
+ * @throws {RequiredError}
36046
+ */
36047
+ getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsBuildSettingsResource> {
36048
+ return localVarFp.getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options).then((request) => request(axios, basePath));
36049
+ },
35917
36050
  /**
35918
36051
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
35919
36052
  * @summary Get Node.js build settings
@@ -36116,6 +36249,23 @@ export class HostingNodeJSApi extends BaseAPI {
36116
36249
  return HostingNodeJSApiFp(this.configuration).getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(this.axios, this.basePath));
36117
36250
  }
36118
36251
 
36252
+ /**
36253
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
36254
+ * @summary Get Node.js build settings from repository
36255
+ * @param {string} username
36256
+ * @param {string} domain Domain name
36257
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
36258
+ * @param {string} repository Repository name without the .git suffix
36259
+ * @param {string} branch Branch whose package.json is inspected
36260
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
36261
+ * @param {*} [options] Override http request option.
36262
+ * @throws {RequiredError}
36263
+ * @memberof HostingNodeJSApi
36264
+ */
36265
+ public getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig) {
36266
+ return HostingNodeJSApiFp(this.configuration).getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options).then((request) => request(this.axios, this.basePath));
36267
+ }
36268
+
36119
36269
  /**
36120
36270
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
36121
36271
  * @summary Get Node.js build settings
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.1.3
6
+ * API Version: 2.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/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.1.3
6
+ * API Version: 2.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/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.1.3
6
+ * API Version: 2.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
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/2.1.3",
51
+ 'User-Agent': "hostinger-typescript-sdk/2.2.0",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };
package/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.1.3
4
+ * API Version: 2.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
@@ -8748,6 +8748,37 @@ export interface HostingV1NodeJsEnvVarResource {
8748
8748
  */
8749
8749
  'value': string;
8750
8750
  }
8751
+ /**
8752
+ *
8753
+ * @export
8754
+ * @interface HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8755
+ */
8756
+ export interface HostingV1NodeJsGetBuildSettingsFromRepositoryRequest {
8757
+ /**
8758
+ * Repository owner login, as returned by `List Git installation repositories`. GitLab group paths use slashes.
8759
+ * @type {string}
8760
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8761
+ */
8762
+ 'owner': string;
8763
+ /**
8764
+ * Repository name without the .git suffix
8765
+ * @type {string}
8766
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8767
+ */
8768
+ 'repository': string;
8769
+ /**
8770
+ * Branch whose package.json is inspected
8771
+ * @type {string}
8772
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8773
+ */
8774
+ 'branch': string;
8775
+ /**
8776
+ * Git installation used to access the repository, taken from `List Git installations`
8777
+ * @type {string}
8778
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8779
+ */
8780
+ 'installation_uuid': string;
8781
+ }
8751
8782
  /**
8752
8783
  *
8753
8784
  * @export
@@ -26266,6 +26297,19 @@ export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configu
26266
26297
  * @throws {RequiredError}
26267
26298
  */
26268
26299
  getNodeJsBuildSettingsFromArchiveV1: (username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26300
+ /**
26301
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
26302
+ * @summary Get Node.js build settings from repository
26303
+ * @param {string} username
26304
+ * @param {string} domain Domain name
26305
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
26306
+ * @param {string} repository Repository name without the .git suffix
26307
+ * @param {string} branch Branch whose package.json is inspected
26308
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
26309
+ * @param {*} [options] Override http request option.
26310
+ * @throws {RequiredError}
26311
+ */
26312
+ getNodeJsBuildSettingsFromRepositoryV1: (username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26269
26313
  /**
26270
26314
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
26271
26315
  * @summary Get Node.js build settings
@@ -26424,6 +26468,19 @@ export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
26424
26468
  * @throws {RequiredError}
26425
26469
  */
26426
26470
  getNodeJsBuildSettingsFromArchiveV1(username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1NodeJsBuildSettingsResource>>;
26471
+ /**
26472
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
26473
+ * @summary Get Node.js build settings from repository
26474
+ * @param {string} username
26475
+ * @param {string} domain Domain name
26476
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
26477
+ * @param {string} repository Repository name without the .git suffix
26478
+ * @param {string} branch Branch whose package.json is inspected
26479
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
26480
+ * @param {*} [options] Override http request option.
26481
+ * @throws {RequiredError}
26482
+ */
26483
+ getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1NodeJsBuildSettingsResource>>;
26427
26484
  /**
26428
26485
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
26429
26486
  * @summary Get Node.js build settings
@@ -26582,6 +26639,19 @@ export declare const HostingNodeJSApiFactory: (configuration?: Configuration, ba
26582
26639
  * @throws {RequiredError}
26583
26640
  */
26584
26641
  getNodeJsBuildSettingsFromArchiveV1(username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsBuildSettingsResource>;
26642
+ /**
26643
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
26644
+ * @summary Get Node.js build settings from repository
26645
+ * @param {string} username
26646
+ * @param {string} domain Domain name
26647
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
26648
+ * @param {string} repository Repository name without the .git suffix
26649
+ * @param {string} branch Branch whose package.json is inspected
26650
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
26651
+ * @param {*} [options] Override http request option.
26652
+ * @throws {RequiredError}
26653
+ */
26654
+ getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsBuildSettingsResource>;
26585
26655
  /**
26586
26656
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
26587
26657
  * @summary Get Node.js build settings
@@ -26747,6 +26817,20 @@ export declare class HostingNodeJSApi extends BaseAPI {
26747
26817
  * @memberof HostingNodeJSApi
26748
26818
  */
26749
26819
  getNodeJsBuildSettingsFromArchiveV1(username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1NodeJsBuildSettingsResource, any, {}, any>>;
26820
+ /**
26821
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
26822
+ * @summary Get Node.js build settings from repository
26823
+ * @param {string} username
26824
+ * @param {string} domain Domain name
26825
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
26826
+ * @param {string} repository Repository name without the .git suffix
26827
+ * @param {string} branch Branch whose package.json is inspected
26828
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
26829
+ * @param {*} [options] Override http request option.
26830
+ * @throws {RequiredError}
26831
+ * @memberof HostingNodeJSApi
26832
+ */
26833
+ getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1NodeJsBuildSettingsResource, any, {}, any>>;
26750
26834
  /**
26751
26835
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
26752
26836
  * @summary Get Node.js build settings
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.1.3
7
+ * API Version: 2.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
@@ -16721,6 +16721,66 @@ const HostingNodeJSApiAxiosParamCreator = function (configuration) {
16721
16721
  options: localVarRequestOptions,
16722
16722
  };
16723
16723
  }),
16724
+ /**
16725
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
16726
+ * @summary Get Node.js build settings from repository
16727
+ * @param {string} username
16728
+ * @param {string} domain Domain name
16729
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
16730
+ * @param {string} repository Repository name without the .git suffix
16731
+ * @param {string} branch Branch whose package.json is inspected
16732
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
16733
+ * @param {*} [options] Override http request option.
16734
+ * @throws {RequiredError}
16735
+ */
16736
+ getNodeJsBuildSettingsFromRepositoryV1: (username_1, domain_1, owner_1, repository_1, branch_1, installationUuid_1, ...args_1) => __awaiter(this, [username_1, domain_1, owner_1, repository_1, branch_1, installationUuid_1, ...args_1], void 0, function* (username, domain, owner, repository, branch, installationUuid, options = {}) {
16737
+ // verify required parameter 'username' is not null or undefined
16738
+ (0, common_1.assertParamExists)('getNodeJsBuildSettingsFromRepositoryV1', 'username', username);
16739
+ // verify required parameter 'domain' is not null or undefined
16740
+ (0, common_1.assertParamExists)('getNodeJsBuildSettingsFromRepositoryV1', 'domain', domain);
16741
+ // verify required parameter 'owner' is not null or undefined
16742
+ (0, common_1.assertParamExists)('getNodeJsBuildSettingsFromRepositoryV1', 'owner', owner);
16743
+ // verify required parameter 'repository' is not null or undefined
16744
+ (0, common_1.assertParamExists)('getNodeJsBuildSettingsFromRepositoryV1', 'repository', repository);
16745
+ // verify required parameter 'branch' is not null or undefined
16746
+ (0, common_1.assertParamExists)('getNodeJsBuildSettingsFromRepositoryV1', 'branch', branch);
16747
+ // verify required parameter 'installationUuid' is not null or undefined
16748
+ (0, common_1.assertParamExists)('getNodeJsBuildSettingsFromRepositoryV1', 'installationUuid', installationUuid);
16749
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-repository`
16750
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
16751
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16752
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16753
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16754
+ let baseOptions;
16755
+ if (configuration) {
16756
+ baseOptions = configuration.baseOptions;
16757
+ }
16758
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16759
+ const localVarHeaderParameter = {};
16760
+ const localVarQueryParameter = {};
16761
+ // authentication apiToken required
16762
+ // http bearer authentication required
16763
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16764
+ if (owner !== undefined) {
16765
+ localVarQueryParameter['owner'] = owner;
16766
+ }
16767
+ if (repository !== undefined) {
16768
+ localVarQueryParameter['repository'] = repository;
16769
+ }
16770
+ if (branch !== undefined) {
16771
+ localVarQueryParameter['branch'] = branch;
16772
+ }
16773
+ if (installationUuid !== undefined) {
16774
+ localVarQueryParameter['installation_uuid'] = installationUuid;
16775
+ }
16776
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16777
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16778
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16779
+ return {
16780
+ url: (0, common_1.toPathString)(localVarUrlObj),
16781
+ options: localVarRequestOptions,
16782
+ };
16783
+ }),
16724
16784
  /**
16725
16785
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
16726
16786
  * @summary Get Node.js build settings
@@ -17228,6 +17288,26 @@ const HostingNodeJSApiFp = function (configuration) {
17228
17288
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17229
17289
  });
17230
17290
  },
17291
+ /**
17292
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
17293
+ * @summary Get Node.js build settings from repository
17294
+ * @param {string} username
17295
+ * @param {string} domain Domain name
17296
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
17297
+ * @param {string} repository Repository name without the .git suffix
17298
+ * @param {string} branch Branch whose package.json is inspected
17299
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
17300
+ * @param {*} [options] Override http request option.
17301
+ * @throws {RequiredError}
17302
+ */
17303
+ getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options) {
17304
+ return __awaiter(this, void 0, void 0, function* () {
17305
+ var _a, _b;
17306
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options);
17307
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingNodeJSApi.getNodeJsBuildSettingsFromRepositoryV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17308
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17309
+ });
17310
+ },
17231
17311
  /**
17232
17312
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
17233
17313
  * @summary Get Node.js build settings
@@ -17470,6 +17550,21 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
17470
17550
  getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
17471
17551
  return localVarFp.getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(axios, basePath));
17472
17552
  },
17553
+ /**
17554
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
17555
+ * @summary Get Node.js build settings from repository
17556
+ * @param {string} username
17557
+ * @param {string} domain Domain name
17558
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
17559
+ * @param {string} repository Repository name without the .git suffix
17560
+ * @param {string} branch Branch whose package.json is inspected
17561
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
17562
+ * @param {*} [options] Override http request option.
17563
+ * @throws {RequiredError}
17564
+ */
17565
+ getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options) {
17566
+ return localVarFp.getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options).then((request) => request(axios, basePath));
17567
+ },
17473
17568
  /**
17474
17569
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
17475
17570
  * @summary Get Node.js build settings
@@ -17667,6 +17762,22 @@ class HostingNodeJSApi extends base_1.BaseAPI {
17667
17762
  getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
17668
17763
  return (0, exports.HostingNodeJSApiFp)(this.configuration).getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(this.axios, this.basePath));
17669
17764
  }
17765
+ /**
17766
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
17767
+ * @summary Get Node.js build settings from repository
17768
+ * @param {string} username
17769
+ * @param {string} domain Domain name
17770
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
17771
+ * @param {string} repository Repository name without the .git suffix
17772
+ * @param {string} branch Branch whose package.json is inspected
17773
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
17774
+ * @param {*} [options] Override http request option.
17775
+ * @throws {RequiredError}
17776
+ * @memberof HostingNodeJSApi
17777
+ */
17778
+ getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options) {
17779
+ return (0, exports.HostingNodeJSApiFp)(this.configuration).getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options).then((request) => request(this.axios, this.basePath));
17780
+ }
17670
17781
  /**
17671
17782
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
17672
17783
  * @summary Get Node.js build settings
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.1.3
4
+ * API Version: 2.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/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.1.3
7
+ * API Version: 2.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
package/dist/common.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.1.3
4
+ * API Version: 2.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/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.1.3
7
+ * API Version: 2.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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.1.3
4
+ * API Version: 2.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
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.1.3
7
+ * API Version: 2.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
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.1.3" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.2.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.1.3
4
+ * API Version: 2.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
@@ -8748,6 +8748,37 @@ export interface HostingV1NodeJsEnvVarResource {
8748
8748
  */
8749
8749
  'value': string;
8750
8750
  }
8751
+ /**
8752
+ *
8753
+ * @export
8754
+ * @interface HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8755
+ */
8756
+ export interface HostingV1NodeJsGetBuildSettingsFromRepositoryRequest {
8757
+ /**
8758
+ * Repository owner login, as returned by `List Git installation repositories`. GitLab group paths use slashes.
8759
+ * @type {string}
8760
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8761
+ */
8762
+ 'owner': string;
8763
+ /**
8764
+ * Repository name without the .git suffix
8765
+ * @type {string}
8766
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8767
+ */
8768
+ 'repository': string;
8769
+ /**
8770
+ * Branch whose package.json is inspected
8771
+ * @type {string}
8772
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8773
+ */
8774
+ 'branch': string;
8775
+ /**
8776
+ * Git installation used to access the repository, taken from `List Git installations`
8777
+ * @type {string}
8778
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8779
+ */
8780
+ 'installation_uuid': string;
8781
+ }
8751
8782
  /**
8752
8783
  *
8753
8784
  * @export
@@ -26266,6 +26297,19 @@ export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configu
26266
26297
  * @throws {RequiredError}
26267
26298
  */
26268
26299
  getNodeJsBuildSettingsFromArchiveV1: (username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26300
+ /**
26301
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
26302
+ * @summary Get Node.js build settings from repository
26303
+ * @param {string} username
26304
+ * @param {string} domain Domain name
26305
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
26306
+ * @param {string} repository Repository name without the .git suffix
26307
+ * @param {string} branch Branch whose package.json is inspected
26308
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
26309
+ * @param {*} [options] Override http request option.
26310
+ * @throws {RequiredError}
26311
+ */
26312
+ getNodeJsBuildSettingsFromRepositoryV1: (username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26269
26313
  /**
26270
26314
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
26271
26315
  * @summary Get Node.js build settings
@@ -26424,6 +26468,19 @@ export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
26424
26468
  * @throws {RequiredError}
26425
26469
  */
26426
26470
  getNodeJsBuildSettingsFromArchiveV1(username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1NodeJsBuildSettingsResource>>;
26471
+ /**
26472
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
26473
+ * @summary Get Node.js build settings from repository
26474
+ * @param {string} username
26475
+ * @param {string} domain Domain name
26476
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
26477
+ * @param {string} repository Repository name without the .git suffix
26478
+ * @param {string} branch Branch whose package.json is inspected
26479
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
26480
+ * @param {*} [options] Override http request option.
26481
+ * @throws {RequiredError}
26482
+ */
26483
+ getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1NodeJsBuildSettingsResource>>;
26427
26484
  /**
26428
26485
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
26429
26486
  * @summary Get Node.js build settings
@@ -26582,6 +26639,19 @@ export declare const HostingNodeJSApiFactory: (configuration?: Configuration, ba
26582
26639
  * @throws {RequiredError}
26583
26640
  */
26584
26641
  getNodeJsBuildSettingsFromArchiveV1(username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsBuildSettingsResource>;
26642
+ /**
26643
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
26644
+ * @summary Get Node.js build settings from repository
26645
+ * @param {string} username
26646
+ * @param {string} domain Domain name
26647
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
26648
+ * @param {string} repository Repository name without the .git suffix
26649
+ * @param {string} branch Branch whose package.json is inspected
26650
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
26651
+ * @param {*} [options] Override http request option.
26652
+ * @throws {RequiredError}
26653
+ */
26654
+ getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsBuildSettingsResource>;
26585
26655
  /**
26586
26656
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
26587
26657
  * @summary Get Node.js build settings
@@ -26747,6 +26817,20 @@ export declare class HostingNodeJSApi extends BaseAPI {
26747
26817
  * @memberof HostingNodeJSApi
26748
26818
  */
26749
26819
  getNodeJsBuildSettingsFromArchiveV1(username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1NodeJsBuildSettingsResource, any, {}, any>>;
26820
+ /**
26821
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
26822
+ * @summary Get Node.js build settings from repository
26823
+ * @param {string} username
26824
+ * @param {string} domain Domain name
26825
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
26826
+ * @param {string} repository Repository name without the .git suffix
26827
+ * @param {string} branch Branch whose package.json is inspected
26828
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
26829
+ * @param {*} [options] Override http request option.
26830
+ * @throws {RequiredError}
26831
+ * @memberof HostingNodeJSApi
26832
+ */
26833
+ getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1NodeJsBuildSettingsResource, any, {}, any>>;
26750
26834
  /**
26751
26835
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
26752
26836
  * @summary Get Node.js build settings
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.1.3
6
+ * API Version: 2.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
@@ -16519,6 +16519,66 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
16519
16519
  options: localVarRequestOptions,
16520
16520
  };
16521
16521
  }),
16522
+ /**
16523
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
16524
+ * @summary Get Node.js build settings from repository
16525
+ * @param {string} username
16526
+ * @param {string} domain Domain name
16527
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
16528
+ * @param {string} repository Repository name without the .git suffix
16529
+ * @param {string} branch Branch whose package.json is inspected
16530
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
16531
+ * @param {*} [options] Override http request option.
16532
+ * @throws {RequiredError}
16533
+ */
16534
+ getNodeJsBuildSettingsFromRepositoryV1: (username_1, domain_1, owner_1, repository_1, branch_1, installationUuid_1, ...args_1) => __awaiter(this, [username_1, domain_1, owner_1, repository_1, branch_1, installationUuid_1, ...args_1], void 0, function* (username, domain, owner, repository, branch, installationUuid, options = {}) {
16535
+ // verify required parameter 'username' is not null or undefined
16536
+ assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'username', username);
16537
+ // verify required parameter 'domain' is not null or undefined
16538
+ assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'domain', domain);
16539
+ // verify required parameter 'owner' is not null or undefined
16540
+ assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'owner', owner);
16541
+ // verify required parameter 'repository' is not null or undefined
16542
+ assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'repository', repository);
16543
+ // verify required parameter 'branch' is not null or undefined
16544
+ assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'branch', branch);
16545
+ // verify required parameter 'installationUuid' is not null or undefined
16546
+ assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'installationUuid', installationUuid);
16547
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-repository`
16548
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
16549
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16550
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16551
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16552
+ let baseOptions;
16553
+ if (configuration) {
16554
+ baseOptions = configuration.baseOptions;
16555
+ }
16556
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16557
+ const localVarHeaderParameter = {};
16558
+ const localVarQueryParameter = {};
16559
+ // authentication apiToken required
16560
+ // http bearer authentication required
16561
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16562
+ if (owner !== undefined) {
16563
+ localVarQueryParameter['owner'] = owner;
16564
+ }
16565
+ if (repository !== undefined) {
16566
+ localVarQueryParameter['repository'] = repository;
16567
+ }
16568
+ if (branch !== undefined) {
16569
+ localVarQueryParameter['branch'] = branch;
16570
+ }
16571
+ if (installationUuid !== undefined) {
16572
+ localVarQueryParameter['installation_uuid'] = installationUuid;
16573
+ }
16574
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16575
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16576
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16577
+ return {
16578
+ url: toPathString(localVarUrlObj),
16579
+ options: localVarRequestOptions,
16580
+ };
16581
+ }),
16522
16582
  /**
16523
16583
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
16524
16584
  * @summary Get Node.js build settings
@@ -17025,6 +17085,26 @@ export const HostingNodeJSApiFp = function (configuration) {
17025
17085
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17026
17086
  });
17027
17087
  },
17088
+ /**
17089
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
17090
+ * @summary Get Node.js build settings from repository
17091
+ * @param {string} username
17092
+ * @param {string} domain Domain name
17093
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
17094
+ * @param {string} repository Repository name without the .git suffix
17095
+ * @param {string} branch Branch whose package.json is inspected
17096
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
17097
+ * @param {*} [options] Override http request option.
17098
+ * @throws {RequiredError}
17099
+ */
17100
+ getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options) {
17101
+ return __awaiter(this, void 0, void 0, function* () {
17102
+ var _a, _b;
17103
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options);
17104
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingNodeJSApi.getNodeJsBuildSettingsFromRepositoryV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17105
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17106
+ });
17107
+ },
17028
17108
  /**
17029
17109
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
17030
17110
  * @summary Get Node.js build settings
@@ -17266,6 +17346,21 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
17266
17346
  getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
17267
17347
  return localVarFp.getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(axios, basePath));
17268
17348
  },
17349
+ /**
17350
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
17351
+ * @summary Get Node.js build settings from repository
17352
+ * @param {string} username
17353
+ * @param {string} domain Domain name
17354
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
17355
+ * @param {string} repository Repository name without the .git suffix
17356
+ * @param {string} branch Branch whose package.json is inspected
17357
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
17358
+ * @param {*} [options] Override http request option.
17359
+ * @throws {RequiredError}
17360
+ */
17361
+ getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options) {
17362
+ return localVarFp.getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options).then((request) => request(axios, basePath));
17363
+ },
17269
17364
  /**
17270
17365
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
17271
17366
  * @summary Get Node.js build settings
@@ -17462,6 +17557,22 @@ export class HostingNodeJSApi extends BaseAPI {
17462
17557
  getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
17463
17558
  return HostingNodeJSApiFp(this.configuration).getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(this.axios, this.basePath));
17464
17559
  }
17560
+ /**
17561
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
17562
+ * @summary Get Node.js build settings from repository
17563
+ * @param {string} username
17564
+ * @param {string} domain Domain name
17565
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
17566
+ * @param {string} repository Repository name without the .git suffix
17567
+ * @param {string} branch Branch whose package.json is inspected
17568
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
17569
+ * @param {*} [options] Override http request option.
17570
+ * @throws {RequiredError}
17571
+ * @memberof HostingNodeJSApi
17572
+ */
17573
+ getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options) {
17574
+ return HostingNodeJSApiFp(this.configuration).getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options).then((request) => request(this.axios, this.basePath));
17575
+ }
17465
17576
  /**
17466
17577
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
17467
17578
  * @summary Get Node.js build settings
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.1.3
4
+ * API Version: 2.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: 2.1.3
6
+ * API Version: 2.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: 2.1.3
4
+ * API Version: 2.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: 2.1.3
6
+ * API Version: 2.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: 2.1.3
4
+ * API Version: 2.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: 2.1.3
6
+ * API Version: 2.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/2.1.3" }, (_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/2.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: 2.1.3
4
+ * API Version: 2.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: 2.1.3
6
+ * API Version: 2.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: 2.1.3
4
+ * API Version: 2.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: 2.1.3
7
+ * API Version: 2.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
@@ -9,6 +9,7 @@ All URIs are relative to *https://developers.hostinger.com*
9
9
  |[**getNodeJSBuildLogsV1**](#getnodejsbuildlogsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs | Get NodeJS build logs|
10
10
  |[**getNodeJsBuildDetailsV1**](#getnodejsbuilddetailsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid} | Get Node.js build details|
11
11
  |[**getNodeJsBuildSettingsFromArchiveV1**](#getnodejsbuildsettingsfromarchivev1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive | Get Node.js build settings from archive|
12
+ |[**getNodeJsBuildSettingsFromRepositoryV1**](#getnodejsbuildsettingsfromrepositoryv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-repository | Get Node.js build settings from repository|
12
13
  |[**getNodeJsBuildSettingsV1**](#getnodejsbuildsettingsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings | Get Node.js build settings|
13
14
  |[**getNodeJsRuntimeLogsV1**](#getnodejsruntimelogsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/runtime-logs | Get Node.js runtime logs|
14
15
  |[**listNodeJSBuildsV1**](#listnodejsbuildsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | List NodeJS builds|
@@ -294,6 +295,75 @@ const { status, data } = await apiInstance.getNodeJsBuildSettingsFromArchiveV1(
294
295
  | **archivePath** | [**string**] | The path to the archive file relative to the document root of the vhost | defaults to undefined|
295
296
 
296
297
 
298
+ ### Return type
299
+
300
+ **HostingV1NodeJsBuildSettingsResource**
301
+
302
+ ### Authorization
303
+
304
+ [apiToken](../README.md#apiToken)
305
+
306
+ ### HTTP request headers
307
+
308
+ - **Content-Type**: Not defined
309
+ - **Accept**: application/json
310
+
311
+
312
+ ### HTTP response details
313
+ | Status code | Description | Response headers |
314
+ |-------------|-------------|------------------|
315
+ |**200** | Success response | - |
316
+ |**422** | Validation error response | - |
317
+ |**401** | Unauthenticated response | - |
318
+ |**500** | Error response | - |
319
+
320
+ [[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)
321
+
322
+ # **getNodeJsBuildSettingsFromRepositoryV1**
323
+ > HostingV1NodeJsBuildSettingsResource getNodeJsBuildSettingsFromRepositoryV1()
324
+
325
+ Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
326
+
327
+ ### Example
328
+
329
+ ```typescript
330
+ import {
331
+ HostingNodeJSApi,
332
+ Configuration
333
+ } from '@hostinger/sdk';
334
+
335
+ const configuration = new Configuration();
336
+ const apiInstance = new HostingNodeJSApi(configuration);
337
+
338
+ let username: string; // (default to undefined)
339
+ let domain: string; //Domain name (default to undefined)
340
+ let owner: string; //Repository owner login. GitLab group paths use slashes. (default to undefined)
341
+ let repository: string; //Repository name without the .git suffix (default to undefined)
342
+ let branch: string; //Branch whose package.json is inspected (default to undefined)
343
+ let installationUuid: string; //Git installation used to access the repository, taken from `List Git installations` (default to undefined)
344
+
345
+ const { status, data } = await apiInstance.getNodeJsBuildSettingsFromRepositoryV1(
346
+ username,
347
+ domain,
348
+ owner,
349
+ repository,
350
+ branch,
351
+ installationUuid
352
+ );
353
+ ```
354
+
355
+ ### Parameters
356
+
357
+ |Name | Type | Description | Notes|
358
+ |------------- | ------------- | ------------- | -------------|
359
+ | **username** | [**string**] | | defaults to undefined|
360
+ | **domain** | [**string**] | Domain name | defaults to undefined|
361
+ | **owner** | [**string**] | Repository owner login. GitLab group paths use slashes. | defaults to undefined|
362
+ | **repository** | [**string**] | Repository name without the .git suffix | defaults to undefined|
363
+ | **branch** | [**string**] | Branch whose package.json is inspected | defaults to undefined|
364
+ | **installationUuid** | [**string**] | Git installation used to access the repository, taken from &#x60;List Git installations&#x60; | defaults to undefined|
365
+
366
+
297
367
  ### Return type
298
368
 
299
369
  **HostingV1NodeJsBuildSettingsResource**
@@ -0,0 +1,26 @@
1
+ # HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **owner** | **string** | Repository owner login, as returned by &#x60;List Git installation repositories&#x60;. GitLab group paths use slashes. | [default to undefined]
9
+ **repository** | **string** | Repository name without the .git suffix | [default to undefined]
10
+ **branch** | **string** | Branch whose package.json is inspected | [default to undefined]
11
+ **installation_uuid** | **string** | Git installation used to access the repository, taken from &#x60;List Git installations&#x60; | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { HostingV1NodeJsGetBuildSettingsFromRepositoryRequest } from '@hostinger/sdk';
17
+
18
+ const instance: HostingV1NodeJsGetBuildSettingsFromRepositoryRequest = {
19
+ owner,
20
+ repository,
21
+ branch,
22
+ installation_uuid,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.1.3
6
+ * API Version: 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "2.1.3",
3
+ "version": "2.2.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {