hostinger-api-sdk 0.0.23 → 0.0.25
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 +414 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +234 -1
- package/dist/api.js +336 -4
- 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 +234 -1
- package/dist/esm/api.js +329 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HostingCronJobsApi.md +234 -0
- package/docs/HostingV1CronJobsCreateCronJobRequest.md +22 -0
- package/docs/HostingV1CronJobsCronJobOutputResource.md +20 -0
- package/docs/HostingV1CronJobsCronJobResource.md +26 -0
- 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: 0.
|
|
4
|
+
* API Version: 0.22.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -2086,6 +2086,69 @@ export interface HostingListWebsitesV1200Response {
|
|
|
2086
2086
|
*/
|
|
2087
2087
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
2088
2088
|
}
|
|
2089
|
+
/**
|
|
2090
|
+
*
|
|
2091
|
+
* @export
|
|
2092
|
+
* @interface HostingV1CronJobsCreateCronJobRequest
|
|
2093
|
+
*/
|
|
2094
|
+
export interface HostingV1CronJobsCreateCronJobRequest {
|
|
2095
|
+
/**
|
|
2096
|
+
* Cron schedule expression (for example \"0 2 * * *\" runs daily at 02:00).
|
|
2097
|
+
* @type {string}
|
|
2098
|
+
* @memberof HostingV1CronJobsCreateCronJobRequest
|
|
2099
|
+
*/
|
|
2100
|
+
'time': string;
|
|
2101
|
+
/**
|
|
2102
|
+
* Command to execute on the schedule.
|
|
2103
|
+
* @type {string}
|
|
2104
|
+
* @memberof HostingV1CronJobsCreateCronJobRequest
|
|
2105
|
+
*/
|
|
2106
|
+
'command': string;
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
*
|
|
2110
|
+
* @export
|
|
2111
|
+
* @interface HostingV1CronJobsCronJobOutputResource
|
|
2112
|
+
*/
|
|
2113
|
+
export interface HostingV1CronJobsCronJobOutputResource {
|
|
2114
|
+
/**
|
|
2115
|
+
* Output captured from the last cron job execution. Empty when the cron job has not run yet.
|
|
2116
|
+
* @type {string}
|
|
2117
|
+
* @memberof HostingV1CronJobsCronJobOutputResource
|
|
2118
|
+
*/
|
|
2119
|
+
'output': string;
|
|
2120
|
+
}
|
|
2121
|
+
/**
|
|
2122
|
+
*
|
|
2123
|
+
* @export
|
|
2124
|
+
* @interface HostingV1CronJobsCronJobResource
|
|
2125
|
+
*/
|
|
2126
|
+
export interface HostingV1CronJobsCronJobResource {
|
|
2127
|
+
/**
|
|
2128
|
+
* Unique identifier of the cron job. Use it to delete the cron job or fetch its output.
|
|
2129
|
+
* @type {string}
|
|
2130
|
+
* @memberof HostingV1CronJobsCronJobResource
|
|
2131
|
+
*/
|
|
2132
|
+
'uid': string;
|
|
2133
|
+
/**
|
|
2134
|
+
* Username of the account that owns the cron job.
|
|
2135
|
+
* @type {string}
|
|
2136
|
+
* @memberof HostingV1CronJobsCronJobResource
|
|
2137
|
+
*/
|
|
2138
|
+
'username': string;
|
|
2139
|
+
/**
|
|
2140
|
+
* Cron schedule expression.
|
|
2141
|
+
* @type {string}
|
|
2142
|
+
* @memberof HostingV1CronJobsCronJobResource
|
|
2143
|
+
*/
|
|
2144
|
+
'time': string;
|
|
2145
|
+
/**
|
|
2146
|
+
* Command executed on the schedule.
|
|
2147
|
+
* @type {string}
|
|
2148
|
+
* @memberof HostingV1CronJobsCronJobResource
|
|
2149
|
+
*/
|
|
2150
|
+
'command': string;
|
|
2151
|
+
}
|
|
2089
2152
|
/**
|
|
2090
2153
|
*
|
|
2091
2154
|
* @export
|
|
@@ -6961,6 +7024,176 @@ export declare class HorizonsWebsitesApi extends BaseAPI {
|
|
|
6961
7024
|
*/
|
|
6962
7025
|
getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HorizonsV1WebsitesWebsiteUrlResource, any, {}>>;
|
|
6963
7026
|
}
|
|
7027
|
+
/**
|
|
7028
|
+
* HostingCronJobsApi - axios parameter creator
|
|
7029
|
+
* @export
|
|
7030
|
+
*/
|
|
7031
|
+
export declare const HostingCronJobsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
7032
|
+
/**
|
|
7033
|
+
* Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
|
|
7034
|
+
* @summary Create account cron job
|
|
7035
|
+
* @param {string} username
|
|
7036
|
+
* @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
|
|
7037
|
+
* @param {*} [options] Override http request option.
|
|
7038
|
+
* @throws {RequiredError}
|
|
7039
|
+
*/
|
|
7040
|
+
createAccountCronJobV1: (username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7041
|
+
/**
|
|
7042
|
+
* Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
7043
|
+
* @summary Delete account cron job
|
|
7044
|
+
* @param {string} username
|
|
7045
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
7046
|
+
* @param {*} [options] Override http request option.
|
|
7047
|
+
* @throws {RequiredError}
|
|
7048
|
+
*/
|
|
7049
|
+
deleteAccountCronJobV1: (username: string, uid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7050
|
+
/**
|
|
7051
|
+
* Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
7052
|
+
* @summary Get cron job output
|
|
7053
|
+
* @param {string} username
|
|
7054
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
7055
|
+
* @param {*} [options] Override http request option.
|
|
7056
|
+
* @throws {RequiredError}
|
|
7057
|
+
*/
|
|
7058
|
+
getCronJobOutputV1: (username: string, uid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7059
|
+
/**
|
|
7060
|
+
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
7061
|
+
* @summary List account cron jobs
|
|
7062
|
+
* @param {string} username
|
|
7063
|
+
* @param {*} [options] Override http request option.
|
|
7064
|
+
* @throws {RequiredError}
|
|
7065
|
+
*/
|
|
7066
|
+
listAccountCronJobsV1: (username: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7067
|
+
};
|
|
7068
|
+
/**
|
|
7069
|
+
* HostingCronJobsApi - functional programming interface
|
|
7070
|
+
* @export
|
|
7071
|
+
*/
|
|
7072
|
+
export declare const HostingCronJobsApiFp: (configuration?: Configuration) => {
|
|
7073
|
+
/**
|
|
7074
|
+
* Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
|
|
7075
|
+
* @summary Create account cron job
|
|
7076
|
+
* @param {string} username
|
|
7077
|
+
* @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
|
|
7078
|
+
* @param {*} [options] Override http request option.
|
|
7079
|
+
* @throws {RequiredError}
|
|
7080
|
+
*/
|
|
7081
|
+
createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CronJobsCronJobResource>>;
|
|
7082
|
+
/**
|
|
7083
|
+
* Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
7084
|
+
* @summary Delete account cron job
|
|
7085
|
+
* @param {string} username
|
|
7086
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
7087
|
+
* @param {*} [options] Override http request option.
|
|
7088
|
+
* @throws {RequiredError}
|
|
7089
|
+
*/
|
|
7090
|
+
deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
7091
|
+
/**
|
|
7092
|
+
* Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
7093
|
+
* @summary Get cron job output
|
|
7094
|
+
* @param {string} username
|
|
7095
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
7096
|
+
* @param {*} [options] Override http request option.
|
|
7097
|
+
* @throws {RequiredError}
|
|
7098
|
+
*/
|
|
7099
|
+
getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CronJobsCronJobOutputResource>>;
|
|
7100
|
+
/**
|
|
7101
|
+
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
7102
|
+
* @summary List account cron jobs
|
|
7103
|
+
* @param {string} username
|
|
7104
|
+
* @param {*} [options] Override http request option.
|
|
7105
|
+
* @throws {RequiredError}
|
|
7106
|
+
*/
|
|
7107
|
+
listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1CronJobsCronJobResource>>>;
|
|
7108
|
+
};
|
|
7109
|
+
/**
|
|
7110
|
+
* HostingCronJobsApi - factory interface
|
|
7111
|
+
* @export
|
|
7112
|
+
*/
|
|
7113
|
+
export declare const HostingCronJobsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
7114
|
+
/**
|
|
7115
|
+
* Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
|
|
7116
|
+
* @summary Create account cron job
|
|
7117
|
+
* @param {string} username
|
|
7118
|
+
* @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
|
|
7119
|
+
* @param {*} [options] Override http request option.
|
|
7120
|
+
* @throws {RequiredError}
|
|
7121
|
+
*/
|
|
7122
|
+
createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CronJobsCronJobResource>;
|
|
7123
|
+
/**
|
|
7124
|
+
* Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
7125
|
+
* @summary Delete account cron job
|
|
7126
|
+
* @param {string} username
|
|
7127
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
7128
|
+
* @param {*} [options] Override http request option.
|
|
7129
|
+
* @throws {RequiredError}
|
|
7130
|
+
*/
|
|
7131
|
+
deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
7132
|
+
/**
|
|
7133
|
+
* Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
7134
|
+
* @summary Get cron job output
|
|
7135
|
+
* @param {string} username
|
|
7136
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
7137
|
+
* @param {*} [options] Override http request option.
|
|
7138
|
+
* @throws {RequiredError}
|
|
7139
|
+
*/
|
|
7140
|
+
getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CronJobsCronJobOutputResource>;
|
|
7141
|
+
/**
|
|
7142
|
+
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
7143
|
+
* @summary List account cron jobs
|
|
7144
|
+
* @param {string} username
|
|
7145
|
+
* @param {*} [options] Override http request option.
|
|
7146
|
+
* @throws {RequiredError}
|
|
7147
|
+
*/
|
|
7148
|
+
listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1CronJobsCronJobResource>>;
|
|
7149
|
+
};
|
|
7150
|
+
/**
|
|
7151
|
+
* HostingCronJobsApi - object-oriented interface
|
|
7152
|
+
* @export
|
|
7153
|
+
* @class HostingCronJobsApi
|
|
7154
|
+
* @extends {BaseAPI}
|
|
7155
|
+
*/
|
|
7156
|
+
export declare class HostingCronJobsApi extends BaseAPI {
|
|
7157
|
+
/**
|
|
7158
|
+
* Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
|
|
7159
|
+
* @summary Create account cron job
|
|
7160
|
+
* @param {string} username
|
|
7161
|
+
* @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
|
|
7162
|
+
* @param {*} [options] Override http request option.
|
|
7163
|
+
* @throws {RequiredError}
|
|
7164
|
+
* @memberof HostingCronJobsApi
|
|
7165
|
+
*/
|
|
7166
|
+
createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1CronJobsCronJobResource, any, {}>>;
|
|
7167
|
+
/**
|
|
7168
|
+
* Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
7169
|
+
* @summary Delete account cron job
|
|
7170
|
+
* @param {string} username
|
|
7171
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
7172
|
+
* @param {*} [options] Override http request option.
|
|
7173
|
+
* @throws {RequiredError}
|
|
7174
|
+
* @memberof HostingCronJobsApi
|
|
7175
|
+
*/
|
|
7176
|
+
deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
7177
|
+
/**
|
|
7178
|
+
* Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
7179
|
+
* @summary Get cron job output
|
|
7180
|
+
* @param {string} username
|
|
7181
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
7182
|
+
* @param {*} [options] Override http request option.
|
|
7183
|
+
* @throws {RequiredError}
|
|
7184
|
+
* @memberof HostingCronJobsApi
|
|
7185
|
+
*/
|
|
7186
|
+
getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1CronJobsCronJobOutputResource, any, {}>>;
|
|
7187
|
+
/**
|
|
7188
|
+
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
7189
|
+
* @summary List account cron jobs
|
|
7190
|
+
* @param {string} username
|
|
7191
|
+
* @param {*} [options] Override http request option.
|
|
7192
|
+
* @throws {RequiredError}
|
|
7193
|
+
* @memberof HostingCronJobsApi
|
|
7194
|
+
*/
|
|
7195
|
+
listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1CronJobsCronJobResource[], any, {}>>;
|
|
7196
|
+
}
|
|
6964
7197
|
/**
|
|
6965
7198
|
* HostingDatabasesApi - axios parameter creator
|
|
6966
7199
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.
|
|
7
|
+
* API Version: 0.22.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -21,9 +21,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = 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.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.HostingV1WordpressInstallWordpressRequestAutoUpdatesEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
|
|
23
23
|
exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = 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.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = void 0;
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = void 0;
|
|
24
|
+
exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.HostingWordpressApi = exports.HostingWordpressApiFactory = exports.HostingWordpressApiFp = exports.HostingWordpressApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = 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.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = void 0;
|
|
25
|
+
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 = 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.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = void 0;
|
|
26
|
+
exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = void 0;
|
|
27
27
|
const axios_1 = require("axios");
|
|
28
28
|
// Some imports not used depending on template conditions
|
|
29
29
|
// @ts-ignore
|
|
@@ -3899,6 +3899,338 @@ class HorizonsWebsitesApi extends base_1.BaseAPI {
|
|
|
3899
3899
|
}
|
|
3900
3900
|
}
|
|
3901
3901
|
exports.HorizonsWebsitesApi = HorizonsWebsitesApi;
|
|
3902
|
+
/**
|
|
3903
|
+
* HostingCronJobsApi - axios parameter creator
|
|
3904
|
+
* @export
|
|
3905
|
+
*/
|
|
3906
|
+
const HostingCronJobsApiAxiosParamCreator = function (configuration) {
|
|
3907
|
+
return {
|
|
3908
|
+
/**
|
|
3909
|
+
* Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
|
|
3910
|
+
* @summary Create account cron job
|
|
3911
|
+
* @param {string} username
|
|
3912
|
+
* @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
|
|
3913
|
+
* @param {*} [options] Override http request option.
|
|
3914
|
+
* @throws {RequiredError}
|
|
3915
|
+
*/
|
|
3916
|
+
createAccountCronJobV1: (username_1, hostingV1CronJobsCreateCronJobRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1CronJobsCreateCronJobRequest_1, ...args_1], void 0, function* (username, hostingV1CronJobsCreateCronJobRequest, options = {}) {
|
|
3917
|
+
// verify required parameter 'username' is not null or undefined
|
|
3918
|
+
(0, common_1.assertParamExists)('createAccountCronJobV1', 'username', username);
|
|
3919
|
+
// verify required parameter 'hostingV1CronJobsCreateCronJobRequest' is not null or undefined
|
|
3920
|
+
(0, common_1.assertParamExists)('createAccountCronJobV1', 'hostingV1CronJobsCreateCronJobRequest', hostingV1CronJobsCreateCronJobRequest);
|
|
3921
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
|
|
3922
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
3923
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3924
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3925
|
+
let baseOptions;
|
|
3926
|
+
if (configuration) {
|
|
3927
|
+
baseOptions = configuration.baseOptions;
|
|
3928
|
+
}
|
|
3929
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3930
|
+
const localVarHeaderParameter = {};
|
|
3931
|
+
const localVarQueryParameter = {};
|
|
3932
|
+
// authentication apiToken required
|
|
3933
|
+
// http bearer authentication required
|
|
3934
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3935
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3936
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3937
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3938
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3939
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1CronJobsCreateCronJobRequest, localVarRequestOptions, configuration);
|
|
3940
|
+
return {
|
|
3941
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3942
|
+
options: localVarRequestOptions,
|
|
3943
|
+
};
|
|
3944
|
+
}),
|
|
3945
|
+
/**
|
|
3946
|
+
* Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
3947
|
+
* @summary Delete account cron job
|
|
3948
|
+
* @param {string} username
|
|
3949
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
3950
|
+
* @param {*} [options] Override http request option.
|
|
3951
|
+
* @throws {RequiredError}
|
|
3952
|
+
*/
|
|
3953
|
+
deleteAccountCronJobV1: (username_1, uid_1, ...args_1) => __awaiter(this, [username_1, uid_1, ...args_1], void 0, function* (username, uid, options = {}) {
|
|
3954
|
+
// verify required parameter 'username' is not null or undefined
|
|
3955
|
+
(0, common_1.assertParamExists)('deleteAccountCronJobV1', 'username', username);
|
|
3956
|
+
// verify required parameter 'uid' is not null or undefined
|
|
3957
|
+
(0, common_1.assertParamExists)('deleteAccountCronJobV1', 'uid', uid);
|
|
3958
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}`
|
|
3959
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3960
|
+
.replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
|
|
3961
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3962
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3963
|
+
let baseOptions;
|
|
3964
|
+
if (configuration) {
|
|
3965
|
+
baseOptions = configuration.baseOptions;
|
|
3966
|
+
}
|
|
3967
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3968
|
+
const localVarHeaderParameter = {};
|
|
3969
|
+
const localVarQueryParameter = {};
|
|
3970
|
+
// authentication apiToken required
|
|
3971
|
+
// http bearer authentication required
|
|
3972
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3973
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3974
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3975
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3976
|
+
return {
|
|
3977
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3978
|
+
options: localVarRequestOptions,
|
|
3979
|
+
};
|
|
3980
|
+
}),
|
|
3981
|
+
/**
|
|
3982
|
+
* Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
3983
|
+
* @summary Get cron job output
|
|
3984
|
+
* @param {string} username
|
|
3985
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
3986
|
+
* @param {*} [options] Override http request option.
|
|
3987
|
+
* @throws {RequiredError}
|
|
3988
|
+
*/
|
|
3989
|
+
getCronJobOutputV1: (username_1, uid_1, ...args_1) => __awaiter(this, [username_1, uid_1, ...args_1], void 0, function* (username, uid, options = {}) {
|
|
3990
|
+
// verify required parameter 'username' is not null or undefined
|
|
3991
|
+
(0, common_1.assertParamExists)('getCronJobOutputV1', 'username', username);
|
|
3992
|
+
// verify required parameter 'uid' is not null or undefined
|
|
3993
|
+
(0, common_1.assertParamExists)('getCronJobOutputV1', 'uid', uid);
|
|
3994
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output`
|
|
3995
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3996
|
+
.replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
|
|
3997
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3998
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3999
|
+
let baseOptions;
|
|
4000
|
+
if (configuration) {
|
|
4001
|
+
baseOptions = configuration.baseOptions;
|
|
4002
|
+
}
|
|
4003
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4004
|
+
const localVarHeaderParameter = {};
|
|
4005
|
+
const localVarQueryParameter = {};
|
|
4006
|
+
// authentication apiToken required
|
|
4007
|
+
// http bearer authentication required
|
|
4008
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4009
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4010
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4011
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4012
|
+
return {
|
|
4013
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4014
|
+
options: localVarRequestOptions,
|
|
4015
|
+
};
|
|
4016
|
+
}),
|
|
4017
|
+
/**
|
|
4018
|
+
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
4019
|
+
* @summary List account cron jobs
|
|
4020
|
+
* @param {string} username
|
|
4021
|
+
* @param {*} [options] Override http request option.
|
|
4022
|
+
* @throws {RequiredError}
|
|
4023
|
+
*/
|
|
4024
|
+
listAccountCronJobsV1: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
|
|
4025
|
+
// verify required parameter 'username' is not null or undefined
|
|
4026
|
+
(0, common_1.assertParamExists)('listAccountCronJobsV1', 'username', username);
|
|
4027
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
|
|
4028
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
4029
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4030
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4031
|
+
let baseOptions;
|
|
4032
|
+
if (configuration) {
|
|
4033
|
+
baseOptions = configuration.baseOptions;
|
|
4034
|
+
}
|
|
4035
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4036
|
+
const localVarHeaderParameter = {};
|
|
4037
|
+
const localVarQueryParameter = {};
|
|
4038
|
+
// authentication apiToken required
|
|
4039
|
+
// http bearer authentication required
|
|
4040
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4041
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4042
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4043
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4044
|
+
return {
|
|
4045
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4046
|
+
options: localVarRequestOptions,
|
|
4047
|
+
};
|
|
4048
|
+
}),
|
|
4049
|
+
};
|
|
4050
|
+
};
|
|
4051
|
+
exports.HostingCronJobsApiAxiosParamCreator = HostingCronJobsApiAxiosParamCreator;
|
|
4052
|
+
/**
|
|
4053
|
+
* HostingCronJobsApi - functional programming interface
|
|
4054
|
+
* @export
|
|
4055
|
+
*/
|
|
4056
|
+
const HostingCronJobsApiFp = function (configuration) {
|
|
4057
|
+
const localVarAxiosParamCreator = (0, exports.HostingCronJobsApiAxiosParamCreator)(configuration);
|
|
4058
|
+
return {
|
|
4059
|
+
/**
|
|
4060
|
+
* Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
|
|
4061
|
+
* @summary Create account cron job
|
|
4062
|
+
* @param {string} username
|
|
4063
|
+
* @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
|
|
4064
|
+
* @param {*} [options] Override http request option.
|
|
4065
|
+
* @throws {RequiredError}
|
|
4066
|
+
*/
|
|
4067
|
+
createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options) {
|
|
4068
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4069
|
+
var _a, _b;
|
|
4070
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options);
|
|
4071
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCronJobsApi.createAccountCronJobV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4072
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4073
|
+
});
|
|
4074
|
+
},
|
|
4075
|
+
/**
|
|
4076
|
+
* Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
4077
|
+
* @summary Delete account cron job
|
|
4078
|
+
* @param {string} username
|
|
4079
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
4080
|
+
* @param {*} [options] Override http request option.
|
|
4081
|
+
* @throws {RequiredError}
|
|
4082
|
+
*/
|
|
4083
|
+
deleteAccountCronJobV1(username, uid, options) {
|
|
4084
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4085
|
+
var _a, _b;
|
|
4086
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAccountCronJobV1(username, uid, options);
|
|
4087
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCronJobsApi.deleteAccountCronJobV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4088
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4089
|
+
});
|
|
4090
|
+
},
|
|
4091
|
+
/**
|
|
4092
|
+
* Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
4093
|
+
* @summary Get cron job output
|
|
4094
|
+
* @param {string} username
|
|
4095
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
4096
|
+
* @param {*} [options] Override http request option.
|
|
4097
|
+
* @throws {RequiredError}
|
|
4098
|
+
*/
|
|
4099
|
+
getCronJobOutputV1(username, uid, options) {
|
|
4100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4101
|
+
var _a, _b;
|
|
4102
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCronJobOutputV1(username, uid, options);
|
|
4103
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCronJobsApi.getCronJobOutputV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4104
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4105
|
+
});
|
|
4106
|
+
},
|
|
4107
|
+
/**
|
|
4108
|
+
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
4109
|
+
* @summary List account cron jobs
|
|
4110
|
+
* @param {string} username
|
|
4111
|
+
* @param {*} [options] Override http request option.
|
|
4112
|
+
* @throws {RequiredError}
|
|
4113
|
+
*/
|
|
4114
|
+
listAccountCronJobsV1(username, options) {
|
|
4115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4116
|
+
var _a, _b;
|
|
4117
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAccountCronJobsV1(username, options);
|
|
4118
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCronJobsApi.listAccountCronJobsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4119
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4120
|
+
});
|
|
4121
|
+
},
|
|
4122
|
+
};
|
|
4123
|
+
};
|
|
4124
|
+
exports.HostingCronJobsApiFp = HostingCronJobsApiFp;
|
|
4125
|
+
/**
|
|
4126
|
+
* HostingCronJobsApi - factory interface
|
|
4127
|
+
* @export
|
|
4128
|
+
*/
|
|
4129
|
+
const HostingCronJobsApiFactory = function (configuration, basePath, axios) {
|
|
4130
|
+
const localVarFp = (0, exports.HostingCronJobsApiFp)(configuration);
|
|
4131
|
+
return {
|
|
4132
|
+
/**
|
|
4133
|
+
* Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
|
|
4134
|
+
* @summary Create account cron job
|
|
4135
|
+
* @param {string} username
|
|
4136
|
+
* @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
|
|
4137
|
+
* @param {*} [options] Override http request option.
|
|
4138
|
+
* @throws {RequiredError}
|
|
4139
|
+
*/
|
|
4140
|
+
createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options) {
|
|
4141
|
+
return localVarFp.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(axios, basePath));
|
|
4142
|
+
},
|
|
4143
|
+
/**
|
|
4144
|
+
* Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
4145
|
+
* @summary Delete account cron job
|
|
4146
|
+
* @param {string} username
|
|
4147
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
4148
|
+
* @param {*} [options] Override http request option.
|
|
4149
|
+
* @throws {RequiredError}
|
|
4150
|
+
*/
|
|
4151
|
+
deleteAccountCronJobV1(username, uid, options) {
|
|
4152
|
+
return localVarFp.deleteAccountCronJobV1(username, uid, options).then((request) => request(axios, basePath));
|
|
4153
|
+
},
|
|
4154
|
+
/**
|
|
4155
|
+
* Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
4156
|
+
* @summary Get cron job output
|
|
4157
|
+
* @param {string} username
|
|
4158
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
4159
|
+
* @param {*} [options] Override http request option.
|
|
4160
|
+
* @throws {RequiredError}
|
|
4161
|
+
*/
|
|
4162
|
+
getCronJobOutputV1(username, uid, options) {
|
|
4163
|
+
return localVarFp.getCronJobOutputV1(username, uid, options).then((request) => request(axios, basePath));
|
|
4164
|
+
},
|
|
4165
|
+
/**
|
|
4166
|
+
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
4167
|
+
* @summary List account cron jobs
|
|
4168
|
+
* @param {string} username
|
|
4169
|
+
* @param {*} [options] Override http request option.
|
|
4170
|
+
* @throws {RequiredError}
|
|
4171
|
+
*/
|
|
4172
|
+
listAccountCronJobsV1(username, options) {
|
|
4173
|
+
return localVarFp.listAccountCronJobsV1(username, options).then((request) => request(axios, basePath));
|
|
4174
|
+
},
|
|
4175
|
+
};
|
|
4176
|
+
};
|
|
4177
|
+
exports.HostingCronJobsApiFactory = HostingCronJobsApiFactory;
|
|
4178
|
+
/**
|
|
4179
|
+
* HostingCronJobsApi - object-oriented interface
|
|
4180
|
+
* @export
|
|
4181
|
+
* @class HostingCronJobsApi
|
|
4182
|
+
* @extends {BaseAPI}
|
|
4183
|
+
*/
|
|
4184
|
+
class HostingCronJobsApi extends base_1.BaseAPI {
|
|
4185
|
+
/**
|
|
4186
|
+
* Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
|
|
4187
|
+
* @summary Create account cron job
|
|
4188
|
+
* @param {string} username
|
|
4189
|
+
* @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
|
|
4190
|
+
* @param {*} [options] Override http request option.
|
|
4191
|
+
* @throws {RequiredError}
|
|
4192
|
+
* @memberof HostingCronJobsApi
|
|
4193
|
+
*/
|
|
4194
|
+
createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options) {
|
|
4195
|
+
return (0, exports.HostingCronJobsApiFp)(this.configuration).createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4196
|
+
}
|
|
4197
|
+
/**
|
|
4198
|
+
* Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
4199
|
+
* @summary Delete account cron job
|
|
4200
|
+
* @param {string} username
|
|
4201
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
4202
|
+
* @param {*} [options] Override http request option.
|
|
4203
|
+
* @throws {RequiredError}
|
|
4204
|
+
* @memberof HostingCronJobsApi
|
|
4205
|
+
*/
|
|
4206
|
+
deleteAccountCronJobV1(username, uid, options) {
|
|
4207
|
+
return (0, exports.HostingCronJobsApiFp)(this.configuration).deleteAccountCronJobV1(username, uid, options).then((request) => request(this.axios, this.basePath));
|
|
4208
|
+
}
|
|
4209
|
+
/**
|
|
4210
|
+
* Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
4211
|
+
* @summary Get cron job output
|
|
4212
|
+
* @param {string} username
|
|
4213
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
4214
|
+
* @param {*} [options] Override http request option.
|
|
4215
|
+
* @throws {RequiredError}
|
|
4216
|
+
* @memberof HostingCronJobsApi
|
|
4217
|
+
*/
|
|
4218
|
+
getCronJobOutputV1(username, uid, options) {
|
|
4219
|
+
return (0, exports.HostingCronJobsApiFp)(this.configuration).getCronJobOutputV1(username, uid, options).then((request) => request(this.axios, this.basePath));
|
|
4220
|
+
}
|
|
4221
|
+
/**
|
|
4222
|
+
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
4223
|
+
* @summary List account cron jobs
|
|
4224
|
+
* @param {string} username
|
|
4225
|
+
* @param {*} [options] Override http request option.
|
|
4226
|
+
* @throws {RequiredError}
|
|
4227
|
+
* @memberof HostingCronJobsApi
|
|
4228
|
+
*/
|
|
4229
|
+
listAccountCronJobsV1(username, options) {
|
|
4230
|
+
return (0, exports.HostingCronJobsApiFp)(this.configuration).listAccountCronJobsV1(username, options).then((request) => request(this.axios, this.basePath));
|
|
4231
|
+
}
|
|
4232
|
+
}
|
|
4233
|
+
exports.HostingCronJobsApi = HostingCronJobsApi;
|
|
3902
4234
|
/**
|
|
3903
4235
|
* HostingDatabasesApi - axios parameter creator
|
|
3904
4236
|
* @export
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.
|
|
4
|
+
* API Version: 0.22.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.
|
|
7
|
+
* API Version: 0.22.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|