hostinger-api-sdk 3.2.0 → 3.3.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 +254 -6
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +199 -6
- package/dist/api.js +126 -13
- 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 +199 -6
- package/dist/esm/api.js +114 -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/DNSPropagationApi.md +66 -0
- package/docs/DNSV1PropagationAuthoritativeAnswerResource.md +23 -0
- package/docs/DNSV1PropagationNameserverAnswerResource.md +24 -0
- package/docs/DNSV1PropagationPropagationReportResource.md +22 -0
- package/docs/DNSV1PropagationVantagePointResource.md +35 -0
- package/docs/HostingNodeJSApi.md +1 -1
- package/docs/HostingV1NodeJsSourceOptionsResource.md +2 -0
- package/docs/HostingV1NodeJsStartBuildRequestSourceOptions.md +3 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@3.
|
|
1
|
+
## @hostinger/sdk@3.3.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@3.
|
|
8
|
+
npm install @hostinger/sdk@3.3.1 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.
|
|
6
|
+
* API Version: 3.3.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
|
|
@@ -2858,6 +2858,124 @@ export interface CommonSuccessEmptyResource {
|
|
|
2858
2858
|
*/
|
|
2859
2859
|
'message': string;
|
|
2860
2860
|
}
|
|
2861
|
+
/**
|
|
2862
|
+
* What the authoritative nameservers serve now: the best signal of the current record value
|
|
2863
|
+
* @export
|
|
2864
|
+
* @interface DNSV1PropagationAuthoritativeAnswerResource
|
|
2865
|
+
*/
|
|
2866
|
+
export interface DNSV1PropagationAuthoritativeAnswerResource {
|
|
2867
|
+
/**
|
|
2868
|
+
* DNS zone that holds the record
|
|
2869
|
+
* @type {string}
|
|
2870
|
+
* @memberof DNSV1PropagationAuthoritativeAnswerResource
|
|
2871
|
+
*/
|
|
2872
|
+
'zone': string;
|
|
2873
|
+
/**
|
|
2874
|
+
* Answer of each authoritative nameserver of the zone
|
|
2875
|
+
* @type {Array<DNSV1PropagationNameserverAnswerResource>}
|
|
2876
|
+
* @memberof DNSV1PropagationAuthoritativeAnswerResource
|
|
2877
|
+
*/
|
|
2878
|
+
'nameservers': Array<DNSV1PropagationNameserverAnswerResource>;
|
|
2879
|
+
}
|
|
2880
|
+
/**
|
|
2881
|
+
*
|
|
2882
|
+
* @export
|
|
2883
|
+
* @interface DNSV1PropagationNameserverAnswerResource
|
|
2884
|
+
*/
|
|
2885
|
+
export interface DNSV1PropagationNameserverAnswerResource {
|
|
2886
|
+
/**
|
|
2887
|
+
* Authoritative nameserver
|
|
2888
|
+
* @type {string}
|
|
2889
|
+
* @memberof DNSV1PropagationNameserverAnswerResource
|
|
2890
|
+
*/
|
|
2891
|
+
'nameserver': string;
|
|
2892
|
+
/**
|
|
2893
|
+
* Records the nameserver serves; null or empty when it serves none
|
|
2894
|
+
* @type {Array<string>}
|
|
2895
|
+
* @memberof DNSV1PropagationNameserverAnswerResource
|
|
2896
|
+
*/
|
|
2897
|
+
'records': Array<string> | null;
|
|
2898
|
+
/**
|
|
2899
|
+
* TTL in seconds: how long resolvers may keep serving a previously cached value
|
|
2900
|
+
* @type {number}
|
|
2901
|
+
* @memberof DNSV1PropagationNameserverAnswerResource
|
|
2902
|
+
*/
|
|
2903
|
+
'ttl': number;
|
|
2904
|
+
}
|
|
2905
|
+
/**
|
|
2906
|
+
*
|
|
2907
|
+
* @export
|
|
2908
|
+
* @interface DNSV1PropagationPropagationReportResource
|
|
2909
|
+
*/
|
|
2910
|
+
export interface DNSV1PropagationPropagationReportResource {
|
|
2911
|
+
/**
|
|
2912
|
+
*
|
|
2913
|
+
* @type {DNSV1PropagationAuthoritativeAnswerResource}
|
|
2914
|
+
* @memberof DNSV1PropagationPropagationReportResource
|
|
2915
|
+
*/
|
|
2916
|
+
'authoritative': DNSV1PropagationAuthoritativeAnswerResource;
|
|
2917
|
+
/**
|
|
2918
|
+
* Answers of public resolvers at locations around the world
|
|
2919
|
+
* @type {Array<DNSV1PropagationVantagePointResource>}
|
|
2920
|
+
* @memberof DNSV1PropagationPropagationReportResource
|
|
2921
|
+
*/
|
|
2922
|
+
'vantage_points': Array<DNSV1PropagationVantagePointResource>;
|
|
2923
|
+
}
|
|
2924
|
+
/**
|
|
2925
|
+
* Answer of a public resolver at one location
|
|
2926
|
+
* @export
|
|
2927
|
+
* @interface DNSV1PropagationVantagePointResource
|
|
2928
|
+
*/
|
|
2929
|
+
export interface DNSV1PropagationVantagePointResource {
|
|
2930
|
+
/**
|
|
2931
|
+
* Country code of the resolver
|
|
2932
|
+
* @type {string}
|
|
2933
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2934
|
+
*/
|
|
2935
|
+
'country': string;
|
|
2936
|
+
/**
|
|
2937
|
+
* Resolver provider
|
|
2938
|
+
* @type {string}
|
|
2939
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2940
|
+
*/
|
|
2941
|
+
'provider': string;
|
|
2942
|
+
/**
|
|
2943
|
+
* IP address of the resolver
|
|
2944
|
+
* @type {string}
|
|
2945
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2946
|
+
*/
|
|
2947
|
+
'ip': string;
|
|
2948
|
+
/**
|
|
2949
|
+
* Location of the resolver
|
|
2950
|
+
* @type {string}
|
|
2951
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2952
|
+
*/
|
|
2953
|
+
'location': string;
|
|
2954
|
+
/**
|
|
2955
|
+
*
|
|
2956
|
+
* @type {number}
|
|
2957
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2958
|
+
*/
|
|
2959
|
+
'latitude': number;
|
|
2960
|
+
/**
|
|
2961
|
+
*
|
|
2962
|
+
* @type {number}
|
|
2963
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2964
|
+
*/
|
|
2965
|
+
'longitude': number;
|
|
2966
|
+
/**
|
|
2967
|
+
* Records the resolver returned; null when it returned none or could not be queried
|
|
2968
|
+
* @type {Array<string>}
|
|
2969
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2970
|
+
*/
|
|
2971
|
+
'records': Array<string> | null;
|
|
2972
|
+
/**
|
|
2973
|
+
* Whether this location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated when the location also returns CDN addresses. True when every responding authoritative nameserver returns no records. Null when the location could not be queried or no authoritative answer could be compared.
|
|
2974
|
+
* @type {boolean}
|
|
2975
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2976
|
+
*/
|
|
2977
|
+
'is_propagated': boolean | null;
|
|
2978
|
+
}
|
|
2861
2979
|
/**
|
|
2862
2980
|
*
|
|
2863
2981
|
* @export
|
|
@@ -9868,6 +9986,12 @@ export interface HostingV1NodeJsSourceOptionsResource {
|
|
|
9868
9986
|
* @memberof HostingV1NodeJsSourceOptionsResource
|
|
9869
9987
|
*/
|
|
9870
9988
|
'archive_path': string | null;
|
|
9989
|
+
/**
|
|
9990
|
+
* Summary of the deployment given when it was started (present if source_type is \"archive\" and one was sent)
|
|
9991
|
+
* @type {string}
|
|
9992
|
+
* @memberof HostingV1NodeJsSourceOptionsResource
|
|
9993
|
+
*/
|
|
9994
|
+
'message': string | null;
|
|
9871
9995
|
/**
|
|
9872
9996
|
* Repository owner login (present if source_type is \"git\")
|
|
9873
9997
|
* @type {string}
|
|
@@ -10007,7 +10131,7 @@ export const HostingV1NodeJsStartBuildRequestSourceTypeEnum = {
|
|
|
10007
10131
|
export type HostingV1NodeJsStartBuildRequestSourceTypeEnum = typeof HostingV1NodeJsStartBuildRequestSourceTypeEnum[keyof typeof HostingV1NodeJsStartBuildRequestSourceTypeEnum];
|
|
10008
10132
|
|
|
10009
10133
|
/**
|
|
10010
|
-
* Source-specific options. For `archive` send `archive_path
|
|
10134
|
+
* Source-specific options. For `archive` send `archive_path` and a `message` describing the change. For `git` send `owner`, `repository`, `branch` and `installation_uuid`, taken from `List Git installations` and `List Git installation repositories`.
|
|
10011
10135
|
* @export
|
|
10012
10136
|
* @interface HostingV1NodeJsStartBuildRequestSourceOptions
|
|
10013
10137
|
*/
|
|
@@ -10018,6 +10142,12 @@ export interface HostingV1NodeJsStartBuildRequestSourceOptions {
|
|
|
10018
10142
|
* @memberof HostingV1NodeJsStartBuildRequestSourceOptions
|
|
10019
10143
|
*/
|
|
10020
10144
|
'archive_path': string;
|
|
10145
|
+
/**
|
|
10146
|
+
* Short summary of what this deployment changes, shown in the website\'s deployment history the way a commit message is for git deployments. Without it the history only shows the archive file name, so always send one: keep the first line under 72 characters and describe the change, not the upload. Only used if source is \"archive\".
|
|
10147
|
+
* @type {string}
|
|
10148
|
+
* @memberof HostingV1NodeJsStartBuildRequestSourceOptions
|
|
10149
|
+
*/
|
|
10150
|
+
'message': string | null;
|
|
10021
10151
|
/**
|
|
10022
10152
|
* Repository owner login (required if source is \"git\"). GitLab group paths use slashes.
|
|
10023
10153
|
* @type {string}
|
|
@@ -24862,6 +24992,124 @@ export class BillingSubscriptionsApi extends BaseAPI {
|
|
|
24862
24992
|
|
|
24863
24993
|
|
|
24864
24994
|
|
|
24995
|
+
/**
|
|
24996
|
+
* DNSPropagationApi - axios parameter creator
|
|
24997
|
+
* @export
|
|
24998
|
+
*/
|
|
24999
|
+
export const DNSPropagationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
25000
|
+
return {
|
|
25001
|
+
/**
|
|
25002
|
+
* Check whether a DNS record of a domain or host name has propagated to public resolvers around the world. `authoritative` shows what the domain\'s authoritative nameservers serve now. It is the best signal of the current record value. Its TTL tells how long resolvers may keep serving the old value. `vantage_points` shows what public resolvers at different locations return. `is_propagated` is true when the location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated. When every responding authoritative nameserver returns no records, `is_propagated` is true. Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing. A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
|
|
25003
|
+
* @summary Check DNS record propagation
|
|
25004
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
25005
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
25006
|
+
* @param {*} [options] Override http request option.
|
|
25007
|
+
* @throws {RequiredError}
|
|
25008
|
+
*/
|
|
25009
|
+
checkDNSRecordPropagationV1: async (domain: string, type: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25010
|
+
// verify required parameter 'domain' is not null or undefined
|
|
25011
|
+
assertParamExists('checkDNSRecordPropagationV1', 'domain', domain)
|
|
25012
|
+
// verify required parameter 'type' is not null or undefined
|
|
25013
|
+
assertParamExists('checkDNSRecordPropagationV1', 'type', type)
|
|
25014
|
+
const localVarPath = `/api/dns/v1/propagation/{domain}/{type}`
|
|
25015
|
+
.replace(`{${"domain"}}`, encodePathParam('domain', domain))
|
|
25016
|
+
.replace(`{${"type"}}`, encodePathParam('type', type));
|
|
25017
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25018
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25019
|
+
let baseOptions;
|
|
25020
|
+
if (configuration) {
|
|
25021
|
+
baseOptions = configuration.baseOptions;
|
|
25022
|
+
}
|
|
25023
|
+
|
|
25024
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
25025
|
+
const localVarHeaderParameter = {} as any;
|
|
25026
|
+
const localVarQueryParameter = {} as any;
|
|
25027
|
+
|
|
25028
|
+
// authentication apiToken required
|
|
25029
|
+
// http bearer authentication required
|
|
25030
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
25031
|
+
|
|
25032
|
+
|
|
25033
|
+
|
|
25034
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25035
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25036
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
25037
|
+
|
|
25038
|
+
return {
|
|
25039
|
+
url: toPathString(localVarUrlObj),
|
|
25040
|
+
options: localVarRequestOptions,
|
|
25041
|
+
};
|
|
25042
|
+
},
|
|
25043
|
+
}
|
|
25044
|
+
};
|
|
25045
|
+
|
|
25046
|
+
/**
|
|
25047
|
+
* DNSPropagationApi - functional programming interface
|
|
25048
|
+
* @export
|
|
25049
|
+
*/
|
|
25050
|
+
export const DNSPropagationApiFp = function(configuration?: Configuration) {
|
|
25051
|
+
const localVarAxiosParamCreator = DNSPropagationApiAxiosParamCreator(configuration)
|
|
25052
|
+
return {
|
|
25053
|
+
/**
|
|
25054
|
+
* Check whether a DNS record of a domain or host name has propagated to public resolvers around the world. `authoritative` shows what the domain\'s authoritative nameservers serve now. It is the best signal of the current record value. Its TTL tells how long resolvers may keep serving the old value. `vantage_points` shows what public resolvers at different locations return. `is_propagated` is true when the location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated. When every responding authoritative nameserver returns no records, `is_propagated` is true. Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing. A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
|
|
25055
|
+
* @summary Check DNS record propagation
|
|
25056
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
25057
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
25058
|
+
* @param {*} [options] Override http request option.
|
|
25059
|
+
* @throws {RequiredError}
|
|
25060
|
+
*/
|
|
25061
|
+
async checkDNSRecordPropagationV1(domain: string, type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DNSV1PropagationPropagationReportResource>> {
|
|
25062
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkDNSRecordPropagationV1(domain, type, options);
|
|
25063
|
+
const localVarOperationServerBasePath = operationServerMap['DNSPropagationApi.checkDNSRecordPropagationV1']?.[0]?.url;
|
|
25064
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25065
|
+
},
|
|
25066
|
+
}
|
|
25067
|
+
};
|
|
25068
|
+
|
|
25069
|
+
/**
|
|
25070
|
+
* DNSPropagationApi - factory interface
|
|
25071
|
+
* @export
|
|
25072
|
+
*/
|
|
25073
|
+
export const DNSPropagationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
25074
|
+
const localVarFp = DNSPropagationApiFp(configuration)
|
|
25075
|
+
return {
|
|
25076
|
+
/**
|
|
25077
|
+
* Check whether a DNS record of a domain or host name has propagated to public resolvers around the world. `authoritative` shows what the domain\'s authoritative nameservers serve now. It is the best signal of the current record value. Its TTL tells how long resolvers may keep serving the old value. `vantage_points` shows what public resolvers at different locations return. `is_propagated` is true when the location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated. When every responding authoritative nameserver returns no records, `is_propagated` is true. Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing. A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
|
|
25078
|
+
* @summary Check DNS record propagation
|
|
25079
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
25080
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
25081
|
+
* @param {*} [options] Override http request option.
|
|
25082
|
+
* @throws {RequiredError}
|
|
25083
|
+
*/
|
|
25084
|
+
checkDNSRecordPropagationV1(domain: string, type: string, options?: RawAxiosRequestConfig): AxiosPromise<DNSV1PropagationPropagationReportResource> {
|
|
25085
|
+
return localVarFp.checkDNSRecordPropagationV1(domain, type, options).then((request) => request(axios, basePath));
|
|
25086
|
+
},
|
|
25087
|
+
};
|
|
25088
|
+
};
|
|
25089
|
+
|
|
25090
|
+
/**
|
|
25091
|
+
* DNSPropagationApi - object-oriented interface
|
|
25092
|
+
* @export
|
|
25093
|
+
* @class DNSPropagationApi
|
|
25094
|
+
* @extends {BaseAPI}
|
|
25095
|
+
*/
|
|
25096
|
+
export class DNSPropagationApi extends BaseAPI {
|
|
25097
|
+
/**
|
|
25098
|
+
* Check whether a DNS record of a domain or host name has propagated to public resolvers around the world. `authoritative` shows what the domain\'s authoritative nameservers serve now. It is the best signal of the current record value. Its TTL tells how long resolvers may keep serving the old value. `vantage_points` shows what public resolvers at different locations return. `is_propagated` is true when the location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated. When every responding authoritative nameserver returns no records, `is_propagated` is true. Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing. A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
|
|
25099
|
+
* @summary Check DNS record propagation
|
|
25100
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
25101
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
25102
|
+
* @param {*} [options] Override http request option.
|
|
25103
|
+
* @throws {RequiredError}
|
|
25104
|
+
* @memberof DNSPropagationApi
|
|
25105
|
+
*/
|
|
25106
|
+
public checkDNSRecordPropagationV1(domain: string, type: string, options?: RawAxiosRequestConfig) {
|
|
25107
|
+
return DNSPropagationApiFp(this.configuration).checkDNSRecordPropagationV1(domain, type, options).then((request) => request(this.axios, this.basePath));
|
|
25108
|
+
}
|
|
25109
|
+
}
|
|
25110
|
+
|
|
25111
|
+
|
|
25112
|
+
|
|
24865
25113
|
/**
|
|
24866
25114
|
* DNSSnapshotApi - axios parameter creator
|
|
24867
25115
|
* @export
|
|
@@ -37957,7 +38205,7 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration?: Confi
|
|
|
37957
38205
|
};
|
|
37958
38206
|
},
|
|
37959
38207
|
/**
|
|
37960
|
-
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
38208
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
37961
38209
|
* @summary Start Node.js build
|
|
37962
38210
|
* @param {string} username
|
|
37963
38211
|
* @param {string} domain Domain name
|
|
@@ -38264,7 +38512,7 @@ export const HostingNodeJSApiFp = function(configuration?: Configuration) {
|
|
|
38264
38512
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38265
38513
|
},
|
|
38266
38514
|
/**
|
|
38267
|
-
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
38515
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
38268
38516
|
* @summary Start Node.js build
|
|
38269
38517
|
* @param {string} username
|
|
38270
38518
|
* @param {string} domain Domain name
|
|
@@ -38475,7 +38723,7 @@ export const HostingNodeJSApiFactory = function (configuration?: Configuration,
|
|
|
38475
38723
|
return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
|
|
38476
38724
|
},
|
|
38477
38725
|
/**
|
|
38478
|
-
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
38726
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
38479
38727
|
* @summary Start Node.js build
|
|
38480
38728
|
* @param {string} username
|
|
38481
38729
|
* @param {string} domain Domain name
|
|
@@ -38710,7 +38958,7 @@ export class HostingNodeJSApi extends BaseAPI {
|
|
|
38710
38958
|
}
|
|
38711
38959
|
|
|
38712
38960
|
/**
|
|
38713
|
-
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
38961
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
38714
38962
|
* @summary Start Node.js build
|
|
38715
38963
|
* @param {string} username
|
|
38716
38964
|
* @param {string} domain Domain name
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.
|
|
6
|
+
* API Version: 3.3.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: 3.
|
|
6
|
+
* API Version: 3.3.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: 3.
|
|
6
|
+
* API Version: 3.3.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/3.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/3.3.1",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|