hostinger-api-sdk 2.1.3 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +194 -32
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +128 -32
- package/dist/api.js +116 -5
- 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 +128 -32
- package/dist/esm/api.js +116 -5
- 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/HostingNodeJSApi.md +70 -0
- package/docs/HostingV1NodeJsGetBuildSettingsFromRepositoryRequest.md +26 -0
- package/docs/ReachContactsApi.md +1 -1
- package/docs/ReachV1ContactsBulkStoreRequestContactsInner.md +2 -0
- package/docs/{ReachV1ContactsUpdateRequestFieldsInner.md → ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md} +3 -3
- package/docs/ReachV1ContactsStoreRequest.md +2 -0
- package/docs/ReachV1ContactsUpdateRequest.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: 2.
|
|
6
|
+
* API Version: 2.3.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -16519,6 +16519,66 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
|
16519
16519
|
options: localVarRequestOptions,
|
|
16520
16520
|
};
|
|
16521
16521
|
}),
|
|
16522
|
+
/**
|
|
16523
|
+
* Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
|
|
16524
|
+
* @summary Get Node.js build settings from repository
|
|
16525
|
+
* @param {string} username
|
|
16526
|
+
* @param {string} domain Domain name
|
|
16527
|
+
* @param {string} owner Repository owner login. GitLab group paths use slashes.
|
|
16528
|
+
* @param {string} repository Repository name without the .git suffix
|
|
16529
|
+
* @param {string} branch Branch whose package.json is inspected
|
|
16530
|
+
* @param {string} installationUuid Git installation used to access the repository, taken from `List Git installations`
|
|
16531
|
+
* @param {*} [options] Override http request option.
|
|
16532
|
+
* @throws {RequiredError}
|
|
16533
|
+
*/
|
|
16534
|
+
getNodeJsBuildSettingsFromRepositoryV1: (username_1, domain_1, owner_1, repository_1, branch_1, installationUuid_1, ...args_1) => __awaiter(this, [username_1, domain_1, owner_1, repository_1, branch_1, installationUuid_1, ...args_1], void 0, function* (username, domain, owner, repository, branch, installationUuid, options = {}) {
|
|
16535
|
+
// verify required parameter 'username' is not null or undefined
|
|
16536
|
+
assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'username', username);
|
|
16537
|
+
// verify required parameter 'domain' is not null or undefined
|
|
16538
|
+
assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'domain', domain);
|
|
16539
|
+
// verify required parameter 'owner' is not null or undefined
|
|
16540
|
+
assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'owner', owner);
|
|
16541
|
+
// verify required parameter 'repository' is not null or undefined
|
|
16542
|
+
assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'repository', repository);
|
|
16543
|
+
// verify required parameter 'branch' is not null or undefined
|
|
16544
|
+
assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'branch', branch);
|
|
16545
|
+
// verify required parameter 'installationUuid' is not null or undefined
|
|
16546
|
+
assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'installationUuid', installationUuid);
|
|
16547
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-repository`
|
|
16548
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
16549
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
16550
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16551
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16552
|
+
let baseOptions;
|
|
16553
|
+
if (configuration) {
|
|
16554
|
+
baseOptions = configuration.baseOptions;
|
|
16555
|
+
}
|
|
16556
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16557
|
+
const localVarHeaderParameter = {};
|
|
16558
|
+
const localVarQueryParameter = {};
|
|
16559
|
+
// authentication apiToken required
|
|
16560
|
+
// http bearer authentication required
|
|
16561
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16562
|
+
if (owner !== undefined) {
|
|
16563
|
+
localVarQueryParameter['owner'] = owner;
|
|
16564
|
+
}
|
|
16565
|
+
if (repository !== undefined) {
|
|
16566
|
+
localVarQueryParameter['repository'] = repository;
|
|
16567
|
+
}
|
|
16568
|
+
if (branch !== undefined) {
|
|
16569
|
+
localVarQueryParameter['branch'] = branch;
|
|
16570
|
+
}
|
|
16571
|
+
if (installationUuid !== undefined) {
|
|
16572
|
+
localVarQueryParameter['installation_uuid'] = installationUuid;
|
|
16573
|
+
}
|
|
16574
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16575
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16576
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16577
|
+
return {
|
|
16578
|
+
url: toPathString(localVarUrlObj),
|
|
16579
|
+
options: localVarRequestOptions,
|
|
16580
|
+
};
|
|
16581
|
+
}),
|
|
16522
16582
|
/**
|
|
16523
16583
|
* Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
|
|
16524
16584
|
* @summary Get Node.js build settings
|
|
@@ -17025,6 +17085,26 @@ export const HostingNodeJSApiFp = function (configuration) {
|
|
|
17025
17085
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17026
17086
|
});
|
|
17027
17087
|
},
|
|
17088
|
+
/**
|
|
17089
|
+
* Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
|
|
17090
|
+
* @summary Get Node.js build settings from repository
|
|
17091
|
+
* @param {string} username
|
|
17092
|
+
* @param {string} domain Domain name
|
|
17093
|
+
* @param {string} owner Repository owner login. GitLab group paths use slashes.
|
|
17094
|
+
* @param {string} repository Repository name without the .git suffix
|
|
17095
|
+
* @param {string} branch Branch whose package.json is inspected
|
|
17096
|
+
* @param {string} installationUuid Git installation used to access the repository, taken from `List Git installations`
|
|
17097
|
+
* @param {*} [options] Override http request option.
|
|
17098
|
+
* @throws {RequiredError}
|
|
17099
|
+
*/
|
|
17100
|
+
getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options) {
|
|
17101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17102
|
+
var _a, _b;
|
|
17103
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options);
|
|
17104
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingNodeJSApi.getNodeJsBuildSettingsFromRepositoryV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17105
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17106
|
+
});
|
|
17107
|
+
},
|
|
17028
17108
|
/**
|
|
17029
17109
|
* Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
|
|
17030
17110
|
* @summary Get Node.js build settings
|
|
@@ -17266,6 +17346,21 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
|
|
|
17266
17346
|
getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
|
|
17267
17347
|
return localVarFp.getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(axios, basePath));
|
|
17268
17348
|
},
|
|
17349
|
+
/**
|
|
17350
|
+
* Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
|
|
17351
|
+
* @summary Get Node.js build settings from repository
|
|
17352
|
+
* @param {string} username
|
|
17353
|
+
* @param {string} domain Domain name
|
|
17354
|
+
* @param {string} owner Repository owner login. GitLab group paths use slashes.
|
|
17355
|
+
* @param {string} repository Repository name without the .git suffix
|
|
17356
|
+
* @param {string} branch Branch whose package.json is inspected
|
|
17357
|
+
* @param {string} installationUuid Git installation used to access the repository, taken from `List Git installations`
|
|
17358
|
+
* @param {*} [options] Override http request option.
|
|
17359
|
+
* @throws {RequiredError}
|
|
17360
|
+
*/
|
|
17361
|
+
getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options) {
|
|
17362
|
+
return localVarFp.getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options).then((request) => request(axios, basePath));
|
|
17363
|
+
},
|
|
17269
17364
|
/**
|
|
17270
17365
|
* Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
|
|
17271
17366
|
* @summary Get Node.js build settings
|
|
@@ -17462,6 +17557,22 @@ export class HostingNodeJSApi extends BaseAPI {
|
|
|
17462
17557
|
getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
|
|
17463
17558
|
return HostingNodeJSApiFp(this.configuration).getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(this.axios, this.basePath));
|
|
17464
17559
|
}
|
|
17560
|
+
/**
|
|
17561
|
+
* Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
|
|
17562
|
+
* @summary Get Node.js build settings from repository
|
|
17563
|
+
* @param {string} username
|
|
17564
|
+
* @param {string} domain Domain name
|
|
17565
|
+
* @param {string} owner Repository owner login. GitLab group paths use slashes.
|
|
17566
|
+
* @param {string} repository Repository name without the .git suffix
|
|
17567
|
+
* @param {string} branch Branch whose package.json is inspected
|
|
17568
|
+
* @param {string} installationUuid Git installation used to access the repository, taken from `List Git installations`
|
|
17569
|
+
* @param {*} [options] Override http request option.
|
|
17570
|
+
* @throws {RequiredError}
|
|
17571
|
+
* @memberof HostingNodeJSApi
|
|
17572
|
+
*/
|
|
17573
|
+
getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options) {
|
|
17574
|
+
return HostingNodeJSApiFp(this.configuration).getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options).then((request) => request(this.axios, this.basePath));
|
|
17575
|
+
}
|
|
17465
17576
|
/**
|
|
17466
17577
|
* Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
|
|
17467
17578
|
* @summary Get Node.js build settings
|
|
@@ -24053,7 +24164,7 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
24053
24164
|
};
|
|
24054
24165
|
}),
|
|
24055
24166
|
/**
|
|
24056
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
24167
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
24057
24168
|
* @summary Create contacts in bulk
|
|
24058
24169
|
* @param {string} profileUuid Profile uuid parameter
|
|
24059
24170
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -24420,7 +24531,7 @@ export const ReachContactsApiFp = function (configuration) {
|
|
|
24420
24531
|
});
|
|
24421
24532
|
},
|
|
24422
24533
|
/**
|
|
24423
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
24534
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
24424
24535
|
* @summary Create contacts in bulk
|
|
24425
24536
|
* @param {string} profileUuid Profile uuid parameter
|
|
24426
24537
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -24590,7 +24701,7 @@ export const ReachContactsApiFactory = function (configuration, basePath, axios)
|
|
|
24590
24701
|
return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
24591
24702
|
},
|
|
24592
24703
|
/**
|
|
24593
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
24704
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
24594
24705
|
* @summary Create contacts in bulk
|
|
24595
24706
|
* @param {string} profileUuid Profile uuid parameter
|
|
24596
24707
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -24716,7 +24827,7 @@ export class ReachContactsApi extends BaseAPI {
|
|
|
24716
24827
|
return ReachContactsApiFp(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
24717
24828
|
}
|
|
24718
24829
|
/**
|
|
24719
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
24830
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
24720
24831
|
* @summary Create contacts in bulk
|
|
24721
24832
|
* @param {string} profileUuid Profile uuid parameter
|
|
24722
24833
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.3.0" }, (_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: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.3.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/docs/HostingNodeJSApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
9
9
|
|[**getNodeJSBuildLogsV1**](#getnodejsbuildlogsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs | Get NodeJS build logs|
|
|
10
10
|
|[**getNodeJsBuildDetailsV1**](#getnodejsbuilddetailsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid} | Get Node.js build details|
|
|
11
11
|
|[**getNodeJsBuildSettingsFromArchiveV1**](#getnodejsbuildsettingsfromarchivev1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive | Get Node.js build settings from archive|
|
|
12
|
+
|[**getNodeJsBuildSettingsFromRepositoryV1**](#getnodejsbuildsettingsfromrepositoryv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-repository | Get Node.js build settings from repository|
|
|
12
13
|
|[**getNodeJsBuildSettingsV1**](#getnodejsbuildsettingsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings | Get Node.js build settings|
|
|
13
14
|
|[**getNodeJsRuntimeLogsV1**](#getnodejsruntimelogsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/runtime-logs | Get Node.js runtime logs|
|
|
14
15
|
|[**listNodeJSBuildsV1**](#listnodejsbuildsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | List NodeJS builds|
|
|
@@ -294,6 +295,75 @@ const { status, data } = await apiInstance.getNodeJsBuildSettingsFromArchiveV1(
|
|
|
294
295
|
| **archivePath** | [**string**] | The path to the archive file relative to the document root of the vhost | defaults to undefined|
|
|
295
296
|
|
|
296
297
|
|
|
298
|
+
### Return type
|
|
299
|
+
|
|
300
|
+
**HostingV1NodeJsBuildSettingsResource**
|
|
301
|
+
|
|
302
|
+
### Authorization
|
|
303
|
+
|
|
304
|
+
[apiToken](../README.md#apiToken)
|
|
305
|
+
|
|
306
|
+
### HTTP request headers
|
|
307
|
+
|
|
308
|
+
- **Content-Type**: Not defined
|
|
309
|
+
- **Accept**: application/json
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
### HTTP response details
|
|
313
|
+
| Status code | Description | Response headers |
|
|
314
|
+
|-------------|-------------|------------------|
|
|
315
|
+
|**200** | Success response | - |
|
|
316
|
+
|**422** | Validation error response | - |
|
|
317
|
+
|**401** | Unauthenticated response | - |
|
|
318
|
+
|**500** | Error response | - |
|
|
319
|
+
|
|
320
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
321
|
+
|
|
322
|
+
# **getNodeJsBuildSettingsFromRepositoryV1**
|
|
323
|
+
> HostingV1NodeJsBuildSettingsResource getNodeJsBuildSettingsFromRepositoryV1()
|
|
324
|
+
|
|
325
|
+
Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
|
|
326
|
+
|
|
327
|
+
### Example
|
|
328
|
+
|
|
329
|
+
```typescript
|
|
330
|
+
import {
|
|
331
|
+
HostingNodeJSApi,
|
|
332
|
+
Configuration
|
|
333
|
+
} from '@hostinger/sdk';
|
|
334
|
+
|
|
335
|
+
const configuration = new Configuration();
|
|
336
|
+
const apiInstance = new HostingNodeJSApi(configuration);
|
|
337
|
+
|
|
338
|
+
let username: string; // (default to undefined)
|
|
339
|
+
let domain: string; //Domain name (default to undefined)
|
|
340
|
+
let owner: string; //Repository owner login. GitLab group paths use slashes. (default to undefined)
|
|
341
|
+
let repository: string; //Repository name without the .git suffix (default to undefined)
|
|
342
|
+
let branch: string; //Branch whose package.json is inspected (default to undefined)
|
|
343
|
+
let installationUuid: string; //Git installation used to access the repository, taken from `List Git installations` (default to undefined)
|
|
344
|
+
|
|
345
|
+
const { status, data } = await apiInstance.getNodeJsBuildSettingsFromRepositoryV1(
|
|
346
|
+
username,
|
|
347
|
+
domain,
|
|
348
|
+
owner,
|
|
349
|
+
repository,
|
|
350
|
+
branch,
|
|
351
|
+
installationUuid
|
|
352
|
+
);
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
### Parameters
|
|
356
|
+
|
|
357
|
+
|Name | Type | Description | Notes|
|
|
358
|
+
|------------- | ------------- | ------------- | -------------|
|
|
359
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
360
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
361
|
+
| **owner** | [**string**] | Repository owner login. GitLab group paths use slashes. | defaults to undefined|
|
|
362
|
+
| **repository** | [**string**] | Repository name without the .git suffix | defaults to undefined|
|
|
363
|
+
| **branch** | [**string**] | Branch whose package.json is inspected | defaults to undefined|
|
|
364
|
+
| **installationUuid** | [**string**] | Git installation used to access the repository, taken from `List Git installations` | defaults to undefined|
|
|
365
|
+
|
|
366
|
+
|
|
297
367
|
### Return type
|
|
298
368
|
|
|
299
369
|
**HostingV1NodeJsBuildSettingsResource**
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**owner** | **string** | Repository owner login, as returned by `List Git installation repositories`. GitLab group paths use slashes. | [default to undefined]
|
|
9
|
+
**repository** | **string** | Repository name without the .git suffix | [default to undefined]
|
|
10
|
+
**branch** | **string** | Branch whose package.json is inspected | [default to undefined]
|
|
11
|
+
**installation_uuid** | **string** | Git installation used to access the repository, taken from `List Git installations` | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { HostingV1NodeJsGetBuildSettingsFromRepositoryRequest } from '@hostinger/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: HostingV1NodeJsGetBuildSettingsFromRepositoryRequest = {
|
|
19
|
+
owner,
|
|
20
|
+
repository,
|
|
21
|
+
branch,
|
|
22
|
+
installation_uuid,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/ReachContactsApi.md
CHANGED
|
@@ -73,7 +73,7 @@ const { status, data } = await apiInstance.createANewContactV1(
|
|
|
73
73
|
# **createContactsInBulkV1**
|
|
74
74
|
> CommonSuccessEmptyResource createContactsInBulkV1(reachV1ContactsBulkStoreRequest)
|
|
75
75
|
|
|
76
|
-
Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
76
|
+
Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
77
77
|
|
|
78
78
|
### Example
|
|
79
79
|
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**surname** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**phone** | **string** | Phone number in E.164 format (leading \"+\" then 7-15 digits) | [optional] [default to undefined]
|
|
12
|
+
**fields** | [**Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>**](ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md) | Custom field values to set on the contact. For a contact whose email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped. | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const instance: ReachV1ContactsBulkStoreRequestContactsInner = {
|
|
|
20
21
|
name,
|
|
21
22
|
surname,
|
|
22
23
|
phone,
|
|
24
|
+
fields,
|
|
23
25
|
};
|
|
24
26
|
```
|
|
25
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import {
|
|
15
|
+
import { ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner } from '@hostinger/sdk';
|
|
16
16
|
|
|
17
|
-
const instance:
|
|
17
|
+
const instance: ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner = {
|
|
18
18
|
uuid,
|
|
19
19
|
value,
|
|
20
20
|
selected_option_uuids,
|
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**phone** | **string** | Phone number in E.164 format (leading \"+\" then 7-15 digits) | [optional] [default to undefined]
|
|
12
12
|
**note** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**tag_uuids** | **Array<string>** | Existing tags to attach to the created contact | [optional] [default to undefined]
|
|
14
|
+
**fields** | [**Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>**](ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md) | Custom field values to set on the contact. When a contact with this email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped. | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const instance: ReachV1ContactsStoreRequest = {
|
|
|
24
25
|
phone,
|
|
25
26
|
note,
|
|
26
27
|
tag_uuids,
|
|
28
|
+
fields,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
29
31
|
|
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**phone** | **string** | Phone number in E.164 format (leading \"+\" then 7-15 digits) | [optional] [default to undefined]
|
|
13
13
|
**subscription_status** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**note** | **string** | | [optional] [default to undefined]
|
|
15
|
-
**fields** | [**Array<
|
|
15
|
+
**fields** | [**Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>**](ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md) | Set custom field values. Omit to leave untouched, send an empty array to clear them all. | [optional] [default to undefined]
|
|
16
16
|
|
|
17
17
|
## Example
|
|
18
18
|
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|