@hostinger/sdk 1.58.0 → 1.58.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 +439 -9
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +272 -9
- package/dist/api.js +303 -9
- 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 +272 -9
- package/dist/esm/api.js +303 -9
- 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 +228 -0
- package/docs/HostingOrdersApi.md +1 -1
- package/docs/HostingV1GitDeployWebsiteGitRepositoryRequest.md +24 -0
- package/docs/HostingV1GitGitDeployOutputResource.md +23 -0
- package/docs/HostingV1GitGitSshKeyResource.md +21 -0
- package/docs/HostingV1GitWebsiteGitRepositoryResource.md +27 -0
- package/docs/HostingV1GitWebsiteGitRepositoryWebhookResource.md +27 -0
- package/docs/HostingWebsitesApi.md +1 -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.58.
|
|
6
|
+
* API Version: 1.58.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
|
|
@@ -14860,6 +14860,79 @@ export const HostingGitApiAxiosParamCreator = function (configuration) {
|
|
|
14860
14860
|
options: localVarRequestOptions,
|
|
14861
14861
|
};
|
|
14862
14862
|
}),
|
|
14863
|
+
/**
|
|
14864
|
+
* Clones a Git repository into a directory of the website, or pulls it again. An empty or missing directory gets a clone of the branch. A directory that already holds this repository and branch is reset to its last commit and pulled: changes made on the server to files the repository tracks are discarded, files it does not track stay. A directory that holds other files, including another repository or another branch of this one, is rejected. `composer install` runs after the clone or pull when the repository has a `composer.json`. The call waits for the deployment and returns its log. `is_success` false means Git or composer failed and the log says why. A second call for the same directory is rejected while the first is still waiting for the server. If the request times out, the deployment may still finish on the server; calling again later with the same repository and branch pulls. Private repositories need an SSH URL and the account\'s Git SSH key from `Generate Git SSH key`, added to the repository as a deploy key.
|
|
14865
|
+
* @summary Deploy website Git repository
|
|
14866
|
+
* @param {string} username
|
|
14867
|
+
* @param {string} domain Domain name
|
|
14868
|
+
* @param {HostingV1GitDeployWebsiteGitRepositoryRequest} hostingV1GitDeployWebsiteGitRepositoryRequest
|
|
14869
|
+
* @param {*} [options] Override http request option.
|
|
14870
|
+
* @throws {RequiredError}
|
|
14871
|
+
*/
|
|
14872
|
+
deployWebsiteGitRepositoryV1: (username_1, domain_1, hostingV1GitDeployWebsiteGitRepositoryRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1GitDeployWebsiteGitRepositoryRequest_1, ...args_1], void 0, function* (username, domain, hostingV1GitDeployWebsiteGitRepositoryRequest, options = {}) {
|
|
14873
|
+
// verify required parameter 'username' is not null or undefined
|
|
14874
|
+
assertParamExists('deployWebsiteGitRepositoryV1', 'username', username);
|
|
14875
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14876
|
+
assertParamExists('deployWebsiteGitRepositoryV1', 'domain', domain);
|
|
14877
|
+
// verify required parameter 'hostingV1GitDeployWebsiteGitRepositoryRequest' is not null or undefined
|
|
14878
|
+
assertParamExists('deployWebsiteGitRepositoryV1', 'hostingV1GitDeployWebsiteGitRepositoryRequest', hostingV1GitDeployWebsiteGitRepositoryRequest);
|
|
14879
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/repositories/deploy`
|
|
14880
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14881
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14882
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14883
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14884
|
+
let baseOptions;
|
|
14885
|
+
if (configuration) {
|
|
14886
|
+
baseOptions = configuration.baseOptions;
|
|
14887
|
+
}
|
|
14888
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14889
|
+
const localVarHeaderParameter = {};
|
|
14890
|
+
const localVarQueryParameter = {};
|
|
14891
|
+
// authentication apiToken required
|
|
14892
|
+
// http bearer authentication required
|
|
14893
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14894
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14895
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14896
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14897
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14898
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1GitDeployWebsiteGitRepositoryRequest, localVarRequestOptions, configuration);
|
|
14899
|
+
return {
|
|
14900
|
+
url: toPathString(localVarUrlObj),
|
|
14901
|
+
options: localVarRequestOptions,
|
|
14902
|
+
};
|
|
14903
|
+
}),
|
|
14904
|
+
/**
|
|
14905
|
+
* Creates the SSH key pair of the hosting account and returns the public key. When the account already has a key, returns that key unchanged. One key serves every website of the account; add the public key to a private repository as a deploy key before deploying it.
|
|
14906
|
+
* @summary Generate Git SSH key
|
|
14907
|
+
* @param {string} username
|
|
14908
|
+
* @param {*} [options] Override http request option.
|
|
14909
|
+
* @throws {RequiredError}
|
|
14910
|
+
*/
|
|
14911
|
+
generateGitSSHKeyV1: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
|
|
14912
|
+
// verify required parameter 'username' is not null or undefined
|
|
14913
|
+
assertParamExists('generateGitSSHKeyV1', 'username', username);
|
|
14914
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/git/ssh-key`
|
|
14915
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
14916
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14917
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14918
|
+
let baseOptions;
|
|
14919
|
+
if (configuration) {
|
|
14920
|
+
baseOptions = configuration.baseOptions;
|
|
14921
|
+
}
|
|
14922
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14923
|
+
const localVarHeaderParameter = {};
|
|
14924
|
+
const localVarQueryParameter = {};
|
|
14925
|
+
// authentication apiToken required
|
|
14926
|
+
// http bearer authentication required
|
|
14927
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14928
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14929
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14930
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14931
|
+
return {
|
|
14932
|
+
url: toPathString(localVarUrlObj),
|
|
14933
|
+
options: localVarRequestOptions,
|
|
14934
|
+
};
|
|
14935
|
+
}),
|
|
14863
14936
|
/**
|
|
14864
14937
|
* 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`.
|
|
14865
14938
|
* @summary Get Git auto-deployment settings
|
|
@@ -14896,6 +14969,38 @@ export const HostingGitApiAxiosParamCreator = function (configuration) {
|
|
|
14896
14969
|
options: localVarRequestOptions,
|
|
14897
14970
|
};
|
|
14898
14971
|
}),
|
|
14972
|
+
/**
|
|
14973
|
+
* Returns the public SSH key of the hosting account. `Deploy website Git repository` uses this key to clone and pull over SSH, so a private repository works once the key is added to it as a deploy key on the Git host. `public_key` is null when the account has no key yet.
|
|
14974
|
+
* @summary Get Git SSH public key
|
|
14975
|
+
* @param {string} username
|
|
14976
|
+
* @param {*} [options] Override http request option.
|
|
14977
|
+
* @throws {RequiredError}
|
|
14978
|
+
*/
|
|
14979
|
+
getGitSSHPublicKeyV1: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
|
|
14980
|
+
// verify required parameter 'username' is not null or undefined
|
|
14981
|
+
assertParamExists('getGitSSHPublicKeyV1', 'username', username);
|
|
14982
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/git/ssh-key`
|
|
14983
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
14984
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14985
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14986
|
+
let baseOptions;
|
|
14987
|
+
if (configuration) {
|
|
14988
|
+
baseOptions = configuration.baseOptions;
|
|
14989
|
+
}
|
|
14990
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14991
|
+
const localVarHeaderParameter = {};
|
|
14992
|
+
const localVarQueryParameter = {};
|
|
14993
|
+
// authentication apiToken required
|
|
14994
|
+
// http bearer authentication required
|
|
14995
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14996
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14997
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14998
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14999
|
+
return {
|
|
15000
|
+
url: toPathString(localVarUrlObj),
|
|
15001
|
+
options: localVarRequestOptions,
|
|
15002
|
+
};
|
|
15003
|
+
}),
|
|
14899
15004
|
/**
|
|
14900
15005
|
* 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).
|
|
14901
15006
|
* @summary List Git installation repositories
|
|
@@ -14964,6 +15069,42 @@ export const HostingGitApiAxiosParamCreator = function (configuration) {
|
|
|
14964
15069
|
options: localVarRequestOptions,
|
|
14965
15070
|
};
|
|
14966
15071
|
}),
|
|
15072
|
+
/**
|
|
15073
|
+
* Lists the Git repositories linked to directories of the website, with `Deploy website Git repository` or in the Git section of hPanel: clone URL, branch and directory of each one. A repository whose clone failed stays listed; deploying it again retries the clone. GitHub and GitLab auto-deployments are not listed here; see `Get Git auto-deployment settings`.
|
|
15074
|
+
* @summary List website Git repositories
|
|
15075
|
+
* @param {string} username
|
|
15076
|
+
* @param {string} domain Domain name
|
|
15077
|
+
* @param {*} [options] Override http request option.
|
|
15078
|
+
* @throws {RequiredError}
|
|
15079
|
+
*/
|
|
15080
|
+
listWebsiteGitRepositoriesV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
15081
|
+
// verify required parameter 'username' is not null or undefined
|
|
15082
|
+
assertParamExists('listWebsiteGitRepositoriesV1', 'username', username);
|
|
15083
|
+
// verify required parameter 'domain' is not null or undefined
|
|
15084
|
+
assertParamExists('listWebsiteGitRepositoriesV1', 'domain', domain);
|
|
15085
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/repositories`
|
|
15086
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
15087
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
15088
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15089
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15090
|
+
let baseOptions;
|
|
15091
|
+
if (configuration) {
|
|
15092
|
+
baseOptions = configuration.baseOptions;
|
|
15093
|
+
}
|
|
15094
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
15095
|
+
const localVarHeaderParameter = {};
|
|
15096
|
+
const localVarQueryParameter = {};
|
|
15097
|
+
// authentication apiToken required
|
|
15098
|
+
// http bearer authentication required
|
|
15099
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
15100
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15101
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15102
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15103
|
+
return {
|
|
15104
|
+
url: toPathString(localVarUrlObj),
|
|
15105
|
+
options: localVarRequestOptions,
|
|
15106
|
+
};
|
|
15107
|
+
}),
|
|
14967
15108
|
/**
|
|
14968
15109
|
* 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.
|
|
14969
15110
|
* @summary Update Git auto-deployment settings
|
|
@@ -15030,6 +15171,38 @@ export const HostingGitApiFp = function (configuration) {
|
|
|
15030
15171
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15031
15172
|
});
|
|
15032
15173
|
},
|
|
15174
|
+
/**
|
|
15175
|
+
* Clones a Git repository into a directory of the website, or pulls it again. An empty or missing directory gets a clone of the branch. A directory that already holds this repository and branch is reset to its last commit and pulled: changes made on the server to files the repository tracks are discarded, files it does not track stay. A directory that holds other files, including another repository or another branch of this one, is rejected. `composer install` runs after the clone or pull when the repository has a `composer.json`. The call waits for the deployment and returns its log. `is_success` false means Git or composer failed and the log says why. A second call for the same directory is rejected while the first is still waiting for the server. If the request times out, the deployment may still finish on the server; calling again later with the same repository and branch pulls. Private repositories need an SSH URL and the account\'s Git SSH key from `Generate Git SSH key`, added to the repository as a deploy key.
|
|
15176
|
+
* @summary Deploy website Git repository
|
|
15177
|
+
* @param {string} username
|
|
15178
|
+
* @param {string} domain Domain name
|
|
15179
|
+
* @param {HostingV1GitDeployWebsiteGitRepositoryRequest} hostingV1GitDeployWebsiteGitRepositoryRequest
|
|
15180
|
+
* @param {*} [options] Override http request option.
|
|
15181
|
+
* @throws {RequiredError}
|
|
15182
|
+
*/
|
|
15183
|
+
deployWebsiteGitRepositoryV1(username, domain, hostingV1GitDeployWebsiteGitRepositoryRequest, options) {
|
|
15184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15185
|
+
var _a, _b;
|
|
15186
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployWebsiteGitRepositoryV1(username, domain, hostingV1GitDeployWebsiteGitRepositoryRequest, options);
|
|
15187
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingGitApi.deployWebsiteGitRepositoryV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
15188
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15189
|
+
});
|
|
15190
|
+
},
|
|
15191
|
+
/**
|
|
15192
|
+
* Creates the SSH key pair of the hosting account and returns the public key. When the account already has a key, returns that key unchanged. One key serves every website of the account; add the public key to a private repository as a deploy key before deploying it.
|
|
15193
|
+
* @summary Generate Git SSH key
|
|
15194
|
+
* @param {string} username
|
|
15195
|
+
* @param {*} [options] Override http request option.
|
|
15196
|
+
* @throws {RequiredError}
|
|
15197
|
+
*/
|
|
15198
|
+
generateGitSSHKeyV1(username, options) {
|
|
15199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15200
|
+
var _a, _b;
|
|
15201
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateGitSSHKeyV1(username, options);
|
|
15202
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingGitApi.generateGitSSHKeyV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
15203
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15204
|
+
});
|
|
15205
|
+
},
|
|
15033
15206
|
/**
|
|
15034
15207
|
* 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`.
|
|
15035
15208
|
* @summary Get Git auto-deployment settings
|
|
@@ -15046,6 +15219,21 @@ export const HostingGitApiFp = function (configuration) {
|
|
|
15046
15219
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15047
15220
|
});
|
|
15048
15221
|
},
|
|
15222
|
+
/**
|
|
15223
|
+
* Returns the public SSH key of the hosting account. `Deploy website Git repository` uses this key to clone and pull over SSH, so a private repository works once the key is added to it as a deploy key on the Git host. `public_key` is null when the account has no key yet.
|
|
15224
|
+
* @summary Get Git SSH public key
|
|
15225
|
+
* @param {string} username
|
|
15226
|
+
* @param {*} [options] Override http request option.
|
|
15227
|
+
* @throws {RequiredError}
|
|
15228
|
+
*/
|
|
15229
|
+
getGitSSHPublicKeyV1(username, options) {
|
|
15230
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15231
|
+
var _a, _b;
|
|
15232
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGitSSHPublicKeyV1(username, options);
|
|
15233
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingGitApi.getGitSSHPublicKeyV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
15234
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15235
|
+
});
|
|
15236
|
+
},
|
|
15049
15237
|
/**
|
|
15050
15238
|
* 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).
|
|
15051
15239
|
* @summary List Git installation repositories
|
|
@@ -15077,6 +15265,22 @@ export const HostingGitApiFp = function (configuration) {
|
|
|
15077
15265
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15078
15266
|
});
|
|
15079
15267
|
},
|
|
15268
|
+
/**
|
|
15269
|
+
* Lists the Git repositories linked to directories of the website, with `Deploy website Git repository` or in the Git section of hPanel: clone URL, branch and directory of each one. A repository whose clone failed stays listed; deploying it again retries the clone. GitHub and GitLab auto-deployments are not listed here; see `Get Git auto-deployment settings`.
|
|
15270
|
+
* @summary List website Git repositories
|
|
15271
|
+
* @param {string} username
|
|
15272
|
+
* @param {string} domain Domain name
|
|
15273
|
+
* @param {*} [options] Override http request option.
|
|
15274
|
+
* @throws {RequiredError}
|
|
15275
|
+
*/
|
|
15276
|
+
listWebsiteGitRepositoriesV1(username, domain, options) {
|
|
15277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15278
|
+
var _a, _b;
|
|
15279
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsiteGitRepositoriesV1(username, domain, options);
|
|
15280
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingGitApi.listWebsiteGitRepositoriesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
15281
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15282
|
+
});
|
|
15283
|
+
},
|
|
15080
15284
|
/**
|
|
15081
15285
|
* 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.
|
|
15082
15286
|
* @summary Update Git auto-deployment settings
|
|
@@ -15114,6 +15318,28 @@ export const HostingGitApiFactory = function (configuration, basePath, axios) {
|
|
|
15114
15318
|
deleteGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
15115
15319
|
return localVarFp.deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
15116
15320
|
},
|
|
15321
|
+
/**
|
|
15322
|
+
* Clones a Git repository into a directory of the website, or pulls it again. An empty or missing directory gets a clone of the branch. A directory that already holds this repository and branch is reset to its last commit and pulled: changes made on the server to files the repository tracks are discarded, files it does not track stay. A directory that holds other files, including another repository or another branch of this one, is rejected. `composer install` runs after the clone or pull when the repository has a `composer.json`. The call waits for the deployment and returns its log. `is_success` false means Git or composer failed and the log says why. A second call for the same directory is rejected while the first is still waiting for the server. If the request times out, the deployment may still finish on the server; calling again later with the same repository and branch pulls. Private repositories need an SSH URL and the account\'s Git SSH key from `Generate Git SSH key`, added to the repository as a deploy key.
|
|
15323
|
+
* @summary Deploy website Git repository
|
|
15324
|
+
* @param {string} username
|
|
15325
|
+
* @param {string} domain Domain name
|
|
15326
|
+
* @param {HostingV1GitDeployWebsiteGitRepositoryRequest} hostingV1GitDeployWebsiteGitRepositoryRequest
|
|
15327
|
+
* @param {*} [options] Override http request option.
|
|
15328
|
+
* @throws {RequiredError}
|
|
15329
|
+
*/
|
|
15330
|
+
deployWebsiteGitRepositoryV1(username, domain, hostingV1GitDeployWebsiteGitRepositoryRequest, options) {
|
|
15331
|
+
return localVarFp.deployWebsiteGitRepositoryV1(username, domain, hostingV1GitDeployWebsiteGitRepositoryRequest, options).then((request) => request(axios, basePath));
|
|
15332
|
+
},
|
|
15333
|
+
/**
|
|
15334
|
+
* Creates the SSH key pair of the hosting account and returns the public key. When the account already has a key, returns that key unchanged. One key serves every website of the account; add the public key to a private repository as a deploy key before deploying it.
|
|
15335
|
+
* @summary Generate Git SSH key
|
|
15336
|
+
* @param {string} username
|
|
15337
|
+
* @param {*} [options] Override http request option.
|
|
15338
|
+
* @throws {RequiredError}
|
|
15339
|
+
*/
|
|
15340
|
+
generateGitSSHKeyV1(username, options) {
|
|
15341
|
+
return localVarFp.generateGitSSHKeyV1(username, options).then((request) => request(axios, basePath));
|
|
15342
|
+
},
|
|
15117
15343
|
/**
|
|
15118
15344
|
* 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`.
|
|
15119
15345
|
* @summary Get Git auto-deployment settings
|
|
@@ -15125,6 +15351,16 @@ export const HostingGitApiFactory = function (configuration, basePath, axios) {
|
|
|
15125
15351
|
getGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
15126
15352
|
return localVarFp.getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
15127
15353
|
},
|
|
15354
|
+
/**
|
|
15355
|
+
* Returns the public SSH key of the hosting account. `Deploy website Git repository` uses this key to clone and pull over SSH, so a private repository works once the key is added to it as a deploy key on the Git host. `public_key` is null when the account has no key yet.
|
|
15356
|
+
* @summary Get Git SSH public key
|
|
15357
|
+
* @param {string} username
|
|
15358
|
+
* @param {*} [options] Override http request option.
|
|
15359
|
+
* @throws {RequiredError}
|
|
15360
|
+
*/
|
|
15361
|
+
getGitSSHPublicKeyV1(username, options) {
|
|
15362
|
+
return localVarFp.getGitSSHPublicKeyV1(username, options).then((request) => request(axios, basePath));
|
|
15363
|
+
},
|
|
15128
15364
|
/**
|
|
15129
15365
|
* 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).
|
|
15130
15366
|
* @summary List Git installation repositories
|
|
@@ -15146,6 +15382,17 @@ export const HostingGitApiFactory = function (configuration, basePath, axios) {
|
|
|
15146
15382
|
listGitInstallationsV1(provider, status, options) {
|
|
15147
15383
|
return localVarFp.listGitInstallationsV1(provider, status, options).then((request) => request(axios, basePath));
|
|
15148
15384
|
},
|
|
15385
|
+
/**
|
|
15386
|
+
* Lists the Git repositories linked to directories of the website, with `Deploy website Git repository` or in the Git section of hPanel: clone URL, branch and directory of each one. A repository whose clone failed stays listed; deploying it again retries the clone. GitHub and GitLab auto-deployments are not listed here; see `Get Git auto-deployment settings`.
|
|
15387
|
+
* @summary List website Git repositories
|
|
15388
|
+
* @param {string} username
|
|
15389
|
+
* @param {string} domain Domain name
|
|
15390
|
+
* @param {*} [options] Override http request option.
|
|
15391
|
+
* @throws {RequiredError}
|
|
15392
|
+
*/
|
|
15393
|
+
listWebsiteGitRepositoriesV1(username, domain, options) {
|
|
15394
|
+
return localVarFp.listWebsiteGitRepositoriesV1(username, domain, options).then((request) => request(axios, basePath));
|
|
15395
|
+
},
|
|
15149
15396
|
/**
|
|
15150
15397
|
* 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.
|
|
15151
15398
|
* @summary Update Git auto-deployment settings
|
|
@@ -15179,6 +15426,30 @@ export class HostingGitApi extends BaseAPI {
|
|
|
15179
15426
|
deleteGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
15180
15427
|
return HostingGitApiFp(this.configuration).deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
15181
15428
|
}
|
|
15429
|
+
/**
|
|
15430
|
+
* Clones a Git repository into a directory of the website, or pulls it again. An empty or missing directory gets a clone of the branch. A directory that already holds this repository and branch is reset to its last commit and pulled: changes made on the server to files the repository tracks are discarded, files it does not track stay. A directory that holds other files, including another repository or another branch of this one, is rejected. `composer install` runs after the clone or pull when the repository has a `composer.json`. The call waits for the deployment and returns its log. `is_success` false means Git or composer failed and the log says why. A second call for the same directory is rejected while the first is still waiting for the server. If the request times out, the deployment may still finish on the server; calling again later with the same repository and branch pulls. Private repositories need an SSH URL and the account\'s Git SSH key from `Generate Git SSH key`, added to the repository as a deploy key.
|
|
15431
|
+
* @summary Deploy website Git repository
|
|
15432
|
+
* @param {string} username
|
|
15433
|
+
* @param {string} domain Domain name
|
|
15434
|
+
* @param {HostingV1GitDeployWebsiteGitRepositoryRequest} hostingV1GitDeployWebsiteGitRepositoryRequest
|
|
15435
|
+
* @param {*} [options] Override http request option.
|
|
15436
|
+
* @throws {RequiredError}
|
|
15437
|
+
* @memberof HostingGitApi
|
|
15438
|
+
*/
|
|
15439
|
+
deployWebsiteGitRepositoryV1(username, domain, hostingV1GitDeployWebsiteGitRepositoryRequest, options) {
|
|
15440
|
+
return HostingGitApiFp(this.configuration).deployWebsiteGitRepositoryV1(username, domain, hostingV1GitDeployWebsiteGitRepositoryRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15441
|
+
}
|
|
15442
|
+
/**
|
|
15443
|
+
* Creates the SSH key pair of the hosting account and returns the public key. When the account already has a key, returns that key unchanged. One key serves every website of the account; add the public key to a private repository as a deploy key before deploying it.
|
|
15444
|
+
* @summary Generate Git SSH key
|
|
15445
|
+
* @param {string} username
|
|
15446
|
+
* @param {*} [options] Override http request option.
|
|
15447
|
+
* @throws {RequiredError}
|
|
15448
|
+
* @memberof HostingGitApi
|
|
15449
|
+
*/
|
|
15450
|
+
generateGitSSHKeyV1(username, options) {
|
|
15451
|
+
return HostingGitApiFp(this.configuration).generateGitSSHKeyV1(username, options).then((request) => request(this.axios, this.basePath));
|
|
15452
|
+
}
|
|
15182
15453
|
/**
|
|
15183
15454
|
* 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`.
|
|
15184
15455
|
* @summary Get Git auto-deployment settings
|
|
@@ -15191,6 +15462,17 @@ export class HostingGitApi extends BaseAPI {
|
|
|
15191
15462
|
getGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
15192
15463
|
return HostingGitApiFp(this.configuration).getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
15193
15464
|
}
|
|
15465
|
+
/**
|
|
15466
|
+
* Returns the public SSH key of the hosting account. `Deploy website Git repository` uses this key to clone and pull over SSH, so a private repository works once the key is added to it as a deploy key on the Git host. `public_key` is null when the account has no key yet.
|
|
15467
|
+
* @summary Get Git SSH public key
|
|
15468
|
+
* @param {string} username
|
|
15469
|
+
* @param {*} [options] Override http request option.
|
|
15470
|
+
* @throws {RequiredError}
|
|
15471
|
+
* @memberof HostingGitApi
|
|
15472
|
+
*/
|
|
15473
|
+
getGitSSHPublicKeyV1(username, options) {
|
|
15474
|
+
return HostingGitApiFp(this.configuration).getGitSSHPublicKeyV1(username, options).then((request) => request(this.axios, this.basePath));
|
|
15475
|
+
}
|
|
15194
15476
|
/**
|
|
15195
15477
|
* 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).
|
|
15196
15478
|
* @summary List Git installation repositories
|
|
@@ -15214,6 +15496,18 @@ export class HostingGitApi extends BaseAPI {
|
|
|
15214
15496
|
listGitInstallationsV1(provider, status, options) {
|
|
15215
15497
|
return HostingGitApiFp(this.configuration).listGitInstallationsV1(provider, status, options).then((request) => request(this.axios, this.basePath));
|
|
15216
15498
|
}
|
|
15499
|
+
/**
|
|
15500
|
+
* Lists the Git repositories linked to directories of the website, with `Deploy website Git repository` or in the Git section of hPanel: clone URL, branch and directory of each one. A repository whose clone failed stays listed; deploying it again retries the clone. GitHub and GitLab auto-deployments are not listed here; see `Get Git auto-deployment settings`.
|
|
15501
|
+
* @summary List website Git repositories
|
|
15502
|
+
* @param {string} username
|
|
15503
|
+
* @param {string} domain Domain name
|
|
15504
|
+
* @param {*} [options] Override http request option.
|
|
15505
|
+
* @throws {RequiredError}
|
|
15506
|
+
* @memberof HostingGitApi
|
|
15507
|
+
*/
|
|
15508
|
+
listWebsiteGitRepositoriesV1(username, domain, options) {
|
|
15509
|
+
return HostingGitApiFp(this.configuration).listWebsiteGitRepositoriesV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
15510
|
+
}
|
|
15217
15511
|
/**
|
|
15218
15512
|
* 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.
|
|
15219
15513
|
* @summary Update Git auto-deployment settings
|
|
@@ -16574,7 +16868,7 @@ export const ListNodeJsVulnerabilitiesV1SeveritiesEnum = {
|
|
|
16574
16868
|
export const HostingOrdersApiAxiosParamCreator = function (configuration) {
|
|
16575
16869
|
return {
|
|
16576
16870
|
/**
|
|
16577
|
-
* Retrieve a paginated list of orders accessible to the authenticated client. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
|
|
16871
|
+
* Retrieve a paginated list of orders accessible to the authenticated client. Only Web and Cloud hosting orders are listed. Agency Plan orders are listed by `GET /api/agency-hosting/v1/orders`. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
|
|
16578
16872
|
* @summary List orders
|
|
16579
16873
|
* @param {number} [page] Page number
|
|
16580
16874
|
* @param {number} [perPage] Number of items per page
|
|
@@ -16627,7 +16921,7 @@ export const HostingOrdersApiFp = function (configuration) {
|
|
|
16627
16921
|
const localVarAxiosParamCreator = HostingOrdersApiAxiosParamCreator(configuration);
|
|
16628
16922
|
return {
|
|
16629
16923
|
/**
|
|
16630
|
-
* Retrieve a paginated list of orders accessible to the authenticated client. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
|
|
16924
|
+
* Retrieve a paginated list of orders accessible to the authenticated client. Only Web and Cloud hosting orders are listed. Agency Plan orders are listed by `GET /api/agency-hosting/v1/orders`. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
|
|
16631
16925
|
* @summary List orders
|
|
16632
16926
|
* @param {number} [page] Page number
|
|
16633
16927
|
* @param {number} [perPage] Number of items per page
|
|
@@ -16654,7 +16948,7 @@ export const HostingOrdersApiFactory = function (configuration, basePath, axios)
|
|
|
16654
16948
|
const localVarFp = HostingOrdersApiFp(configuration);
|
|
16655
16949
|
return {
|
|
16656
16950
|
/**
|
|
16657
|
-
* Retrieve a paginated list of orders accessible to the authenticated client. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
|
|
16951
|
+
* Retrieve a paginated list of orders accessible to the authenticated client. Only Web and Cloud hosting orders are listed. Agency Plan orders are listed by `GET /api/agency-hosting/v1/orders`. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
|
|
16658
16952
|
* @summary List orders
|
|
16659
16953
|
* @param {number} [page] Page number
|
|
16660
16954
|
* @param {number} [perPage] Number of items per page
|
|
@@ -16676,7 +16970,7 @@ export const HostingOrdersApiFactory = function (configuration, basePath, axios)
|
|
|
16676
16970
|
*/
|
|
16677
16971
|
export class HostingOrdersApi extends BaseAPI {
|
|
16678
16972
|
/**
|
|
16679
|
-
* Retrieve a paginated list of orders accessible to the authenticated client. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
|
|
16973
|
+
* Retrieve a paginated list of orders accessible to the authenticated client. Only Web and Cloud hosting orders are listed. Agency Plan orders are listed by `GET /api/agency-hosting/v1/orders`. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
|
|
16680
16974
|
* @summary List orders
|
|
16681
16975
|
* @param {number} [page] Page number
|
|
16682
16976
|
* @param {number} [perPage] Number of items per page
|
|
@@ -17846,7 +18140,7 @@ export class HostingSSLApi extends BaseAPI {
|
|
|
17846
18140
|
export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
17847
18141
|
return {
|
|
17848
18142
|
/**
|
|
17849
|
-
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
18143
|
+
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
17850
18144
|
* @summary Create website
|
|
17851
18145
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
17852
18146
|
* @param {*} [options] Override http request option.
|
|
@@ -18049,7 +18343,7 @@ export const HostingWebsitesApiFp = function (configuration) {
|
|
|
18049
18343
|
const localVarAxiosParamCreator = HostingWebsitesApiAxiosParamCreator(configuration);
|
|
18050
18344
|
return {
|
|
18051
18345
|
/**
|
|
18052
|
-
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
18346
|
+
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
18053
18347
|
* @summary Create website
|
|
18054
18348
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
18055
18349
|
* @param {*} [options] Override http request option.
|
|
@@ -18141,7 +18435,7 @@ export const HostingWebsitesApiFactory = function (configuration, basePath, axio
|
|
|
18141
18435
|
const localVarFp = HostingWebsitesApiFp(configuration);
|
|
18142
18436
|
return {
|
|
18143
18437
|
/**
|
|
18144
|
-
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
18438
|
+
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
18145
18439
|
* @summary Create website
|
|
18146
18440
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
18147
18441
|
* @param {*} [options] Override http request option.
|
|
@@ -18208,7 +18502,7 @@ export const HostingWebsitesApiFactory = function (configuration, basePath, axio
|
|
|
18208
18502
|
*/
|
|
18209
18503
|
export class HostingWebsitesApi extends BaseAPI {
|
|
18210
18504
|
/**
|
|
18211
|
-
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
18505
|
+
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
18212
18506
|
* @summary Create website
|
|
18213
18507
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
18214
18508
|
* @param {*} [options] Override http request option.
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.58.
|
|
4
|
+
* API Version: 1.58.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.58.
|
|
6
|
+
* API Version: 1.58.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.58.
|
|
4
|
+
* API Version: 1.58.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.58.
|
|
6
|
+
* API Version: 1.58.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.58.
|
|
4
|
+
* API Version: 1.58.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.58.
|
|
6
|
+
* API Version: 1.58.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.58.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.58.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.58.
|
|
4
|
+
* API Version: 1.58.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.58.
|
|
6
|
+
* API Version: 1.58.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.58.
|
|
4
|
+
* API Version: 1.58.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/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.58.
|
|
7
|
+
* API Version: 1.58.2
|
|
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
|