@hostinger/sdk 1.54.0 → 1.54.1
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 +156 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +111 -1
- package/dist/api.js +82 -1
- 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 +111 -1
- package/dist/esm/api.js +82 -1
- 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/HostingDatabasesApi.md +62 -0
- package/docs/HostingV1DatabasesSetupDatabaseRequest.md +22 -0
- package/docs/HostingV1DatabasesWebsiteDatabaseConnectionResource.md +26 -0
- package/docs/HostingV1DatabasesWebsiteDatabaseResource.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@1.54.
|
|
1
|
+
## @hostinger/sdk@1.54.1
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@1.54.
|
|
8
|
+
npm install @hostinger/sdk@1.54.1 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.54.
|
|
6
|
+
* API Version: 1.54.1
|
|
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
|
|
@@ -7007,6 +7007,75 @@ export interface HostingV1DatabasesRemoteConnectionsRemoteConnectionResource {
|
|
|
7007
7007
|
*/
|
|
7008
7008
|
'ip': string;
|
|
7009
7009
|
}
|
|
7010
|
+
/**
|
|
7011
|
+
*
|
|
7012
|
+
* @export
|
|
7013
|
+
* @interface HostingV1DatabasesSetupDatabaseRequest
|
|
7014
|
+
*/
|
|
7015
|
+
export interface HostingV1DatabasesSetupDatabaseRequest {
|
|
7016
|
+
/**
|
|
7017
|
+
* Optional database name. Generated when omitted. Letters, digits and underscores; must not start with an underscore. Up to 14 characters without the account username prefix (`u123456789_`), which is added automatically when missing. With the prefix the full name is 12 to 25 characters.
|
|
7018
|
+
* @type {string}
|
|
7019
|
+
* @memberof HostingV1DatabasesSetupDatabaseRequest
|
|
7020
|
+
*/
|
|
7021
|
+
'name': string;
|
|
7022
|
+
/**
|
|
7023
|
+
* Optional database user. Generated when omitted. Letters, digits and underscores; must not start with an underscore. Up to 14 characters without the account username prefix (`u123456789_`), which is added automatically when missing. With the prefix the full user is 12 to 25 characters.
|
|
7024
|
+
* @type {string}
|
|
7025
|
+
* @memberof HostingV1DatabasesSetupDatabaseRequest
|
|
7026
|
+
*/
|
|
7027
|
+
'user': string;
|
|
7028
|
+
}
|
|
7029
|
+
/**
|
|
7030
|
+
*
|
|
7031
|
+
* @export
|
|
7032
|
+
* @interface HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
7033
|
+
*/
|
|
7034
|
+
export interface HostingV1DatabasesWebsiteDatabaseConnectionResource {
|
|
7035
|
+
/**
|
|
7036
|
+
* Database name, as written into DB_NAME
|
|
7037
|
+
* @type {string}
|
|
7038
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
7039
|
+
*/
|
|
7040
|
+
'name': string;
|
|
7041
|
+
/**
|
|
7042
|
+
* Database user, as written into DB_USER
|
|
7043
|
+
* @type {string}
|
|
7044
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
7045
|
+
*/
|
|
7046
|
+
'user': string;
|
|
7047
|
+
/**
|
|
7048
|
+
* MySQL host as written into DB_HOST. The application connects over the loopback.
|
|
7049
|
+
* @type {string}
|
|
7050
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
7051
|
+
*/
|
|
7052
|
+
'host': string;
|
|
7053
|
+
/**
|
|
7054
|
+
* MySQL port as written into DB_PORT
|
|
7055
|
+
* @type {number}
|
|
7056
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
7057
|
+
*/
|
|
7058
|
+
'port': number;
|
|
7059
|
+
}
|
|
7060
|
+
/**
|
|
7061
|
+
*
|
|
7062
|
+
* @export
|
|
7063
|
+
* @interface HostingV1DatabasesWebsiteDatabaseResource
|
|
7064
|
+
*/
|
|
7065
|
+
export interface HostingV1DatabasesWebsiteDatabaseResource {
|
|
7066
|
+
/**
|
|
7067
|
+
*
|
|
7068
|
+
* @type {HostingV1DatabasesWebsiteDatabaseConnectionResource}
|
|
7069
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseResource
|
|
7070
|
+
*/
|
|
7071
|
+
'database': HostingV1DatabasesWebsiteDatabaseConnectionResource;
|
|
7072
|
+
/**
|
|
7073
|
+
* Names of the environment variables written for this database. Values are never returned.
|
|
7074
|
+
* @type {Array<string>}
|
|
7075
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseResource
|
|
7076
|
+
*/
|
|
7077
|
+
'env_var_keys': Array<string>;
|
|
7078
|
+
}
|
|
7010
7079
|
/**
|
|
7011
7080
|
*
|
|
7012
7081
|
* @export
|
|
@@ -29922,6 +29991,52 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
|
|
|
29922
29991
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29923
29992
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29924
29993
|
|
|
29994
|
+
return {
|
|
29995
|
+
url: toPathString(localVarUrlObj),
|
|
29996
|
+
options: localVarRequestOptions,
|
|
29997
|
+
};
|
|
29998
|
+
},
|
|
29999
|
+
/**
|
|
30000
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
30001
|
+
* @summary Setup website database
|
|
30002
|
+
* @param {string} username
|
|
30003
|
+
* @param {string} domain Domain name
|
|
30004
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
30005
|
+
* @param {*} [options] Override http request option.
|
|
30006
|
+
* @throws {RequiredError}
|
|
30007
|
+
*/
|
|
30008
|
+
setupWebsiteDatabaseV1: async (username: string, domain: string, hostingV1DatabasesSetupDatabaseRequest?: HostingV1DatabasesSetupDatabaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30009
|
+
// verify required parameter 'username' is not null or undefined
|
|
30010
|
+
assertParamExists('setupWebsiteDatabaseV1', 'username', username)
|
|
30011
|
+
// verify required parameter 'domain' is not null or undefined
|
|
30012
|
+
assertParamExists('setupWebsiteDatabaseV1', 'domain', domain)
|
|
30013
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/databases/setup`
|
|
30014
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
30015
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
30016
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30017
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30018
|
+
let baseOptions;
|
|
30019
|
+
if (configuration) {
|
|
30020
|
+
baseOptions = configuration.baseOptions;
|
|
30021
|
+
}
|
|
30022
|
+
|
|
30023
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
30024
|
+
const localVarHeaderParameter = {} as any;
|
|
30025
|
+
const localVarQueryParameter = {} as any;
|
|
30026
|
+
|
|
30027
|
+
// authentication apiToken required
|
|
30028
|
+
// http bearer authentication required
|
|
30029
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30030
|
+
|
|
30031
|
+
|
|
30032
|
+
|
|
30033
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30034
|
+
|
|
30035
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30036
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30037
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30038
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesSetupDatabaseRequest, localVarRequestOptions, configuration)
|
|
30039
|
+
|
|
29925
30040
|
return {
|
|
29926
30041
|
url: toPathString(localVarUrlObj),
|
|
29927
30042
|
options: localVarRequestOptions,
|
|
@@ -30061,6 +30176,20 @@ export const HostingDatabasesApiFp = function(configuration?: Configuration) {
|
|
|
30061
30176
|
const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.repairDatabaseV1']?.[0]?.url;
|
|
30062
30177
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30063
30178
|
},
|
|
30179
|
+
/**
|
|
30180
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
30181
|
+
* @summary Setup website database
|
|
30182
|
+
* @param {string} username
|
|
30183
|
+
* @param {string} domain Domain name
|
|
30184
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
30185
|
+
* @param {*} [options] Override http request option.
|
|
30186
|
+
* @throws {RequiredError}
|
|
30187
|
+
*/
|
|
30188
|
+
async setupWebsiteDatabaseV1(username: string, domain: string, hostingV1DatabasesSetupDatabaseRequest?: HostingV1DatabasesSetupDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1DatabasesWebsiteDatabaseResource>> {
|
|
30189
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options);
|
|
30190
|
+
const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.setupWebsiteDatabaseV1']?.[0]?.url;
|
|
30191
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30192
|
+
},
|
|
30064
30193
|
}
|
|
30065
30194
|
};
|
|
30066
30195
|
|
|
@@ -30177,6 +30306,18 @@ export const HostingDatabasesApiFactory = function (configuration?: Configuratio
|
|
|
30177
30306
|
repairDatabaseV1(username: string, name: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
30178
30307
|
return localVarFp.repairDatabaseV1(username, name, options).then((request) => request(axios, basePath));
|
|
30179
30308
|
},
|
|
30309
|
+
/**
|
|
30310
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
30311
|
+
* @summary Setup website database
|
|
30312
|
+
* @param {string} username
|
|
30313
|
+
* @param {string} domain Domain name
|
|
30314
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
30315
|
+
* @param {*} [options] Override http request option.
|
|
30316
|
+
* @throws {RequiredError}
|
|
30317
|
+
*/
|
|
30318
|
+
setupWebsiteDatabaseV1(username: string, domain: string, hostingV1DatabasesSetupDatabaseRequest?: HostingV1DatabasesSetupDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1DatabasesWebsiteDatabaseResource> {
|
|
30319
|
+
return localVarFp.setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
30320
|
+
},
|
|
30180
30321
|
};
|
|
30181
30322
|
};
|
|
30182
30323
|
|
|
@@ -30310,6 +30451,20 @@ export class HostingDatabasesApi extends BaseAPI {
|
|
|
30310
30451
|
public repairDatabaseV1(username: string, name: string, options?: RawAxiosRequestConfig) {
|
|
30311
30452
|
return HostingDatabasesApiFp(this.configuration).repairDatabaseV1(username, name, options).then((request) => request(this.axios, this.basePath));
|
|
30312
30453
|
}
|
|
30454
|
+
|
|
30455
|
+
/**
|
|
30456
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
30457
|
+
* @summary Setup website database
|
|
30458
|
+
* @param {string} username
|
|
30459
|
+
* @param {string} domain Domain name
|
|
30460
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
30461
|
+
* @param {*} [options] Override http request option.
|
|
30462
|
+
* @throws {RequiredError}
|
|
30463
|
+
* @memberof HostingDatabasesApi
|
|
30464
|
+
*/
|
|
30465
|
+
public setupWebsiteDatabaseV1(username: string, domain: string, hostingV1DatabasesSetupDatabaseRequest?: HostingV1DatabasesSetupDatabaseRequest, options?: RawAxiosRequestConfig) {
|
|
30466
|
+
return HostingDatabasesApiFp(this.configuration).setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30467
|
+
}
|
|
30313
30468
|
}
|
|
30314
30469
|
|
|
30315
30470
|
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.54.
|
|
6
|
+
* API Version: 1.54.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.54.
|
|
6
|
+
* API Version: 1.54.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.54.
|
|
6
|
+
* API Version: 1.54.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/1.54.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.54.1",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.54.
|
|
4
|
+
* API Version: 1.54.1
|
|
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
|
|
@@ -6861,6 +6861,75 @@ export interface HostingV1DatabasesRemoteConnectionsRemoteConnectionResource {
|
|
|
6861
6861
|
*/
|
|
6862
6862
|
'ip': string;
|
|
6863
6863
|
}
|
|
6864
|
+
/**
|
|
6865
|
+
*
|
|
6866
|
+
* @export
|
|
6867
|
+
* @interface HostingV1DatabasesSetupDatabaseRequest
|
|
6868
|
+
*/
|
|
6869
|
+
export interface HostingV1DatabasesSetupDatabaseRequest {
|
|
6870
|
+
/**
|
|
6871
|
+
* Optional database name. Generated when omitted. Letters, digits and underscores; must not start with an underscore. Up to 14 characters without the account username prefix (`u123456789_`), which is added automatically when missing. With the prefix the full name is 12 to 25 characters.
|
|
6872
|
+
* @type {string}
|
|
6873
|
+
* @memberof HostingV1DatabasesSetupDatabaseRequest
|
|
6874
|
+
*/
|
|
6875
|
+
'name': string;
|
|
6876
|
+
/**
|
|
6877
|
+
* Optional database user. Generated when omitted. Letters, digits and underscores; must not start with an underscore. Up to 14 characters without the account username prefix (`u123456789_`), which is added automatically when missing. With the prefix the full user is 12 to 25 characters.
|
|
6878
|
+
* @type {string}
|
|
6879
|
+
* @memberof HostingV1DatabasesSetupDatabaseRequest
|
|
6880
|
+
*/
|
|
6881
|
+
'user': string;
|
|
6882
|
+
}
|
|
6883
|
+
/**
|
|
6884
|
+
*
|
|
6885
|
+
* @export
|
|
6886
|
+
* @interface HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
6887
|
+
*/
|
|
6888
|
+
export interface HostingV1DatabasesWebsiteDatabaseConnectionResource {
|
|
6889
|
+
/**
|
|
6890
|
+
* Database name, as written into DB_NAME
|
|
6891
|
+
* @type {string}
|
|
6892
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
6893
|
+
*/
|
|
6894
|
+
'name': string;
|
|
6895
|
+
/**
|
|
6896
|
+
* Database user, as written into DB_USER
|
|
6897
|
+
* @type {string}
|
|
6898
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
6899
|
+
*/
|
|
6900
|
+
'user': string;
|
|
6901
|
+
/**
|
|
6902
|
+
* MySQL host as written into DB_HOST. The application connects over the loopback.
|
|
6903
|
+
* @type {string}
|
|
6904
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
6905
|
+
*/
|
|
6906
|
+
'host': string;
|
|
6907
|
+
/**
|
|
6908
|
+
* MySQL port as written into DB_PORT
|
|
6909
|
+
* @type {number}
|
|
6910
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
6911
|
+
*/
|
|
6912
|
+
'port': number;
|
|
6913
|
+
}
|
|
6914
|
+
/**
|
|
6915
|
+
*
|
|
6916
|
+
* @export
|
|
6917
|
+
* @interface HostingV1DatabasesWebsiteDatabaseResource
|
|
6918
|
+
*/
|
|
6919
|
+
export interface HostingV1DatabasesWebsiteDatabaseResource {
|
|
6920
|
+
/**
|
|
6921
|
+
*
|
|
6922
|
+
* @type {HostingV1DatabasesWebsiteDatabaseConnectionResource}
|
|
6923
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseResource
|
|
6924
|
+
*/
|
|
6925
|
+
'database': HostingV1DatabasesWebsiteDatabaseConnectionResource;
|
|
6926
|
+
/**
|
|
6927
|
+
* Names of the environment variables written for this database. Values are never returned.
|
|
6928
|
+
* @type {Array<string>}
|
|
6929
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseResource
|
|
6930
|
+
*/
|
|
6931
|
+
'env_var_keys': Array<string>;
|
|
6932
|
+
}
|
|
6864
6933
|
/**
|
|
6865
6934
|
*
|
|
6866
6935
|
* @export
|
|
@@ -22810,6 +22879,16 @@ export declare const HostingDatabasesApiAxiosParamCreator: (configuration?: Conf
|
|
|
22810
22879
|
* @throws {RequiredError}
|
|
22811
22880
|
*/
|
|
22812
22881
|
repairDatabaseV1: (username: string, name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22882
|
+
/**
|
|
22883
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
22884
|
+
* @summary Setup website database
|
|
22885
|
+
* @param {string} username
|
|
22886
|
+
* @param {string} domain Domain name
|
|
22887
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
22888
|
+
* @param {*} [options] Override http request option.
|
|
22889
|
+
* @throws {RequiredError}
|
|
22890
|
+
*/
|
|
22891
|
+
setupWebsiteDatabaseV1: (username: string, domain: string, hostingV1DatabasesSetupDatabaseRequest?: HostingV1DatabasesSetupDatabaseRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22813
22892
|
};
|
|
22814
22893
|
/**
|
|
22815
22894
|
* HostingDatabasesApi - functional programming interface
|
|
@@ -22904,6 +22983,16 @@ export declare const HostingDatabasesApiFp: (configuration?: Configuration) => {
|
|
|
22904
22983
|
* @throws {RequiredError}
|
|
22905
22984
|
*/
|
|
22906
22985
|
repairDatabaseV1(username: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
22986
|
+
/**
|
|
22987
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
22988
|
+
* @summary Setup website database
|
|
22989
|
+
* @param {string} username
|
|
22990
|
+
* @param {string} domain Domain name
|
|
22991
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
22992
|
+
* @param {*} [options] Override http request option.
|
|
22993
|
+
* @throws {RequiredError}
|
|
22994
|
+
*/
|
|
22995
|
+
setupWebsiteDatabaseV1(username: string, domain: string, hostingV1DatabasesSetupDatabaseRequest?: HostingV1DatabasesSetupDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1DatabasesWebsiteDatabaseResource>>;
|
|
22907
22996
|
};
|
|
22908
22997
|
/**
|
|
22909
22998
|
* HostingDatabasesApi - factory interface
|
|
@@ -22998,6 +23087,16 @@ export declare const HostingDatabasesApiFactory: (configuration?: Configuration,
|
|
|
22998
23087
|
* @throws {RequiredError}
|
|
22999
23088
|
*/
|
|
23000
23089
|
repairDatabaseV1(username: string, name: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
23090
|
+
/**
|
|
23091
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
23092
|
+
* @summary Setup website database
|
|
23093
|
+
* @param {string} username
|
|
23094
|
+
* @param {string} domain Domain name
|
|
23095
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
23096
|
+
* @param {*} [options] Override http request option.
|
|
23097
|
+
* @throws {RequiredError}
|
|
23098
|
+
*/
|
|
23099
|
+
setupWebsiteDatabaseV1(username: string, domain: string, hostingV1DatabasesSetupDatabaseRequest?: HostingV1DatabasesSetupDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1DatabasesWebsiteDatabaseResource>;
|
|
23001
23100
|
};
|
|
23002
23101
|
/**
|
|
23003
23102
|
* HostingDatabasesApi - object-oriented interface
|
|
@@ -23103,6 +23202,17 @@ export declare class HostingDatabasesApi extends BaseAPI {
|
|
|
23103
23202
|
* @memberof HostingDatabasesApi
|
|
23104
23203
|
*/
|
|
23105
23204
|
repairDatabaseV1(username: string, name: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
23205
|
+
/**
|
|
23206
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
23207
|
+
* @summary Setup website database
|
|
23208
|
+
* @param {string} username
|
|
23209
|
+
* @param {string} domain Domain name
|
|
23210
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
23211
|
+
* @param {*} [options] Override http request option.
|
|
23212
|
+
* @throws {RequiredError}
|
|
23213
|
+
* @memberof HostingDatabasesApi
|
|
23214
|
+
*/
|
|
23215
|
+
setupWebsiteDatabaseV1(username: string, domain: string, hostingV1DatabasesSetupDatabaseRequest?: HostingV1DatabasesSetupDatabaseRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1DatabasesWebsiteDatabaseResource, any, {}, any>>;
|
|
23106
23216
|
}
|
|
23107
23217
|
/**
|
|
23108
23218
|
* HostingDatacentersApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.54.
|
|
7
|
+
* API Version: 1.54.1
|
|
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
|
|
@@ -13356,6 +13356,45 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
13356
13356
|
options: localVarRequestOptions,
|
|
13357
13357
|
};
|
|
13358
13358
|
}),
|
|
13359
|
+
/**
|
|
13360
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13361
|
+
* @summary Setup website database
|
|
13362
|
+
* @param {string} username
|
|
13363
|
+
* @param {string} domain Domain name
|
|
13364
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13365
|
+
* @param {*} [options] Override http request option.
|
|
13366
|
+
* @throws {RequiredError}
|
|
13367
|
+
*/
|
|
13368
|
+
setupWebsiteDatabaseV1: (username_1, domain_1, hostingV1DatabasesSetupDatabaseRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1DatabasesSetupDatabaseRequest_1, ...args_1], void 0, function* (username, domain, hostingV1DatabasesSetupDatabaseRequest, options = {}) {
|
|
13369
|
+
// verify required parameter 'username' is not null or undefined
|
|
13370
|
+
(0, common_1.assertParamExists)('setupWebsiteDatabaseV1', 'username', username);
|
|
13371
|
+
// verify required parameter 'domain' is not null or undefined
|
|
13372
|
+
(0, common_1.assertParamExists)('setupWebsiteDatabaseV1', 'domain', domain);
|
|
13373
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/databases/setup`
|
|
13374
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13375
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
13376
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13377
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13378
|
+
let baseOptions;
|
|
13379
|
+
if (configuration) {
|
|
13380
|
+
baseOptions = configuration.baseOptions;
|
|
13381
|
+
}
|
|
13382
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13383
|
+
const localVarHeaderParameter = {};
|
|
13384
|
+
const localVarQueryParameter = {};
|
|
13385
|
+
// authentication apiToken required
|
|
13386
|
+
// http bearer authentication required
|
|
13387
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13388
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13389
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13390
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13391
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13392
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesSetupDatabaseRequest, localVarRequestOptions, configuration);
|
|
13393
|
+
return {
|
|
13394
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13395
|
+
options: localVarRequestOptions,
|
|
13396
|
+
};
|
|
13397
|
+
}),
|
|
13359
13398
|
};
|
|
13360
13399
|
};
|
|
13361
13400
|
exports.HostingDatabasesApiAxiosParamCreator = HostingDatabasesApiAxiosParamCreator;
|
|
@@ -13517,6 +13556,23 @@ const HostingDatabasesApiFp = function (configuration) {
|
|
|
13517
13556
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13518
13557
|
});
|
|
13519
13558
|
},
|
|
13559
|
+
/**
|
|
13560
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13561
|
+
* @summary Setup website database
|
|
13562
|
+
* @param {string} username
|
|
13563
|
+
* @param {string} domain Domain name
|
|
13564
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13565
|
+
* @param {*} [options] Override http request option.
|
|
13566
|
+
* @throws {RequiredError}
|
|
13567
|
+
*/
|
|
13568
|
+
setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options) {
|
|
13569
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13570
|
+
var _a, _b;
|
|
13571
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options);
|
|
13572
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.setupWebsiteDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13573
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13574
|
+
});
|
|
13575
|
+
},
|
|
13520
13576
|
};
|
|
13521
13577
|
};
|
|
13522
13578
|
exports.HostingDatabasesApiFp = HostingDatabasesApiFp;
|
|
@@ -13633,6 +13689,18 @@ const HostingDatabasesApiFactory = function (configuration, basePath, axios) {
|
|
|
13633
13689
|
repairDatabaseV1(username, name, options) {
|
|
13634
13690
|
return localVarFp.repairDatabaseV1(username, name, options).then((request) => request(axios, basePath));
|
|
13635
13691
|
},
|
|
13692
|
+
/**
|
|
13693
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13694
|
+
* @summary Setup website database
|
|
13695
|
+
* @param {string} username
|
|
13696
|
+
* @param {string} domain Domain name
|
|
13697
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13698
|
+
* @param {*} [options] Override http request option.
|
|
13699
|
+
* @throws {RequiredError}
|
|
13700
|
+
*/
|
|
13701
|
+
setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options) {
|
|
13702
|
+
return localVarFp.setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
13703
|
+
},
|
|
13636
13704
|
};
|
|
13637
13705
|
};
|
|
13638
13706
|
exports.HostingDatabasesApiFactory = HostingDatabasesApiFactory;
|
|
@@ -13758,6 +13826,19 @@ class HostingDatabasesApi extends base_1.BaseAPI {
|
|
|
13758
13826
|
repairDatabaseV1(username, name, options) {
|
|
13759
13827
|
return (0, exports.HostingDatabasesApiFp)(this.configuration).repairDatabaseV1(username, name, options).then((request) => request(this.axios, this.basePath));
|
|
13760
13828
|
}
|
|
13829
|
+
/**
|
|
13830
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13831
|
+
* @summary Setup website database
|
|
13832
|
+
* @param {string} username
|
|
13833
|
+
* @param {string} domain Domain name
|
|
13834
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13835
|
+
* @param {*} [options] Override http request option.
|
|
13836
|
+
* @throws {RequiredError}
|
|
13837
|
+
* @memberof HostingDatabasesApi
|
|
13838
|
+
*/
|
|
13839
|
+
setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options) {
|
|
13840
|
+
return (0, exports.HostingDatabasesApiFp)(this.configuration).setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13841
|
+
}
|
|
13761
13842
|
}
|
|
13762
13843
|
exports.HostingDatabasesApi = HostingDatabasesApi;
|
|
13763
13844
|
/**
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.54.
|
|
4
|
+
* API Version: 1.54.1
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.54.
|
|
7
|
+
* API Version: 1.54.1
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.54.
|
|
4
|
+
* API Version: 1.54.1
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.54.
|
|
7
|
+
* API Version: 1.54.1
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.54.
|
|
4
|
+
* API Version: 1.54.1
|
|
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/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.54.
|
|
7
|
+
* API Version: 1.54.1
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.54.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.54.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.54.
|
|
4
|
+
* API Version: 1.54.1
|
|
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
|
|
@@ -6861,6 +6861,75 @@ export interface HostingV1DatabasesRemoteConnectionsRemoteConnectionResource {
|
|
|
6861
6861
|
*/
|
|
6862
6862
|
'ip': string;
|
|
6863
6863
|
}
|
|
6864
|
+
/**
|
|
6865
|
+
*
|
|
6866
|
+
* @export
|
|
6867
|
+
* @interface HostingV1DatabasesSetupDatabaseRequest
|
|
6868
|
+
*/
|
|
6869
|
+
export interface HostingV1DatabasesSetupDatabaseRequest {
|
|
6870
|
+
/**
|
|
6871
|
+
* Optional database name. Generated when omitted. Letters, digits and underscores; must not start with an underscore. Up to 14 characters without the account username prefix (`u123456789_`), which is added automatically when missing. With the prefix the full name is 12 to 25 characters.
|
|
6872
|
+
* @type {string}
|
|
6873
|
+
* @memberof HostingV1DatabasesSetupDatabaseRequest
|
|
6874
|
+
*/
|
|
6875
|
+
'name': string;
|
|
6876
|
+
/**
|
|
6877
|
+
* Optional database user. Generated when omitted. Letters, digits and underscores; must not start with an underscore. Up to 14 characters without the account username prefix (`u123456789_`), which is added automatically when missing. With the prefix the full user is 12 to 25 characters.
|
|
6878
|
+
* @type {string}
|
|
6879
|
+
* @memberof HostingV1DatabasesSetupDatabaseRequest
|
|
6880
|
+
*/
|
|
6881
|
+
'user': string;
|
|
6882
|
+
}
|
|
6883
|
+
/**
|
|
6884
|
+
*
|
|
6885
|
+
* @export
|
|
6886
|
+
* @interface HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
6887
|
+
*/
|
|
6888
|
+
export interface HostingV1DatabasesWebsiteDatabaseConnectionResource {
|
|
6889
|
+
/**
|
|
6890
|
+
* Database name, as written into DB_NAME
|
|
6891
|
+
* @type {string}
|
|
6892
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
6893
|
+
*/
|
|
6894
|
+
'name': string;
|
|
6895
|
+
/**
|
|
6896
|
+
* Database user, as written into DB_USER
|
|
6897
|
+
* @type {string}
|
|
6898
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
6899
|
+
*/
|
|
6900
|
+
'user': string;
|
|
6901
|
+
/**
|
|
6902
|
+
* MySQL host as written into DB_HOST. The application connects over the loopback.
|
|
6903
|
+
* @type {string}
|
|
6904
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
6905
|
+
*/
|
|
6906
|
+
'host': string;
|
|
6907
|
+
/**
|
|
6908
|
+
* MySQL port as written into DB_PORT
|
|
6909
|
+
* @type {number}
|
|
6910
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
6911
|
+
*/
|
|
6912
|
+
'port': number;
|
|
6913
|
+
}
|
|
6914
|
+
/**
|
|
6915
|
+
*
|
|
6916
|
+
* @export
|
|
6917
|
+
* @interface HostingV1DatabasesWebsiteDatabaseResource
|
|
6918
|
+
*/
|
|
6919
|
+
export interface HostingV1DatabasesWebsiteDatabaseResource {
|
|
6920
|
+
/**
|
|
6921
|
+
*
|
|
6922
|
+
* @type {HostingV1DatabasesWebsiteDatabaseConnectionResource}
|
|
6923
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseResource
|
|
6924
|
+
*/
|
|
6925
|
+
'database': HostingV1DatabasesWebsiteDatabaseConnectionResource;
|
|
6926
|
+
/**
|
|
6927
|
+
* Names of the environment variables written for this database. Values are never returned.
|
|
6928
|
+
* @type {Array<string>}
|
|
6929
|
+
* @memberof HostingV1DatabasesWebsiteDatabaseResource
|
|
6930
|
+
*/
|
|
6931
|
+
'env_var_keys': Array<string>;
|
|
6932
|
+
}
|
|
6864
6933
|
/**
|
|
6865
6934
|
*
|
|
6866
6935
|
* @export
|
|
@@ -22810,6 +22879,16 @@ export declare const HostingDatabasesApiAxiosParamCreator: (configuration?: Conf
|
|
|
22810
22879
|
* @throws {RequiredError}
|
|
22811
22880
|
*/
|
|
22812
22881
|
repairDatabaseV1: (username: string, name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22882
|
+
/**
|
|
22883
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
22884
|
+
* @summary Setup website database
|
|
22885
|
+
* @param {string} username
|
|
22886
|
+
* @param {string} domain Domain name
|
|
22887
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
22888
|
+
* @param {*} [options] Override http request option.
|
|
22889
|
+
* @throws {RequiredError}
|
|
22890
|
+
*/
|
|
22891
|
+
setupWebsiteDatabaseV1: (username: string, domain: string, hostingV1DatabasesSetupDatabaseRequest?: HostingV1DatabasesSetupDatabaseRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22813
22892
|
};
|
|
22814
22893
|
/**
|
|
22815
22894
|
* HostingDatabasesApi - functional programming interface
|
|
@@ -22904,6 +22983,16 @@ export declare const HostingDatabasesApiFp: (configuration?: Configuration) => {
|
|
|
22904
22983
|
* @throws {RequiredError}
|
|
22905
22984
|
*/
|
|
22906
22985
|
repairDatabaseV1(username: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
22986
|
+
/**
|
|
22987
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
22988
|
+
* @summary Setup website database
|
|
22989
|
+
* @param {string} username
|
|
22990
|
+
* @param {string} domain Domain name
|
|
22991
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
22992
|
+
* @param {*} [options] Override http request option.
|
|
22993
|
+
* @throws {RequiredError}
|
|
22994
|
+
*/
|
|
22995
|
+
setupWebsiteDatabaseV1(username: string, domain: string, hostingV1DatabasesSetupDatabaseRequest?: HostingV1DatabasesSetupDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1DatabasesWebsiteDatabaseResource>>;
|
|
22907
22996
|
};
|
|
22908
22997
|
/**
|
|
22909
22998
|
* HostingDatabasesApi - factory interface
|
|
@@ -22998,6 +23087,16 @@ export declare const HostingDatabasesApiFactory: (configuration?: Configuration,
|
|
|
22998
23087
|
* @throws {RequiredError}
|
|
22999
23088
|
*/
|
|
23000
23089
|
repairDatabaseV1(username: string, name: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
23090
|
+
/**
|
|
23091
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
23092
|
+
* @summary Setup website database
|
|
23093
|
+
* @param {string} username
|
|
23094
|
+
* @param {string} domain Domain name
|
|
23095
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
23096
|
+
* @param {*} [options] Override http request option.
|
|
23097
|
+
* @throws {RequiredError}
|
|
23098
|
+
*/
|
|
23099
|
+
setupWebsiteDatabaseV1(username: string, domain: string, hostingV1DatabasesSetupDatabaseRequest?: HostingV1DatabasesSetupDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1DatabasesWebsiteDatabaseResource>;
|
|
23001
23100
|
};
|
|
23002
23101
|
/**
|
|
23003
23102
|
* HostingDatabasesApi - object-oriented interface
|
|
@@ -23103,6 +23202,17 @@ export declare class HostingDatabasesApi extends BaseAPI {
|
|
|
23103
23202
|
* @memberof HostingDatabasesApi
|
|
23104
23203
|
*/
|
|
23105
23204
|
repairDatabaseV1(username: string, name: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
23205
|
+
/**
|
|
23206
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
23207
|
+
* @summary Setup website database
|
|
23208
|
+
* @param {string} username
|
|
23209
|
+
* @param {string} domain Domain name
|
|
23210
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
23211
|
+
* @param {*} [options] Override http request option.
|
|
23212
|
+
* @throws {RequiredError}
|
|
23213
|
+
* @memberof HostingDatabasesApi
|
|
23214
|
+
*/
|
|
23215
|
+
setupWebsiteDatabaseV1(username: string, domain: string, hostingV1DatabasesSetupDatabaseRequest?: HostingV1DatabasesSetupDatabaseRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1DatabasesWebsiteDatabaseResource, any, {}, any>>;
|
|
23106
23216
|
}
|
|
23107
23217
|
/**
|
|
23108
23218
|
* HostingDatacentersApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.54.
|
|
6
|
+
* API Version: 1.54.1
|
|
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
|
|
@@ -13190,6 +13190,45 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
13190
13190
|
options: localVarRequestOptions,
|
|
13191
13191
|
};
|
|
13192
13192
|
}),
|
|
13193
|
+
/**
|
|
13194
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13195
|
+
* @summary Setup website database
|
|
13196
|
+
* @param {string} username
|
|
13197
|
+
* @param {string} domain Domain name
|
|
13198
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13199
|
+
* @param {*} [options] Override http request option.
|
|
13200
|
+
* @throws {RequiredError}
|
|
13201
|
+
*/
|
|
13202
|
+
setupWebsiteDatabaseV1: (username_1, domain_1, hostingV1DatabasesSetupDatabaseRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1DatabasesSetupDatabaseRequest_1, ...args_1], void 0, function* (username, domain, hostingV1DatabasesSetupDatabaseRequest, options = {}) {
|
|
13203
|
+
// verify required parameter 'username' is not null or undefined
|
|
13204
|
+
assertParamExists('setupWebsiteDatabaseV1', 'username', username);
|
|
13205
|
+
// verify required parameter 'domain' is not null or undefined
|
|
13206
|
+
assertParamExists('setupWebsiteDatabaseV1', 'domain', domain);
|
|
13207
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/databases/setup`
|
|
13208
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13209
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
13210
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13211
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13212
|
+
let baseOptions;
|
|
13213
|
+
if (configuration) {
|
|
13214
|
+
baseOptions = configuration.baseOptions;
|
|
13215
|
+
}
|
|
13216
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13217
|
+
const localVarHeaderParameter = {};
|
|
13218
|
+
const localVarQueryParameter = {};
|
|
13219
|
+
// authentication apiToken required
|
|
13220
|
+
// http bearer authentication required
|
|
13221
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13222
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13223
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13224
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13225
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13226
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesSetupDatabaseRequest, localVarRequestOptions, configuration);
|
|
13227
|
+
return {
|
|
13228
|
+
url: toPathString(localVarUrlObj),
|
|
13229
|
+
options: localVarRequestOptions,
|
|
13230
|
+
};
|
|
13231
|
+
}),
|
|
13193
13232
|
};
|
|
13194
13233
|
};
|
|
13195
13234
|
/**
|
|
@@ -13350,6 +13389,23 @@ export const HostingDatabasesApiFp = function (configuration) {
|
|
|
13350
13389
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13351
13390
|
});
|
|
13352
13391
|
},
|
|
13392
|
+
/**
|
|
13393
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13394
|
+
* @summary Setup website database
|
|
13395
|
+
* @param {string} username
|
|
13396
|
+
* @param {string} domain Domain name
|
|
13397
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13398
|
+
* @param {*} [options] Override http request option.
|
|
13399
|
+
* @throws {RequiredError}
|
|
13400
|
+
*/
|
|
13401
|
+
setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options) {
|
|
13402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13403
|
+
var _a, _b;
|
|
13404
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options);
|
|
13405
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDatabasesApi.setupWebsiteDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13406
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13407
|
+
});
|
|
13408
|
+
},
|
|
13353
13409
|
};
|
|
13354
13410
|
};
|
|
13355
13411
|
/**
|
|
@@ -13465,6 +13521,18 @@ export const HostingDatabasesApiFactory = function (configuration, basePath, axi
|
|
|
13465
13521
|
repairDatabaseV1(username, name, options) {
|
|
13466
13522
|
return localVarFp.repairDatabaseV1(username, name, options).then((request) => request(axios, basePath));
|
|
13467
13523
|
},
|
|
13524
|
+
/**
|
|
13525
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13526
|
+
* @summary Setup website database
|
|
13527
|
+
* @param {string} username
|
|
13528
|
+
* @param {string} domain Domain name
|
|
13529
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13530
|
+
* @param {*} [options] Override http request option.
|
|
13531
|
+
* @throws {RequiredError}
|
|
13532
|
+
*/
|
|
13533
|
+
setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options) {
|
|
13534
|
+
return localVarFp.setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
13535
|
+
},
|
|
13468
13536
|
};
|
|
13469
13537
|
};
|
|
13470
13538
|
/**
|
|
@@ -13589,6 +13657,19 @@ export class HostingDatabasesApi extends BaseAPI {
|
|
|
13589
13657
|
repairDatabaseV1(username, name, options) {
|
|
13590
13658
|
return HostingDatabasesApiFp(this.configuration).repairDatabaseV1(username, name, options).then((request) => request(this.axios, this.basePath));
|
|
13591
13659
|
}
|
|
13660
|
+
/**
|
|
13661
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13662
|
+
* @summary Setup website database
|
|
13663
|
+
* @param {string} username
|
|
13664
|
+
* @param {string} domain Domain name
|
|
13665
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13666
|
+
* @param {*} [options] Override http request option.
|
|
13667
|
+
* @throws {RequiredError}
|
|
13668
|
+
* @memberof HostingDatabasesApi
|
|
13669
|
+
*/
|
|
13670
|
+
setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options) {
|
|
13671
|
+
return HostingDatabasesApiFp(this.configuration).setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13672
|
+
}
|
|
13592
13673
|
}
|
|
13593
13674
|
/**
|
|
13594
13675
|
* HostingDatacentersApi - axios parameter creator
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.54.
|
|
4
|
+
* API Version: 1.54.1
|
|
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.54.
|
|
6
|
+
* API Version: 1.54.1
|
|
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.54.
|
|
4
|
+
* API Version: 1.54.1
|
|
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.54.
|
|
6
|
+
* API Version: 1.54.1
|
|
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.54.
|
|
4
|
+
* API Version: 1.54.1
|
|
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.54.
|
|
6
|
+
* API Version: 1.54.1
|
|
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.54.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.54.1" }, (_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.54.
|
|
4
|
+
* API Version: 1.54.1
|
|
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.54.
|
|
6
|
+
* API Version: 1.54.1
|
|
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.54.
|
|
4
|
+
* API Version: 1.54.1
|
|
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.54.
|
|
7
|
+
* API Version: 1.54.1
|
|
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
|
|
@@ -13,6 +13,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
13
13
|
|[**listAccountDatabasesV1**](#listaccountdatabasesv1) | **GET** /api/hosting/v1/accounts/{username}/databases | List account databases|
|
|
14
14
|
|[**listDatabaseRemoteConnectionsV1**](#listdatabaseremoteconnectionsv1) | **GET** /api/hosting/v1/accounts/{username}/databases/remote-connections | List database remote connections|
|
|
15
15
|
|[**repairDatabaseV1**](#repairdatabasev1) | **PATCH** /api/hosting/v1/accounts/{username}/databases/{name}/repair | Repair database|
|
|
16
|
+
|[**setupWebsiteDatabaseV1**](#setupwebsitedatabasev1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/databases/setup | Setup website database|
|
|
16
17
|
|
|
17
18
|
# **changeDatabasePasswordV1**
|
|
18
19
|
> CommonSuccessEmptyResource changeDatabasePasswordV1(hostingV1DatabasesChangeDatabasePasswordRequest)
|
|
@@ -545,3 +546,64 @@ const { status, data } = await apiInstance.repairDatabaseV1(
|
|
|
545
546
|
|
|
546
547
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
547
548
|
|
|
549
|
+
# **setupWebsiteDatabaseV1**
|
|
550
|
+
> HostingV1DatabasesWebsiteDatabaseResource setupWebsiteDatabaseV1()
|
|
551
|
+
|
|
552
|
+
Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
553
|
+
|
|
554
|
+
### Example
|
|
555
|
+
|
|
556
|
+
```typescript
|
|
557
|
+
import {
|
|
558
|
+
HostingDatabasesApi,
|
|
559
|
+
Configuration,
|
|
560
|
+
HostingV1DatabasesSetupDatabaseRequest
|
|
561
|
+
} from '@hostinger/sdk';
|
|
562
|
+
|
|
563
|
+
const configuration = new Configuration();
|
|
564
|
+
const apiInstance = new HostingDatabasesApi(configuration);
|
|
565
|
+
|
|
566
|
+
let username: string; // (default to undefined)
|
|
567
|
+
let domain: string; //Domain name (default to undefined)
|
|
568
|
+
let hostingV1DatabasesSetupDatabaseRequest: HostingV1DatabasesSetupDatabaseRequest; // (optional)
|
|
569
|
+
|
|
570
|
+
const { status, data } = await apiInstance.setupWebsiteDatabaseV1(
|
|
571
|
+
username,
|
|
572
|
+
domain,
|
|
573
|
+
hostingV1DatabasesSetupDatabaseRequest
|
|
574
|
+
);
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
### Parameters
|
|
578
|
+
|
|
579
|
+
|Name | Type | Description | Notes|
|
|
580
|
+
|------------- | ------------- | ------------- | -------------|
|
|
581
|
+
| **hostingV1DatabasesSetupDatabaseRequest** | **HostingV1DatabasesSetupDatabaseRequest**| | |
|
|
582
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
583
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
### Return type
|
|
587
|
+
|
|
588
|
+
**HostingV1DatabasesWebsiteDatabaseResource**
|
|
589
|
+
|
|
590
|
+
### Authorization
|
|
591
|
+
|
|
592
|
+
[apiToken](../README.md#apiToken)
|
|
593
|
+
|
|
594
|
+
### HTTP request headers
|
|
595
|
+
|
|
596
|
+
- **Content-Type**: application/json
|
|
597
|
+
- **Accept**: application/json
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
### HTTP response details
|
|
601
|
+
| Status code | Description | Response headers |
|
|
602
|
+
|-------------|-------------|------------------|
|
|
603
|
+
|**200** | Success response | - |
|
|
604
|
+
|**422** | Validation error response | - |
|
|
605
|
+
|**401** | Unauthenticated response | - |
|
|
606
|
+
|**500** | Error response | - |
|
|
607
|
+
|
|
608
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
609
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# HostingV1DatabasesSetupDatabaseRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Optional database name. Generated when omitted. Letters, digits and underscores; must not start with an underscore. Up to 14 characters without the account username prefix (`u123456789_`), which is added automatically when missing. With the prefix the full name is 12 to 25 characters. | [optional] [default to undefined]
|
|
9
|
+
**user** | **string** | Optional database user. Generated when omitted. Letters, digits and underscores; must not start with an underscore. Up to 14 characters without the account username prefix (`u123456789_`), which is added automatically when missing. With the prefix the full user is 12 to 25 characters. | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { HostingV1DatabasesSetupDatabaseRequest } from '@hostinger/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: HostingV1DatabasesSetupDatabaseRequest = {
|
|
17
|
+
name,
|
|
18
|
+
user,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# HostingV1DatabasesWebsiteDatabaseConnectionResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Database name, as written into DB_NAME | [default to undefined]
|
|
9
|
+
**user** | **string** | Database user, as written into DB_USER | [default to undefined]
|
|
10
|
+
**host** | **string** | MySQL host as written into DB_HOST. The application connects over the loopback. | [default to undefined]
|
|
11
|
+
**port** | **number** | MySQL port as written into DB_PORT | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { HostingV1DatabasesWebsiteDatabaseConnectionResource } from '@hostinger/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: HostingV1DatabasesWebsiteDatabaseConnectionResource = {
|
|
19
|
+
name,
|
|
20
|
+
user,
|
|
21
|
+
host,
|
|
22
|
+
port,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# HostingV1DatabasesWebsiteDatabaseResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**database** | [**HostingV1DatabasesWebsiteDatabaseConnectionResource**](HostingV1DatabasesWebsiteDatabaseConnectionResource.md) | | [default to undefined]
|
|
9
|
+
**env_var_keys** | **Array<string>** | Names of the environment variables written for this database. Values are never returned. | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { HostingV1DatabasesWebsiteDatabaseResource } from '@hostinger/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: HostingV1DatabasesWebsiteDatabaseResource = {
|
|
17
|
+
database,
|
|
18
|
+
env_var_keys,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.54.
|
|
6
|
+
* API Version: 1.54.1
|
|
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
|