hostinger-api-sdk 2.6.0 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +550 -550
- package/base.ts +1 -1
- package/common.ts +14 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +5 -5
- package/dist/api.js +549 -549
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +7 -1
- package/dist/common.js +15 -2
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +5 -5
- package/dist/esm/api.js +550 -550
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +7 -1
- package/dist/esm/common.js +13 -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/HostingHeadlessApi.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.6.
|
|
4
|
+
* API Version: 2.6.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: 2.6.
|
|
7
|
+
* API Version: 2.6.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: 2.6.
|
|
4
|
+
* API Version: 2.6.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
|
|
@@ -20,6 +20,12 @@ export declare const DUMMY_BASE_URL = "https://example.com";
|
|
|
20
20
|
* @export
|
|
21
21
|
*/
|
|
22
22
|
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Empty values and dot segments survive encoding and collapse or resolve away, which would change the endpoint.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const encodePathParam: (paramName: string, paramValue: unknown) => string;
|
|
23
29
|
/**
|
|
24
30
|
*
|
|
25
31
|
* @export
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.6.
|
|
7
|
+
* API Version: 2.6.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
|
|
@@ -19,7 +19,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setBearerAuthToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
22
|
+
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setBearerAuthToObject = exports.encodePathParam = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
23
23
|
const base_1 = require("./base");
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -37,6 +37,19 @@ const assertParamExists = function (functionName, paramName, paramValue) {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
exports.assertParamExists = assertParamExists;
|
|
40
|
+
/**
|
|
41
|
+
* Empty values and dot segments survive encoding and collapse or resolve away, which would change the endpoint.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
const encodePathParam = function (paramName, paramValue) {
|
|
46
|
+
const value = String(paramValue);
|
|
47
|
+
if (value === '' || value === '.' || value === '..') {
|
|
48
|
+
throw new base_1.RequiredError(paramName, `Invalid value for path parameter ${paramName}.`);
|
|
49
|
+
}
|
|
50
|
+
return encodeURIComponent(value);
|
|
51
|
+
};
|
|
52
|
+
exports.encodePathParam = encodePathParam;
|
|
40
53
|
/**
|
|
41
54
|
*
|
|
42
55
|
* @export
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.6.
|
|
4
|
+
* API Version: 2.6.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: 2.6.
|
|
7
|
+
* API Version: 2.6.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/2.6.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.6.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.6.
|
|
4
|
+
* API Version: 2.6.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
|
|
@@ -26568,7 +26568,7 @@ export type ListGitInstallationsV1StatusEnum = typeof ListGitInstallationsV1Stat
|
|
|
26568
26568
|
*/
|
|
26569
26569
|
export declare const HostingHeadlessApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
26570
26570
|
/**
|
|
26571
|
-
* Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged.
|
|
26571
|
+
* Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
|
|
26572
26572
|
* @summary Submit headless build report
|
|
26573
26573
|
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
26574
26574
|
* @param {*} [options] Override http request option.
|
|
@@ -26582,7 +26582,7 @@ export declare const HostingHeadlessApiAxiosParamCreator: (configuration?: Confi
|
|
|
26582
26582
|
*/
|
|
26583
26583
|
export declare const HostingHeadlessApiFp: (configuration?: Configuration) => {
|
|
26584
26584
|
/**
|
|
26585
|
-
* Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged.
|
|
26585
|
+
* Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
|
|
26586
26586
|
* @summary Submit headless build report
|
|
26587
26587
|
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
26588
26588
|
* @param {*} [options] Override http request option.
|
|
@@ -26596,7 +26596,7 @@ export declare const HostingHeadlessApiFp: (configuration?: Configuration) => {
|
|
|
26596
26596
|
*/
|
|
26597
26597
|
export declare const HostingHeadlessApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
26598
26598
|
/**
|
|
26599
|
-
* Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged.
|
|
26599
|
+
* Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
|
|
26600
26600
|
* @summary Submit headless build report
|
|
26601
26601
|
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
26602
26602
|
* @param {*} [options] Override http request option.
|
|
@@ -26612,7 +26612,7 @@ export declare const HostingHeadlessApiFactory: (configuration?: Configuration,
|
|
|
26612
26612
|
*/
|
|
26613
26613
|
export declare class HostingHeadlessApi extends BaseAPI {
|
|
26614
26614
|
/**
|
|
26615
|
-
* Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged.
|
|
26615
|
+
* Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
|
|
26616
26616
|
* @summary Submit headless build report
|
|
26617
26617
|
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
26618
26618
|
* @param {*} [options] Override http request option.
|