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 CHANGED
@@ -1,9 +1,9 @@
1
- ## hostinger-api-sdk@0.0.23
1
+ ## hostinger-api-sdk@0.0.25
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install hostinger-api-sdk@0.0.23 --save
8
+ npm install hostinger-api-sdk@0.0.25 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.20.0
6
+ * API Version: 0.22.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -2149,6 +2149,69 @@ export interface HostingListWebsitesV1200Response {
2149
2149
  */
2150
2150
  'meta': CommonSchemaPaginationMetaSchema;
2151
2151
  }
2152
+ /**
2153
+ *
2154
+ * @export
2155
+ * @interface HostingV1CronJobsCreateCronJobRequest
2156
+ */
2157
+ export interface HostingV1CronJobsCreateCronJobRequest {
2158
+ /**
2159
+ * Cron schedule expression (for example \"0 2 * * *\" runs daily at 02:00).
2160
+ * @type {string}
2161
+ * @memberof HostingV1CronJobsCreateCronJobRequest
2162
+ */
2163
+ 'time': string;
2164
+ /**
2165
+ * Command to execute on the schedule.
2166
+ * @type {string}
2167
+ * @memberof HostingV1CronJobsCreateCronJobRequest
2168
+ */
2169
+ 'command': string;
2170
+ }
2171
+ /**
2172
+ *
2173
+ * @export
2174
+ * @interface HostingV1CronJobsCronJobOutputResource
2175
+ */
2176
+ export interface HostingV1CronJobsCronJobOutputResource {
2177
+ /**
2178
+ * Output captured from the last cron job execution. Empty when the cron job has not run yet.
2179
+ * @type {string}
2180
+ * @memberof HostingV1CronJobsCronJobOutputResource
2181
+ */
2182
+ 'output': string;
2183
+ }
2184
+ /**
2185
+ *
2186
+ * @export
2187
+ * @interface HostingV1CronJobsCronJobResource
2188
+ */
2189
+ export interface HostingV1CronJobsCronJobResource {
2190
+ /**
2191
+ * Unique identifier of the cron job. Use it to delete the cron job or fetch its output.
2192
+ * @type {string}
2193
+ * @memberof HostingV1CronJobsCronJobResource
2194
+ */
2195
+ 'uid': string;
2196
+ /**
2197
+ * Username of the account that owns the cron job.
2198
+ * @type {string}
2199
+ * @memberof HostingV1CronJobsCronJobResource
2200
+ */
2201
+ 'username': string;
2202
+ /**
2203
+ * Cron schedule expression.
2204
+ * @type {string}
2205
+ * @memberof HostingV1CronJobsCronJobResource
2206
+ */
2207
+ 'time': string;
2208
+ /**
2209
+ * Command executed on the schedule.
2210
+ * @type {string}
2211
+ * @memberof HostingV1CronJobsCronJobResource
2212
+ */
2213
+ 'command': string;
2214
+ }
2152
2215
  /**
2153
2216
  *
2154
2217
  * @export
@@ -8985,6 +9048,356 @@ export class HorizonsWebsitesApi extends BaseAPI {
8985
9048
 
8986
9049
 
8987
9050
 
9051
+ /**
9052
+ * HostingCronJobsApi - axios parameter creator
9053
+ * @export
9054
+ */
9055
+ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Configuration) {
9056
+ return {
9057
+ /**
9058
+ * 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.
9059
+ * @summary Create account cron job
9060
+ * @param {string} username
9061
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
9062
+ * @param {*} [options] Override http request option.
9063
+ * @throws {RequiredError}
9064
+ */
9065
+ createAccountCronJobV1: async (username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9066
+ // verify required parameter 'username' is not null or undefined
9067
+ assertParamExists('createAccountCronJobV1', 'username', username)
9068
+ // verify required parameter 'hostingV1CronJobsCreateCronJobRequest' is not null or undefined
9069
+ assertParamExists('createAccountCronJobV1', 'hostingV1CronJobsCreateCronJobRequest', hostingV1CronJobsCreateCronJobRequest)
9070
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
9071
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
9072
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9073
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9074
+ let baseOptions;
9075
+ if (configuration) {
9076
+ baseOptions = configuration.baseOptions;
9077
+ }
9078
+
9079
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9080
+ const localVarHeaderParameter = {} as any;
9081
+ const localVarQueryParameter = {} as any;
9082
+
9083
+ // authentication apiToken required
9084
+ // http bearer authentication required
9085
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9086
+
9087
+
9088
+
9089
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9090
+
9091
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9092
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9093
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9094
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1CronJobsCreateCronJobRequest, localVarRequestOptions, configuration)
9095
+
9096
+ return {
9097
+ url: toPathString(localVarUrlObj),
9098
+ options: localVarRequestOptions,
9099
+ };
9100
+ },
9101
+ /**
9102
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
9103
+ * @summary Delete account cron job
9104
+ * @param {string} username
9105
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9106
+ * @param {*} [options] Override http request option.
9107
+ * @throws {RequiredError}
9108
+ */
9109
+ deleteAccountCronJobV1: async (username: string, uid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9110
+ // verify required parameter 'username' is not null or undefined
9111
+ assertParamExists('deleteAccountCronJobV1', 'username', username)
9112
+ // verify required parameter 'uid' is not null or undefined
9113
+ assertParamExists('deleteAccountCronJobV1', 'uid', uid)
9114
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}`
9115
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
9116
+ .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
9117
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9118
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9119
+ let baseOptions;
9120
+ if (configuration) {
9121
+ baseOptions = configuration.baseOptions;
9122
+ }
9123
+
9124
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
9125
+ const localVarHeaderParameter = {} as any;
9126
+ const localVarQueryParameter = {} as any;
9127
+
9128
+ // authentication apiToken required
9129
+ // http bearer authentication required
9130
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9131
+
9132
+
9133
+
9134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9136
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9137
+
9138
+ return {
9139
+ url: toPathString(localVarUrlObj),
9140
+ options: localVarRequestOptions,
9141
+ };
9142
+ },
9143
+ /**
9144
+ * 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.
9145
+ * @summary Get cron job output
9146
+ * @param {string} username
9147
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9148
+ * @param {*} [options] Override http request option.
9149
+ * @throws {RequiredError}
9150
+ */
9151
+ getCronJobOutputV1: async (username: string, uid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9152
+ // verify required parameter 'username' is not null or undefined
9153
+ assertParamExists('getCronJobOutputV1', 'username', username)
9154
+ // verify required parameter 'uid' is not null or undefined
9155
+ assertParamExists('getCronJobOutputV1', 'uid', uid)
9156
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output`
9157
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
9158
+ .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
9159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9160
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9161
+ let baseOptions;
9162
+ if (configuration) {
9163
+ baseOptions = configuration.baseOptions;
9164
+ }
9165
+
9166
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9167
+ const localVarHeaderParameter = {} as any;
9168
+ const localVarQueryParameter = {} as any;
9169
+
9170
+ // authentication apiToken required
9171
+ // http bearer authentication required
9172
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9173
+
9174
+
9175
+
9176
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9177
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9178
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9179
+
9180
+ return {
9181
+ url: toPathString(localVarUrlObj),
9182
+ options: localVarRequestOptions,
9183
+ };
9184
+ },
9185
+ /**
9186
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
9187
+ * @summary List account cron jobs
9188
+ * @param {string} username
9189
+ * @param {*} [options] Override http request option.
9190
+ * @throws {RequiredError}
9191
+ */
9192
+ listAccountCronJobsV1: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9193
+ // verify required parameter 'username' is not null or undefined
9194
+ assertParamExists('listAccountCronJobsV1', 'username', username)
9195
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
9196
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
9197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9198
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9199
+ let baseOptions;
9200
+ if (configuration) {
9201
+ baseOptions = configuration.baseOptions;
9202
+ }
9203
+
9204
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9205
+ const localVarHeaderParameter = {} as any;
9206
+ const localVarQueryParameter = {} as any;
9207
+
9208
+ // authentication apiToken required
9209
+ // http bearer authentication required
9210
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9211
+
9212
+
9213
+
9214
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9216
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9217
+
9218
+ return {
9219
+ url: toPathString(localVarUrlObj),
9220
+ options: localVarRequestOptions,
9221
+ };
9222
+ },
9223
+ }
9224
+ };
9225
+
9226
+ /**
9227
+ * HostingCronJobsApi - functional programming interface
9228
+ * @export
9229
+ */
9230
+ export const HostingCronJobsApiFp = function(configuration?: Configuration) {
9231
+ const localVarAxiosParamCreator = HostingCronJobsApiAxiosParamCreator(configuration)
9232
+ return {
9233
+ /**
9234
+ * 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.
9235
+ * @summary Create account cron job
9236
+ * @param {string} username
9237
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
9238
+ * @param {*} [options] Override http request option.
9239
+ * @throws {RequiredError}
9240
+ */
9241
+ async createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CronJobsCronJobResource>> {
9242
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options);
9243
+ const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.createAccountCronJobV1']?.[0]?.url;
9244
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9245
+ },
9246
+ /**
9247
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
9248
+ * @summary Delete account cron job
9249
+ * @param {string} username
9250
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9251
+ * @param {*} [options] Override http request option.
9252
+ * @throws {RequiredError}
9253
+ */
9254
+ async deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
9255
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccountCronJobV1(username, uid, options);
9256
+ const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.deleteAccountCronJobV1']?.[0]?.url;
9257
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9258
+ },
9259
+ /**
9260
+ * 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.
9261
+ * @summary Get cron job output
9262
+ * @param {string} username
9263
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9264
+ * @param {*} [options] Override http request option.
9265
+ * @throws {RequiredError}
9266
+ */
9267
+ async getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CronJobsCronJobOutputResource>> {
9268
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCronJobOutputV1(username, uid, options);
9269
+ const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.getCronJobOutputV1']?.[0]?.url;
9270
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9271
+ },
9272
+ /**
9273
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
9274
+ * @summary List account cron jobs
9275
+ * @param {string} username
9276
+ * @param {*} [options] Override http request option.
9277
+ * @throws {RequiredError}
9278
+ */
9279
+ async listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1CronJobsCronJobResource>>> {
9280
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountCronJobsV1(username, options);
9281
+ const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.listAccountCronJobsV1']?.[0]?.url;
9282
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9283
+ },
9284
+ }
9285
+ };
9286
+
9287
+ /**
9288
+ * HostingCronJobsApi - factory interface
9289
+ * @export
9290
+ */
9291
+ export const HostingCronJobsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9292
+ const localVarFp = HostingCronJobsApiFp(configuration)
9293
+ return {
9294
+ /**
9295
+ * 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.
9296
+ * @summary Create account cron job
9297
+ * @param {string} username
9298
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
9299
+ * @param {*} [options] Override http request option.
9300
+ * @throws {RequiredError}
9301
+ */
9302
+ createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CronJobsCronJobResource> {
9303
+ return localVarFp.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(axios, basePath));
9304
+ },
9305
+ /**
9306
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
9307
+ * @summary Delete account cron job
9308
+ * @param {string} username
9309
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9310
+ * @param {*} [options] Override http request option.
9311
+ * @throws {RequiredError}
9312
+ */
9313
+ deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
9314
+ return localVarFp.deleteAccountCronJobV1(username, uid, options).then((request) => request(axios, basePath));
9315
+ },
9316
+ /**
9317
+ * 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.
9318
+ * @summary Get cron job output
9319
+ * @param {string} username
9320
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9321
+ * @param {*} [options] Override http request option.
9322
+ * @throws {RequiredError}
9323
+ */
9324
+ getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CronJobsCronJobOutputResource> {
9325
+ return localVarFp.getCronJobOutputV1(username, uid, options).then((request) => request(axios, basePath));
9326
+ },
9327
+ /**
9328
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
9329
+ * @summary List account cron jobs
9330
+ * @param {string} username
9331
+ * @param {*} [options] Override http request option.
9332
+ * @throws {RequiredError}
9333
+ */
9334
+ listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1CronJobsCronJobResource>> {
9335
+ return localVarFp.listAccountCronJobsV1(username, options).then((request) => request(axios, basePath));
9336
+ },
9337
+ };
9338
+ };
9339
+
9340
+ /**
9341
+ * HostingCronJobsApi - object-oriented interface
9342
+ * @export
9343
+ * @class HostingCronJobsApi
9344
+ * @extends {BaseAPI}
9345
+ */
9346
+ export class HostingCronJobsApi extends BaseAPI {
9347
+ /**
9348
+ * 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.
9349
+ * @summary Create account cron job
9350
+ * @param {string} username
9351
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
9352
+ * @param {*} [options] Override http request option.
9353
+ * @throws {RequiredError}
9354
+ * @memberof HostingCronJobsApi
9355
+ */
9356
+ public createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig) {
9357
+ return HostingCronJobsApiFp(this.configuration).createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(this.axios, this.basePath));
9358
+ }
9359
+
9360
+ /**
9361
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
9362
+ * @summary Delete account cron job
9363
+ * @param {string} username
9364
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9365
+ * @param {*} [options] Override http request option.
9366
+ * @throws {RequiredError}
9367
+ * @memberof HostingCronJobsApi
9368
+ */
9369
+ public deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig) {
9370
+ return HostingCronJobsApiFp(this.configuration).deleteAccountCronJobV1(username, uid, options).then((request) => request(this.axios, this.basePath));
9371
+ }
9372
+
9373
+ /**
9374
+ * 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.
9375
+ * @summary Get cron job output
9376
+ * @param {string} username
9377
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9378
+ * @param {*} [options] Override http request option.
9379
+ * @throws {RequiredError}
9380
+ * @memberof HostingCronJobsApi
9381
+ */
9382
+ public getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig) {
9383
+ return HostingCronJobsApiFp(this.configuration).getCronJobOutputV1(username, uid, options).then((request) => request(this.axios, this.basePath));
9384
+ }
9385
+
9386
+ /**
9387
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
9388
+ * @summary List account cron jobs
9389
+ * @param {string} username
9390
+ * @param {*} [options] Override http request option.
9391
+ * @throws {RequiredError}
9392
+ * @memberof HostingCronJobsApi
9393
+ */
9394
+ public listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig) {
9395
+ return HostingCronJobsApiFp(this.configuration).listAccountCronJobsV1(username, options).then((request) => request(this.axios, this.basePath));
9396
+ }
9397
+ }
9398
+
9399
+
9400
+
8988
9401
  /**
8989
9402
  * HostingDatabasesApi - axios parameter creator
8990
9403
  * @export
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.20.0
6
+ * API Version: 0.22.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.20.0
6
+ * API Version: 0.22.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.20.0
6
+ * API Version: 0.22.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/0.0.23",
51
+ 'User-Agent': "hostinger-typescript-sdk/0.0.25",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };