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/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.
|
|
4
|
+
* API Version: 3.3.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
|
|
@@ -2794,6 +2794,124 @@ export interface CommonSuccessEmptyResource {
|
|
|
2794
2794
|
*/
|
|
2795
2795
|
'message': string;
|
|
2796
2796
|
}
|
|
2797
|
+
/**
|
|
2798
|
+
* What the authoritative nameservers serve now: the best signal of the current record value
|
|
2799
|
+
* @export
|
|
2800
|
+
* @interface DNSV1PropagationAuthoritativeAnswerResource
|
|
2801
|
+
*/
|
|
2802
|
+
export interface DNSV1PropagationAuthoritativeAnswerResource {
|
|
2803
|
+
/**
|
|
2804
|
+
* DNS zone that holds the record
|
|
2805
|
+
* @type {string}
|
|
2806
|
+
* @memberof DNSV1PropagationAuthoritativeAnswerResource
|
|
2807
|
+
*/
|
|
2808
|
+
'zone': string;
|
|
2809
|
+
/**
|
|
2810
|
+
* Answer of each authoritative nameserver of the zone
|
|
2811
|
+
* @type {Array<DNSV1PropagationNameserverAnswerResource>}
|
|
2812
|
+
* @memberof DNSV1PropagationAuthoritativeAnswerResource
|
|
2813
|
+
*/
|
|
2814
|
+
'nameservers': Array<DNSV1PropagationNameserverAnswerResource>;
|
|
2815
|
+
}
|
|
2816
|
+
/**
|
|
2817
|
+
*
|
|
2818
|
+
* @export
|
|
2819
|
+
* @interface DNSV1PropagationNameserverAnswerResource
|
|
2820
|
+
*/
|
|
2821
|
+
export interface DNSV1PropagationNameserverAnswerResource {
|
|
2822
|
+
/**
|
|
2823
|
+
* Authoritative nameserver
|
|
2824
|
+
* @type {string}
|
|
2825
|
+
* @memberof DNSV1PropagationNameserverAnswerResource
|
|
2826
|
+
*/
|
|
2827
|
+
'nameserver': string;
|
|
2828
|
+
/**
|
|
2829
|
+
* Records the nameserver serves; null or empty when it serves none
|
|
2830
|
+
* @type {Array<string>}
|
|
2831
|
+
* @memberof DNSV1PropagationNameserverAnswerResource
|
|
2832
|
+
*/
|
|
2833
|
+
'records': Array<string> | null;
|
|
2834
|
+
/**
|
|
2835
|
+
* TTL in seconds: how long resolvers may keep serving a previously cached value
|
|
2836
|
+
* @type {number}
|
|
2837
|
+
* @memberof DNSV1PropagationNameserverAnswerResource
|
|
2838
|
+
*/
|
|
2839
|
+
'ttl': number;
|
|
2840
|
+
}
|
|
2841
|
+
/**
|
|
2842
|
+
*
|
|
2843
|
+
* @export
|
|
2844
|
+
* @interface DNSV1PropagationPropagationReportResource
|
|
2845
|
+
*/
|
|
2846
|
+
export interface DNSV1PropagationPropagationReportResource {
|
|
2847
|
+
/**
|
|
2848
|
+
*
|
|
2849
|
+
* @type {DNSV1PropagationAuthoritativeAnswerResource}
|
|
2850
|
+
* @memberof DNSV1PropagationPropagationReportResource
|
|
2851
|
+
*/
|
|
2852
|
+
'authoritative': DNSV1PropagationAuthoritativeAnswerResource;
|
|
2853
|
+
/**
|
|
2854
|
+
* Answers of public resolvers at locations around the world
|
|
2855
|
+
* @type {Array<DNSV1PropagationVantagePointResource>}
|
|
2856
|
+
* @memberof DNSV1PropagationPropagationReportResource
|
|
2857
|
+
*/
|
|
2858
|
+
'vantage_points': Array<DNSV1PropagationVantagePointResource>;
|
|
2859
|
+
}
|
|
2860
|
+
/**
|
|
2861
|
+
* Answer of a public resolver at one location
|
|
2862
|
+
* @export
|
|
2863
|
+
* @interface DNSV1PropagationVantagePointResource
|
|
2864
|
+
*/
|
|
2865
|
+
export interface DNSV1PropagationVantagePointResource {
|
|
2866
|
+
/**
|
|
2867
|
+
* Country code of the resolver
|
|
2868
|
+
* @type {string}
|
|
2869
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2870
|
+
*/
|
|
2871
|
+
'country': string;
|
|
2872
|
+
/**
|
|
2873
|
+
* Resolver provider
|
|
2874
|
+
* @type {string}
|
|
2875
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2876
|
+
*/
|
|
2877
|
+
'provider': string;
|
|
2878
|
+
/**
|
|
2879
|
+
* IP address of the resolver
|
|
2880
|
+
* @type {string}
|
|
2881
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2882
|
+
*/
|
|
2883
|
+
'ip': string;
|
|
2884
|
+
/**
|
|
2885
|
+
* Location of the resolver
|
|
2886
|
+
* @type {string}
|
|
2887
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2888
|
+
*/
|
|
2889
|
+
'location': string;
|
|
2890
|
+
/**
|
|
2891
|
+
*
|
|
2892
|
+
* @type {number}
|
|
2893
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2894
|
+
*/
|
|
2895
|
+
'latitude': number;
|
|
2896
|
+
/**
|
|
2897
|
+
*
|
|
2898
|
+
* @type {number}
|
|
2899
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2900
|
+
*/
|
|
2901
|
+
'longitude': number;
|
|
2902
|
+
/**
|
|
2903
|
+
* Records the resolver returned; null when it returned none or could not be queried
|
|
2904
|
+
* @type {Array<string>}
|
|
2905
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2906
|
+
*/
|
|
2907
|
+
'records': Array<string> | null;
|
|
2908
|
+
/**
|
|
2909
|
+
* 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.
|
|
2910
|
+
* @type {boolean}
|
|
2911
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2912
|
+
*/
|
|
2913
|
+
'is_propagated': boolean | null;
|
|
2914
|
+
}
|
|
2797
2915
|
/**
|
|
2798
2916
|
*
|
|
2799
2917
|
* @export
|
|
@@ -9659,6 +9777,12 @@ export interface HostingV1NodeJsSourceOptionsResource {
|
|
|
9659
9777
|
* @memberof HostingV1NodeJsSourceOptionsResource
|
|
9660
9778
|
*/
|
|
9661
9779
|
'archive_path': string | null;
|
|
9780
|
+
/**
|
|
9781
|
+
* Summary of the deployment given when it was started (present if source_type is \"archive\" and one was sent)
|
|
9782
|
+
* @type {string}
|
|
9783
|
+
* @memberof HostingV1NodeJsSourceOptionsResource
|
|
9784
|
+
*/
|
|
9785
|
+
'message': string | null;
|
|
9662
9786
|
/**
|
|
9663
9787
|
* Repository owner login (present if source_type is \"git\")
|
|
9664
9788
|
* @type {string}
|
|
@@ -9792,7 +9916,7 @@ export declare const HostingV1NodeJsStartBuildRequestSourceTypeEnum: {
|
|
|
9792
9916
|
};
|
|
9793
9917
|
export type HostingV1NodeJsStartBuildRequestSourceTypeEnum = typeof HostingV1NodeJsStartBuildRequestSourceTypeEnum[keyof typeof HostingV1NodeJsStartBuildRequestSourceTypeEnum];
|
|
9794
9918
|
/**
|
|
9795
|
-
* Source-specific options. For `archive` send `archive_path
|
|
9919
|
+
* 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`.
|
|
9796
9920
|
* @export
|
|
9797
9921
|
* @interface HostingV1NodeJsStartBuildRequestSourceOptions
|
|
9798
9922
|
*/
|
|
@@ -9803,6 +9927,12 @@ export interface HostingV1NodeJsStartBuildRequestSourceOptions {
|
|
|
9803
9927
|
* @memberof HostingV1NodeJsStartBuildRequestSourceOptions
|
|
9804
9928
|
*/
|
|
9805
9929
|
'archive_path': string;
|
|
9930
|
+
/**
|
|
9931
|
+
* 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\".
|
|
9932
|
+
* @type {string}
|
|
9933
|
+
* @memberof HostingV1NodeJsStartBuildRequestSourceOptions
|
|
9934
|
+
*/
|
|
9935
|
+
'message': string | null;
|
|
9806
9936
|
/**
|
|
9807
9937
|
* Repository owner login (required if source is \"git\"). GitLab group paths use slashes.
|
|
9808
9938
|
* @type {string}
|
|
@@ -21975,6 +22105,69 @@ export declare class BillingSubscriptionsApi extends BaseAPI {
|
|
|
21975
22105
|
*/
|
|
21976
22106
|
renewSubscriptionV1(subscriptionId: string, billingV1SubscriptionRenewalRenewRequest?: BillingV1SubscriptionRenewalRenewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingV1OrderOrderResource, any, {}, any>>;
|
|
21977
22107
|
}
|
|
22108
|
+
/**
|
|
22109
|
+
* DNSPropagationApi - axios parameter creator
|
|
22110
|
+
* @export
|
|
22111
|
+
*/
|
|
22112
|
+
export declare const DNSPropagationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22113
|
+
/**
|
|
22114
|
+
* 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.
|
|
22115
|
+
* @summary Check DNS record propagation
|
|
22116
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
22117
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
22118
|
+
* @param {*} [options] Override http request option.
|
|
22119
|
+
* @throws {RequiredError}
|
|
22120
|
+
*/
|
|
22121
|
+
checkDNSRecordPropagationV1: (domain: string, type: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22122
|
+
};
|
|
22123
|
+
/**
|
|
22124
|
+
* DNSPropagationApi - functional programming interface
|
|
22125
|
+
* @export
|
|
22126
|
+
*/
|
|
22127
|
+
export declare const DNSPropagationApiFp: (configuration?: Configuration) => {
|
|
22128
|
+
/**
|
|
22129
|
+
* 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.
|
|
22130
|
+
* @summary Check DNS record propagation
|
|
22131
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
22132
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
22133
|
+
* @param {*} [options] Override http request option.
|
|
22134
|
+
* @throws {RequiredError}
|
|
22135
|
+
*/
|
|
22136
|
+
checkDNSRecordPropagationV1(domain: string, type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DNSV1PropagationPropagationReportResource>>;
|
|
22137
|
+
};
|
|
22138
|
+
/**
|
|
22139
|
+
* DNSPropagationApi - factory interface
|
|
22140
|
+
* @export
|
|
22141
|
+
*/
|
|
22142
|
+
export declare const DNSPropagationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
22143
|
+
/**
|
|
22144
|
+
* 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.
|
|
22145
|
+
* @summary Check DNS record propagation
|
|
22146
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
22147
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
22148
|
+
* @param {*} [options] Override http request option.
|
|
22149
|
+
* @throws {RequiredError}
|
|
22150
|
+
*/
|
|
22151
|
+
checkDNSRecordPropagationV1(domain: string, type: string, options?: RawAxiosRequestConfig): AxiosPromise<DNSV1PropagationPropagationReportResource>;
|
|
22152
|
+
};
|
|
22153
|
+
/**
|
|
22154
|
+
* DNSPropagationApi - object-oriented interface
|
|
22155
|
+
* @export
|
|
22156
|
+
* @class DNSPropagationApi
|
|
22157
|
+
* @extends {BaseAPI}
|
|
22158
|
+
*/
|
|
22159
|
+
export declare class DNSPropagationApi extends BaseAPI {
|
|
22160
|
+
/**
|
|
22161
|
+
* 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.
|
|
22162
|
+
* @summary Check DNS record propagation
|
|
22163
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
22164
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
22165
|
+
* @param {*} [options] Override http request option.
|
|
22166
|
+
* @throws {RequiredError}
|
|
22167
|
+
* @memberof DNSPropagationApi
|
|
22168
|
+
*/
|
|
22169
|
+
checkDNSRecordPropagationV1(domain: string, type: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DNSV1PropagationPropagationReportResource, any, {}, any>>;
|
|
22170
|
+
}
|
|
21978
22171
|
/**
|
|
21979
22172
|
* DNSSnapshotApi - axios parameter creator
|
|
21980
22173
|
* @export
|
|
@@ -28132,7 +28325,7 @@ export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configu
|
|
|
28132
28325
|
*/
|
|
28133
28326
|
restartNodeJsApplicationV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28134
28327
|
/**
|
|
28135
|
-
* 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.
|
|
28328
|
+
* 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.
|
|
28136
28329
|
* @summary Start Node.js build
|
|
28137
28330
|
* @param {string} username
|
|
28138
28331
|
* @param {string} domain Domain name
|
|
@@ -28303,7 +28496,7 @@ export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
|
|
|
28303
28496
|
*/
|
|
28304
28497
|
restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
28305
28498
|
/**
|
|
28306
|
-
* 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.
|
|
28499
|
+
* 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.
|
|
28307
28500
|
* @summary Start Node.js build
|
|
28308
28501
|
* @param {string} username
|
|
28309
28502
|
* @param {string} domain Domain name
|
|
@@ -28474,7 +28667,7 @@ export declare const HostingNodeJSApiFactory: (configuration?: Configuration, ba
|
|
|
28474
28667
|
*/
|
|
28475
28668
|
restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
28476
28669
|
/**
|
|
28477
|
-
* 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.
|
|
28670
|
+
* 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.
|
|
28478
28671
|
* @summary Start Node.js build
|
|
28479
28672
|
* @param {string} username
|
|
28480
28673
|
* @param {string} domain Domain name
|
|
@@ -28661,7 +28854,7 @@ export declare class HostingNodeJSApi extends BaseAPI {
|
|
|
28661
28854
|
*/
|
|
28662
28855
|
restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
28663
28856
|
/**
|
|
28664
|
-
* 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.
|
|
28857
|
+
* 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.
|
|
28665
28858
|
* @summary Start Node.js build
|
|
28666
28859
|
* @param {string} username
|
|
28667
28860
|
* @param {string} domain Domain name
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 3.
|
|
7
|
+
* API Version: 3.3.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
|
|
@@ -24,14 +24,14 @@ exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1Websit
|
|
|
24
24
|
exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsSegmentsSegmentFilterOperatorResourceInputTypeEnum = exports.ReachV1ContactsSegmentsSegmentFilterOperatorResourceOperatorEnum = exports.ReachV1ContactsSegmentsSegmentFilterAttributeResourceTypeEnum = exports.ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestSortDirectionEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestSortByEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestLogicEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = exports.ReachV1CampaignsCreatedCampaignResourceTypeEnum = exports.ReachV1CampaignsCreatedCampaignResourceStatusEnum = exports.ReachV1CampaignsCampaignResourceTypeEnum = exports.ReachV1CampaignsCampaignResourceStatusEnum = exports.ReachV1CampaignsCampaignDetailsResourceTypeEnum = exports.ReachV1CampaignsCampaignDetailsResourceStatusEnum = exports.ReachV1AutomationsStepsAutomationStepResourceValueEnum = exports.ReachV1AutomationsStepsAutomationStepResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = exports.MailV1OrdersOrderResourceStatusEnum = exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = void 0;
|
|
25
25
|
exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1InstallationsInstallWordPressRequestTypeEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.WordPressV1ContentGenerationResourceStatusEnum = exports.WordPressV1ContentGenerationResourceTypeEnum = exports.WordPressV1ContentGenerateImagesRequestImageTypeEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1WebsitesWebsiteResourcePlatformTypeEnum = exports.ReachV1StoresStoreResourceConnectionStatusEnum = exports.ReachV1StoresStoreResourceVersionEnum = exports.ReachV1ProfilesFeaturesPlanFeatureResourceFeatureEnum = exports.ReachV1ProfilesDomainsSendingDomainResourceStatusEnum = exports.ReachV1FormsUpdateRequestStatusEnum = exports.ReachV1FormsFormTemplateVersionResourceEditTypeEnum = exports.ReachV1FormsFormTagResourceTypeEnum = exports.ReachV1FormsFormResourceTypeEnum = exports.ReachV1FormsFormResourceStatusEnum = exports.ReachV1FormsFormDetailsResourceTypeEnum = exports.ReachV1FormsFormDetailsResourceStatusEnum = exports.ReachV1ContactsUpdateRequestSubscriptionStatusEnum = exports.ReachV1ContactsTagsTagResourceTypeEnum = void 0;
|
|
26
26
|
exports.AgentReadinessChecksApi = exports.AgentReadinessChecksApiFactory = exports.AgentReadinessChecksApiFp = exports.AgentReadinessChecksApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.ListAgencyPlanWebsitesV1WebsiteTypesEnum = exports.ListAgencyPlanWebsitesV1StatesEnum = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingSSLApi = exports.AgencyHostingSSLApiFactory = exports.AgencyHostingSSLApiFp = exports.AgencyHostingSSLApiAxiosParamCreator = exports.AgencyHostingPHPApi = exports.AgencyHostingPHPApiFactory = exports.AgencyHostingPHPApiFp = exports.AgencyHostingPHPApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.ListOrderResourceUsageMetricsV1TimeFrameHoursEnum = exports.ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum = exports.AgencyHostingMetricsApi = exports.AgencyHostingMetricsApiFactory = exports.AgencyHostingMetricsApiFp = exports.AgencyHostingMetricsApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = void 0;
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = void 0;
|
|
27
|
+
exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsMoveApi = exports.DomainsMoveApiFactory = exports.DomainsMoveApiFp = exports.DomainsMoveApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.DNSPropagationApi = exports.DNSPropagationApiFactory = exports.DNSPropagationApiFp = exports.DNSPropagationApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgentReadinessScansApi = exports.AgentReadinessScansApiFactory = exports.AgentReadinessScansApiFp = exports.AgentReadinessScansApiAxiosParamCreator = void 0;
|
|
28
|
+
exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.ListProductsV1IncludeEnum = exports.ListProductsV1StatusEnum = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommerceProductVariantsApi = exports.EcommerceProductVariantsApiFactory = exports.EcommerceProductVariantsApiFp = exports.EcommerceProductVariantsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.ListStoreOrdersV1FulfillmentStatusEnum = exports.ListStoreOrdersV1PaymentStatusEnum = exports.ListStoreOrdersV1StatusEnum = exports.EcommerceOrdersApi = exports.EcommerceOrdersApiFactory = exports.EcommerceOrdersApiFp = exports.EcommerceOrdersApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.ListDiscountsV1IsDisabledEnum = exports.EcommerceDiscountsApi = exports.EcommerceDiscountsApiFactory = exports.EcommerceDiscountsApiFp = exports.EcommerceDiscountsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = void 0;
|
|
29
|
+
exports.HostingGitApiFp = exports.HostingGitApiAxiosParamCreator = exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = exports.HostingFilesApi = exports.HostingFilesApiFactory = exports.HostingFilesApiFp = exports.HostingFilesApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HostingCDNApi = exports.HostingCDNApiFactory = exports.HostingCDNApiFp = exports.HostingCDNApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.GPUInstancesApi = exports.GPUInstancesApiFactory = exports.GPUInstancesApiFp = exports.GPUInstancesApiAxiosParamCreator = exports.GPUExposedServicesApi = exports.GPUExposedServicesApiFactory = exports.GPUExposedServicesApiFp = exports.GPUExposedServicesApiAxiosParamCreator = exports.GPUCatalogApi = exports.GPUCatalogApiFactory = exports.GPUCatalogApiFp = exports.GPUCatalogApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = void 0;
|
|
30
|
+
exports.MailAliasesApi = exports.MailAliasesApiFactory = exports.MailAliasesApiFp = exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.ListWebsitesV1WebsiteTypesEnum = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingSSLApi = exports.HostingSSLApiFactory = exports.HostingSSLApiFp = exports.HostingSSLApiAxiosParamCreator = exports.HostingRedirectsApi = exports.HostingRedirectsApiFactory = exports.HostingRedirectsApiFp = exports.HostingRedirectsApiAxiosParamCreator = exports.HostingPocketBaseApi = exports.HostingPocketBaseApiFactory = exports.HostingPocketBaseApiFp = exports.HostingPocketBaseApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.GetNodeJsRuntimeLogsV1LevelsEnum = exports.GetNodeJsRuntimeLogsV1PeriodEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingHeadlessApi = exports.HostingHeadlessApiFactory = exports.HostingHeadlessApiFp = exports.HostingHeadlessApiAxiosParamCreator = exports.ListGitInstallationsV1StatusEnum = exports.ListGitInstallationsV1ProviderEnum = exports.HostingGitApi = exports.HostingGitApiFactory = void 0;
|
|
31
|
+
exports.ListCampaignsV1TypeEnum = exports.ListCampaignsV1StatusEnum = exports.ReachCampaignsApi = exports.ReachCampaignsApiFactory = exports.ReachCampaignsApiFp = exports.ReachCampaignsApiAxiosParamCreator = exports.ListAutomationsV1SortDirectionEnum = exports.ListAutomationsV1StatusEnum = exports.ReachAutomationsApi = exports.ReachAutomationsApiFactory = exports.ReachAutomationsApiFp = exports.ReachAutomationsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = exports.ListAccessLogsV1StatusEnum = exports.MailLogsApi = exports.MailLogsApiFactory = exports.MailLogsApiFp = exports.MailLogsApiAxiosParamCreator = exports.MailForwardersApi = exports.MailForwardersApiFactory = exports.MailForwardersApiFp = exports.MailForwardersApiAxiosParamCreator = exports.MailCatchallsApi = exports.MailCatchallsApiFactory = exports.MailCatchallsApiFp = exports.MailCatchallsApiAxiosParamCreator = exports.MailAutorepliesApi = exports.MailAutorepliesApiFactory = exports.MailAutorepliesApiFp = exports.MailAutorepliesApiAxiosParamCreator = void 0;
|
|
32
|
+
exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTemplatesApi = exports.ReachTemplatesApiFactory = exports.ReachTemplatesApiFp = exports.ReachTemplatesApiAxiosParamCreator = exports.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ListProfileSegmentsV1CountTypeEnum = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ReachIntegrationsApi = exports.ReachIntegrationsApiFactory = exports.ReachIntegrationsApiFp = exports.ReachIntegrationsApiAxiosParamCreator = exports.ListFormsV1StatusEnum = exports.ReachFormsApi = exports.ReachFormsApiFactory = exports.ReachFormsApiFp = exports.ReachFormsApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListCampaignsV1SortDirectionEnum = void 0;
|
|
33
|
+
exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.GetGenerationResultV1TypeEnum = exports.WordPressAIContentApi = exports.WordPressAIContentApiFactory = exports.WordPressAIContentApiFp = exports.WordPressAIContentApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSSSHKeysApi = exports.VPSSSHKeysApiFactory = exports.VPSSSHKeysApiFp = exports.VPSSSHKeysApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = void 0;
|
|
34
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = void 0;
|
|
35
35
|
const axios_1 = require("axios");
|
|
36
36
|
// Some imports not used depending on template conditions
|
|
37
37
|
// @ts-ignore
|
|
@@ -5924,6 +5924,119 @@ class BillingSubscriptionsApi extends base_1.BaseAPI {
|
|
|
5924
5924
|
}
|
|
5925
5925
|
}
|
|
5926
5926
|
exports.BillingSubscriptionsApi = BillingSubscriptionsApi;
|
|
5927
|
+
/**
|
|
5928
|
+
* DNSPropagationApi - axios parameter creator
|
|
5929
|
+
* @export
|
|
5930
|
+
*/
|
|
5931
|
+
const DNSPropagationApiAxiosParamCreator = function (configuration) {
|
|
5932
|
+
return {
|
|
5933
|
+
/**
|
|
5934
|
+
* 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.
|
|
5935
|
+
* @summary Check DNS record propagation
|
|
5936
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
5937
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
5938
|
+
* @param {*} [options] Override http request option.
|
|
5939
|
+
* @throws {RequiredError}
|
|
5940
|
+
*/
|
|
5941
|
+
checkDNSRecordPropagationV1: (domain_1, type_1, ...args_1) => __awaiter(this, [domain_1, type_1, ...args_1], void 0, function* (domain, type, options = {}) {
|
|
5942
|
+
// verify required parameter 'domain' is not null or undefined
|
|
5943
|
+
(0, common_1.assertParamExists)('checkDNSRecordPropagationV1', 'domain', domain);
|
|
5944
|
+
// verify required parameter 'type' is not null or undefined
|
|
5945
|
+
(0, common_1.assertParamExists)('checkDNSRecordPropagationV1', 'type', type);
|
|
5946
|
+
const localVarPath = `/api/dns/v1/propagation/{domain}/{type}`
|
|
5947
|
+
.replace(`{${"domain"}}`, (0, common_1.encodePathParam)('domain', domain))
|
|
5948
|
+
.replace(`{${"type"}}`, (0, common_1.encodePathParam)('type', type));
|
|
5949
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5950
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5951
|
+
let baseOptions;
|
|
5952
|
+
if (configuration) {
|
|
5953
|
+
baseOptions = configuration.baseOptions;
|
|
5954
|
+
}
|
|
5955
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5956
|
+
const localVarHeaderParameter = {};
|
|
5957
|
+
const localVarQueryParameter = {};
|
|
5958
|
+
// authentication apiToken required
|
|
5959
|
+
// http bearer authentication required
|
|
5960
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5961
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5962
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5963
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5964
|
+
return {
|
|
5965
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5966
|
+
options: localVarRequestOptions,
|
|
5967
|
+
};
|
|
5968
|
+
}),
|
|
5969
|
+
};
|
|
5970
|
+
};
|
|
5971
|
+
exports.DNSPropagationApiAxiosParamCreator = DNSPropagationApiAxiosParamCreator;
|
|
5972
|
+
/**
|
|
5973
|
+
* DNSPropagationApi - functional programming interface
|
|
5974
|
+
* @export
|
|
5975
|
+
*/
|
|
5976
|
+
const DNSPropagationApiFp = function (configuration) {
|
|
5977
|
+
const localVarAxiosParamCreator = (0, exports.DNSPropagationApiAxiosParamCreator)(configuration);
|
|
5978
|
+
return {
|
|
5979
|
+
/**
|
|
5980
|
+
* 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.
|
|
5981
|
+
* @summary Check DNS record propagation
|
|
5982
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
5983
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
5984
|
+
* @param {*} [options] Override http request option.
|
|
5985
|
+
* @throws {RequiredError}
|
|
5986
|
+
*/
|
|
5987
|
+
checkDNSRecordPropagationV1(domain, type, options) {
|
|
5988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5989
|
+
var _a, _b;
|
|
5990
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkDNSRecordPropagationV1(domain, type, options);
|
|
5991
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DNSPropagationApi.checkDNSRecordPropagationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5992
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5993
|
+
});
|
|
5994
|
+
},
|
|
5995
|
+
};
|
|
5996
|
+
};
|
|
5997
|
+
exports.DNSPropagationApiFp = DNSPropagationApiFp;
|
|
5998
|
+
/**
|
|
5999
|
+
* DNSPropagationApi - factory interface
|
|
6000
|
+
* @export
|
|
6001
|
+
*/
|
|
6002
|
+
const DNSPropagationApiFactory = function (configuration, basePath, axios) {
|
|
6003
|
+
const localVarFp = (0, exports.DNSPropagationApiFp)(configuration);
|
|
6004
|
+
return {
|
|
6005
|
+
/**
|
|
6006
|
+
* 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.
|
|
6007
|
+
* @summary Check DNS record propagation
|
|
6008
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
6009
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
6010
|
+
* @param {*} [options] Override http request option.
|
|
6011
|
+
* @throws {RequiredError}
|
|
6012
|
+
*/
|
|
6013
|
+
checkDNSRecordPropagationV1(domain, type, options) {
|
|
6014
|
+
return localVarFp.checkDNSRecordPropagationV1(domain, type, options).then((request) => request(axios, basePath));
|
|
6015
|
+
},
|
|
6016
|
+
};
|
|
6017
|
+
};
|
|
6018
|
+
exports.DNSPropagationApiFactory = DNSPropagationApiFactory;
|
|
6019
|
+
/**
|
|
6020
|
+
* DNSPropagationApi - object-oriented interface
|
|
6021
|
+
* @export
|
|
6022
|
+
* @class DNSPropagationApi
|
|
6023
|
+
* @extends {BaseAPI}
|
|
6024
|
+
*/
|
|
6025
|
+
class DNSPropagationApi extends base_1.BaseAPI {
|
|
6026
|
+
/**
|
|
6027
|
+
* 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.
|
|
6028
|
+
* @summary Check DNS record propagation
|
|
6029
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
6030
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
6031
|
+
* @param {*} [options] Override http request option.
|
|
6032
|
+
* @throws {RequiredError}
|
|
6033
|
+
* @memberof DNSPropagationApi
|
|
6034
|
+
*/
|
|
6035
|
+
checkDNSRecordPropagationV1(domain, type, options) {
|
|
6036
|
+
return (0, exports.DNSPropagationApiFp)(this.configuration).checkDNSRecordPropagationV1(domain, type, options).then((request) => request(this.axios, this.basePath));
|
|
6037
|
+
}
|
|
6038
|
+
}
|
|
6039
|
+
exports.DNSPropagationApi = DNSPropagationApi;
|
|
5927
6040
|
/**
|
|
5928
6041
|
* DNSSnapshotApi - axios parameter creator
|
|
5929
6042
|
* @export
|
|
@@ -18221,7 +18334,7 @@ const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
|
18221
18334
|
};
|
|
18222
18335
|
}),
|
|
18223
18336
|
/**
|
|
18224
|
-
* 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.
|
|
18337
|
+
* 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.
|
|
18225
18338
|
* @summary Start Node.js build
|
|
18226
18339
|
* @param {string} username
|
|
18227
18340
|
* @param {string} domain Domain name
|
|
@@ -18556,7 +18669,7 @@ const HostingNodeJSApiFp = function (configuration) {
|
|
|
18556
18669
|
});
|
|
18557
18670
|
},
|
|
18558
18671
|
/**
|
|
18559
|
-
* 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.
|
|
18672
|
+
* 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.
|
|
18560
18673
|
* @summary Start Node.js build
|
|
18561
18674
|
* @param {string} username
|
|
18562
18675
|
* @param {string} domain Domain name
|
|
@@ -18773,7 +18886,7 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
|
18773
18886
|
return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
|
|
18774
18887
|
},
|
|
18775
18888
|
/**
|
|
18776
|
-
* 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.
|
|
18889
|
+
* 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.
|
|
18777
18890
|
* @summary Start Node.js build
|
|
18778
18891
|
* @param {string} username
|
|
18779
18892
|
* @param {string} domain Domain name
|
|
@@ -18994,7 +19107,7 @@ class HostingNodeJSApi extends base_1.BaseAPI {
|
|
|
18994
19107
|
return (0, exports.HostingNodeJSApiFp)(this.configuration).restartNodeJsApplicationV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
18995
19108
|
}
|
|
18996
19109
|
/**
|
|
18997
|
-
* 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.
|
|
19110
|
+
* 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.
|
|
18998
19111
|
* @summary Start Node.js build
|
|
18999
19112
|
* @param {string} username
|
|
19000
19113
|
* @param {string} domain Domain name
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.
|
|
4
|
+
* API Version: 3.3.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: 3.
|
|
7
|
+
* API Version: 3.3.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: 3.
|
|
4
|
+
* API Version: 3.3.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: 3.
|
|
7
|
+
* API Version: 3.3.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: 3.
|
|
4
|
+
* API Version: 3.3.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
|