@hostinger/sdk 1.52.0 → 1.52.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +790 -10
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +556 -8
- package/dist/api.js +463 -17
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +556 -8
- package/dist/esm/api.js +449 -7
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HostingGitApi.md +297 -0
- package/docs/HostingNodeJSApi.md +1 -1
- package/docs/HostingV1GitGitAutoDeploymentSettingsResource.md +31 -0
- package/docs/HostingV1GitGitCommitAuthorResource.md +22 -0
- package/docs/HostingV1GitGitCommitResource.md +24 -0
- package/docs/HostingV1GitGitInstallationResource.md +36 -0
- package/docs/HostingV1GitGitRepositoryResource.md +34 -0
- package/docs/HostingV1GitUpdateGitAutoDeploymentSettingsRequest.md +30 -0
- package/docs/HostingV1NodeJsSourceOptionsResource.md +11 -0
- package/docs/HostingV1NodeJsStartBuildRequest.md +1 -1
- package/docs/HostingV1NodeJsStartBuildRequestSourceOptions.md +9 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.52.
|
|
6
|
+
* API Version: 1.52.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -309,6 +309,20 @@ export const HostingV1FilesFilesResourceItemsInnerTypeEnum = {
|
|
|
309
309
|
Symlink: 'symlink',
|
|
310
310
|
Other: 'other'
|
|
311
311
|
};
|
|
312
|
+
export const HostingV1GitGitInstallationResourceProviderEnum = {
|
|
313
|
+
Github: 'github',
|
|
314
|
+
Gitlab: 'gitlab',
|
|
315
|
+
Bitbucket: 'bitbucket'
|
|
316
|
+
};
|
|
317
|
+
export const HostingV1GitGitInstallationResourceAccountTypeEnum = {
|
|
318
|
+
User: 'User',
|
|
319
|
+
Organization: 'Organization'
|
|
320
|
+
};
|
|
321
|
+
export const HostingV1GitGitInstallationResourceStatusEnum = {
|
|
322
|
+
Pending: 'pending',
|
|
323
|
+
Active: 'active',
|
|
324
|
+
Suspended: 'suspended'
|
|
325
|
+
};
|
|
312
326
|
export const HostingV1NodeJsBuildOptionsResourceAppTypeEnum = {
|
|
313
327
|
CreateReactApp: 'create-react-app',
|
|
314
328
|
Gatsby: 'gatsby',
|
|
@@ -336,7 +350,8 @@ export const HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = {
|
|
|
336
350
|
Pnpm: 'pnpm'
|
|
337
351
|
};
|
|
338
352
|
export const HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = {
|
|
339
|
-
Archive: 'archive'
|
|
353
|
+
Archive: 'archive',
|
|
354
|
+
Git: 'git'
|
|
340
355
|
};
|
|
341
356
|
export const HostingV1NodeJsBuildResourceStateEnum = {
|
|
342
357
|
Pending: 'pending',
|
|
@@ -435,7 +450,8 @@ export const HostingV1NodeJsStartBuildRequestPackageManagerEnum = {
|
|
|
435
450
|
Pnpm: 'pnpm'
|
|
436
451
|
};
|
|
437
452
|
export const HostingV1NodeJsStartBuildRequestSourceTypeEnum = {
|
|
438
|
-
Archive: 'archive'
|
|
453
|
+
Archive: 'archive',
|
|
454
|
+
Git: 'git'
|
|
439
455
|
};
|
|
440
456
|
export const HostingV1NodeJsStoredBuildSettingsResourceAppTypeEnum = {
|
|
441
457
|
CreateReactApp: 'create-react-app',
|
|
@@ -14286,6 +14302,432 @@ export const ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
|
|
|
14286
14302
|
Symlink: 'symlink',
|
|
14287
14303
|
Other: 'other'
|
|
14288
14304
|
};
|
|
14305
|
+
/**
|
|
14306
|
+
* HostingGitApi - axios parameter creator
|
|
14307
|
+
* @export
|
|
14308
|
+
*/
|
|
14309
|
+
export const HostingGitApiAxiosParamCreator = function (configuration) {
|
|
14310
|
+
return {
|
|
14311
|
+
/**
|
|
14312
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
14313
|
+
* @summary Delete Git auto-deployment settings
|
|
14314
|
+
* @param {string} username
|
|
14315
|
+
* @param {string} domain Domain name
|
|
14316
|
+
* @param {*} [options] Override http request option.
|
|
14317
|
+
* @throws {RequiredError}
|
|
14318
|
+
*/
|
|
14319
|
+
deleteGitAutoDeploymentSettingsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
14320
|
+
// verify required parameter 'username' is not null or undefined
|
|
14321
|
+
assertParamExists('deleteGitAutoDeploymentSettingsV1', 'username', username);
|
|
14322
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14323
|
+
assertParamExists('deleteGitAutoDeploymentSettingsV1', 'domain', domain);
|
|
14324
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
|
|
14325
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14326
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14327
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14328
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14329
|
+
let baseOptions;
|
|
14330
|
+
if (configuration) {
|
|
14331
|
+
baseOptions = configuration.baseOptions;
|
|
14332
|
+
}
|
|
14333
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
14334
|
+
const localVarHeaderParameter = {};
|
|
14335
|
+
const localVarQueryParameter = {};
|
|
14336
|
+
// authentication apiToken required
|
|
14337
|
+
// http bearer authentication required
|
|
14338
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14339
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14340
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14341
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14342
|
+
return {
|
|
14343
|
+
url: toPathString(localVarUrlObj),
|
|
14344
|
+
options: localVarRequestOptions,
|
|
14345
|
+
};
|
|
14346
|
+
}),
|
|
14347
|
+
/**
|
|
14348
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
14349
|
+
* @summary Get Git auto-deployment settings
|
|
14350
|
+
* @param {string} username
|
|
14351
|
+
* @param {string} domain Domain name
|
|
14352
|
+
* @param {*} [options] Override http request option.
|
|
14353
|
+
* @throws {RequiredError}
|
|
14354
|
+
*/
|
|
14355
|
+
getGitAutoDeploymentSettingsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
14356
|
+
// verify required parameter 'username' is not null or undefined
|
|
14357
|
+
assertParamExists('getGitAutoDeploymentSettingsV1', 'username', username);
|
|
14358
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14359
|
+
assertParamExists('getGitAutoDeploymentSettingsV1', 'domain', domain);
|
|
14360
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
|
|
14361
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14362
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14363
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14364
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14365
|
+
let baseOptions;
|
|
14366
|
+
if (configuration) {
|
|
14367
|
+
baseOptions = configuration.baseOptions;
|
|
14368
|
+
}
|
|
14369
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14370
|
+
const localVarHeaderParameter = {};
|
|
14371
|
+
const localVarQueryParameter = {};
|
|
14372
|
+
// authentication apiToken required
|
|
14373
|
+
// http bearer authentication required
|
|
14374
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14375
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14376
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14377
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14378
|
+
return {
|
|
14379
|
+
url: toPathString(localVarUrlObj),
|
|
14380
|
+
options: localVarRequestOptions,
|
|
14381
|
+
};
|
|
14382
|
+
}),
|
|
14383
|
+
/**
|
|
14384
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
14385
|
+
* @summary List Git installation repositories
|
|
14386
|
+
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
14387
|
+
* @param {*} [options] Override http request option.
|
|
14388
|
+
* @throws {RequiredError}
|
|
14389
|
+
*/
|
|
14390
|
+
listGitInstallationRepositoriesV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
|
|
14391
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
14392
|
+
assertParamExists('listGitInstallationRepositoriesV1', 'uuid', uuid);
|
|
14393
|
+
const localVarPath = `/api/hosting/v1/git/installations/{uuid}/repositories`
|
|
14394
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
14395
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14396
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14397
|
+
let baseOptions;
|
|
14398
|
+
if (configuration) {
|
|
14399
|
+
baseOptions = configuration.baseOptions;
|
|
14400
|
+
}
|
|
14401
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14402
|
+
const localVarHeaderParameter = {};
|
|
14403
|
+
const localVarQueryParameter = {};
|
|
14404
|
+
// authentication apiToken required
|
|
14405
|
+
// http bearer authentication required
|
|
14406
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14407
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14408
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14409
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14410
|
+
return {
|
|
14411
|
+
url: toPathString(localVarUrlObj),
|
|
14412
|
+
options: localVarRequestOptions,
|
|
14413
|
+
};
|
|
14414
|
+
}),
|
|
14415
|
+
/**
|
|
14416
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
14417
|
+
* @summary List Git installations
|
|
14418
|
+
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
14419
|
+
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
14420
|
+
* @param {*} [options] Override http request option.
|
|
14421
|
+
* @throws {RequiredError}
|
|
14422
|
+
*/
|
|
14423
|
+
listGitInstallationsV1: (provider_1, status_1, ...args_1) => __awaiter(this, [provider_1, status_1, ...args_1], void 0, function* (provider, status, options = {}) {
|
|
14424
|
+
const localVarPath = `/api/hosting/v1/git/installations`;
|
|
14425
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14426
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14427
|
+
let baseOptions;
|
|
14428
|
+
if (configuration) {
|
|
14429
|
+
baseOptions = configuration.baseOptions;
|
|
14430
|
+
}
|
|
14431
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14432
|
+
const localVarHeaderParameter = {};
|
|
14433
|
+
const localVarQueryParameter = {};
|
|
14434
|
+
// authentication apiToken required
|
|
14435
|
+
// http bearer authentication required
|
|
14436
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14437
|
+
if (provider !== undefined) {
|
|
14438
|
+
localVarQueryParameter['provider'] = provider;
|
|
14439
|
+
}
|
|
14440
|
+
if (status !== undefined) {
|
|
14441
|
+
localVarQueryParameter['status'] = status;
|
|
14442
|
+
}
|
|
14443
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14444
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14445
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14446
|
+
return {
|
|
14447
|
+
url: toPathString(localVarUrlObj),
|
|
14448
|
+
options: localVarRequestOptions,
|
|
14449
|
+
};
|
|
14450
|
+
}),
|
|
14451
|
+
/**
|
|
14452
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
14453
|
+
* @summary Update Git auto-deployment settings
|
|
14454
|
+
* @param {string} username
|
|
14455
|
+
* @param {string} domain Domain name
|
|
14456
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
14457
|
+
* @param {*} [options] Override http request option.
|
|
14458
|
+
* @throws {RequiredError}
|
|
14459
|
+
*/
|
|
14460
|
+
updateGitAutoDeploymentSettingsV1: (username_1, domain_1, hostingV1GitUpdateGitAutoDeploymentSettingsRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1GitUpdateGitAutoDeploymentSettingsRequest_1, ...args_1], void 0, function* (username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options = {}) {
|
|
14461
|
+
// verify required parameter 'username' is not null or undefined
|
|
14462
|
+
assertParamExists('updateGitAutoDeploymentSettingsV1', 'username', username);
|
|
14463
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14464
|
+
assertParamExists('updateGitAutoDeploymentSettingsV1', 'domain', domain);
|
|
14465
|
+
// verify required parameter 'hostingV1GitUpdateGitAutoDeploymentSettingsRequest' is not null or undefined
|
|
14466
|
+
assertParamExists('updateGitAutoDeploymentSettingsV1', 'hostingV1GitUpdateGitAutoDeploymentSettingsRequest', hostingV1GitUpdateGitAutoDeploymentSettingsRequest);
|
|
14467
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
|
|
14468
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14469
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14470
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14471
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14472
|
+
let baseOptions;
|
|
14473
|
+
if (configuration) {
|
|
14474
|
+
baseOptions = configuration.baseOptions;
|
|
14475
|
+
}
|
|
14476
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
14477
|
+
const localVarHeaderParameter = {};
|
|
14478
|
+
const localVarQueryParameter = {};
|
|
14479
|
+
// authentication apiToken required
|
|
14480
|
+
// http bearer authentication required
|
|
14481
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14482
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14483
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14484
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14485
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14486
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1GitUpdateGitAutoDeploymentSettingsRequest, localVarRequestOptions, configuration);
|
|
14487
|
+
return {
|
|
14488
|
+
url: toPathString(localVarUrlObj),
|
|
14489
|
+
options: localVarRequestOptions,
|
|
14490
|
+
};
|
|
14491
|
+
}),
|
|
14492
|
+
};
|
|
14493
|
+
};
|
|
14494
|
+
/**
|
|
14495
|
+
* HostingGitApi - functional programming interface
|
|
14496
|
+
* @export
|
|
14497
|
+
*/
|
|
14498
|
+
export const HostingGitApiFp = function (configuration) {
|
|
14499
|
+
const localVarAxiosParamCreator = HostingGitApiAxiosParamCreator(configuration);
|
|
14500
|
+
return {
|
|
14501
|
+
/**
|
|
14502
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
14503
|
+
* @summary Delete Git auto-deployment settings
|
|
14504
|
+
* @param {string} username
|
|
14505
|
+
* @param {string} domain Domain name
|
|
14506
|
+
* @param {*} [options] Override http request option.
|
|
14507
|
+
* @throws {RequiredError}
|
|
14508
|
+
*/
|
|
14509
|
+
deleteGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14510
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14511
|
+
var _a, _b;
|
|
14512
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteGitAutoDeploymentSettingsV1(username, domain, options);
|
|
14513
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingGitApi.deleteGitAutoDeploymentSettingsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14514
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14515
|
+
});
|
|
14516
|
+
},
|
|
14517
|
+
/**
|
|
14518
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
14519
|
+
* @summary Get Git auto-deployment settings
|
|
14520
|
+
* @param {string} username
|
|
14521
|
+
* @param {string} domain Domain name
|
|
14522
|
+
* @param {*} [options] Override http request option.
|
|
14523
|
+
* @throws {RequiredError}
|
|
14524
|
+
*/
|
|
14525
|
+
getGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14526
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14527
|
+
var _a, _b;
|
|
14528
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGitAutoDeploymentSettingsV1(username, domain, options);
|
|
14529
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingGitApi.getGitAutoDeploymentSettingsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14530
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14531
|
+
});
|
|
14532
|
+
},
|
|
14533
|
+
/**
|
|
14534
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
14535
|
+
* @summary List Git installation repositories
|
|
14536
|
+
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
14537
|
+
* @param {*} [options] Override http request option.
|
|
14538
|
+
* @throws {RequiredError}
|
|
14539
|
+
*/
|
|
14540
|
+
listGitInstallationRepositoriesV1(uuid, options) {
|
|
14541
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14542
|
+
var _a, _b;
|
|
14543
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listGitInstallationRepositoriesV1(uuid, options);
|
|
14544
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingGitApi.listGitInstallationRepositoriesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14545
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14546
|
+
});
|
|
14547
|
+
},
|
|
14548
|
+
/**
|
|
14549
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
14550
|
+
* @summary List Git installations
|
|
14551
|
+
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
14552
|
+
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
14553
|
+
* @param {*} [options] Override http request option.
|
|
14554
|
+
* @throws {RequiredError}
|
|
14555
|
+
*/
|
|
14556
|
+
listGitInstallationsV1(provider, status, options) {
|
|
14557
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14558
|
+
var _a, _b;
|
|
14559
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listGitInstallationsV1(provider, status, options);
|
|
14560
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingGitApi.listGitInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14561
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14562
|
+
});
|
|
14563
|
+
},
|
|
14564
|
+
/**
|
|
14565
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
14566
|
+
* @summary Update Git auto-deployment settings
|
|
14567
|
+
* @param {string} username
|
|
14568
|
+
* @param {string} domain Domain name
|
|
14569
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
14570
|
+
* @param {*} [options] Override http request option.
|
|
14571
|
+
* @throws {RequiredError}
|
|
14572
|
+
*/
|
|
14573
|
+
updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options) {
|
|
14574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14575
|
+
var _a, _b;
|
|
14576
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options);
|
|
14577
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingGitApi.updateGitAutoDeploymentSettingsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14578
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14579
|
+
});
|
|
14580
|
+
},
|
|
14581
|
+
};
|
|
14582
|
+
};
|
|
14583
|
+
/**
|
|
14584
|
+
* HostingGitApi - factory interface
|
|
14585
|
+
* @export
|
|
14586
|
+
*/
|
|
14587
|
+
export const HostingGitApiFactory = function (configuration, basePath, axios) {
|
|
14588
|
+
const localVarFp = HostingGitApiFp(configuration);
|
|
14589
|
+
return {
|
|
14590
|
+
/**
|
|
14591
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
14592
|
+
* @summary Delete Git auto-deployment settings
|
|
14593
|
+
* @param {string} username
|
|
14594
|
+
* @param {string} domain Domain name
|
|
14595
|
+
* @param {*} [options] Override http request option.
|
|
14596
|
+
* @throws {RequiredError}
|
|
14597
|
+
*/
|
|
14598
|
+
deleteGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14599
|
+
return localVarFp.deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
14600
|
+
},
|
|
14601
|
+
/**
|
|
14602
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
14603
|
+
* @summary Get Git auto-deployment settings
|
|
14604
|
+
* @param {string} username
|
|
14605
|
+
* @param {string} domain Domain name
|
|
14606
|
+
* @param {*} [options] Override http request option.
|
|
14607
|
+
* @throws {RequiredError}
|
|
14608
|
+
*/
|
|
14609
|
+
getGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14610
|
+
return localVarFp.getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
14611
|
+
},
|
|
14612
|
+
/**
|
|
14613
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
14614
|
+
* @summary List Git installation repositories
|
|
14615
|
+
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
14616
|
+
* @param {*} [options] Override http request option.
|
|
14617
|
+
* @throws {RequiredError}
|
|
14618
|
+
*/
|
|
14619
|
+
listGitInstallationRepositoriesV1(uuid, options) {
|
|
14620
|
+
return localVarFp.listGitInstallationRepositoriesV1(uuid, options).then((request) => request(axios, basePath));
|
|
14621
|
+
},
|
|
14622
|
+
/**
|
|
14623
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
14624
|
+
* @summary List Git installations
|
|
14625
|
+
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
14626
|
+
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
14627
|
+
* @param {*} [options] Override http request option.
|
|
14628
|
+
* @throws {RequiredError}
|
|
14629
|
+
*/
|
|
14630
|
+
listGitInstallationsV1(provider, status, options) {
|
|
14631
|
+
return localVarFp.listGitInstallationsV1(provider, status, options).then((request) => request(axios, basePath));
|
|
14632
|
+
},
|
|
14633
|
+
/**
|
|
14634
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
14635
|
+
* @summary Update Git auto-deployment settings
|
|
14636
|
+
* @param {string} username
|
|
14637
|
+
* @param {string} domain Domain name
|
|
14638
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
14639
|
+
* @param {*} [options] Override http request option.
|
|
14640
|
+
* @throws {RequiredError}
|
|
14641
|
+
*/
|
|
14642
|
+
updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options) {
|
|
14643
|
+
return localVarFp.updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options).then((request) => request(axios, basePath));
|
|
14644
|
+
},
|
|
14645
|
+
};
|
|
14646
|
+
};
|
|
14647
|
+
/**
|
|
14648
|
+
* HostingGitApi - object-oriented interface
|
|
14649
|
+
* @export
|
|
14650
|
+
* @class HostingGitApi
|
|
14651
|
+
* @extends {BaseAPI}
|
|
14652
|
+
*/
|
|
14653
|
+
export class HostingGitApi extends BaseAPI {
|
|
14654
|
+
/**
|
|
14655
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
14656
|
+
* @summary Delete Git auto-deployment settings
|
|
14657
|
+
* @param {string} username
|
|
14658
|
+
* @param {string} domain Domain name
|
|
14659
|
+
* @param {*} [options] Override http request option.
|
|
14660
|
+
* @throws {RequiredError}
|
|
14661
|
+
* @memberof HostingGitApi
|
|
14662
|
+
*/
|
|
14663
|
+
deleteGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14664
|
+
return HostingGitApiFp(this.configuration).deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
14665
|
+
}
|
|
14666
|
+
/**
|
|
14667
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
14668
|
+
* @summary Get Git auto-deployment settings
|
|
14669
|
+
* @param {string} username
|
|
14670
|
+
* @param {string} domain Domain name
|
|
14671
|
+
* @param {*} [options] Override http request option.
|
|
14672
|
+
* @throws {RequiredError}
|
|
14673
|
+
* @memberof HostingGitApi
|
|
14674
|
+
*/
|
|
14675
|
+
getGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14676
|
+
return HostingGitApiFp(this.configuration).getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
14677
|
+
}
|
|
14678
|
+
/**
|
|
14679
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
14680
|
+
* @summary List Git installation repositories
|
|
14681
|
+
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
14682
|
+
* @param {*} [options] Override http request option.
|
|
14683
|
+
* @throws {RequiredError}
|
|
14684
|
+
* @memberof HostingGitApi
|
|
14685
|
+
*/
|
|
14686
|
+
listGitInstallationRepositoriesV1(uuid, options) {
|
|
14687
|
+
return HostingGitApiFp(this.configuration).listGitInstallationRepositoriesV1(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
14688
|
+
}
|
|
14689
|
+
/**
|
|
14690
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
14691
|
+
* @summary List Git installations
|
|
14692
|
+
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
14693
|
+
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
14694
|
+
* @param {*} [options] Override http request option.
|
|
14695
|
+
* @throws {RequiredError}
|
|
14696
|
+
* @memberof HostingGitApi
|
|
14697
|
+
*/
|
|
14698
|
+
listGitInstallationsV1(provider, status, options) {
|
|
14699
|
+
return HostingGitApiFp(this.configuration).listGitInstallationsV1(provider, status, options).then((request) => request(this.axios, this.basePath));
|
|
14700
|
+
}
|
|
14701
|
+
/**
|
|
14702
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
14703
|
+
* @summary Update Git auto-deployment settings
|
|
14704
|
+
* @param {string} username
|
|
14705
|
+
* @param {string} domain Domain name
|
|
14706
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
14707
|
+
* @param {*} [options] Override http request option.
|
|
14708
|
+
* @throws {RequiredError}
|
|
14709
|
+
* @memberof HostingGitApi
|
|
14710
|
+
*/
|
|
14711
|
+
updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options) {
|
|
14712
|
+
return HostingGitApiFp(this.configuration).updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14713
|
+
}
|
|
14714
|
+
}
|
|
14715
|
+
/**
|
|
14716
|
+
* @export
|
|
14717
|
+
*/
|
|
14718
|
+
export const ListGitInstallationsV1ProviderEnum = {
|
|
14719
|
+
Github: 'github',
|
|
14720
|
+
Gitlab: 'gitlab',
|
|
14721
|
+
Bitbucket: 'bitbucket'
|
|
14722
|
+
};
|
|
14723
|
+
/**
|
|
14724
|
+
* @export
|
|
14725
|
+
*/
|
|
14726
|
+
export const ListGitInstallationsV1StatusEnum = {
|
|
14727
|
+
Pending: 'pending',
|
|
14728
|
+
Active: 'active',
|
|
14729
|
+
Suspended: 'suspended'
|
|
14730
|
+
};
|
|
14289
14731
|
/**
|
|
14290
14732
|
* HostingNodeJSApi - axios parameter creator
|
|
14291
14733
|
* @export
|
|
@@ -14825,7 +15267,7 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
|
14825
15267
|
};
|
|
14826
15268
|
}),
|
|
14827
15269
|
/**
|
|
14828
|
-
* 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.
|
|
15270
|
+
* 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.
|
|
14829
15271
|
* @summary Start Node.js build
|
|
14830
15272
|
* @param {string} username
|
|
14831
15273
|
* @param {string} domain Domain name
|
|
@@ -15139,7 +15581,7 @@ export const HostingNodeJSApiFp = function (configuration) {
|
|
|
15139
15581
|
});
|
|
15140
15582
|
},
|
|
15141
15583
|
/**
|
|
15142
|
-
* 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.
|
|
15584
|
+
* 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.
|
|
15143
15585
|
* @summary Start Node.js build
|
|
15144
15586
|
* @param {string} username
|
|
15145
15587
|
* @param {string} domain Domain name
|
|
@@ -15340,7 +15782,7 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
|
|
|
15340
15782
|
return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
|
|
15341
15783
|
},
|
|
15342
15784
|
/**
|
|
15343
|
-
* 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.
|
|
15785
|
+
* 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.
|
|
15344
15786
|
* @summary Start Node.js build
|
|
15345
15787
|
* @param {string} username
|
|
15346
15788
|
* @param {string} domain Domain name
|
|
@@ -15544,7 +15986,7 @@ export class HostingNodeJSApi extends BaseAPI {
|
|
|
15544
15986
|
return HostingNodeJSApiFp(this.configuration).restartNodeJsApplicationV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
15545
15987
|
}
|
|
15546
15988
|
/**
|
|
15547
|
-
* 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.
|
|
15989
|
+
* 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.
|
|
15548
15990
|
* @summary Start Node.js build
|
|
15549
15991
|
* @param {string} username
|
|
15550
15992
|
* @param {string} domain Domain name
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.52.
|
|
4
|
+
* API Version: 1.52.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.52.
|
|
6
|
+
* API Version: 1.52.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.52.
|
|
4
|
+
* API Version: 1.52.2
|
|
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/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.52.
|
|
6
|
+
* API Version: 1.52.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.52.
|
|
4
|
+
* API Version: 1.52.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.52.
|
|
6
|
+
* API Version: 1.52.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.52.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.52.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.52.
|
|
4
|
+
* API Version: 1.52.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.52.
|
|
6
|
+
* API Version: 1.52.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.52.
|
|
4
|
+
* API Version: 1.52.2
|
|
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
|