hostinger-api-sdk 0.0.26 → 1.1.0
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 +9653 -7541
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +5026 -3721
- package/dist/api.js +1671 -214
- 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 +5026 -3721
- package/dist/esm/api.js +1655 -206
- 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/{HostingWordpressApi.md → WordPressInstallationsApi.md} +12 -12
- package/docs/WordPressPluginsApi.md +658 -0
- package/docs/WordPressThemesApi.md +369 -0
- package/docs/WordPressV1CommonVulnerabilityResource.md +28 -0
- package/docs/{HostingV1WordpressInstallWordpressRequest.md → WordPressV1InstallationsInstallWordPressRequest.md} +5 -5
- package/docs/{HostingV1WordpressInstallWordpressRequestCredentials.md → WordPressV1InstallationsInstallWordPressRequestCredentials.md} +3 -3
- package/docs/{HostingV1WordpressInstallWordpressRequestDatabase.md → WordPressV1InstallationsInstallWordPressRequestDatabase.md} +3 -3
- package/docs/{HostingV1WordpressWordpressInstallationResource.md → WordPressV1InstallationsWordPressInstallationResource.md} +3 -3
- package/docs/WordPressV1PluginsActivatePluginRequest.md +20 -0
- package/docs/WordPressV1PluginsAvailablePluginResource.md +38 -0
- package/docs/WordPressV1PluginsDeactivatePluginRequest.md +20 -0
- package/docs/WordPressV1PluginsInstallPluginsRequest.md +20 -0
- package/docs/WordPressV1PluginsInstalledPluginResource.md +30 -0
- package/docs/WordPressV1PluginsPluginResource.md +26 -0
- package/docs/WordPressV1PluginsPluginResourceIcons.md +23 -0
- package/docs/WordPressV1PluginsSuggestedPluginGroupResource.md +22 -0
- package/docs/WordPressV1PluginsSuggestedPluginResource.md +40 -0
- package/docs/WordPressV1PluginsUninstallPluginsRequest.md +20 -0
- package/docs/WordPressV1PluginsUpdateHostingerPluginRequest.md +20 -0
- package/docs/WordPressV1PluginsUpdatePluginsRequest.md +20 -0
- package/docs/WordPressV1PluginsWoocommerceInstalledResource.md +20 -0
- package/docs/WordPressV1ThemesActivateThemeRequest.md +20 -0
- package/docs/WordPressV1ThemesInstallThemeRequest.md +26 -0
- package/docs/WordPressV1ThemesInstalledThemeResource.md +30 -0
- package/docs/WordPressV1ThemesThemeResource.md +34 -0
- package/docs/WordPressV1ThemesUninstallThemesRequest.md +20 -0
- package/docs/WordPressV1ThemesUpdateThemesRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version:
|
|
6
|
+
* API Version: 1.1.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
|
|
@@ -206,11 +206,6 @@ export const HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
|
|
|
206
206
|
Parked: 'parked',
|
|
207
207
|
Subdomain: 'subdomain'
|
|
208
208
|
};
|
|
209
|
-
export const HostingV1WordpressInstallWordpressRequestAutoUpdatesEnum = {
|
|
210
|
-
All: 'all',
|
|
211
|
-
None: 'none',
|
|
212
|
-
Minor: 'minor'
|
|
213
|
-
};
|
|
214
209
|
export const ReachV1ContactsContactResourceSubscriptionStatusEnum = {
|
|
215
210
|
Subscribed: 'subscribed',
|
|
216
211
|
Unsubscribed: 'unsubscribed'
|
|
@@ -380,6 +375,43 @@ export const VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
|
|
|
380
375
|
Unlocked: 'unlocked',
|
|
381
376
|
Locked: 'locked'
|
|
382
377
|
};
|
|
378
|
+
export const WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = {
|
|
379
|
+
All: 'all',
|
|
380
|
+
None: 'none',
|
|
381
|
+
Minor: 'minor'
|
|
382
|
+
};
|
|
383
|
+
export const WordPressV1PluginsInstalledPluginResourceStatusEnum = {
|
|
384
|
+
Active: 'active',
|
|
385
|
+
Inactive: 'inactive'
|
|
386
|
+
};
|
|
387
|
+
export const WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = {
|
|
388
|
+
Business: 'business',
|
|
389
|
+
OnlineStore: 'online-store',
|
|
390
|
+
Blog: 'blog',
|
|
391
|
+
Portfolio: 'portfolio',
|
|
392
|
+
AffiliateMarketing: 'affiliate-marketing',
|
|
393
|
+
Other: 'other',
|
|
394
|
+
Default: 'default'
|
|
395
|
+
};
|
|
396
|
+
export const WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = {
|
|
397
|
+
Hostinger: 'hostinger',
|
|
398
|
+
HostingerAiAssistant: 'hostinger-ai-assistant',
|
|
399
|
+
HostingerAffiliatePlugin: 'hostinger-affiliate-plugin',
|
|
400
|
+
HostingerEasyOnboarding: 'hostinger-easy-onboarding',
|
|
401
|
+
HostingerReach: 'hostinger-reach'
|
|
402
|
+
};
|
|
403
|
+
export const WordPressV1ThemesInstallThemeRequestFontEnum = {
|
|
404
|
+
Professional: 'professional',
|
|
405
|
+
Modern: 'modern',
|
|
406
|
+
Elegant: 'elegant',
|
|
407
|
+
Creative: 'creative',
|
|
408
|
+
Dynamic: 'dynamic',
|
|
409
|
+
Default: 'default'
|
|
410
|
+
};
|
|
411
|
+
export const WordPressV1ThemesInstalledThemeResourceStatusEnum = {
|
|
412
|
+
Active: 'active',
|
|
413
|
+
Inactive: 'inactive'
|
|
414
|
+
};
|
|
383
415
|
/**
|
|
384
416
|
* BillingCatalogApi - axios parameter creator
|
|
385
417
|
* @export
|
|
@@ -6320,206 +6352,6 @@ export class HostingWebsitesApi extends BaseAPI {
|
|
|
6320
6352
|
return HostingWebsitesApiFp(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options).then((request) => request(this.axios, this.basePath));
|
|
6321
6353
|
}
|
|
6322
6354
|
}
|
|
6323
|
-
/**
|
|
6324
|
-
* HostingWordpressApi - axios parameter creator
|
|
6325
|
-
* @export
|
|
6326
|
-
*/
|
|
6327
|
-
export const HostingWordpressApiAxiosParamCreator = function (configuration) {
|
|
6328
|
-
return {
|
|
6329
|
-
/**
|
|
6330
|
-
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
6331
|
-
* @summary Install WordPress
|
|
6332
|
-
* @param {string} username
|
|
6333
|
-
* @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
|
|
6334
|
-
* @param {*} [options] Override http request option.
|
|
6335
|
-
* @throws {RequiredError}
|
|
6336
|
-
*/
|
|
6337
|
-
installWordPressV1: (username_1, hostingV1WordpressInstallWordpressRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1WordpressInstallWordpressRequest_1, ...args_1], void 0, function* (username, hostingV1WordpressInstallWordpressRequest, options = {}) {
|
|
6338
|
-
// verify required parameter 'username' is not null or undefined
|
|
6339
|
-
assertParamExists('installWordPressV1', 'username', username);
|
|
6340
|
-
// verify required parameter 'hostingV1WordpressInstallWordpressRequest' is not null or undefined
|
|
6341
|
-
assertParamExists('installWordPressV1', 'hostingV1WordpressInstallWordpressRequest', hostingV1WordpressInstallWordpressRequest);
|
|
6342
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
|
|
6343
|
-
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
6344
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6345
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6346
|
-
let baseOptions;
|
|
6347
|
-
if (configuration) {
|
|
6348
|
-
baseOptions = configuration.baseOptions;
|
|
6349
|
-
}
|
|
6350
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6351
|
-
const localVarHeaderParameter = {};
|
|
6352
|
-
const localVarQueryParameter = {};
|
|
6353
|
-
// authentication apiToken required
|
|
6354
|
-
// http bearer authentication required
|
|
6355
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6356
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6357
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6358
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6359
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6360
|
-
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1WordpressInstallWordpressRequest, localVarRequestOptions, configuration);
|
|
6361
|
-
return {
|
|
6362
|
-
url: toPathString(localVarUrlObj),
|
|
6363
|
-
options: localVarRequestOptions,
|
|
6364
|
-
};
|
|
6365
|
-
}),
|
|
6366
|
-
/**
|
|
6367
|
-
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
6368
|
-
* @summary List WordPress installations
|
|
6369
|
-
* @param {string | null} [username] Filter by specific username
|
|
6370
|
-
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
6371
|
-
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
6372
|
-
* @param {*} [options] Override http request option.
|
|
6373
|
-
* @throws {RequiredError}
|
|
6374
|
-
*/
|
|
6375
|
-
listWordPressInstallationsV1: (username_1, domain_1, ownership_1, ...args_1) => __awaiter(this, [username_1, domain_1, ownership_1, ...args_1], void 0, function* (username, domain, ownership, options = {}) {
|
|
6376
|
-
const localVarPath = `/api/hosting/v1/wordpress/installations`;
|
|
6377
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6378
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6379
|
-
let baseOptions;
|
|
6380
|
-
if (configuration) {
|
|
6381
|
-
baseOptions = configuration.baseOptions;
|
|
6382
|
-
}
|
|
6383
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6384
|
-
const localVarHeaderParameter = {};
|
|
6385
|
-
const localVarQueryParameter = {};
|
|
6386
|
-
// authentication apiToken required
|
|
6387
|
-
// http bearer authentication required
|
|
6388
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6389
|
-
if (username !== undefined) {
|
|
6390
|
-
localVarQueryParameter['username'] = username;
|
|
6391
|
-
}
|
|
6392
|
-
if (domain !== undefined) {
|
|
6393
|
-
localVarQueryParameter['domain'] = domain;
|
|
6394
|
-
}
|
|
6395
|
-
if (ownership !== undefined) {
|
|
6396
|
-
localVarQueryParameter['ownership'] = ownership;
|
|
6397
|
-
}
|
|
6398
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6399
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6400
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6401
|
-
return {
|
|
6402
|
-
url: toPathString(localVarUrlObj),
|
|
6403
|
-
options: localVarRequestOptions,
|
|
6404
|
-
};
|
|
6405
|
-
}),
|
|
6406
|
-
};
|
|
6407
|
-
};
|
|
6408
|
-
/**
|
|
6409
|
-
* HostingWordpressApi - functional programming interface
|
|
6410
|
-
* @export
|
|
6411
|
-
*/
|
|
6412
|
-
export const HostingWordpressApiFp = function (configuration) {
|
|
6413
|
-
const localVarAxiosParamCreator = HostingWordpressApiAxiosParamCreator(configuration);
|
|
6414
|
-
return {
|
|
6415
|
-
/**
|
|
6416
|
-
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
6417
|
-
* @summary Install WordPress
|
|
6418
|
-
* @param {string} username
|
|
6419
|
-
* @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
|
|
6420
|
-
* @param {*} [options] Override http request option.
|
|
6421
|
-
* @throws {RequiredError}
|
|
6422
|
-
*/
|
|
6423
|
-
installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options) {
|
|
6424
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6425
|
-
var _a, _b;
|
|
6426
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options);
|
|
6427
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingWordpressApi.installWordPressV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6428
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6429
|
-
});
|
|
6430
|
-
},
|
|
6431
|
-
/**
|
|
6432
|
-
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
6433
|
-
* @summary List WordPress installations
|
|
6434
|
-
* @param {string | null} [username] Filter by specific username
|
|
6435
|
-
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
6436
|
-
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
6437
|
-
* @param {*} [options] Override http request option.
|
|
6438
|
-
* @throws {RequiredError}
|
|
6439
|
-
*/
|
|
6440
|
-
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
6441
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6442
|
-
var _a, _b;
|
|
6443
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
|
|
6444
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingWordpressApi.listWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6445
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6446
|
-
});
|
|
6447
|
-
},
|
|
6448
|
-
};
|
|
6449
|
-
};
|
|
6450
|
-
/**
|
|
6451
|
-
* HostingWordpressApi - factory interface
|
|
6452
|
-
* @export
|
|
6453
|
-
*/
|
|
6454
|
-
export const HostingWordpressApiFactory = function (configuration, basePath, axios) {
|
|
6455
|
-
const localVarFp = HostingWordpressApiFp(configuration);
|
|
6456
|
-
return {
|
|
6457
|
-
/**
|
|
6458
|
-
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
6459
|
-
* @summary Install WordPress
|
|
6460
|
-
* @param {string} username
|
|
6461
|
-
* @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
|
|
6462
|
-
* @param {*} [options] Override http request option.
|
|
6463
|
-
* @throws {RequiredError}
|
|
6464
|
-
*/
|
|
6465
|
-
installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options) {
|
|
6466
|
-
return localVarFp.installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options).then((request) => request(axios, basePath));
|
|
6467
|
-
},
|
|
6468
|
-
/**
|
|
6469
|
-
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
6470
|
-
* @summary List WordPress installations
|
|
6471
|
-
* @param {string | null} [username] Filter by specific username
|
|
6472
|
-
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
6473
|
-
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
6474
|
-
* @param {*} [options] Override http request option.
|
|
6475
|
-
* @throws {RequiredError}
|
|
6476
|
-
*/
|
|
6477
|
-
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
6478
|
-
return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
|
|
6479
|
-
},
|
|
6480
|
-
};
|
|
6481
|
-
};
|
|
6482
|
-
/**
|
|
6483
|
-
* HostingWordpressApi - object-oriented interface
|
|
6484
|
-
* @export
|
|
6485
|
-
* @class HostingWordpressApi
|
|
6486
|
-
* @extends {BaseAPI}
|
|
6487
|
-
*/
|
|
6488
|
-
export class HostingWordpressApi extends BaseAPI {
|
|
6489
|
-
/**
|
|
6490
|
-
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
6491
|
-
* @summary Install WordPress
|
|
6492
|
-
* @param {string} username
|
|
6493
|
-
* @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
|
|
6494
|
-
* @param {*} [options] Override http request option.
|
|
6495
|
-
* @throws {RequiredError}
|
|
6496
|
-
* @memberof HostingWordpressApi
|
|
6497
|
-
*/
|
|
6498
|
-
installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options) {
|
|
6499
|
-
return HostingWordpressApiFp(this.configuration).installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6500
|
-
}
|
|
6501
|
-
/**
|
|
6502
|
-
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
6503
|
-
* @summary List WordPress installations
|
|
6504
|
-
* @param {string | null} [username] Filter by specific username
|
|
6505
|
-
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
6506
|
-
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
6507
|
-
* @param {*} [options] Override http request option.
|
|
6508
|
-
* @throws {RequiredError}
|
|
6509
|
-
* @memberof HostingWordpressApi
|
|
6510
|
-
*/
|
|
6511
|
-
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
6512
|
-
return HostingWordpressApiFp(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
|
|
6513
|
-
}
|
|
6514
|
-
}
|
|
6515
|
-
/**
|
|
6516
|
-
* @export
|
|
6517
|
-
*/
|
|
6518
|
-
export const ListWordPressInstallationsV1OwnershipEnum = {
|
|
6519
|
-
Owned: 'owned',
|
|
6520
|
-
Managed: 'managed',
|
|
6521
|
-
All: 'all'
|
|
6522
|
-
};
|
|
6523
6355
|
/**
|
|
6524
6356
|
* ReachContactsApi - axios parameter creator
|
|
6525
6357
|
* @export
|
|
@@ -12398,3 +12230,1620 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
12398
12230
|
return VPSVirtualMachineApiFp(this.configuration).stopVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
12399
12231
|
}
|
|
12400
12232
|
}
|
|
12233
|
+
/**
|
|
12234
|
+
* WordPressInstallationsApi - axios parameter creator
|
|
12235
|
+
* @export
|
|
12236
|
+
*/
|
|
12237
|
+
export const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
|
|
12238
|
+
return {
|
|
12239
|
+
/**
|
|
12240
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
12241
|
+
* @summary Install WordPress
|
|
12242
|
+
* @param {string} username
|
|
12243
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
12244
|
+
* @param {*} [options] Override http request option.
|
|
12245
|
+
* @throws {RequiredError}
|
|
12246
|
+
*/
|
|
12247
|
+
installWordPressV1: (username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1) => __awaiter(this, [username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1], void 0, function* (username, wordPressV1InstallationsInstallWordPressRequest, options = {}) {
|
|
12248
|
+
// verify required parameter 'username' is not null or undefined
|
|
12249
|
+
assertParamExists('installWordPressV1', 'username', username);
|
|
12250
|
+
// verify required parameter 'wordPressV1InstallationsInstallWordPressRequest' is not null or undefined
|
|
12251
|
+
assertParamExists('installWordPressV1', 'wordPressV1InstallationsInstallWordPressRequest', wordPressV1InstallationsInstallWordPressRequest);
|
|
12252
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
|
|
12253
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
12254
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12255
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12256
|
+
let baseOptions;
|
|
12257
|
+
if (configuration) {
|
|
12258
|
+
baseOptions = configuration.baseOptions;
|
|
12259
|
+
}
|
|
12260
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12261
|
+
const localVarHeaderParameter = {};
|
|
12262
|
+
const localVarQueryParameter = {};
|
|
12263
|
+
// authentication apiToken required
|
|
12264
|
+
// http bearer authentication required
|
|
12265
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12266
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12267
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12268
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12269
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12270
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsInstallWordPressRequest, localVarRequestOptions, configuration);
|
|
12271
|
+
return {
|
|
12272
|
+
url: toPathString(localVarUrlObj),
|
|
12273
|
+
options: localVarRequestOptions,
|
|
12274
|
+
};
|
|
12275
|
+
}),
|
|
12276
|
+
/**
|
|
12277
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
12278
|
+
* @summary List WordPress installations
|
|
12279
|
+
* @param {string | null} [username] Filter by specific username
|
|
12280
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12281
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
12282
|
+
* @param {*} [options] Override http request option.
|
|
12283
|
+
* @throws {RequiredError}
|
|
12284
|
+
*/
|
|
12285
|
+
listWordPressInstallationsV1: (username_1, domain_1, ownership_1, ...args_1) => __awaiter(this, [username_1, domain_1, ownership_1, ...args_1], void 0, function* (username, domain, ownership, options = {}) {
|
|
12286
|
+
const localVarPath = `/api/hosting/v1/wordpress/installations`;
|
|
12287
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12288
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12289
|
+
let baseOptions;
|
|
12290
|
+
if (configuration) {
|
|
12291
|
+
baseOptions = configuration.baseOptions;
|
|
12292
|
+
}
|
|
12293
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12294
|
+
const localVarHeaderParameter = {};
|
|
12295
|
+
const localVarQueryParameter = {};
|
|
12296
|
+
// authentication apiToken required
|
|
12297
|
+
// http bearer authentication required
|
|
12298
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12299
|
+
if (username !== undefined) {
|
|
12300
|
+
localVarQueryParameter['username'] = username;
|
|
12301
|
+
}
|
|
12302
|
+
if (domain !== undefined) {
|
|
12303
|
+
localVarQueryParameter['domain'] = domain;
|
|
12304
|
+
}
|
|
12305
|
+
if (ownership !== undefined) {
|
|
12306
|
+
localVarQueryParameter['ownership'] = ownership;
|
|
12307
|
+
}
|
|
12308
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12309
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12310
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12311
|
+
return {
|
|
12312
|
+
url: toPathString(localVarUrlObj),
|
|
12313
|
+
options: localVarRequestOptions,
|
|
12314
|
+
};
|
|
12315
|
+
}),
|
|
12316
|
+
};
|
|
12317
|
+
};
|
|
12318
|
+
/**
|
|
12319
|
+
* WordPressInstallationsApi - functional programming interface
|
|
12320
|
+
* @export
|
|
12321
|
+
*/
|
|
12322
|
+
export const WordPressInstallationsApiFp = function (configuration) {
|
|
12323
|
+
const localVarAxiosParamCreator = WordPressInstallationsApiAxiosParamCreator(configuration);
|
|
12324
|
+
return {
|
|
12325
|
+
/**
|
|
12326
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
12327
|
+
* @summary Install WordPress
|
|
12328
|
+
* @param {string} username
|
|
12329
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
12330
|
+
* @param {*} [options] Override http request option.
|
|
12331
|
+
* @throws {RequiredError}
|
|
12332
|
+
*/
|
|
12333
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
12334
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12335
|
+
var _a, _b;
|
|
12336
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options);
|
|
12337
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.installWordPressV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12338
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12339
|
+
});
|
|
12340
|
+
},
|
|
12341
|
+
/**
|
|
12342
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
12343
|
+
* @summary List WordPress installations
|
|
12344
|
+
* @param {string | null} [username] Filter by specific username
|
|
12345
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12346
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
12347
|
+
* @param {*} [options] Override http request option.
|
|
12348
|
+
* @throws {RequiredError}
|
|
12349
|
+
*/
|
|
12350
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
12351
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12352
|
+
var _a, _b;
|
|
12353
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
|
|
12354
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.listWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12355
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12356
|
+
});
|
|
12357
|
+
},
|
|
12358
|
+
};
|
|
12359
|
+
};
|
|
12360
|
+
/**
|
|
12361
|
+
* WordPressInstallationsApi - factory interface
|
|
12362
|
+
* @export
|
|
12363
|
+
*/
|
|
12364
|
+
export const WordPressInstallationsApiFactory = function (configuration, basePath, axios) {
|
|
12365
|
+
const localVarFp = WordPressInstallationsApiFp(configuration);
|
|
12366
|
+
return {
|
|
12367
|
+
/**
|
|
12368
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
12369
|
+
* @summary Install WordPress
|
|
12370
|
+
* @param {string} username
|
|
12371
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
12372
|
+
* @param {*} [options] Override http request option.
|
|
12373
|
+
* @throws {RequiredError}
|
|
12374
|
+
*/
|
|
12375
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
12376
|
+
return localVarFp.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(axios, basePath));
|
|
12377
|
+
},
|
|
12378
|
+
/**
|
|
12379
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
12380
|
+
* @summary List WordPress installations
|
|
12381
|
+
* @param {string | null} [username] Filter by specific username
|
|
12382
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12383
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
12384
|
+
* @param {*} [options] Override http request option.
|
|
12385
|
+
* @throws {RequiredError}
|
|
12386
|
+
*/
|
|
12387
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
12388
|
+
return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
|
|
12389
|
+
},
|
|
12390
|
+
};
|
|
12391
|
+
};
|
|
12392
|
+
/**
|
|
12393
|
+
* WordPressInstallationsApi - object-oriented interface
|
|
12394
|
+
* @export
|
|
12395
|
+
* @class WordPressInstallationsApi
|
|
12396
|
+
* @extends {BaseAPI}
|
|
12397
|
+
*/
|
|
12398
|
+
export class WordPressInstallationsApi extends BaseAPI {
|
|
12399
|
+
/**
|
|
12400
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
12401
|
+
* @summary Install WordPress
|
|
12402
|
+
* @param {string} username
|
|
12403
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
12404
|
+
* @param {*} [options] Override http request option.
|
|
12405
|
+
* @throws {RequiredError}
|
|
12406
|
+
* @memberof WordPressInstallationsApi
|
|
12407
|
+
*/
|
|
12408
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
12409
|
+
return WordPressInstallationsApiFp(this.configuration).installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12410
|
+
}
|
|
12411
|
+
/**
|
|
12412
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
12413
|
+
* @summary List WordPress installations
|
|
12414
|
+
* @param {string | null} [username] Filter by specific username
|
|
12415
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12416
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
12417
|
+
* @param {*} [options] Override http request option.
|
|
12418
|
+
* @throws {RequiredError}
|
|
12419
|
+
* @memberof WordPressInstallationsApi
|
|
12420
|
+
*/
|
|
12421
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
12422
|
+
return WordPressInstallationsApiFp(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
|
|
12423
|
+
}
|
|
12424
|
+
}
|
|
12425
|
+
/**
|
|
12426
|
+
* @export
|
|
12427
|
+
*/
|
|
12428
|
+
export const ListWordPressInstallationsV1OwnershipEnum = {
|
|
12429
|
+
Owned: 'owned',
|
|
12430
|
+
Managed: 'managed',
|
|
12431
|
+
All: 'all'
|
|
12432
|
+
};
|
|
12433
|
+
/**
|
|
12434
|
+
* WordPressPluginsApi - axios parameter creator
|
|
12435
|
+
* @export
|
|
12436
|
+
*/
|
|
12437
|
+
export const WordPressPluginsApiAxiosParamCreator = function (configuration) {
|
|
12438
|
+
return {
|
|
12439
|
+
/**
|
|
12440
|
+
* Activate an installed plugin on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the activation job has been queued.
|
|
12441
|
+
* @summary Activate WordPress plugin
|
|
12442
|
+
* @param {string} username
|
|
12443
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12444
|
+
* @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
|
|
12445
|
+
* @param {*} [options] Override http request option.
|
|
12446
|
+
* @throws {RequiredError}
|
|
12447
|
+
*/
|
|
12448
|
+
activateWordPressPluginV1: (username_1, software_1, wordPressV1PluginsActivatePluginRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1PluginsActivatePluginRequest_1, ...args_1], void 0, function* (username, software, wordPressV1PluginsActivatePluginRequest, options = {}) {
|
|
12449
|
+
// verify required parameter 'username' is not null or undefined
|
|
12450
|
+
assertParamExists('activateWordPressPluginV1', 'username', username);
|
|
12451
|
+
// verify required parameter 'software' is not null or undefined
|
|
12452
|
+
assertParamExists('activateWordPressPluginV1', 'software', software);
|
|
12453
|
+
// verify required parameter 'wordPressV1PluginsActivatePluginRequest' is not null or undefined
|
|
12454
|
+
assertParamExists('activateWordPressPluginV1', 'wordPressV1PluginsActivatePluginRequest', wordPressV1PluginsActivatePluginRequest);
|
|
12455
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/activate`
|
|
12456
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12457
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12458
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12459
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12460
|
+
let baseOptions;
|
|
12461
|
+
if (configuration) {
|
|
12462
|
+
baseOptions = configuration.baseOptions;
|
|
12463
|
+
}
|
|
12464
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12465
|
+
const localVarHeaderParameter = {};
|
|
12466
|
+
const localVarQueryParameter = {};
|
|
12467
|
+
// authentication apiToken required
|
|
12468
|
+
// http bearer authentication required
|
|
12469
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12470
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12471
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12473
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12474
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1PluginsActivatePluginRequest, localVarRequestOptions, configuration);
|
|
12475
|
+
return {
|
|
12476
|
+
url: toPathString(localVarUrlObj),
|
|
12477
|
+
options: localVarRequestOptions,
|
|
12478
|
+
};
|
|
12479
|
+
}),
|
|
12480
|
+
/**
|
|
12481
|
+
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
12482
|
+
* @summary Check if WooCommerce is installed
|
|
12483
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12484
|
+
* @param {*} [options] Override http request option.
|
|
12485
|
+
* @throws {RequiredError}
|
|
12486
|
+
*/
|
|
12487
|
+
checkIfWooCommerceIsInstalledV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
12488
|
+
const localVarPath = `/api/hosting/v1/wordpress/plugins/is-woocommerce-installed`;
|
|
12489
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12490
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12491
|
+
let baseOptions;
|
|
12492
|
+
if (configuration) {
|
|
12493
|
+
baseOptions = configuration.baseOptions;
|
|
12494
|
+
}
|
|
12495
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12496
|
+
const localVarHeaderParameter = {};
|
|
12497
|
+
const localVarQueryParameter = {};
|
|
12498
|
+
// authentication apiToken required
|
|
12499
|
+
// http bearer authentication required
|
|
12500
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12501
|
+
if (domain !== undefined) {
|
|
12502
|
+
localVarQueryParameter['domain'] = domain;
|
|
12503
|
+
}
|
|
12504
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12505
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12506
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12507
|
+
return {
|
|
12508
|
+
url: toPathString(localVarUrlObj),
|
|
12509
|
+
options: localVarRequestOptions,
|
|
12510
|
+
};
|
|
12511
|
+
}),
|
|
12512
|
+
/**
|
|
12513
|
+
* Deactivate an installed plugin on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the deactivation job has been queued.
|
|
12514
|
+
* @summary Deactivate WordPress plugin
|
|
12515
|
+
* @param {string} username
|
|
12516
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12517
|
+
* @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
|
|
12518
|
+
* @param {*} [options] Override http request option.
|
|
12519
|
+
* @throws {RequiredError}
|
|
12520
|
+
*/
|
|
12521
|
+
deactivateWordPressPluginV1: (username_1, software_1, wordPressV1PluginsDeactivatePluginRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1PluginsDeactivatePluginRequest_1, ...args_1], void 0, function* (username, software, wordPressV1PluginsDeactivatePluginRequest, options = {}) {
|
|
12522
|
+
// verify required parameter 'username' is not null or undefined
|
|
12523
|
+
assertParamExists('deactivateWordPressPluginV1', 'username', username);
|
|
12524
|
+
// verify required parameter 'software' is not null or undefined
|
|
12525
|
+
assertParamExists('deactivateWordPressPluginV1', 'software', software);
|
|
12526
|
+
// verify required parameter 'wordPressV1PluginsDeactivatePluginRequest' is not null or undefined
|
|
12527
|
+
assertParamExists('deactivateWordPressPluginV1', 'wordPressV1PluginsDeactivatePluginRequest', wordPressV1PluginsDeactivatePluginRequest);
|
|
12528
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/deactivate`
|
|
12529
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12530
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12531
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12532
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12533
|
+
let baseOptions;
|
|
12534
|
+
if (configuration) {
|
|
12535
|
+
baseOptions = configuration.baseOptions;
|
|
12536
|
+
}
|
|
12537
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12538
|
+
const localVarHeaderParameter = {};
|
|
12539
|
+
const localVarQueryParameter = {};
|
|
12540
|
+
// authentication apiToken required
|
|
12541
|
+
// http bearer authentication required
|
|
12542
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12543
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12544
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12545
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12546
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12547
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1PluginsDeactivatePluginRequest, localVarRequestOptions, configuration);
|
|
12548
|
+
return {
|
|
12549
|
+
url: toPathString(localVarUrlObj),
|
|
12550
|
+
options: localVarRequestOptions,
|
|
12551
|
+
};
|
|
12552
|
+
}),
|
|
12553
|
+
/**
|
|
12554
|
+
* Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
|
|
12555
|
+
* @summary Install WordPress plugins
|
|
12556
|
+
* @param {string} username
|
|
12557
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12558
|
+
* @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
|
|
12559
|
+
* @param {*} [options] Override http request option.
|
|
12560
|
+
* @throws {RequiredError}
|
|
12561
|
+
*/
|
|
12562
|
+
installWordPressPluginsV1: (username_1, software_1, wordPressV1PluginsInstallPluginsRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1PluginsInstallPluginsRequest_1, ...args_1], void 0, function* (username, software, wordPressV1PluginsInstallPluginsRequest, options = {}) {
|
|
12563
|
+
// verify required parameter 'username' is not null or undefined
|
|
12564
|
+
assertParamExists('installWordPressPluginsV1', 'username', username);
|
|
12565
|
+
// verify required parameter 'software' is not null or undefined
|
|
12566
|
+
assertParamExists('installWordPressPluginsV1', 'software', software);
|
|
12567
|
+
// verify required parameter 'wordPressV1PluginsInstallPluginsRequest' is not null or undefined
|
|
12568
|
+
assertParamExists('installWordPressPluginsV1', 'wordPressV1PluginsInstallPluginsRequest', wordPressV1PluginsInstallPluginsRequest);
|
|
12569
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install`
|
|
12570
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12571
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12572
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12573
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12574
|
+
let baseOptions;
|
|
12575
|
+
if (configuration) {
|
|
12576
|
+
baseOptions = configuration.baseOptions;
|
|
12577
|
+
}
|
|
12578
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12579
|
+
const localVarHeaderParameter = {};
|
|
12580
|
+
const localVarQueryParameter = {};
|
|
12581
|
+
// authentication apiToken required
|
|
12582
|
+
// http bearer authentication required
|
|
12583
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12584
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12585
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12586
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12587
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12588
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1PluginsInstallPluginsRequest, localVarRequestOptions, configuration);
|
|
12589
|
+
return {
|
|
12590
|
+
url: toPathString(localVarUrlObj),
|
|
12591
|
+
options: localVarRequestOptions,
|
|
12592
|
+
};
|
|
12593
|
+
}),
|
|
12594
|
+
/**
|
|
12595
|
+
* List plugins recommended for installation on a WordPress installation that are not yet installed. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
12596
|
+
* @summary List available WordPress plugins
|
|
12597
|
+
* @param {string} username
|
|
12598
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12599
|
+
* @param {*} [options] Override http request option.
|
|
12600
|
+
* @throws {RequiredError}
|
|
12601
|
+
*/
|
|
12602
|
+
listAvailableWordPressPluginsV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
12603
|
+
// verify required parameter 'username' is not null or undefined
|
|
12604
|
+
assertParamExists('listAvailableWordPressPluginsV1', 'username', username);
|
|
12605
|
+
// verify required parameter 'software' is not null or undefined
|
|
12606
|
+
assertParamExists('listAvailableWordPressPluginsV1', 'software', software);
|
|
12607
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/available`
|
|
12608
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12609
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12610
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12611
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12612
|
+
let baseOptions;
|
|
12613
|
+
if (configuration) {
|
|
12614
|
+
baseOptions = configuration.baseOptions;
|
|
12615
|
+
}
|
|
12616
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12617
|
+
const localVarHeaderParameter = {};
|
|
12618
|
+
const localVarQueryParameter = {};
|
|
12619
|
+
// authentication apiToken required
|
|
12620
|
+
// http bearer authentication required
|
|
12621
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12622
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12623
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12624
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12625
|
+
return {
|
|
12626
|
+
url: toPathString(localVarUrlObj),
|
|
12627
|
+
options: localVarRequestOptions,
|
|
12628
|
+
};
|
|
12629
|
+
}),
|
|
12630
|
+
/**
|
|
12631
|
+
* List plugins installed on a WordPress installation, including their status, available updates and known vulnerabilities. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
12632
|
+
* @summary List installed WordPress plugins
|
|
12633
|
+
* @param {string} username
|
|
12634
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12635
|
+
* @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
|
|
12636
|
+
* @param {*} [options] Override http request option.
|
|
12637
|
+
* @throws {RequiredError}
|
|
12638
|
+
*/
|
|
12639
|
+
listInstalledWordPressPluginsV1: (username_1, software_1, category_1, ...args_1) => __awaiter(this, [username_1, software_1, category_1, ...args_1], void 0, function* (username, software, category, options = {}) {
|
|
12640
|
+
// verify required parameter 'username' is not null or undefined
|
|
12641
|
+
assertParamExists('listInstalledWordPressPluginsV1', 'username', username);
|
|
12642
|
+
// verify required parameter 'software' is not null or undefined
|
|
12643
|
+
assertParamExists('listInstalledWordPressPluginsV1', 'software', software);
|
|
12644
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins`
|
|
12645
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12646
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12648
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12649
|
+
let baseOptions;
|
|
12650
|
+
if (configuration) {
|
|
12651
|
+
baseOptions = configuration.baseOptions;
|
|
12652
|
+
}
|
|
12653
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12654
|
+
const localVarHeaderParameter = {};
|
|
12655
|
+
const localVarQueryParameter = {};
|
|
12656
|
+
// authentication apiToken required
|
|
12657
|
+
// http bearer authentication required
|
|
12658
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12659
|
+
if (category !== undefined) {
|
|
12660
|
+
localVarQueryParameter['category'] = category;
|
|
12661
|
+
}
|
|
12662
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12663
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12664
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12665
|
+
return {
|
|
12666
|
+
url: toPathString(localVarUrlObj),
|
|
12667
|
+
options: localVarRequestOptions,
|
|
12668
|
+
};
|
|
12669
|
+
}),
|
|
12670
|
+
/**
|
|
12671
|
+
* List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
12672
|
+
* @summary List suggested WordPress plugins
|
|
12673
|
+
* @param {number | null} [orderId] Optionally scope suggestions to a specific order.
|
|
12674
|
+
* @param {*} [options] Override http request option.
|
|
12675
|
+
* @throws {RequiredError}
|
|
12676
|
+
*/
|
|
12677
|
+
listSuggestedWordPressPluginsV1: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
|
|
12678
|
+
const localVarPath = `/api/hosting/v1/wordpress/plugins/suggested`;
|
|
12679
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12680
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12681
|
+
let baseOptions;
|
|
12682
|
+
if (configuration) {
|
|
12683
|
+
baseOptions = configuration.baseOptions;
|
|
12684
|
+
}
|
|
12685
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12686
|
+
const localVarHeaderParameter = {};
|
|
12687
|
+
const localVarQueryParameter = {};
|
|
12688
|
+
// authentication apiToken required
|
|
12689
|
+
// http bearer authentication required
|
|
12690
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12691
|
+
if (orderId !== undefined) {
|
|
12692
|
+
localVarQueryParameter['order_id'] = orderId;
|
|
12693
|
+
}
|
|
12694
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12695
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12696
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12697
|
+
return {
|
|
12698
|
+
url: toPathString(localVarUrlObj),
|
|
12699
|
+
options: localVarRequestOptions,
|
|
12700
|
+
};
|
|
12701
|
+
}),
|
|
12702
|
+
/**
|
|
12703
|
+
* Search the WordPress.org plugin directory for plugins available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
12704
|
+
* @summary Search WordPress plugins
|
|
12705
|
+
* @param {string} search Search term to match against plugin names. Minimum 3 characters.
|
|
12706
|
+
* @param {*} [options] Override http request option.
|
|
12707
|
+
* @throws {RequiredError}
|
|
12708
|
+
*/
|
|
12709
|
+
searchWordPressPluginsV1: (search_1, ...args_1) => __awaiter(this, [search_1, ...args_1], void 0, function* (search, options = {}) {
|
|
12710
|
+
// verify required parameter 'search' is not null or undefined
|
|
12711
|
+
assertParamExists('searchWordPressPluginsV1', 'search', search);
|
|
12712
|
+
const localVarPath = `/api/hosting/v1/wordpress/plugins`;
|
|
12713
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12714
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12715
|
+
let baseOptions;
|
|
12716
|
+
if (configuration) {
|
|
12717
|
+
baseOptions = configuration.baseOptions;
|
|
12718
|
+
}
|
|
12719
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12720
|
+
const localVarHeaderParameter = {};
|
|
12721
|
+
const localVarQueryParameter = {};
|
|
12722
|
+
// authentication apiToken required
|
|
12723
|
+
// http bearer authentication required
|
|
12724
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12725
|
+
if (search !== undefined) {
|
|
12726
|
+
localVarQueryParameter['search'] = search;
|
|
12727
|
+
}
|
|
12728
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12729
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12730
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12731
|
+
return {
|
|
12732
|
+
url: toPathString(localVarUrlObj),
|
|
12733
|
+
options: localVarRequestOptions,
|
|
12734
|
+
};
|
|
12735
|
+
}),
|
|
12736
|
+
/**
|
|
12737
|
+
* Uninstall one or more plugins from a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the uninstall job has been queued.
|
|
12738
|
+
* @summary Uninstall WordPress plugins
|
|
12739
|
+
* @param {string} username
|
|
12740
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12741
|
+
* @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
|
|
12742
|
+
* @param {*} [options] Override http request option.
|
|
12743
|
+
* @throws {RequiredError}
|
|
12744
|
+
*/
|
|
12745
|
+
uninstallWordPressPluginsV1: (username_1, software_1, wordPressV1PluginsUninstallPluginsRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1PluginsUninstallPluginsRequest_1, ...args_1], void 0, function* (username, software, wordPressV1PluginsUninstallPluginsRequest, options = {}) {
|
|
12746
|
+
// verify required parameter 'username' is not null or undefined
|
|
12747
|
+
assertParamExists('uninstallWordPressPluginsV1', 'username', username);
|
|
12748
|
+
// verify required parameter 'software' is not null or undefined
|
|
12749
|
+
assertParamExists('uninstallWordPressPluginsV1', 'software', software);
|
|
12750
|
+
// verify required parameter 'wordPressV1PluginsUninstallPluginsRequest' is not null or undefined
|
|
12751
|
+
assertParamExists('uninstallWordPressPluginsV1', 'wordPressV1PluginsUninstallPluginsRequest', wordPressV1PluginsUninstallPluginsRequest);
|
|
12752
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/uninstall`
|
|
12753
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12754
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12755
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12756
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12757
|
+
let baseOptions;
|
|
12758
|
+
if (configuration) {
|
|
12759
|
+
baseOptions = configuration.baseOptions;
|
|
12760
|
+
}
|
|
12761
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12762
|
+
const localVarHeaderParameter = {};
|
|
12763
|
+
const localVarQueryParameter = {};
|
|
12764
|
+
// authentication apiToken required
|
|
12765
|
+
// http bearer authentication required
|
|
12766
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12767
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12768
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12769
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12770
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12771
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1PluginsUninstallPluginsRequest, localVarRequestOptions, configuration);
|
|
12772
|
+
return {
|
|
12773
|
+
url: toPathString(localVarUrlObj),
|
|
12774
|
+
options: localVarRequestOptions,
|
|
12775
|
+
};
|
|
12776
|
+
}),
|
|
12777
|
+
/**
|
|
12778
|
+
* Update a Hostinger plugin to its latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
12779
|
+
* @summary Update Hostinger WordPress plugin
|
|
12780
|
+
* @param {string} username
|
|
12781
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12782
|
+
* @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
|
|
12783
|
+
* @param {*} [options] Override http request option.
|
|
12784
|
+
* @throws {RequiredError}
|
|
12785
|
+
*/
|
|
12786
|
+
updateHostingerWordPressPluginV1: (username_1, software_1, wordPressV1PluginsUpdateHostingerPluginRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1PluginsUpdateHostingerPluginRequest_1, ...args_1], void 0, function* (username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options = {}) {
|
|
12787
|
+
// verify required parameter 'username' is not null or undefined
|
|
12788
|
+
assertParamExists('updateHostingerWordPressPluginV1', 'username', username);
|
|
12789
|
+
// verify required parameter 'software' is not null or undefined
|
|
12790
|
+
assertParamExists('updateHostingerWordPressPluginV1', 'software', software);
|
|
12791
|
+
// verify required parameter 'wordPressV1PluginsUpdateHostingerPluginRequest' is not null or undefined
|
|
12792
|
+
assertParamExists('updateHostingerWordPressPluginV1', 'wordPressV1PluginsUpdateHostingerPluginRequest', wordPressV1PluginsUpdateHostingerPluginRequest);
|
|
12793
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/hostinger/update`
|
|
12794
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12795
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12796
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12797
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12798
|
+
let baseOptions;
|
|
12799
|
+
if (configuration) {
|
|
12800
|
+
baseOptions = configuration.baseOptions;
|
|
12801
|
+
}
|
|
12802
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12803
|
+
const localVarHeaderParameter = {};
|
|
12804
|
+
const localVarQueryParameter = {};
|
|
12805
|
+
// authentication apiToken required
|
|
12806
|
+
// http bearer authentication required
|
|
12807
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12808
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12809
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12810
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12811
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12812
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1PluginsUpdateHostingerPluginRequest, localVarRequestOptions, configuration);
|
|
12813
|
+
return {
|
|
12814
|
+
url: toPathString(localVarUrlObj),
|
|
12815
|
+
options: localVarRequestOptions,
|
|
12816
|
+
};
|
|
12817
|
+
}),
|
|
12818
|
+
/**
|
|
12819
|
+
* Update one or more installed plugins to their latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
12820
|
+
* @summary Update WordPress plugins
|
|
12821
|
+
* @param {string} username
|
|
12822
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12823
|
+
* @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
|
|
12824
|
+
* @param {*} [options] Override http request option.
|
|
12825
|
+
* @throws {RequiredError}
|
|
12826
|
+
*/
|
|
12827
|
+
updateWordPressPluginsV1: (username_1, software_1, wordPressV1PluginsUpdatePluginsRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1PluginsUpdatePluginsRequest_1, ...args_1], void 0, function* (username, software, wordPressV1PluginsUpdatePluginsRequest, options = {}) {
|
|
12828
|
+
// verify required parameter 'username' is not null or undefined
|
|
12829
|
+
assertParamExists('updateWordPressPluginsV1', 'username', username);
|
|
12830
|
+
// verify required parameter 'software' is not null or undefined
|
|
12831
|
+
assertParamExists('updateWordPressPluginsV1', 'software', software);
|
|
12832
|
+
// verify required parameter 'wordPressV1PluginsUpdatePluginsRequest' is not null or undefined
|
|
12833
|
+
assertParamExists('updateWordPressPluginsV1', 'wordPressV1PluginsUpdatePluginsRequest', wordPressV1PluginsUpdatePluginsRequest);
|
|
12834
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/update`
|
|
12835
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12836
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12837
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12838
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12839
|
+
let baseOptions;
|
|
12840
|
+
if (configuration) {
|
|
12841
|
+
baseOptions = configuration.baseOptions;
|
|
12842
|
+
}
|
|
12843
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12844
|
+
const localVarHeaderParameter = {};
|
|
12845
|
+
const localVarQueryParameter = {};
|
|
12846
|
+
// authentication apiToken required
|
|
12847
|
+
// http bearer authentication required
|
|
12848
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12849
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12850
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12851
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12852
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12853
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1PluginsUpdatePluginsRequest, localVarRequestOptions, configuration);
|
|
12854
|
+
return {
|
|
12855
|
+
url: toPathString(localVarUrlObj),
|
|
12856
|
+
options: localVarRequestOptions,
|
|
12857
|
+
};
|
|
12858
|
+
}),
|
|
12859
|
+
};
|
|
12860
|
+
};
|
|
12861
|
+
/**
|
|
12862
|
+
* WordPressPluginsApi - functional programming interface
|
|
12863
|
+
* @export
|
|
12864
|
+
*/
|
|
12865
|
+
export const WordPressPluginsApiFp = function (configuration) {
|
|
12866
|
+
const localVarAxiosParamCreator = WordPressPluginsApiAxiosParamCreator(configuration);
|
|
12867
|
+
return {
|
|
12868
|
+
/**
|
|
12869
|
+
* Activate an installed plugin on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the activation job has been queued.
|
|
12870
|
+
* @summary Activate WordPress plugin
|
|
12871
|
+
* @param {string} username
|
|
12872
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12873
|
+
* @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
|
|
12874
|
+
* @param {*} [options] Override http request option.
|
|
12875
|
+
* @throws {RequiredError}
|
|
12876
|
+
*/
|
|
12877
|
+
activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options) {
|
|
12878
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12879
|
+
var _a, _b;
|
|
12880
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options);
|
|
12881
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.activateWordPressPluginV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12882
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12883
|
+
});
|
|
12884
|
+
},
|
|
12885
|
+
/**
|
|
12886
|
+
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
12887
|
+
* @summary Check if WooCommerce is installed
|
|
12888
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12889
|
+
* @param {*} [options] Override http request option.
|
|
12890
|
+
* @throws {RequiredError}
|
|
12891
|
+
*/
|
|
12892
|
+
checkIfWooCommerceIsInstalledV1(domain, options) {
|
|
12893
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12894
|
+
var _a, _b;
|
|
12895
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkIfWooCommerceIsInstalledV1(domain, options);
|
|
12896
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.checkIfWooCommerceIsInstalledV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12897
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12898
|
+
});
|
|
12899
|
+
},
|
|
12900
|
+
/**
|
|
12901
|
+
* Deactivate an installed plugin on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the deactivation job has been queued.
|
|
12902
|
+
* @summary Deactivate WordPress plugin
|
|
12903
|
+
* @param {string} username
|
|
12904
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12905
|
+
* @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
|
|
12906
|
+
* @param {*} [options] Override http request option.
|
|
12907
|
+
* @throws {RequiredError}
|
|
12908
|
+
*/
|
|
12909
|
+
deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
|
|
12910
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12911
|
+
var _a, _b;
|
|
12912
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options);
|
|
12913
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.deactivateWordPressPluginV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12914
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12915
|
+
});
|
|
12916
|
+
},
|
|
12917
|
+
/**
|
|
12918
|
+
* Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
|
|
12919
|
+
* @summary Install WordPress plugins
|
|
12920
|
+
* @param {string} username
|
|
12921
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12922
|
+
* @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
|
|
12923
|
+
* @param {*} [options] Override http request option.
|
|
12924
|
+
* @throws {RequiredError}
|
|
12925
|
+
*/
|
|
12926
|
+
installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options) {
|
|
12927
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12928
|
+
var _a, _b;
|
|
12929
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options);
|
|
12930
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.installWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12931
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12932
|
+
});
|
|
12933
|
+
},
|
|
12934
|
+
/**
|
|
12935
|
+
* List plugins recommended for installation on a WordPress installation that are not yet installed. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
12936
|
+
* @summary List available WordPress plugins
|
|
12937
|
+
* @param {string} username
|
|
12938
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12939
|
+
* @param {*} [options] Override http request option.
|
|
12940
|
+
* @throws {RequiredError}
|
|
12941
|
+
*/
|
|
12942
|
+
listAvailableWordPressPluginsV1(username, software, options) {
|
|
12943
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12944
|
+
var _a, _b;
|
|
12945
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableWordPressPluginsV1(username, software, options);
|
|
12946
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.listAvailableWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12947
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12948
|
+
});
|
|
12949
|
+
},
|
|
12950
|
+
/**
|
|
12951
|
+
* List plugins installed on a WordPress installation, including their status, available updates and known vulnerabilities. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
12952
|
+
* @summary List installed WordPress plugins
|
|
12953
|
+
* @param {string} username
|
|
12954
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12955
|
+
* @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
|
|
12956
|
+
* @param {*} [options] Override http request option.
|
|
12957
|
+
* @throws {RequiredError}
|
|
12958
|
+
*/
|
|
12959
|
+
listInstalledWordPressPluginsV1(username, software, category, options) {
|
|
12960
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12961
|
+
var _a, _b;
|
|
12962
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listInstalledWordPressPluginsV1(username, software, category, options);
|
|
12963
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.listInstalledWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12964
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12965
|
+
});
|
|
12966
|
+
},
|
|
12967
|
+
/**
|
|
12968
|
+
* List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
12969
|
+
* @summary List suggested WordPress plugins
|
|
12970
|
+
* @param {number | null} [orderId] Optionally scope suggestions to a specific order.
|
|
12971
|
+
* @param {*} [options] Override http request option.
|
|
12972
|
+
* @throws {RequiredError}
|
|
12973
|
+
*/
|
|
12974
|
+
listSuggestedWordPressPluginsV1(orderId, options) {
|
|
12975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12976
|
+
var _a, _b;
|
|
12977
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSuggestedWordPressPluginsV1(orderId, options);
|
|
12978
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.listSuggestedWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12979
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12980
|
+
});
|
|
12981
|
+
},
|
|
12982
|
+
/**
|
|
12983
|
+
* Search the WordPress.org plugin directory for plugins available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
12984
|
+
* @summary Search WordPress plugins
|
|
12985
|
+
* @param {string} search Search term to match against plugin names. Minimum 3 characters.
|
|
12986
|
+
* @param {*} [options] Override http request option.
|
|
12987
|
+
* @throws {RequiredError}
|
|
12988
|
+
*/
|
|
12989
|
+
searchWordPressPluginsV1(search, options) {
|
|
12990
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12991
|
+
var _a, _b;
|
|
12992
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchWordPressPluginsV1(search, options);
|
|
12993
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.searchWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12994
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12995
|
+
});
|
|
12996
|
+
},
|
|
12997
|
+
/**
|
|
12998
|
+
* Uninstall one or more plugins from a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the uninstall job has been queued.
|
|
12999
|
+
* @summary Uninstall WordPress plugins
|
|
13000
|
+
* @param {string} username
|
|
13001
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13002
|
+
* @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
|
|
13003
|
+
* @param {*} [options] Override http request option.
|
|
13004
|
+
* @throws {RequiredError}
|
|
13005
|
+
*/
|
|
13006
|
+
uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options) {
|
|
13007
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13008
|
+
var _a, _b;
|
|
13009
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options);
|
|
13010
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.uninstallWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13011
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13012
|
+
});
|
|
13013
|
+
},
|
|
13014
|
+
/**
|
|
13015
|
+
* Update a Hostinger plugin to its latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
13016
|
+
* @summary Update Hostinger WordPress plugin
|
|
13017
|
+
* @param {string} username
|
|
13018
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13019
|
+
* @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
|
|
13020
|
+
* @param {*} [options] Override http request option.
|
|
13021
|
+
* @throws {RequiredError}
|
|
13022
|
+
*/
|
|
13023
|
+
updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options) {
|
|
13024
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13025
|
+
var _a, _b;
|
|
13026
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options);
|
|
13027
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.updateHostingerWordPressPluginV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13028
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13029
|
+
});
|
|
13030
|
+
},
|
|
13031
|
+
/**
|
|
13032
|
+
* Update one or more installed plugins to their latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
13033
|
+
* @summary Update WordPress plugins
|
|
13034
|
+
* @param {string} username
|
|
13035
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13036
|
+
* @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
|
|
13037
|
+
* @param {*} [options] Override http request option.
|
|
13038
|
+
* @throws {RequiredError}
|
|
13039
|
+
*/
|
|
13040
|
+
updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options) {
|
|
13041
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13042
|
+
var _a, _b;
|
|
13043
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options);
|
|
13044
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.updateWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13045
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13046
|
+
});
|
|
13047
|
+
},
|
|
13048
|
+
};
|
|
13049
|
+
};
|
|
13050
|
+
/**
|
|
13051
|
+
* WordPressPluginsApi - factory interface
|
|
13052
|
+
* @export
|
|
13053
|
+
*/
|
|
13054
|
+
export const WordPressPluginsApiFactory = function (configuration, basePath, axios) {
|
|
13055
|
+
const localVarFp = WordPressPluginsApiFp(configuration);
|
|
13056
|
+
return {
|
|
13057
|
+
/**
|
|
13058
|
+
* Activate an installed plugin on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the activation job has been queued.
|
|
13059
|
+
* @summary Activate WordPress plugin
|
|
13060
|
+
* @param {string} username
|
|
13061
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13062
|
+
* @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
|
|
13063
|
+
* @param {*} [options] Override http request option.
|
|
13064
|
+
* @throws {RequiredError}
|
|
13065
|
+
*/
|
|
13066
|
+
activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options) {
|
|
13067
|
+
return localVarFp.activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options).then((request) => request(axios, basePath));
|
|
13068
|
+
},
|
|
13069
|
+
/**
|
|
13070
|
+
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
13071
|
+
* @summary Check if WooCommerce is installed
|
|
13072
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
13073
|
+
* @param {*} [options] Override http request option.
|
|
13074
|
+
* @throws {RequiredError}
|
|
13075
|
+
*/
|
|
13076
|
+
checkIfWooCommerceIsInstalledV1(domain, options) {
|
|
13077
|
+
return localVarFp.checkIfWooCommerceIsInstalledV1(domain, options).then((request) => request(axios, basePath));
|
|
13078
|
+
},
|
|
13079
|
+
/**
|
|
13080
|
+
* Deactivate an installed plugin on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the deactivation job has been queued.
|
|
13081
|
+
* @summary Deactivate WordPress plugin
|
|
13082
|
+
* @param {string} username
|
|
13083
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13084
|
+
* @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
|
|
13085
|
+
* @param {*} [options] Override http request option.
|
|
13086
|
+
* @throws {RequiredError}
|
|
13087
|
+
*/
|
|
13088
|
+
deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
|
|
13089
|
+
return localVarFp.deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(axios, basePath));
|
|
13090
|
+
},
|
|
13091
|
+
/**
|
|
13092
|
+
* Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
|
|
13093
|
+
* @summary Install WordPress plugins
|
|
13094
|
+
* @param {string} username
|
|
13095
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13096
|
+
* @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
|
|
13097
|
+
* @param {*} [options] Override http request option.
|
|
13098
|
+
* @throws {RequiredError}
|
|
13099
|
+
*/
|
|
13100
|
+
installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options) {
|
|
13101
|
+
return localVarFp.installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options).then((request) => request(axios, basePath));
|
|
13102
|
+
},
|
|
13103
|
+
/**
|
|
13104
|
+
* List plugins recommended for installation on a WordPress installation that are not yet installed. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13105
|
+
* @summary List available WordPress plugins
|
|
13106
|
+
* @param {string} username
|
|
13107
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13108
|
+
* @param {*} [options] Override http request option.
|
|
13109
|
+
* @throws {RequiredError}
|
|
13110
|
+
*/
|
|
13111
|
+
listAvailableWordPressPluginsV1(username, software, options) {
|
|
13112
|
+
return localVarFp.listAvailableWordPressPluginsV1(username, software, options).then((request) => request(axios, basePath));
|
|
13113
|
+
},
|
|
13114
|
+
/**
|
|
13115
|
+
* List plugins installed on a WordPress installation, including their status, available updates and known vulnerabilities. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13116
|
+
* @summary List installed WordPress plugins
|
|
13117
|
+
* @param {string} username
|
|
13118
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13119
|
+
* @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
|
|
13120
|
+
* @param {*} [options] Override http request option.
|
|
13121
|
+
* @throws {RequiredError}
|
|
13122
|
+
*/
|
|
13123
|
+
listInstalledWordPressPluginsV1(username, software, category, options) {
|
|
13124
|
+
return localVarFp.listInstalledWordPressPluginsV1(username, software, category, options).then((request) => request(axios, basePath));
|
|
13125
|
+
},
|
|
13126
|
+
/**
|
|
13127
|
+
* List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
13128
|
+
* @summary List suggested WordPress plugins
|
|
13129
|
+
* @param {number | null} [orderId] Optionally scope suggestions to a specific order.
|
|
13130
|
+
* @param {*} [options] Override http request option.
|
|
13131
|
+
* @throws {RequiredError}
|
|
13132
|
+
*/
|
|
13133
|
+
listSuggestedWordPressPluginsV1(orderId, options) {
|
|
13134
|
+
return localVarFp.listSuggestedWordPressPluginsV1(orderId, options).then((request) => request(axios, basePath));
|
|
13135
|
+
},
|
|
13136
|
+
/**
|
|
13137
|
+
* Search the WordPress.org plugin directory for plugins available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
13138
|
+
* @summary Search WordPress plugins
|
|
13139
|
+
* @param {string} search Search term to match against plugin names. Minimum 3 characters.
|
|
13140
|
+
* @param {*} [options] Override http request option.
|
|
13141
|
+
* @throws {RequiredError}
|
|
13142
|
+
*/
|
|
13143
|
+
searchWordPressPluginsV1(search, options) {
|
|
13144
|
+
return localVarFp.searchWordPressPluginsV1(search, options).then((request) => request(axios, basePath));
|
|
13145
|
+
},
|
|
13146
|
+
/**
|
|
13147
|
+
* Uninstall one or more plugins from a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the uninstall job has been queued.
|
|
13148
|
+
* @summary Uninstall WordPress plugins
|
|
13149
|
+
* @param {string} username
|
|
13150
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13151
|
+
* @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
|
|
13152
|
+
* @param {*} [options] Override http request option.
|
|
13153
|
+
* @throws {RequiredError}
|
|
13154
|
+
*/
|
|
13155
|
+
uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options) {
|
|
13156
|
+
return localVarFp.uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options).then((request) => request(axios, basePath));
|
|
13157
|
+
},
|
|
13158
|
+
/**
|
|
13159
|
+
* Update a Hostinger plugin to its latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
13160
|
+
* @summary Update Hostinger WordPress plugin
|
|
13161
|
+
* @param {string} username
|
|
13162
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13163
|
+
* @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
|
|
13164
|
+
* @param {*} [options] Override http request option.
|
|
13165
|
+
* @throws {RequiredError}
|
|
13166
|
+
*/
|
|
13167
|
+
updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options) {
|
|
13168
|
+
return localVarFp.updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options).then((request) => request(axios, basePath));
|
|
13169
|
+
},
|
|
13170
|
+
/**
|
|
13171
|
+
* Update one or more installed plugins to their latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
13172
|
+
* @summary Update WordPress plugins
|
|
13173
|
+
* @param {string} username
|
|
13174
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13175
|
+
* @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
|
|
13176
|
+
* @param {*} [options] Override http request option.
|
|
13177
|
+
* @throws {RequiredError}
|
|
13178
|
+
*/
|
|
13179
|
+
updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options) {
|
|
13180
|
+
return localVarFp.updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options).then((request) => request(axios, basePath));
|
|
13181
|
+
},
|
|
13182
|
+
};
|
|
13183
|
+
};
|
|
13184
|
+
/**
|
|
13185
|
+
* WordPressPluginsApi - object-oriented interface
|
|
13186
|
+
* @export
|
|
13187
|
+
* @class WordPressPluginsApi
|
|
13188
|
+
* @extends {BaseAPI}
|
|
13189
|
+
*/
|
|
13190
|
+
export class WordPressPluginsApi extends BaseAPI {
|
|
13191
|
+
/**
|
|
13192
|
+
* Activate an installed plugin on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the activation job has been queued.
|
|
13193
|
+
* @summary Activate WordPress plugin
|
|
13194
|
+
* @param {string} username
|
|
13195
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13196
|
+
* @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
|
|
13197
|
+
* @param {*} [options] Override http request option.
|
|
13198
|
+
* @throws {RequiredError}
|
|
13199
|
+
* @memberof WordPressPluginsApi
|
|
13200
|
+
*/
|
|
13201
|
+
activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options) {
|
|
13202
|
+
return WordPressPluginsApiFp(this.configuration).activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13203
|
+
}
|
|
13204
|
+
/**
|
|
13205
|
+
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
13206
|
+
* @summary Check if WooCommerce is installed
|
|
13207
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
13208
|
+
* @param {*} [options] Override http request option.
|
|
13209
|
+
* @throws {RequiredError}
|
|
13210
|
+
* @memberof WordPressPluginsApi
|
|
13211
|
+
*/
|
|
13212
|
+
checkIfWooCommerceIsInstalledV1(domain, options) {
|
|
13213
|
+
return WordPressPluginsApiFp(this.configuration).checkIfWooCommerceIsInstalledV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
13214
|
+
}
|
|
13215
|
+
/**
|
|
13216
|
+
* Deactivate an installed plugin on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the deactivation job has been queued.
|
|
13217
|
+
* @summary Deactivate WordPress plugin
|
|
13218
|
+
* @param {string} username
|
|
13219
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13220
|
+
* @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
|
|
13221
|
+
* @param {*} [options] Override http request option.
|
|
13222
|
+
* @throws {RequiredError}
|
|
13223
|
+
* @memberof WordPressPluginsApi
|
|
13224
|
+
*/
|
|
13225
|
+
deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
|
|
13226
|
+
return WordPressPluginsApiFp(this.configuration).deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13227
|
+
}
|
|
13228
|
+
/**
|
|
13229
|
+
* Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
|
|
13230
|
+
* @summary Install WordPress plugins
|
|
13231
|
+
* @param {string} username
|
|
13232
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13233
|
+
* @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
|
|
13234
|
+
* @param {*} [options] Override http request option.
|
|
13235
|
+
* @throws {RequiredError}
|
|
13236
|
+
* @memberof WordPressPluginsApi
|
|
13237
|
+
*/
|
|
13238
|
+
installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options) {
|
|
13239
|
+
return WordPressPluginsApiFp(this.configuration).installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13240
|
+
}
|
|
13241
|
+
/**
|
|
13242
|
+
* List plugins recommended for installation on a WordPress installation that are not yet installed. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13243
|
+
* @summary List available WordPress plugins
|
|
13244
|
+
* @param {string} username
|
|
13245
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13246
|
+
* @param {*} [options] Override http request option.
|
|
13247
|
+
* @throws {RequiredError}
|
|
13248
|
+
* @memberof WordPressPluginsApi
|
|
13249
|
+
*/
|
|
13250
|
+
listAvailableWordPressPluginsV1(username, software, options) {
|
|
13251
|
+
return WordPressPluginsApiFp(this.configuration).listAvailableWordPressPluginsV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
13252
|
+
}
|
|
13253
|
+
/**
|
|
13254
|
+
* List plugins installed on a WordPress installation, including their status, available updates and known vulnerabilities. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13255
|
+
* @summary List installed WordPress plugins
|
|
13256
|
+
* @param {string} username
|
|
13257
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13258
|
+
* @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
|
|
13259
|
+
* @param {*} [options] Override http request option.
|
|
13260
|
+
* @throws {RequiredError}
|
|
13261
|
+
* @memberof WordPressPluginsApi
|
|
13262
|
+
*/
|
|
13263
|
+
listInstalledWordPressPluginsV1(username, software, category, options) {
|
|
13264
|
+
return WordPressPluginsApiFp(this.configuration).listInstalledWordPressPluginsV1(username, software, category, options).then((request) => request(this.axios, this.basePath));
|
|
13265
|
+
}
|
|
13266
|
+
/**
|
|
13267
|
+
* List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
13268
|
+
* @summary List suggested WordPress plugins
|
|
13269
|
+
* @param {number | null} [orderId] Optionally scope suggestions to a specific order.
|
|
13270
|
+
* @param {*} [options] Override http request option.
|
|
13271
|
+
* @throws {RequiredError}
|
|
13272
|
+
* @memberof WordPressPluginsApi
|
|
13273
|
+
*/
|
|
13274
|
+
listSuggestedWordPressPluginsV1(orderId, options) {
|
|
13275
|
+
return WordPressPluginsApiFp(this.configuration).listSuggestedWordPressPluginsV1(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
13276
|
+
}
|
|
13277
|
+
/**
|
|
13278
|
+
* Search the WordPress.org plugin directory for plugins available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
13279
|
+
* @summary Search WordPress plugins
|
|
13280
|
+
* @param {string} search Search term to match against plugin names. Minimum 3 characters.
|
|
13281
|
+
* @param {*} [options] Override http request option.
|
|
13282
|
+
* @throws {RequiredError}
|
|
13283
|
+
* @memberof WordPressPluginsApi
|
|
13284
|
+
*/
|
|
13285
|
+
searchWordPressPluginsV1(search, options) {
|
|
13286
|
+
return WordPressPluginsApiFp(this.configuration).searchWordPressPluginsV1(search, options).then((request) => request(this.axios, this.basePath));
|
|
13287
|
+
}
|
|
13288
|
+
/**
|
|
13289
|
+
* Uninstall one or more plugins from a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the uninstall job has been queued.
|
|
13290
|
+
* @summary Uninstall WordPress plugins
|
|
13291
|
+
* @param {string} username
|
|
13292
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13293
|
+
* @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
|
|
13294
|
+
* @param {*} [options] Override http request option.
|
|
13295
|
+
* @throws {RequiredError}
|
|
13296
|
+
* @memberof WordPressPluginsApi
|
|
13297
|
+
*/
|
|
13298
|
+
uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options) {
|
|
13299
|
+
return WordPressPluginsApiFp(this.configuration).uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13300
|
+
}
|
|
13301
|
+
/**
|
|
13302
|
+
* Update a Hostinger plugin to its latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
13303
|
+
* @summary Update Hostinger WordPress plugin
|
|
13304
|
+
* @param {string} username
|
|
13305
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13306
|
+
* @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
|
|
13307
|
+
* @param {*} [options] Override http request option.
|
|
13308
|
+
* @throws {RequiredError}
|
|
13309
|
+
* @memberof WordPressPluginsApi
|
|
13310
|
+
*/
|
|
13311
|
+
updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options) {
|
|
13312
|
+
return WordPressPluginsApiFp(this.configuration).updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13313
|
+
}
|
|
13314
|
+
/**
|
|
13315
|
+
* Update one or more installed plugins to their latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
13316
|
+
* @summary Update WordPress plugins
|
|
13317
|
+
* @param {string} username
|
|
13318
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13319
|
+
* @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
|
|
13320
|
+
* @param {*} [options] Override http request option.
|
|
13321
|
+
* @throws {RequiredError}
|
|
13322
|
+
* @memberof WordPressPluginsApi
|
|
13323
|
+
*/
|
|
13324
|
+
updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options) {
|
|
13325
|
+
return WordPressPluginsApiFp(this.configuration).updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13326
|
+
}
|
|
13327
|
+
}
|
|
13328
|
+
/**
|
|
13329
|
+
* @export
|
|
13330
|
+
*/
|
|
13331
|
+
export const ListInstalledWordPressPluginsV1CategoryEnum = {
|
|
13332
|
+
Cache: 'cache'
|
|
13333
|
+
};
|
|
13334
|
+
/**
|
|
13335
|
+
* WordPressThemesApi - axios parameter creator
|
|
13336
|
+
* @export
|
|
13337
|
+
*/
|
|
13338
|
+
export const WordPressThemesApiAxiosParamCreator = function (configuration) {
|
|
13339
|
+
return {
|
|
13340
|
+
/**
|
|
13341
|
+
* Activate an installed theme on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the activation job has been queued.
|
|
13342
|
+
* @summary Activate WordPress theme
|
|
13343
|
+
* @param {string} username
|
|
13344
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13345
|
+
* @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
|
|
13346
|
+
* @param {*} [options] Override http request option.
|
|
13347
|
+
* @throws {RequiredError}
|
|
13348
|
+
*/
|
|
13349
|
+
activateWordPressThemeV1: (username_1, software_1, wordPressV1ThemesActivateThemeRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1ThemesActivateThemeRequest_1, ...args_1], void 0, function* (username, software, wordPressV1ThemesActivateThemeRequest, options = {}) {
|
|
13350
|
+
// verify required parameter 'username' is not null or undefined
|
|
13351
|
+
assertParamExists('activateWordPressThemeV1', 'username', username);
|
|
13352
|
+
// verify required parameter 'software' is not null or undefined
|
|
13353
|
+
assertParamExists('activateWordPressThemeV1', 'software', software);
|
|
13354
|
+
// verify required parameter 'wordPressV1ThemesActivateThemeRequest' is not null or undefined
|
|
13355
|
+
assertParamExists('activateWordPressThemeV1', 'wordPressV1ThemesActivateThemeRequest', wordPressV1ThemesActivateThemeRequest);
|
|
13356
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/activate`
|
|
13357
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13358
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13359
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13360
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13361
|
+
let baseOptions;
|
|
13362
|
+
if (configuration) {
|
|
13363
|
+
baseOptions = configuration.baseOptions;
|
|
13364
|
+
}
|
|
13365
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13366
|
+
const localVarHeaderParameter = {};
|
|
13367
|
+
const localVarQueryParameter = {};
|
|
13368
|
+
// authentication apiToken required
|
|
13369
|
+
// http bearer authentication required
|
|
13370
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13371
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13372
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13373
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13374
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13375
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ThemesActivateThemeRequest, localVarRequestOptions, configuration);
|
|
13376
|
+
return {
|
|
13377
|
+
url: toPathString(localVarUrlObj),
|
|
13378
|
+
options: localVarRequestOptions,
|
|
13379
|
+
};
|
|
13380
|
+
}),
|
|
13381
|
+
/**
|
|
13382
|
+
* Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
|
|
13383
|
+
* @summary Install WordPress theme
|
|
13384
|
+
* @param {string} username
|
|
13385
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13386
|
+
* @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
|
|
13387
|
+
* @param {*} [options] Override http request option.
|
|
13388
|
+
* @throws {RequiredError}
|
|
13389
|
+
*/
|
|
13390
|
+
installWordPressThemeV1: (username_1, software_1, wordPressV1ThemesInstallThemeRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1ThemesInstallThemeRequest_1, ...args_1], void 0, function* (username, software, wordPressV1ThemesInstallThemeRequest, options = {}) {
|
|
13391
|
+
// verify required parameter 'username' is not null or undefined
|
|
13392
|
+
assertParamExists('installWordPressThemeV1', 'username', username);
|
|
13393
|
+
// verify required parameter 'software' is not null or undefined
|
|
13394
|
+
assertParamExists('installWordPressThemeV1', 'software', software);
|
|
13395
|
+
// verify required parameter 'wordPressV1ThemesInstallThemeRequest' is not null or undefined
|
|
13396
|
+
assertParamExists('installWordPressThemeV1', 'wordPressV1ThemesInstallThemeRequest', wordPressV1ThemesInstallThemeRequest);
|
|
13397
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install`
|
|
13398
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13399
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13400
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13401
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13402
|
+
let baseOptions;
|
|
13403
|
+
if (configuration) {
|
|
13404
|
+
baseOptions = configuration.baseOptions;
|
|
13405
|
+
}
|
|
13406
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13407
|
+
const localVarHeaderParameter = {};
|
|
13408
|
+
const localVarQueryParameter = {};
|
|
13409
|
+
// authentication apiToken required
|
|
13410
|
+
// http bearer authentication required
|
|
13411
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13412
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13413
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13414
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13415
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13416
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ThemesInstallThemeRequest, localVarRequestOptions, configuration);
|
|
13417
|
+
return {
|
|
13418
|
+
url: toPathString(localVarUrlObj),
|
|
13419
|
+
options: localVarRequestOptions,
|
|
13420
|
+
};
|
|
13421
|
+
}),
|
|
13422
|
+
/**
|
|
13423
|
+
* List themes installed on a WordPress installation, including their status, available updates and known vulnerabilities. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13424
|
+
* @summary List installed WordPress themes
|
|
13425
|
+
* @param {string} username
|
|
13426
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13427
|
+
* @param {*} [options] Override http request option.
|
|
13428
|
+
* @throws {RequiredError}
|
|
13429
|
+
*/
|
|
13430
|
+
listInstalledWordPressThemesV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
13431
|
+
// verify required parameter 'username' is not null or undefined
|
|
13432
|
+
assertParamExists('listInstalledWordPressThemesV1', 'username', username);
|
|
13433
|
+
// verify required parameter 'software' is not null or undefined
|
|
13434
|
+
assertParamExists('listInstalledWordPressThemesV1', 'software', software);
|
|
13435
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes`
|
|
13436
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13437
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13438
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13439
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13440
|
+
let baseOptions;
|
|
13441
|
+
if (configuration) {
|
|
13442
|
+
baseOptions = configuration.baseOptions;
|
|
13443
|
+
}
|
|
13444
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13445
|
+
const localVarHeaderParameter = {};
|
|
13446
|
+
const localVarQueryParameter = {};
|
|
13447
|
+
// authentication apiToken required
|
|
13448
|
+
// http bearer authentication required
|
|
13449
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13450
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13451
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13452
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13453
|
+
return {
|
|
13454
|
+
url: toPathString(localVarUrlObj),
|
|
13455
|
+
options: localVarRequestOptions,
|
|
13456
|
+
};
|
|
13457
|
+
}),
|
|
13458
|
+
/**
|
|
13459
|
+
* List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
|
|
13460
|
+
* @summary List WordPress themes
|
|
13461
|
+
* @param {number | null} [orderId] Optionally scope themes to a specific order.
|
|
13462
|
+
* @param {string | null} [search] Search term to match against theme names.
|
|
13463
|
+
* @param {*} [options] Override http request option.
|
|
13464
|
+
* @throws {RequiredError}
|
|
13465
|
+
*/
|
|
13466
|
+
listWordPressThemesV1: (orderId_1, search_1, ...args_1) => __awaiter(this, [orderId_1, search_1, ...args_1], void 0, function* (orderId, search, options = {}) {
|
|
13467
|
+
const localVarPath = `/api/hosting/v1/wordpress/themes`;
|
|
13468
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13469
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13470
|
+
let baseOptions;
|
|
13471
|
+
if (configuration) {
|
|
13472
|
+
baseOptions = configuration.baseOptions;
|
|
13473
|
+
}
|
|
13474
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13475
|
+
const localVarHeaderParameter = {};
|
|
13476
|
+
const localVarQueryParameter = {};
|
|
13477
|
+
// authentication apiToken required
|
|
13478
|
+
// http bearer authentication required
|
|
13479
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13480
|
+
if (orderId !== undefined) {
|
|
13481
|
+
localVarQueryParameter['order_id'] = orderId;
|
|
13482
|
+
}
|
|
13483
|
+
if (search !== undefined) {
|
|
13484
|
+
localVarQueryParameter['search'] = search;
|
|
13485
|
+
}
|
|
13486
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13487
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13488
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13489
|
+
return {
|
|
13490
|
+
url: toPathString(localVarUrlObj),
|
|
13491
|
+
options: localVarRequestOptions,
|
|
13492
|
+
};
|
|
13493
|
+
}),
|
|
13494
|
+
/**
|
|
13495
|
+
* Uninstall one or more themes from a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the uninstall job has been queued.
|
|
13496
|
+
* @summary Uninstall WordPress themes
|
|
13497
|
+
* @param {string} username
|
|
13498
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13499
|
+
* @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
|
|
13500
|
+
* @param {*} [options] Override http request option.
|
|
13501
|
+
* @throws {RequiredError}
|
|
13502
|
+
*/
|
|
13503
|
+
uninstallWordPressThemesV1: (username_1, software_1, wordPressV1ThemesUninstallThemesRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1ThemesUninstallThemesRequest_1, ...args_1], void 0, function* (username, software, wordPressV1ThemesUninstallThemesRequest, options = {}) {
|
|
13504
|
+
// verify required parameter 'username' is not null or undefined
|
|
13505
|
+
assertParamExists('uninstallWordPressThemesV1', 'username', username);
|
|
13506
|
+
// verify required parameter 'software' is not null or undefined
|
|
13507
|
+
assertParamExists('uninstallWordPressThemesV1', 'software', software);
|
|
13508
|
+
// verify required parameter 'wordPressV1ThemesUninstallThemesRequest' is not null or undefined
|
|
13509
|
+
assertParamExists('uninstallWordPressThemesV1', 'wordPressV1ThemesUninstallThemesRequest', wordPressV1ThemesUninstallThemesRequest);
|
|
13510
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/uninstall`
|
|
13511
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13512
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13513
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13514
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13515
|
+
let baseOptions;
|
|
13516
|
+
if (configuration) {
|
|
13517
|
+
baseOptions = configuration.baseOptions;
|
|
13518
|
+
}
|
|
13519
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13520
|
+
const localVarHeaderParameter = {};
|
|
13521
|
+
const localVarQueryParameter = {};
|
|
13522
|
+
// authentication apiToken required
|
|
13523
|
+
// http bearer authentication required
|
|
13524
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13525
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13526
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13527
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13528
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13529
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ThemesUninstallThemesRequest, localVarRequestOptions, configuration);
|
|
13530
|
+
return {
|
|
13531
|
+
url: toPathString(localVarUrlObj),
|
|
13532
|
+
options: localVarRequestOptions,
|
|
13533
|
+
};
|
|
13534
|
+
}),
|
|
13535
|
+
/**
|
|
13536
|
+
* Update one or more installed themes to their latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
13537
|
+
* @summary Update WordPress themes
|
|
13538
|
+
* @param {string} username
|
|
13539
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13540
|
+
* @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
|
|
13541
|
+
* @param {*} [options] Override http request option.
|
|
13542
|
+
* @throws {RequiredError}
|
|
13543
|
+
*/
|
|
13544
|
+
updateWordPressThemesV1: (username_1, software_1, wordPressV1ThemesUpdateThemesRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1ThemesUpdateThemesRequest_1, ...args_1], void 0, function* (username, software, wordPressV1ThemesUpdateThemesRequest, options = {}) {
|
|
13545
|
+
// verify required parameter 'username' is not null or undefined
|
|
13546
|
+
assertParamExists('updateWordPressThemesV1', 'username', username);
|
|
13547
|
+
// verify required parameter 'software' is not null or undefined
|
|
13548
|
+
assertParamExists('updateWordPressThemesV1', 'software', software);
|
|
13549
|
+
// verify required parameter 'wordPressV1ThemesUpdateThemesRequest' is not null or undefined
|
|
13550
|
+
assertParamExists('updateWordPressThemesV1', 'wordPressV1ThemesUpdateThemesRequest', wordPressV1ThemesUpdateThemesRequest);
|
|
13551
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/update`
|
|
13552
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13553
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13554
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13555
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13556
|
+
let baseOptions;
|
|
13557
|
+
if (configuration) {
|
|
13558
|
+
baseOptions = configuration.baseOptions;
|
|
13559
|
+
}
|
|
13560
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13561
|
+
const localVarHeaderParameter = {};
|
|
13562
|
+
const localVarQueryParameter = {};
|
|
13563
|
+
// authentication apiToken required
|
|
13564
|
+
// http bearer authentication required
|
|
13565
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13566
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13567
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13568
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13569
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13570
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ThemesUpdateThemesRequest, localVarRequestOptions, configuration);
|
|
13571
|
+
return {
|
|
13572
|
+
url: toPathString(localVarUrlObj),
|
|
13573
|
+
options: localVarRequestOptions,
|
|
13574
|
+
};
|
|
13575
|
+
}),
|
|
13576
|
+
};
|
|
13577
|
+
};
|
|
13578
|
+
/**
|
|
13579
|
+
* WordPressThemesApi - functional programming interface
|
|
13580
|
+
* @export
|
|
13581
|
+
*/
|
|
13582
|
+
export const WordPressThemesApiFp = function (configuration) {
|
|
13583
|
+
const localVarAxiosParamCreator = WordPressThemesApiAxiosParamCreator(configuration);
|
|
13584
|
+
return {
|
|
13585
|
+
/**
|
|
13586
|
+
* Activate an installed theme on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the activation job has been queued.
|
|
13587
|
+
* @summary Activate WordPress theme
|
|
13588
|
+
* @param {string} username
|
|
13589
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13590
|
+
* @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
|
|
13591
|
+
* @param {*} [options] Override http request option.
|
|
13592
|
+
* @throws {RequiredError}
|
|
13593
|
+
*/
|
|
13594
|
+
activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
|
|
13595
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13596
|
+
var _a, _b;
|
|
13597
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options);
|
|
13598
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressThemesApi.activateWordPressThemeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13599
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13600
|
+
});
|
|
13601
|
+
},
|
|
13602
|
+
/**
|
|
13603
|
+
* Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
|
|
13604
|
+
* @summary Install WordPress theme
|
|
13605
|
+
* @param {string} username
|
|
13606
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13607
|
+
* @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
|
|
13608
|
+
* @param {*} [options] Override http request option.
|
|
13609
|
+
* @throws {RequiredError}
|
|
13610
|
+
*/
|
|
13611
|
+
installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options) {
|
|
13612
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13613
|
+
var _a, _b;
|
|
13614
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options);
|
|
13615
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressThemesApi.installWordPressThemeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13616
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13617
|
+
});
|
|
13618
|
+
},
|
|
13619
|
+
/**
|
|
13620
|
+
* List themes installed on a WordPress installation, including their status, available updates and known vulnerabilities. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13621
|
+
* @summary List installed WordPress themes
|
|
13622
|
+
* @param {string} username
|
|
13623
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13624
|
+
* @param {*} [options] Override http request option.
|
|
13625
|
+
* @throws {RequiredError}
|
|
13626
|
+
*/
|
|
13627
|
+
listInstalledWordPressThemesV1(username, software, options) {
|
|
13628
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13629
|
+
var _a, _b;
|
|
13630
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listInstalledWordPressThemesV1(username, software, options);
|
|
13631
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressThemesApi.listInstalledWordPressThemesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13632
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13633
|
+
});
|
|
13634
|
+
},
|
|
13635
|
+
/**
|
|
13636
|
+
* List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
|
|
13637
|
+
* @summary List WordPress themes
|
|
13638
|
+
* @param {number | null} [orderId] Optionally scope themes to a specific order.
|
|
13639
|
+
* @param {string | null} [search] Search term to match against theme names.
|
|
13640
|
+
* @param {*} [options] Override http request option.
|
|
13641
|
+
* @throws {RequiredError}
|
|
13642
|
+
*/
|
|
13643
|
+
listWordPressThemesV1(orderId, search, options) {
|
|
13644
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13645
|
+
var _a, _b;
|
|
13646
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressThemesV1(orderId, search, options);
|
|
13647
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressThemesApi.listWordPressThemesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13648
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13649
|
+
});
|
|
13650
|
+
},
|
|
13651
|
+
/**
|
|
13652
|
+
* Uninstall one or more themes from a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the uninstall job has been queued.
|
|
13653
|
+
* @summary Uninstall WordPress themes
|
|
13654
|
+
* @param {string} username
|
|
13655
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13656
|
+
* @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
|
|
13657
|
+
* @param {*} [options] Override http request option.
|
|
13658
|
+
* @throws {RequiredError}
|
|
13659
|
+
*/
|
|
13660
|
+
uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options) {
|
|
13661
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13662
|
+
var _a, _b;
|
|
13663
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options);
|
|
13664
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressThemesApi.uninstallWordPressThemesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13665
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13666
|
+
});
|
|
13667
|
+
},
|
|
13668
|
+
/**
|
|
13669
|
+
* Update one or more installed themes to their latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
13670
|
+
* @summary Update WordPress themes
|
|
13671
|
+
* @param {string} username
|
|
13672
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13673
|
+
* @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
|
|
13674
|
+
* @param {*} [options] Override http request option.
|
|
13675
|
+
* @throws {RequiredError}
|
|
13676
|
+
*/
|
|
13677
|
+
updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options) {
|
|
13678
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13679
|
+
var _a, _b;
|
|
13680
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options);
|
|
13681
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressThemesApi.updateWordPressThemesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13682
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13683
|
+
});
|
|
13684
|
+
},
|
|
13685
|
+
};
|
|
13686
|
+
};
|
|
13687
|
+
/**
|
|
13688
|
+
* WordPressThemesApi - factory interface
|
|
13689
|
+
* @export
|
|
13690
|
+
*/
|
|
13691
|
+
export const WordPressThemesApiFactory = function (configuration, basePath, axios) {
|
|
13692
|
+
const localVarFp = WordPressThemesApiFp(configuration);
|
|
13693
|
+
return {
|
|
13694
|
+
/**
|
|
13695
|
+
* Activate an installed theme on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the activation job has been queued.
|
|
13696
|
+
* @summary Activate WordPress theme
|
|
13697
|
+
* @param {string} username
|
|
13698
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13699
|
+
* @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
|
|
13700
|
+
* @param {*} [options] Override http request option.
|
|
13701
|
+
* @throws {RequiredError}
|
|
13702
|
+
*/
|
|
13703
|
+
activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
|
|
13704
|
+
return localVarFp.activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(axios, basePath));
|
|
13705
|
+
},
|
|
13706
|
+
/**
|
|
13707
|
+
* Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
|
|
13708
|
+
* @summary Install WordPress theme
|
|
13709
|
+
* @param {string} username
|
|
13710
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13711
|
+
* @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
|
|
13712
|
+
* @param {*} [options] Override http request option.
|
|
13713
|
+
* @throws {RequiredError}
|
|
13714
|
+
*/
|
|
13715
|
+
installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options) {
|
|
13716
|
+
return localVarFp.installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options).then((request) => request(axios, basePath));
|
|
13717
|
+
},
|
|
13718
|
+
/**
|
|
13719
|
+
* List themes installed on a WordPress installation, including their status, available updates and known vulnerabilities. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13720
|
+
* @summary List installed WordPress themes
|
|
13721
|
+
* @param {string} username
|
|
13722
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13723
|
+
* @param {*} [options] Override http request option.
|
|
13724
|
+
* @throws {RequiredError}
|
|
13725
|
+
*/
|
|
13726
|
+
listInstalledWordPressThemesV1(username, software, options) {
|
|
13727
|
+
return localVarFp.listInstalledWordPressThemesV1(username, software, options).then((request) => request(axios, basePath));
|
|
13728
|
+
},
|
|
13729
|
+
/**
|
|
13730
|
+
* List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
|
|
13731
|
+
* @summary List WordPress themes
|
|
13732
|
+
* @param {number | null} [orderId] Optionally scope themes to a specific order.
|
|
13733
|
+
* @param {string | null} [search] Search term to match against theme names.
|
|
13734
|
+
* @param {*} [options] Override http request option.
|
|
13735
|
+
* @throws {RequiredError}
|
|
13736
|
+
*/
|
|
13737
|
+
listWordPressThemesV1(orderId, search, options) {
|
|
13738
|
+
return localVarFp.listWordPressThemesV1(orderId, search, options).then((request) => request(axios, basePath));
|
|
13739
|
+
},
|
|
13740
|
+
/**
|
|
13741
|
+
* Uninstall one or more themes from a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the uninstall job has been queued.
|
|
13742
|
+
* @summary Uninstall WordPress themes
|
|
13743
|
+
* @param {string} username
|
|
13744
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13745
|
+
* @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
|
|
13746
|
+
* @param {*} [options] Override http request option.
|
|
13747
|
+
* @throws {RequiredError}
|
|
13748
|
+
*/
|
|
13749
|
+
uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options) {
|
|
13750
|
+
return localVarFp.uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options).then((request) => request(axios, basePath));
|
|
13751
|
+
},
|
|
13752
|
+
/**
|
|
13753
|
+
* Update one or more installed themes to their latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
13754
|
+
* @summary Update WordPress themes
|
|
13755
|
+
* @param {string} username
|
|
13756
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13757
|
+
* @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
|
|
13758
|
+
* @param {*} [options] Override http request option.
|
|
13759
|
+
* @throws {RequiredError}
|
|
13760
|
+
*/
|
|
13761
|
+
updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options) {
|
|
13762
|
+
return localVarFp.updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options).then((request) => request(axios, basePath));
|
|
13763
|
+
},
|
|
13764
|
+
};
|
|
13765
|
+
};
|
|
13766
|
+
/**
|
|
13767
|
+
* WordPressThemesApi - object-oriented interface
|
|
13768
|
+
* @export
|
|
13769
|
+
* @class WordPressThemesApi
|
|
13770
|
+
* @extends {BaseAPI}
|
|
13771
|
+
*/
|
|
13772
|
+
export class WordPressThemesApi extends BaseAPI {
|
|
13773
|
+
/**
|
|
13774
|
+
* Activate an installed theme on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the activation job has been queued.
|
|
13775
|
+
* @summary Activate WordPress theme
|
|
13776
|
+
* @param {string} username
|
|
13777
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13778
|
+
* @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
|
|
13779
|
+
* @param {*} [options] Override http request option.
|
|
13780
|
+
* @throws {RequiredError}
|
|
13781
|
+
* @memberof WordPressThemesApi
|
|
13782
|
+
*/
|
|
13783
|
+
activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
|
|
13784
|
+
return WordPressThemesApiFp(this.configuration).activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13785
|
+
}
|
|
13786
|
+
/**
|
|
13787
|
+
* Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
|
|
13788
|
+
* @summary Install WordPress theme
|
|
13789
|
+
* @param {string} username
|
|
13790
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13791
|
+
* @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
|
|
13792
|
+
* @param {*} [options] Override http request option.
|
|
13793
|
+
* @throws {RequiredError}
|
|
13794
|
+
* @memberof WordPressThemesApi
|
|
13795
|
+
*/
|
|
13796
|
+
installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options) {
|
|
13797
|
+
return WordPressThemesApiFp(this.configuration).installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13798
|
+
}
|
|
13799
|
+
/**
|
|
13800
|
+
* List themes installed on a WordPress installation, including their status, available updates and known vulnerabilities. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13801
|
+
* @summary List installed WordPress themes
|
|
13802
|
+
* @param {string} username
|
|
13803
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13804
|
+
* @param {*} [options] Override http request option.
|
|
13805
|
+
* @throws {RequiredError}
|
|
13806
|
+
* @memberof WordPressThemesApi
|
|
13807
|
+
*/
|
|
13808
|
+
listInstalledWordPressThemesV1(username, software, options) {
|
|
13809
|
+
return WordPressThemesApiFp(this.configuration).listInstalledWordPressThemesV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
13810
|
+
}
|
|
13811
|
+
/**
|
|
13812
|
+
* List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
|
|
13813
|
+
* @summary List WordPress themes
|
|
13814
|
+
* @param {number | null} [orderId] Optionally scope themes to a specific order.
|
|
13815
|
+
* @param {string | null} [search] Search term to match against theme names.
|
|
13816
|
+
* @param {*} [options] Override http request option.
|
|
13817
|
+
* @throws {RequiredError}
|
|
13818
|
+
* @memberof WordPressThemesApi
|
|
13819
|
+
*/
|
|
13820
|
+
listWordPressThemesV1(orderId, search, options) {
|
|
13821
|
+
return WordPressThemesApiFp(this.configuration).listWordPressThemesV1(orderId, search, options).then((request) => request(this.axios, this.basePath));
|
|
13822
|
+
}
|
|
13823
|
+
/**
|
|
13824
|
+
* Uninstall one or more themes from a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the uninstall job has been queued.
|
|
13825
|
+
* @summary Uninstall WordPress themes
|
|
13826
|
+
* @param {string} username
|
|
13827
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13828
|
+
* @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
|
|
13829
|
+
* @param {*} [options] Override http request option.
|
|
13830
|
+
* @throws {RequiredError}
|
|
13831
|
+
* @memberof WordPressThemesApi
|
|
13832
|
+
*/
|
|
13833
|
+
uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options) {
|
|
13834
|
+
return WordPressThemesApiFp(this.configuration).uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13835
|
+
}
|
|
13836
|
+
/**
|
|
13837
|
+
* Update one or more installed themes to their latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
13838
|
+
* @summary Update WordPress themes
|
|
13839
|
+
* @param {string} username
|
|
13840
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13841
|
+
* @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
|
|
13842
|
+
* @param {*} [options] Override http request option.
|
|
13843
|
+
* @throws {RequiredError}
|
|
13844
|
+
* @memberof WordPressThemesApi
|
|
13845
|
+
*/
|
|
13846
|
+
updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options) {
|
|
13847
|
+
return WordPressThemesApiFp(this.configuration).updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13848
|
+
}
|
|
13849
|
+
}
|