hostinger-api-sdk 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +10058 -7457
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +5419 -3779
- package/dist/api.js +1997 -240
- 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 +5419 -3779
- package/dist/esm/api.js +1972 -231
- 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/EcommerceMiscellaneousApi.md +54 -0
- package/docs/EcommerceSalesChannelsApi.md +120 -0
- package/docs/EcommerceV1MiscellaneousCustomStorefrontInstructionsResource.md +20 -0
- package/docs/EcommerceV1SalesChannelSalesChannelCreationResource.md +20 -0
- package/docs/EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel.md +32 -0
- package/docs/EcommerceV1SalesChannelSalesChannelListResource.md +20 -0
- package/docs/EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner.md +32 -0
- package/docs/EcommerceV1SalesChannelStoreRequest.md +24 -0
- 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.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -138,6 +138,25 @@ export const EcommerceV1ProductProductCreationResourceProductTypeEnum = {
|
|
|
138
138
|
Physical: 'physical',
|
|
139
139
|
Digital: 'digital'
|
|
140
140
|
};
|
|
141
|
+
export const EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = {
|
|
142
|
+
Builder: 'builder',
|
|
143
|
+
Horizons: 'horizons',
|
|
144
|
+
Tiktok: 'tiktok',
|
|
145
|
+
Custom: 'custom',
|
|
146
|
+
QuickLink: 'quick-link',
|
|
147
|
+
Wordpress: 'wordpress'
|
|
148
|
+
};
|
|
149
|
+
export const EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = {
|
|
150
|
+
Builder: 'builder',
|
|
151
|
+
Horizons: 'horizons',
|
|
152
|
+
Tiktok: 'tiktok',
|
|
153
|
+
Custom: 'custom',
|
|
154
|
+
QuickLink: 'quick-link',
|
|
155
|
+
Wordpress: 'wordpress'
|
|
156
|
+
};
|
|
157
|
+
export const EcommerceV1SalesChannelStoreRequestTypeEnum = {
|
|
158
|
+
Custom: 'custom'
|
|
159
|
+
};
|
|
141
160
|
export const EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = {
|
|
142
161
|
Builder: 'builder',
|
|
143
162
|
Horizons: 'horizons',
|
|
@@ -206,11 +225,6 @@ export const HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
|
|
|
206
225
|
Parked: 'parked',
|
|
207
226
|
Subdomain: 'subdomain'
|
|
208
227
|
};
|
|
209
|
-
export const HostingV1WordpressInstallWordpressRequestAutoUpdatesEnum = {
|
|
210
|
-
All: 'all',
|
|
211
|
-
None: 'none',
|
|
212
|
-
Minor: 'minor'
|
|
213
|
-
};
|
|
214
228
|
export const ReachV1ContactsContactResourceSubscriptionStatusEnum = {
|
|
215
229
|
Subscribed: 'subscribed',
|
|
216
230
|
Unsubscribed: 'unsubscribed'
|
|
@@ -380,6 +394,43 @@ export const VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
|
|
|
380
394
|
Unlocked: 'unlocked',
|
|
381
395
|
Locked: 'locked'
|
|
382
396
|
};
|
|
397
|
+
export const WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = {
|
|
398
|
+
All: 'all',
|
|
399
|
+
None: 'none',
|
|
400
|
+
Minor: 'minor'
|
|
401
|
+
};
|
|
402
|
+
export const WordPressV1PluginsInstalledPluginResourceStatusEnum = {
|
|
403
|
+
Active: 'active',
|
|
404
|
+
Inactive: 'inactive'
|
|
405
|
+
};
|
|
406
|
+
export const WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = {
|
|
407
|
+
Business: 'business',
|
|
408
|
+
OnlineStore: 'online-store',
|
|
409
|
+
Blog: 'blog',
|
|
410
|
+
Portfolio: 'portfolio',
|
|
411
|
+
AffiliateMarketing: 'affiliate-marketing',
|
|
412
|
+
Other: 'other',
|
|
413
|
+
Default: 'default'
|
|
414
|
+
};
|
|
415
|
+
export const WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = {
|
|
416
|
+
Hostinger: 'hostinger',
|
|
417
|
+
HostingerAiAssistant: 'hostinger-ai-assistant',
|
|
418
|
+
HostingerAffiliatePlugin: 'hostinger-affiliate-plugin',
|
|
419
|
+
HostingerEasyOnboarding: 'hostinger-easy-onboarding',
|
|
420
|
+
HostingerReach: 'hostinger-reach'
|
|
421
|
+
};
|
|
422
|
+
export const WordPressV1ThemesInstallThemeRequestFontEnum = {
|
|
423
|
+
Professional: 'professional',
|
|
424
|
+
Modern: 'modern',
|
|
425
|
+
Elegant: 'elegant',
|
|
426
|
+
Creative: 'creative',
|
|
427
|
+
Dynamic: 'dynamic',
|
|
428
|
+
Default: 'default'
|
|
429
|
+
};
|
|
430
|
+
export const WordPressV1ThemesInstalledThemeResourceStatusEnum = {
|
|
431
|
+
Active: 'active',
|
|
432
|
+
Inactive: 'inactive'
|
|
433
|
+
};
|
|
383
434
|
/**
|
|
384
435
|
* BillingCatalogApi - axios parameter creator
|
|
385
436
|
* @export
|
|
@@ -3016,6 +3067,101 @@ export class DomainsWHOISApi extends BaseAPI {
|
|
|
3016
3067
|
return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
3017
3068
|
}
|
|
3018
3069
|
}
|
|
3070
|
+
/**
|
|
3071
|
+
* EcommerceMiscellaneousApi - axios parameter creator
|
|
3072
|
+
* @export
|
|
3073
|
+
*/
|
|
3074
|
+
export const EcommerceMiscellaneousApiAxiosParamCreator = function (configuration) {
|
|
3075
|
+
return {
|
|
3076
|
+
/**
|
|
3077
|
+
* Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3078
|
+
* @summary Get custom storefront setup instructions
|
|
3079
|
+
* @param {*} [options] Override http request option.
|
|
3080
|
+
* @throws {RequiredError}
|
|
3081
|
+
*/
|
|
3082
|
+
getCustomStorefrontSetupInstructionsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3083
|
+
const localVarPath = `/api/ecommerce/v1/miscellaneous/custom-storefront-instructions`;
|
|
3084
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3085
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3086
|
+
let baseOptions;
|
|
3087
|
+
if (configuration) {
|
|
3088
|
+
baseOptions = configuration.baseOptions;
|
|
3089
|
+
}
|
|
3090
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3091
|
+
const localVarHeaderParameter = {};
|
|
3092
|
+
const localVarQueryParameter = {};
|
|
3093
|
+
// authentication apiToken required
|
|
3094
|
+
// http bearer authentication required
|
|
3095
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3096
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3097
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3098
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3099
|
+
return {
|
|
3100
|
+
url: toPathString(localVarUrlObj),
|
|
3101
|
+
options: localVarRequestOptions,
|
|
3102
|
+
};
|
|
3103
|
+
}),
|
|
3104
|
+
};
|
|
3105
|
+
};
|
|
3106
|
+
/**
|
|
3107
|
+
* EcommerceMiscellaneousApi - functional programming interface
|
|
3108
|
+
* @export
|
|
3109
|
+
*/
|
|
3110
|
+
export const EcommerceMiscellaneousApiFp = function (configuration) {
|
|
3111
|
+
const localVarAxiosParamCreator = EcommerceMiscellaneousApiAxiosParamCreator(configuration);
|
|
3112
|
+
return {
|
|
3113
|
+
/**
|
|
3114
|
+
* Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3115
|
+
* @summary Get custom storefront setup instructions
|
|
3116
|
+
* @param {*} [options] Override http request option.
|
|
3117
|
+
* @throws {RequiredError}
|
|
3118
|
+
*/
|
|
3119
|
+
getCustomStorefrontSetupInstructionsV1(options) {
|
|
3120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3121
|
+
var _a, _b;
|
|
3122
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomStorefrontSetupInstructionsV1(options);
|
|
3123
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceMiscellaneousApi.getCustomStorefrontSetupInstructionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3124
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3125
|
+
});
|
|
3126
|
+
},
|
|
3127
|
+
};
|
|
3128
|
+
};
|
|
3129
|
+
/**
|
|
3130
|
+
* EcommerceMiscellaneousApi - factory interface
|
|
3131
|
+
* @export
|
|
3132
|
+
*/
|
|
3133
|
+
export const EcommerceMiscellaneousApiFactory = function (configuration, basePath, axios) {
|
|
3134
|
+
const localVarFp = EcommerceMiscellaneousApiFp(configuration);
|
|
3135
|
+
return {
|
|
3136
|
+
/**
|
|
3137
|
+
* Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3138
|
+
* @summary Get custom storefront setup instructions
|
|
3139
|
+
* @param {*} [options] Override http request option.
|
|
3140
|
+
* @throws {RequiredError}
|
|
3141
|
+
*/
|
|
3142
|
+
getCustomStorefrontSetupInstructionsV1(options) {
|
|
3143
|
+
return localVarFp.getCustomStorefrontSetupInstructionsV1(options).then((request) => request(axios, basePath));
|
|
3144
|
+
},
|
|
3145
|
+
};
|
|
3146
|
+
};
|
|
3147
|
+
/**
|
|
3148
|
+
* EcommerceMiscellaneousApi - object-oriented interface
|
|
3149
|
+
* @export
|
|
3150
|
+
* @class EcommerceMiscellaneousApi
|
|
3151
|
+
* @extends {BaseAPI}
|
|
3152
|
+
*/
|
|
3153
|
+
export class EcommerceMiscellaneousApi extends BaseAPI {
|
|
3154
|
+
/**
|
|
3155
|
+
* Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3156
|
+
* @summary Get custom storefront setup instructions
|
|
3157
|
+
* @param {*} [options] Override http request option.
|
|
3158
|
+
* @throws {RequiredError}
|
|
3159
|
+
* @memberof EcommerceMiscellaneousApi
|
|
3160
|
+
*/
|
|
3161
|
+
getCustomStorefrontSetupInstructionsV1(options) {
|
|
3162
|
+
return EcommerceMiscellaneousApiFp(this.configuration).getCustomStorefrontSetupInstructionsV1(options).then((request) => request(this.axios, this.basePath));
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3019
3165
|
/**
|
|
3020
3166
|
* EcommercePaymentsApi - axios parameter creator
|
|
3021
3167
|
* @export
|
|
@@ -3312,6 +3458,184 @@ export class EcommerceProductsApi extends BaseAPI {
|
|
|
3312
3458
|
return EcommerceProductsApiFp(this.configuration).createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3313
3459
|
}
|
|
3314
3460
|
}
|
|
3461
|
+
/**
|
|
3462
|
+
* EcommerceSalesChannelsApi - axios parameter creator
|
|
3463
|
+
* @export
|
|
3464
|
+
*/
|
|
3465
|
+
export const EcommerceSalesChannelsApiAxiosParamCreator = function (configuration) {
|
|
3466
|
+
return {
|
|
3467
|
+
/**
|
|
3468
|
+
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3469
|
+
* @summary Create a custom sales channel
|
|
3470
|
+
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3471
|
+
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3472
|
+
* @param {*} [options] Override http request option.
|
|
3473
|
+
* @throws {RequiredError}
|
|
3474
|
+
*/
|
|
3475
|
+
createACustomSalesChannelV1: (storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1SalesChannelStoreRequest, options = {}) {
|
|
3476
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
3477
|
+
assertParamExists('createACustomSalesChannelV1', 'storeId', storeId);
|
|
3478
|
+
// verify required parameter 'ecommerceV1SalesChannelStoreRequest' is not null or undefined
|
|
3479
|
+
assertParamExists('createACustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest);
|
|
3480
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
|
|
3481
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
|
|
3482
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3483
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3484
|
+
let baseOptions;
|
|
3485
|
+
if (configuration) {
|
|
3486
|
+
baseOptions = configuration.baseOptions;
|
|
3487
|
+
}
|
|
3488
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3489
|
+
const localVarHeaderParameter = {};
|
|
3490
|
+
const localVarQueryParameter = {};
|
|
3491
|
+
// authentication apiToken required
|
|
3492
|
+
// http bearer authentication required
|
|
3493
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3494
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3495
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3496
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3497
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3498
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1SalesChannelStoreRequest, localVarRequestOptions, configuration);
|
|
3499
|
+
return {
|
|
3500
|
+
url: toPathString(localVarUrlObj),
|
|
3501
|
+
options: localVarRequestOptions,
|
|
3502
|
+
};
|
|
3503
|
+
}),
|
|
3504
|
+
/**
|
|
3505
|
+
* List a store\'s active sales channels with their full metadata.
|
|
3506
|
+
* @summary List sales channels
|
|
3507
|
+
* @param {string} storeId The ID of the store to list sales channels for.
|
|
3508
|
+
* @param {*} [options] Override http request option.
|
|
3509
|
+
* @throws {RequiredError}
|
|
3510
|
+
*/
|
|
3511
|
+
listSalesChannelsV1: (storeId_1, ...args_1) => __awaiter(this, [storeId_1, ...args_1], void 0, function* (storeId, options = {}) {
|
|
3512
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
3513
|
+
assertParamExists('listSalesChannelsV1', 'storeId', storeId);
|
|
3514
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
|
|
3515
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
|
|
3516
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3517
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3518
|
+
let baseOptions;
|
|
3519
|
+
if (configuration) {
|
|
3520
|
+
baseOptions = configuration.baseOptions;
|
|
3521
|
+
}
|
|
3522
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3523
|
+
const localVarHeaderParameter = {};
|
|
3524
|
+
const localVarQueryParameter = {};
|
|
3525
|
+
// authentication apiToken required
|
|
3526
|
+
// http bearer authentication required
|
|
3527
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3528
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3529
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3530
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3531
|
+
return {
|
|
3532
|
+
url: toPathString(localVarUrlObj),
|
|
3533
|
+
options: localVarRequestOptions,
|
|
3534
|
+
};
|
|
3535
|
+
}),
|
|
3536
|
+
};
|
|
3537
|
+
};
|
|
3538
|
+
/**
|
|
3539
|
+
* EcommerceSalesChannelsApi - functional programming interface
|
|
3540
|
+
* @export
|
|
3541
|
+
*/
|
|
3542
|
+
export const EcommerceSalesChannelsApiFp = function (configuration) {
|
|
3543
|
+
const localVarAxiosParamCreator = EcommerceSalesChannelsApiAxiosParamCreator(configuration);
|
|
3544
|
+
return {
|
|
3545
|
+
/**
|
|
3546
|
+
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3547
|
+
* @summary Create a custom sales channel
|
|
3548
|
+
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3549
|
+
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3550
|
+
* @param {*} [options] Override http request option.
|
|
3551
|
+
* @throws {RequiredError}
|
|
3552
|
+
*/
|
|
3553
|
+
createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
|
|
3554
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3555
|
+
var _a, _b;
|
|
3556
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
|
|
3557
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceSalesChannelsApi.createACustomSalesChannelV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3558
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3559
|
+
});
|
|
3560
|
+
},
|
|
3561
|
+
/**
|
|
3562
|
+
* List a store\'s active sales channels with their full metadata.
|
|
3563
|
+
* @summary List sales channels
|
|
3564
|
+
* @param {string} storeId The ID of the store to list sales channels for.
|
|
3565
|
+
* @param {*} [options] Override http request option.
|
|
3566
|
+
* @throws {RequiredError}
|
|
3567
|
+
*/
|
|
3568
|
+
listSalesChannelsV1(storeId, options) {
|
|
3569
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3570
|
+
var _a, _b;
|
|
3571
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSalesChannelsV1(storeId, options);
|
|
3572
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceSalesChannelsApi.listSalesChannelsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3573
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3574
|
+
});
|
|
3575
|
+
},
|
|
3576
|
+
};
|
|
3577
|
+
};
|
|
3578
|
+
/**
|
|
3579
|
+
* EcommerceSalesChannelsApi - factory interface
|
|
3580
|
+
* @export
|
|
3581
|
+
*/
|
|
3582
|
+
export const EcommerceSalesChannelsApiFactory = function (configuration, basePath, axios) {
|
|
3583
|
+
const localVarFp = EcommerceSalesChannelsApiFp(configuration);
|
|
3584
|
+
return {
|
|
3585
|
+
/**
|
|
3586
|
+
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3587
|
+
* @summary Create a custom sales channel
|
|
3588
|
+
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3589
|
+
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3590
|
+
* @param {*} [options] Override http request option.
|
|
3591
|
+
* @throws {RequiredError}
|
|
3592
|
+
*/
|
|
3593
|
+
createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
|
|
3594
|
+
return localVarFp.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
|
|
3595
|
+
},
|
|
3596
|
+
/**
|
|
3597
|
+
* List a store\'s active sales channels with their full metadata.
|
|
3598
|
+
* @summary List sales channels
|
|
3599
|
+
* @param {string} storeId The ID of the store to list sales channels for.
|
|
3600
|
+
* @param {*} [options] Override http request option.
|
|
3601
|
+
* @throws {RequiredError}
|
|
3602
|
+
*/
|
|
3603
|
+
listSalesChannelsV1(storeId, options) {
|
|
3604
|
+
return localVarFp.listSalesChannelsV1(storeId, options).then((request) => request(axios, basePath));
|
|
3605
|
+
},
|
|
3606
|
+
};
|
|
3607
|
+
};
|
|
3608
|
+
/**
|
|
3609
|
+
* EcommerceSalesChannelsApi - object-oriented interface
|
|
3610
|
+
* @export
|
|
3611
|
+
* @class EcommerceSalesChannelsApi
|
|
3612
|
+
* @extends {BaseAPI}
|
|
3613
|
+
*/
|
|
3614
|
+
export class EcommerceSalesChannelsApi extends BaseAPI {
|
|
3615
|
+
/**
|
|
3616
|
+
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3617
|
+
* @summary Create a custom sales channel
|
|
3618
|
+
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3619
|
+
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3620
|
+
* @param {*} [options] Override http request option.
|
|
3621
|
+
* @throws {RequiredError}
|
|
3622
|
+
* @memberof EcommerceSalesChannelsApi
|
|
3623
|
+
*/
|
|
3624
|
+
createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
|
|
3625
|
+
return EcommerceSalesChannelsApiFp(this.configuration).createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3626
|
+
}
|
|
3627
|
+
/**
|
|
3628
|
+
* List a store\'s active sales channels with their full metadata.
|
|
3629
|
+
* @summary List sales channels
|
|
3630
|
+
* @param {string} storeId The ID of the store to list sales channels for.
|
|
3631
|
+
* @param {*} [options] Override http request option.
|
|
3632
|
+
* @throws {RequiredError}
|
|
3633
|
+
* @memberof EcommerceSalesChannelsApi
|
|
3634
|
+
*/
|
|
3635
|
+
listSalesChannelsV1(storeId, options) {
|
|
3636
|
+
return EcommerceSalesChannelsApiFp(this.configuration).listSalesChannelsV1(storeId, options).then((request) => request(this.axios, this.basePath));
|
|
3637
|
+
}
|
|
3638
|
+
}
|
|
3315
3639
|
/**
|
|
3316
3640
|
* EcommerceShippingApi - axios parameter creator
|
|
3317
3641
|
* @export
|
|
@@ -6321,26 +6645,23 @@ export class HostingWebsitesApi extends BaseAPI {
|
|
|
6321
6645
|
}
|
|
6322
6646
|
}
|
|
6323
6647
|
/**
|
|
6324
|
-
*
|
|
6648
|
+
* ReachContactsApi - axios parameter creator
|
|
6325
6649
|
* @export
|
|
6326
6650
|
*/
|
|
6327
|
-
export const
|
|
6651
|
+
export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
6328
6652
|
return {
|
|
6329
6653
|
/**
|
|
6330
|
-
*
|
|
6331
|
-
* @summary
|
|
6332
|
-
* @param {
|
|
6333
|
-
* @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
|
|
6654
|
+
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
6655
|
+
* @summary Create a new contact
|
|
6656
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
6334
6657
|
* @param {*} [options] Override http request option.
|
|
6658
|
+
* @deprecated
|
|
6335
6659
|
* @throws {RequiredError}
|
|
6336
6660
|
*/
|
|
6337
|
-
|
|
6338
|
-
// verify required parameter '
|
|
6339
|
-
assertParamExists('
|
|
6340
|
-
|
|
6341
|
-
assertParamExists('installWordPressV1', 'hostingV1WordpressInstallWordpressRequest', hostingV1WordpressInstallWordpressRequest);
|
|
6342
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
|
|
6343
|
-
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
6661
|
+
createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
|
|
6662
|
+
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
6663
|
+
assertParamExists('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
|
|
6664
|
+
const localVarPath = `/api/reach/v1/contacts`;
|
|
6344
6665
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6345
6666
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6346
6667
|
let baseOptions;
|
|
@@ -6357,241 +6678,44 @@ export const HostingWordpressApiAxiosParamCreator = function (configuration) {
|
|
|
6357
6678
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6358
6679
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6359
6680
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6360
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
6681
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
6361
6682
|
return {
|
|
6362
6683
|
url: toPathString(localVarUrlObj),
|
|
6363
6684
|
options: localVarRequestOptions,
|
|
6364
6685
|
};
|
|
6365
6686
|
}),
|
|
6366
6687
|
/**
|
|
6367
|
-
*
|
|
6368
|
-
* @summary
|
|
6369
|
-
* @param {string
|
|
6370
|
-
* @param {
|
|
6371
|
-
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
6688
|
+
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
6689
|
+
* @summary Create new contacts
|
|
6690
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
6691
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
6372
6692
|
* @param {*} [options] Override http request option.
|
|
6373
6693
|
* @throws {RequiredError}
|
|
6374
6694
|
*/
|
|
6375
|
-
|
|
6376
|
-
|
|
6695
|
+
createNewContactsV1: (profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsStoreRequest, options = {}) {
|
|
6696
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
6697
|
+
assertParamExists('createNewContactsV1', 'profileUuid', profileUuid);
|
|
6698
|
+
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
6699
|
+
assertParamExists('createNewContactsV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
|
|
6700
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
|
|
6701
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
6377
6702
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6378
6703
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6379
6704
|
let baseOptions;
|
|
6380
6705
|
if (configuration) {
|
|
6381
6706
|
baseOptions = configuration.baseOptions;
|
|
6382
6707
|
}
|
|
6383
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6708
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6384
6709
|
const localVarHeaderParameter = {};
|
|
6385
6710
|
const localVarQueryParameter = {};
|
|
6386
6711
|
// authentication apiToken required
|
|
6387
6712
|
// http bearer authentication required
|
|
6388
6713
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6389
|
-
|
|
6390
|
-
localVarQueryParameter['username'] = username;
|
|
6391
|
-
}
|
|
6392
|
-
if (domain !== undefined) {
|
|
6393
|
-
localVarQueryParameter['domain'] = domain;
|
|
6394
|
-
}
|
|
6395
|
-
if (ownership !== undefined) {
|
|
6396
|
-
localVarQueryParameter['ownership'] = ownership;
|
|
6397
|
-
}
|
|
6714
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6398
6715
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6399
6716
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6400
6717
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6401
|
-
|
|
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
|
-
/**
|
|
6524
|
-
* ReachContactsApi - axios parameter creator
|
|
6525
|
-
* @export
|
|
6526
|
-
*/
|
|
6527
|
-
export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
6528
|
-
return {
|
|
6529
|
-
/**
|
|
6530
|
-
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
6531
|
-
* @summary Create a new contact
|
|
6532
|
-
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
6533
|
-
* @param {*} [options] Override http request option.
|
|
6534
|
-
* @deprecated
|
|
6535
|
-
* @throws {RequiredError}
|
|
6536
|
-
*/
|
|
6537
|
-
createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
|
|
6538
|
-
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
6539
|
-
assertParamExists('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
|
|
6540
|
-
const localVarPath = `/api/reach/v1/contacts`;
|
|
6541
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6542
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6543
|
-
let baseOptions;
|
|
6544
|
-
if (configuration) {
|
|
6545
|
-
baseOptions = configuration.baseOptions;
|
|
6546
|
-
}
|
|
6547
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6548
|
-
const localVarHeaderParameter = {};
|
|
6549
|
-
const localVarQueryParameter = {};
|
|
6550
|
-
// authentication apiToken required
|
|
6551
|
-
// http bearer authentication required
|
|
6552
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6553
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6554
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6555
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6556
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6557
|
-
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
6558
|
-
return {
|
|
6559
|
-
url: toPathString(localVarUrlObj),
|
|
6560
|
-
options: localVarRequestOptions,
|
|
6561
|
-
};
|
|
6562
|
-
}),
|
|
6563
|
-
/**
|
|
6564
|
-
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
6565
|
-
* @summary Create new contacts
|
|
6566
|
-
* @param {string} profileUuid Profile uuid parameter
|
|
6567
|
-
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
6568
|
-
* @param {*} [options] Override http request option.
|
|
6569
|
-
* @throws {RequiredError}
|
|
6570
|
-
*/
|
|
6571
|
-
createNewContactsV1: (profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsStoreRequest, options = {}) {
|
|
6572
|
-
// verify required parameter 'profileUuid' is not null or undefined
|
|
6573
|
-
assertParamExists('createNewContactsV1', 'profileUuid', profileUuid);
|
|
6574
|
-
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
6575
|
-
assertParamExists('createNewContactsV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
|
|
6576
|
-
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
|
|
6577
|
-
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
6578
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6579
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6580
|
-
let baseOptions;
|
|
6581
|
-
if (configuration) {
|
|
6582
|
-
baseOptions = configuration.baseOptions;
|
|
6583
|
-
}
|
|
6584
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6585
|
-
const localVarHeaderParameter = {};
|
|
6586
|
-
const localVarQueryParameter = {};
|
|
6587
|
-
// authentication apiToken required
|
|
6588
|
-
// http bearer authentication required
|
|
6589
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6590
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6591
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6592
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6593
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6594
|
-
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
6718
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
6595
6719
|
return {
|
|
6596
6720
|
url: toPathString(localVarUrlObj),
|
|
6597
6721
|
options: localVarRequestOptions,
|
|
@@ -12398,3 +12522,1620 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
12398
12522
|
return VPSVirtualMachineApiFp(this.configuration).stopVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
12399
12523
|
}
|
|
12400
12524
|
}
|
|
12525
|
+
/**
|
|
12526
|
+
* WordPressInstallationsApi - axios parameter creator
|
|
12527
|
+
* @export
|
|
12528
|
+
*/
|
|
12529
|
+
export const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
|
|
12530
|
+
return {
|
|
12531
|
+
/**
|
|
12532
|
+
* 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.
|
|
12533
|
+
* @summary Install WordPress
|
|
12534
|
+
* @param {string} username
|
|
12535
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
12536
|
+
* @param {*} [options] Override http request option.
|
|
12537
|
+
* @throws {RequiredError}
|
|
12538
|
+
*/
|
|
12539
|
+
installWordPressV1: (username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1) => __awaiter(this, [username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1], void 0, function* (username, wordPressV1InstallationsInstallWordPressRequest, options = {}) {
|
|
12540
|
+
// verify required parameter 'username' is not null or undefined
|
|
12541
|
+
assertParamExists('installWordPressV1', 'username', username);
|
|
12542
|
+
// verify required parameter 'wordPressV1InstallationsInstallWordPressRequest' is not null or undefined
|
|
12543
|
+
assertParamExists('installWordPressV1', 'wordPressV1InstallationsInstallWordPressRequest', wordPressV1InstallationsInstallWordPressRequest);
|
|
12544
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
|
|
12545
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
12546
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12547
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12548
|
+
let baseOptions;
|
|
12549
|
+
if (configuration) {
|
|
12550
|
+
baseOptions = configuration.baseOptions;
|
|
12551
|
+
}
|
|
12552
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12553
|
+
const localVarHeaderParameter = {};
|
|
12554
|
+
const localVarQueryParameter = {};
|
|
12555
|
+
// authentication apiToken required
|
|
12556
|
+
// http bearer authentication required
|
|
12557
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12558
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12559
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12560
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12561
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12562
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsInstallWordPressRequest, localVarRequestOptions, configuration);
|
|
12563
|
+
return {
|
|
12564
|
+
url: toPathString(localVarUrlObj),
|
|
12565
|
+
options: localVarRequestOptions,
|
|
12566
|
+
};
|
|
12567
|
+
}),
|
|
12568
|
+
/**
|
|
12569
|
+
* 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.
|
|
12570
|
+
* @summary List WordPress installations
|
|
12571
|
+
* @param {string | null} [username] Filter by specific username
|
|
12572
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12573
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
12574
|
+
* @param {*} [options] Override http request option.
|
|
12575
|
+
* @throws {RequiredError}
|
|
12576
|
+
*/
|
|
12577
|
+
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 = {}) {
|
|
12578
|
+
const localVarPath = `/api/hosting/v1/wordpress/installations`;
|
|
12579
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12580
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12581
|
+
let baseOptions;
|
|
12582
|
+
if (configuration) {
|
|
12583
|
+
baseOptions = configuration.baseOptions;
|
|
12584
|
+
}
|
|
12585
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12586
|
+
const localVarHeaderParameter = {};
|
|
12587
|
+
const localVarQueryParameter = {};
|
|
12588
|
+
// authentication apiToken required
|
|
12589
|
+
// http bearer authentication required
|
|
12590
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12591
|
+
if (username !== undefined) {
|
|
12592
|
+
localVarQueryParameter['username'] = username;
|
|
12593
|
+
}
|
|
12594
|
+
if (domain !== undefined) {
|
|
12595
|
+
localVarQueryParameter['domain'] = domain;
|
|
12596
|
+
}
|
|
12597
|
+
if (ownership !== undefined) {
|
|
12598
|
+
localVarQueryParameter['ownership'] = ownership;
|
|
12599
|
+
}
|
|
12600
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12601
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12602
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12603
|
+
return {
|
|
12604
|
+
url: toPathString(localVarUrlObj),
|
|
12605
|
+
options: localVarRequestOptions,
|
|
12606
|
+
};
|
|
12607
|
+
}),
|
|
12608
|
+
};
|
|
12609
|
+
};
|
|
12610
|
+
/**
|
|
12611
|
+
* WordPressInstallationsApi - functional programming interface
|
|
12612
|
+
* @export
|
|
12613
|
+
*/
|
|
12614
|
+
export const WordPressInstallationsApiFp = function (configuration) {
|
|
12615
|
+
const localVarAxiosParamCreator = WordPressInstallationsApiAxiosParamCreator(configuration);
|
|
12616
|
+
return {
|
|
12617
|
+
/**
|
|
12618
|
+
* 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.
|
|
12619
|
+
* @summary Install WordPress
|
|
12620
|
+
* @param {string} username
|
|
12621
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
12622
|
+
* @param {*} [options] Override http request option.
|
|
12623
|
+
* @throws {RequiredError}
|
|
12624
|
+
*/
|
|
12625
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
12626
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12627
|
+
var _a, _b;
|
|
12628
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options);
|
|
12629
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.installWordPressV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12630
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12631
|
+
});
|
|
12632
|
+
},
|
|
12633
|
+
/**
|
|
12634
|
+
* 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.
|
|
12635
|
+
* @summary List WordPress installations
|
|
12636
|
+
* @param {string | null} [username] Filter by specific username
|
|
12637
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12638
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
12639
|
+
* @param {*} [options] Override http request option.
|
|
12640
|
+
* @throws {RequiredError}
|
|
12641
|
+
*/
|
|
12642
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
12643
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12644
|
+
var _a, _b;
|
|
12645
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
|
|
12646
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.listWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12647
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12648
|
+
});
|
|
12649
|
+
},
|
|
12650
|
+
};
|
|
12651
|
+
};
|
|
12652
|
+
/**
|
|
12653
|
+
* WordPressInstallationsApi - factory interface
|
|
12654
|
+
* @export
|
|
12655
|
+
*/
|
|
12656
|
+
export const WordPressInstallationsApiFactory = function (configuration, basePath, axios) {
|
|
12657
|
+
const localVarFp = WordPressInstallationsApiFp(configuration);
|
|
12658
|
+
return {
|
|
12659
|
+
/**
|
|
12660
|
+
* 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.
|
|
12661
|
+
* @summary Install WordPress
|
|
12662
|
+
* @param {string} username
|
|
12663
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
12664
|
+
* @param {*} [options] Override http request option.
|
|
12665
|
+
* @throws {RequiredError}
|
|
12666
|
+
*/
|
|
12667
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
12668
|
+
return localVarFp.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(axios, basePath));
|
|
12669
|
+
},
|
|
12670
|
+
/**
|
|
12671
|
+
* 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.
|
|
12672
|
+
* @summary List WordPress installations
|
|
12673
|
+
* @param {string | null} [username] Filter by specific username
|
|
12674
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12675
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
12676
|
+
* @param {*} [options] Override http request option.
|
|
12677
|
+
* @throws {RequiredError}
|
|
12678
|
+
*/
|
|
12679
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
12680
|
+
return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
|
|
12681
|
+
},
|
|
12682
|
+
};
|
|
12683
|
+
};
|
|
12684
|
+
/**
|
|
12685
|
+
* WordPressInstallationsApi - object-oriented interface
|
|
12686
|
+
* @export
|
|
12687
|
+
* @class WordPressInstallationsApi
|
|
12688
|
+
* @extends {BaseAPI}
|
|
12689
|
+
*/
|
|
12690
|
+
export class WordPressInstallationsApi extends BaseAPI {
|
|
12691
|
+
/**
|
|
12692
|
+
* 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.
|
|
12693
|
+
* @summary Install WordPress
|
|
12694
|
+
* @param {string} username
|
|
12695
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
12696
|
+
* @param {*} [options] Override http request option.
|
|
12697
|
+
* @throws {RequiredError}
|
|
12698
|
+
* @memberof WordPressInstallationsApi
|
|
12699
|
+
*/
|
|
12700
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
12701
|
+
return WordPressInstallationsApiFp(this.configuration).installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12702
|
+
}
|
|
12703
|
+
/**
|
|
12704
|
+
* 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.
|
|
12705
|
+
* @summary List WordPress installations
|
|
12706
|
+
* @param {string | null} [username] Filter by specific username
|
|
12707
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12708
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
12709
|
+
* @param {*} [options] Override http request option.
|
|
12710
|
+
* @throws {RequiredError}
|
|
12711
|
+
* @memberof WordPressInstallationsApi
|
|
12712
|
+
*/
|
|
12713
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
12714
|
+
return WordPressInstallationsApiFp(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
|
|
12715
|
+
}
|
|
12716
|
+
}
|
|
12717
|
+
/**
|
|
12718
|
+
* @export
|
|
12719
|
+
*/
|
|
12720
|
+
export const ListWordPressInstallationsV1OwnershipEnum = {
|
|
12721
|
+
Owned: 'owned',
|
|
12722
|
+
Managed: 'managed',
|
|
12723
|
+
All: 'all'
|
|
12724
|
+
};
|
|
12725
|
+
/**
|
|
12726
|
+
* WordPressPluginsApi - axios parameter creator
|
|
12727
|
+
* @export
|
|
12728
|
+
*/
|
|
12729
|
+
export const WordPressPluginsApiAxiosParamCreator = function (configuration) {
|
|
12730
|
+
return {
|
|
12731
|
+
/**
|
|
12732
|
+
* 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.
|
|
12733
|
+
* @summary Activate WordPress plugin
|
|
12734
|
+
* @param {string} username
|
|
12735
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12736
|
+
* @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
|
|
12737
|
+
* @param {*} [options] Override http request option.
|
|
12738
|
+
* @throws {RequiredError}
|
|
12739
|
+
*/
|
|
12740
|
+
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 = {}) {
|
|
12741
|
+
// verify required parameter 'username' is not null or undefined
|
|
12742
|
+
assertParamExists('activateWordPressPluginV1', 'username', username);
|
|
12743
|
+
// verify required parameter 'software' is not null or undefined
|
|
12744
|
+
assertParamExists('activateWordPressPluginV1', 'software', software);
|
|
12745
|
+
// verify required parameter 'wordPressV1PluginsActivatePluginRequest' is not null or undefined
|
|
12746
|
+
assertParamExists('activateWordPressPluginV1', 'wordPressV1PluginsActivatePluginRequest', wordPressV1PluginsActivatePluginRequest);
|
|
12747
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/activate`
|
|
12748
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12749
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12750
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12751
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12752
|
+
let baseOptions;
|
|
12753
|
+
if (configuration) {
|
|
12754
|
+
baseOptions = configuration.baseOptions;
|
|
12755
|
+
}
|
|
12756
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12757
|
+
const localVarHeaderParameter = {};
|
|
12758
|
+
const localVarQueryParameter = {};
|
|
12759
|
+
// authentication apiToken required
|
|
12760
|
+
// http bearer authentication required
|
|
12761
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12762
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12763
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12764
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12765
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12766
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1PluginsActivatePluginRequest, localVarRequestOptions, configuration);
|
|
12767
|
+
return {
|
|
12768
|
+
url: toPathString(localVarUrlObj),
|
|
12769
|
+
options: localVarRequestOptions,
|
|
12770
|
+
};
|
|
12771
|
+
}),
|
|
12772
|
+
/**
|
|
12773
|
+
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
12774
|
+
* @summary Check if WooCommerce is installed
|
|
12775
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12776
|
+
* @param {*} [options] Override http request option.
|
|
12777
|
+
* @throws {RequiredError}
|
|
12778
|
+
*/
|
|
12779
|
+
checkIfWooCommerceIsInstalledV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
12780
|
+
const localVarPath = `/api/hosting/v1/wordpress/plugins/is-woocommerce-installed`;
|
|
12781
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12782
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12783
|
+
let baseOptions;
|
|
12784
|
+
if (configuration) {
|
|
12785
|
+
baseOptions = configuration.baseOptions;
|
|
12786
|
+
}
|
|
12787
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12788
|
+
const localVarHeaderParameter = {};
|
|
12789
|
+
const localVarQueryParameter = {};
|
|
12790
|
+
// authentication apiToken required
|
|
12791
|
+
// http bearer authentication required
|
|
12792
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12793
|
+
if (domain !== undefined) {
|
|
12794
|
+
localVarQueryParameter['domain'] = domain;
|
|
12795
|
+
}
|
|
12796
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12797
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12798
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12799
|
+
return {
|
|
12800
|
+
url: toPathString(localVarUrlObj),
|
|
12801
|
+
options: localVarRequestOptions,
|
|
12802
|
+
};
|
|
12803
|
+
}),
|
|
12804
|
+
/**
|
|
12805
|
+
* 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.
|
|
12806
|
+
* @summary Deactivate WordPress plugin
|
|
12807
|
+
* @param {string} username
|
|
12808
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12809
|
+
* @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
|
|
12810
|
+
* @param {*} [options] Override http request option.
|
|
12811
|
+
* @throws {RequiredError}
|
|
12812
|
+
*/
|
|
12813
|
+
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 = {}) {
|
|
12814
|
+
// verify required parameter 'username' is not null or undefined
|
|
12815
|
+
assertParamExists('deactivateWordPressPluginV1', 'username', username);
|
|
12816
|
+
// verify required parameter 'software' is not null or undefined
|
|
12817
|
+
assertParamExists('deactivateWordPressPluginV1', 'software', software);
|
|
12818
|
+
// verify required parameter 'wordPressV1PluginsDeactivatePluginRequest' is not null or undefined
|
|
12819
|
+
assertParamExists('deactivateWordPressPluginV1', 'wordPressV1PluginsDeactivatePluginRequest', wordPressV1PluginsDeactivatePluginRequest);
|
|
12820
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/deactivate`
|
|
12821
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12822
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12823
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12824
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12825
|
+
let baseOptions;
|
|
12826
|
+
if (configuration) {
|
|
12827
|
+
baseOptions = configuration.baseOptions;
|
|
12828
|
+
}
|
|
12829
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12830
|
+
const localVarHeaderParameter = {};
|
|
12831
|
+
const localVarQueryParameter = {};
|
|
12832
|
+
// authentication apiToken required
|
|
12833
|
+
// http bearer authentication required
|
|
12834
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12835
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12836
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12837
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12838
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12839
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1PluginsDeactivatePluginRequest, localVarRequestOptions, configuration);
|
|
12840
|
+
return {
|
|
12841
|
+
url: toPathString(localVarUrlObj),
|
|
12842
|
+
options: localVarRequestOptions,
|
|
12843
|
+
};
|
|
12844
|
+
}),
|
|
12845
|
+
/**
|
|
12846
|
+
* 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.
|
|
12847
|
+
* @summary Install WordPress plugins
|
|
12848
|
+
* @param {string} username
|
|
12849
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12850
|
+
* @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
|
|
12851
|
+
* @param {*} [options] Override http request option.
|
|
12852
|
+
* @throws {RequiredError}
|
|
12853
|
+
*/
|
|
12854
|
+
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 = {}) {
|
|
12855
|
+
// verify required parameter 'username' is not null or undefined
|
|
12856
|
+
assertParamExists('installWordPressPluginsV1', 'username', username);
|
|
12857
|
+
// verify required parameter 'software' is not null or undefined
|
|
12858
|
+
assertParamExists('installWordPressPluginsV1', 'software', software);
|
|
12859
|
+
// verify required parameter 'wordPressV1PluginsInstallPluginsRequest' is not null or undefined
|
|
12860
|
+
assertParamExists('installWordPressPluginsV1', 'wordPressV1PluginsInstallPluginsRequest', wordPressV1PluginsInstallPluginsRequest);
|
|
12861
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install`
|
|
12862
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12863
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12864
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12865
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12866
|
+
let baseOptions;
|
|
12867
|
+
if (configuration) {
|
|
12868
|
+
baseOptions = configuration.baseOptions;
|
|
12869
|
+
}
|
|
12870
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12871
|
+
const localVarHeaderParameter = {};
|
|
12872
|
+
const localVarQueryParameter = {};
|
|
12873
|
+
// authentication apiToken required
|
|
12874
|
+
// http bearer authentication required
|
|
12875
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12876
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12877
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12878
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12879
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12880
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1PluginsInstallPluginsRequest, localVarRequestOptions, configuration);
|
|
12881
|
+
return {
|
|
12882
|
+
url: toPathString(localVarUrlObj),
|
|
12883
|
+
options: localVarRequestOptions,
|
|
12884
|
+
};
|
|
12885
|
+
}),
|
|
12886
|
+
/**
|
|
12887
|
+
* 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).
|
|
12888
|
+
* @summary List available WordPress plugins
|
|
12889
|
+
* @param {string} username
|
|
12890
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12891
|
+
* @param {*} [options] Override http request option.
|
|
12892
|
+
* @throws {RequiredError}
|
|
12893
|
+
*/
|
|
12894
|
+
listAvailableWordPressPluginsV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
12895
|
+
// verify required parameter 'username' is not null or undefined
|
|
12896
|
+
assertParamExists('listAvailableWordPressPluginsV1', 'username', username);
|
|
12897
|
+
// verify required parameter 'software' is not null or undefined
|
|
12898
|
+
assertParamExists('listAvailableWordPressPluginsV1', 'software', software);
|
|
12899
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/available`
|
|
12900
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12901
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12902
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12903
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12904
|
+
let baseOptions;
|
|
12905
|
+
if (configuration) {
|
|
12906
|
+
baseOptions = configuration.baseOptions;
|
|
12907
|
+
}
|
|
12908
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12909
|
+
const localVarHeaderParameter = {};
|
|
12910
|
+
const localVarQueryParameter = {};
|
|
12911
|
+
// authentication apiToken required
|
|
12912
|
+
// http bearer authentication required
|
|
12913
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12914
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12915
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12916
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12917
|
+
return {
|
|
12918
|
+
url: toPathString(localVarUrlObj),
|
|
12919
|
+
options: localVarRequestOptions,
|
|
12920
|
+
};
|
|
12921
|
+
}),
|
|
12922
|
+
/**
|
|
12923
|
+
* 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).
|
|
12924
|
+
* @summary List installed WordPress plugins
|
|
12925
|
+
* @param {string} username
|
|
12926
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12927
|
+
* @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
|
|
12928
|
+
* @param {*} [options] Override http request option.
|
|
12929
|
+
* @throws {RequiredError}
|
|
12930
|
+
*/
|
|
12931
|
+
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 = {}) {
|
|
12932
|
+
// verify required parameter 'username' is not null or undefined
|
|
12933
|
+
assertParamExists('listInstalledWordPressPluginsV1', 'username', username);
|
|
12934
|
+
// verify required parameter 'software' is not null or undefined
|
|
12935
|
+
assertParamExists('listInstalledWordPressPluginsV1', 'software', software);
|
|
12936
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins`
|
|
12937
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12938
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12939
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12940
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12941
|
+
let baseOptions;
|
|
12942
|
+
if (configuration) {
|
|
12943
|
+
baseOptions = configuration.baseOptions;
|
|
12944
|
+
}
|
|
12945
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12946
|
+
const localVarHeaderParameter = {};
|
|
12947
|
+
const localVarQueryParameter = {};
|
|
12948
|
+
// authentication apiToken required
|
|
12949
|
+
// http bearer authentication required
|
|
12950
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12951
|
+
if (category !== undefined) {
|
|
12952
|
+
localVarQueryParameter['category'] = category;
|
|
12953
|
+
}
|
|
12954
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12955
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12956
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12957
|
+
return {
|
|
12958
|
+
url: toPathString(localVarUrlObj),
|
|
12959
|
+
options: localVarRequestOptions,
|
|
12960
|
+
};
|
|
12961
|
+
}),
|
|
12962
|
+
/**
|
|
12963
|
+
* List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
12964
|
+
* @summary List suggested WordPress plugins
|
|
12965
|
+
* @param {number | null} [orderId] Optionally scope suggestions to a specific order.
|
|
12966
|
+
* @param {*} [options] Override http request option.
|
|
12967
|
+
* @throws {RequiredError}
|
|
12968
|
+
*/
|
|
12969
|
+
listSuggestedWordPressPluginsV1: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
|
|
12970
|
+
const localVarPath = `/api/hosting/v1/wordpress/plugins/suggested`;
|
|
12971
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12972
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12973
|
+
let baseOptions;
|
|
12974
|
+
if (configuration) {
|
|
12975
|
+
baseOptions = configuration.baseOptions;
|
|
12976
|
+
}
|
|
12977
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12978
|
+
const localVarHeaderParameter = {};
|
|
12979
|
+
const localVarQueryParameter = {};
|
|
12980
|
+
// authentication apiToken required
|
|
12981
|
+
// http bearer authentication required
|
|
12982
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12983
|
+
if (orderId !== undefined) {
|
|
12984
|
+
localVarQueryParameter['order_id'] = orderId;
|
|
12985
|
+
}
|
|
12986
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12987
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12988
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12989
|
+
return {
|
|
12990
|
+
url: toPathString(localVarUrlObj),
|
|
12991
|
+
options: localVarRequestOptions,
|
|
12992
|
+
};
|
|
12993
|
+
}),
|
|
12994
|
+
/**
|
|
12995
|
+
* 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.
|
|
12996
|
+
* @summary Search WordPress plugins
|
|
12997
|
+
* @param {string} search Search term to match against plugin names. Minimum 3 characters.
|
|
12998
|
+
* @param {*} [options] Override http request option.
|
|
12999
|
+
* @throws {RequiredError}
|
|
13000
|
+
*/
|
|
13001
|
+
searchWordPressPluginsV1: (search_1, ...args_1) => __awaiter(this, [search_1, ...args_1], void 0, function* (search, options = {}) {
|
|
13002
|
+
// verify required parameter 'search' is not null or undefined
|
|
13003
|
+
assertParamExists('searchWordPressPluginsV1', 'search', search);
|
|
13004
|
+
const localVarPath = `/api/hosting/v1/wordpress/plugins`;
|
|
13005
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13006
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13007
|
+
let baseOptions;
|
|
13008
|
+
if (configuration) {
|
|
13009
|
+
baseOptions = configuration.baseOptions;
|
|
13010
|
+
}
|
|
13011
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13012
|
+
const localVarHeaderParameter = {};
|
|
13013
|
+
const localVarQueryParameter = {};
|
|
13014
|
+
// authentication apiToken required
|
|
13015
|
+
// http bearer authentication required
|
|
13016
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13017
|
+
if (search !== undefined) {
|
|
13018
|
+
localVarQueryParameter['search'] = search;
|
|
13019
|
+
}
|
|
13020
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13021
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13022
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13023
|
+
return {
|
|
13024
|
+
url: toPathString(localVarUrlObj),
|
|
13025
|
+
options: localVarRequestOptions,
|
|
13026
|
+
};
|
|
13027
|
+
}),
|
|
13028
|
+
/**
|
|
13029
|
+
* 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.
|
|
13030
|
+
* @summary Uninstall WordPress plugins
|
|
13031
|
+
* @param {string} username
|
|
13032
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13033
|
+
* @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
|
|
13034
|
+
* @param {*} [options] Override http request option.
|
|
13035
|
+
* @throws {RequiredError}
|
|
13036
|
+
*/
|
|
13037
|
+
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 = {}) {
|
|
13038
|
+
// verify required parameter 'username' is not null or undefined
|
|
13039
|
+
assertParamExists('uninstallWordPressPluginsV1', 'username', username);
|
|
13040
|
+
// verify required parameter 'software' is not null or undefined
|
|
13041
|
+
assertParamExists('uninstallWordPressPluginsV1', 'software', software);
|
|
13042
|
+
// verify required parameter 'wordPressV1PluginsUninstallPluginsRequest' is not null or undefined
|
|
13043
|
+
assertParamExists('uninstallWordPressPluginsV1', 'wordPressV1PluginsUninstallPluginsRequest', wordPressV1PluginsUninstallPluginsRequest);
|
|
13044
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/uninstall`
|
|
13045
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13046
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13047
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13048
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13049
|
+
let baseOptions;
|
|
13050
|
+
if (configuration) {
|
|
13051
|
+
baseOptions = configuration.baseOptions;
|
|
13052
|
+
}
|
|
13053
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13054
|
+
const localVarHeaderParameter = {};
|
|
13055
|
+
const localVarQueryParameter = {};
|
|
13056
|
+
// authentication apiToken required
|
|
13057
|
+
// http bearer authentication required
|
|
13058
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13059
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13060
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13061
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13062
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13063
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1PluginsUninstallPluginsRequest, localVarRequestOptions, configuration);
|
|
13064
|
+
return {
|
|
13065
|
+
url: toPathString(localVarUrlObj),
|
|
13066
|
+
options: localVarRequestOptions,
|
|
13067
|
+
};
|
|
13068
|
+
}),
|
|
13069
|
+
/**
|
|
13070
|
+
* 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.
|
|
13071
|
+
* @summary Update Hostinger WordPress plugin
|
|
13072
|
+
* @param {string} username
|
|
13073
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13074
|
+
* @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
|
|
13075
|
+
* @param {*} [options] Override http request option.
|
|
13076
|
+
* @throws {RequiredError}
|
|
13077
|
+
*/
|
|
13078
|
+
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 = {}) {
|
|
13079
|
+
// verify required parameter 'username' is not null or undefined
|
|
13080
|
+
assertParamExists('updateHostingerWordPressPluginV1', 'username', username);
|
|
13081
|
+
// verify required parameter 'software' is not null or undefined
|
|
13082
|
+
assertParamExists('updateHostingerWordPressPluginV1', 'software', software);
|
|
13083
|
+
// verify required parameter 'wordPressV1PluginsUpdateHostingerPluginRequest' is not null or undefined
|
|
13084
|
+
assertParamExists('updateHostingerWordPressPluginV1', 'wordPressV1PluginsUpdateHostingerPluginRequest', wordPressV1PluginsUpdateHostingerPluginRequest);
|
|
13085
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/hostinger/update`
|
|
13086
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13087
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13088
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13089
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13090
|
+
let baseOptions;
|
|
13091
|
+
if (configuration) {
|
|
13092
|
+
baseOptions = configuration.baseOptions;
|
|
13093
|
+
}
|
|
13094
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13095
|
+
const localVarHeaderParameter = {};
|
|
13096
|
+
const localVarQueryParameter = {};
|
|
13097
|
+
// authentication apiToken required
|
|
13098
|
+
// http bearer authentication required
|
|
13099
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13100
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13101
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13102
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13103
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13104
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1PluginsUpdateHostingerPluginRequest, localVarRequestOptions, configuration);
|
|
13105
|
+
return {
|
|
13106
|
+
url: toPathString(localVarUrlObj),
|
|
13107
|
+
options: localVarRequestOptions,
|
|
13108
|
+
};
|
|
13109
|
+
}),
|
|
13110
|
+
/**
|
|
13111
|
+
* 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.
|
|
13112
|
+
* @summary Update WordPress plugins
|
|
13113
|
+
* @param {string} username
|
|
13114
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13115
|
+
* @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
|
|
13116
|
+
* @param {*} [options] Override http request option.
|
|
13117
|
+
* @throws {RequiredError}
|
|
13118
|
+
*/
|
|
13119
|
+
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 = {}) {
|
|
13120
|
+
// verify required parameter 'username' is not null or undefined
|
|
13121
|
+
assertParamExists('updateWordPressPluginsV1', 'username', username);
|
|
13122
|
+
// verify required parameter 'software' is not null or undefined
|
|
13123
|
+
assertParamExists('updateWordPressPluginsV1', 'software', software);
|
|
13124
|
+
// verify required parameter 'wordPressV1PluginsUpdatePluginsRequest' is not null or undefined
|
|
13125
|
+
assertParamExists('updateWordPressPluginsV1', 'wordPressV1PluginsUpdatePluginsRequest', wordPressV1PluginsUpdatePluginsRequest);
|
|
13126
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/update`
|
|
13127
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13128
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13130
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13131
|
+
let baseOptions;
|
|
13132
|
+
if (configuration) {
|
|
13133
|
+
baseOptions = configuration.baseOptions;
|
|
13134
|
+
}
|
|
13135
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13136
|
+
const localVarHeaderParameter = {};
|
|
13137
|
+
const localVarQueryParameter = {};
|
|
13138
|
+
// authentication apiToken required
|
|
13139
|
+
// http bearer authentication required
|
|
13140
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13141
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13142
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13144
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13145
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1PluginsUpdatePluginsRequest, localVarRequestOptions, configuration);
|
|
13146
|
+
return {
|
|
13147
|
+
url: toPathString(localVarUrlObj),
|
|
13148
|
+
options: localVarRequestOptions,
|
|
13149
|
+
};
|
|
13150
|
+
}),
|
|
13151
|
+
};
|
|
13152
|
+
};
|
|
13153
|
+
/**
|
|
13154
|
+
* WordPressPluginsApi - functional programming interface
|
|
13155
|
+
* @export
|
|
13156
|
+
*/
|
|
13157
|
+
export const WordPressPluginsApiFp = function (configuration) {
|
|
13158
|
+
const localVarAxiosParamCreator = WordPressPluginsApiAxiosParamCreator(configuration);
|
|
13159
|
+
return {
|
|
13160
|
+
/**
|
|
13161
|
+
* 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.
|
|
13162
|
+
* @summary Activate WordPress plugin
|
|
13163
|
+
* @param {string} username
|
|
13164
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13165
|
+
* @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
|
|
13166
|
+
* @param {*} [options] Override http request option.
|
|
13167
|
+
* @throws {RequiredError}
|
|
13168
|
+
*/
|
|
13169
|
+
activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options) {
|
|
13170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13171
|
+
var _a, _b;
|
|
13172
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options);
|
|
13173
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.activateWordPressPluginV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13174
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13175
|
+
});
|
|
13176
|
+
},
|
|
13177
|
+
/**
|
|
13178
|
+
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
13179
|
+
* @summary Check if WooCommerce is installed
|
|
13180
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
13181
|
+
* @param {*} [options] Override http request option.
|
|
13182
|
+
* @throws {RequiredError}
|
|
13183
|
+
*/
|
|
13184
|
+
checkIfWooCommerceIsInstalledV1(domain, options) {
|
|
13185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13186
|
+
var _a, _b;
|
|
13187
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkIfWooCommerceIsInstalledV1(domain, options);
|
|
13188
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.checkIfWooCommerceIsInstalledV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13189
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13190
|
+
});
|
|
13191
|
+
},
|
|
13192
|
+
/**
|
|
13193
|
+
* 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.
|
|
13194
|
+
* @summary Deactivate WordPress plugin
|
|
13195
|
+
* @param {string} username
|
|
13196
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13197
|
+
* @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
|
|
13198
|
+
* @param {*} [options] Override http request option.
|
|
13199
|
+
* @throws {RequiredError}
|
|
13200
|
+
*/
|
|
13201
|
+
deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
|
|
13202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13203
|
+
var _a, _b;
|
|
13204
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options);
|
|
13205
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.deactivateWordPressPluginV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13206
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13207
|
+
});
|
|
13208
|
+
},
|
|
13209
|
+
/**
|
|
13210
|
+
* 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.
|
|
13211
|
+
* @summary Install WordPress plugins
|
|
13212
|
+
* @param {string} username
|
|
13213
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13214
|
+
* @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
|
|
13215
|
+
* @param {*} [options] Override http request option.
|
|
13216
|
+
* @throws {RequiredError}
|
|
13217
|
+
*/
|
|
13218
|
+
installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options) {
|
|
13219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13220
|
+
var _a, _b;
|
|
13221
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options);
|
|
13222
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.installWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13223
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13224
|
+
});
|
|
13225
|
+
},
|
|
13226
|
+
/**
|
|
13227
|
+
* 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).
|
|
13228
|
+
* @summary List available WordPress plugins
|
|
13229
|
+
* @param {string} username
|
|
13230
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13231
|
+
* @param {*} [options] Override http request option.
|
|
13232
|
+
* @throws {RequiredError}
|
|
13233
|
+
*/
|
|
13234
|
+
listAvailableWordPressPluginsV1(username, software, options) {
|
|
13235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13236
|
+
var _a, _b;
|
|
13237
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableWordPressPluginsV1(username, software, options);
|
|
13238
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.listAvailableWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13239
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13240
|
+
});
|
|
13241
|
+
},
|
|
13242
|
+
/**
|
|
13243
|
+
* 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).
|
|
13244
|
+
* @summary List installed WordPress plugins
|
|
13245
|
+
* @param {string} username
|
|
13246
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13247
|
+
* @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
|
|
13248
|
+
* @param {*} [options] Override http request option.
|
|
13249
|
+
* @throws {RequiredError}
|
|
13250
|
+
*/
|
|
13251
|
+
listInstalledWordPressPluginsV1(username, software, category, options) {
|
|
13252
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13253
|
+
var _a, _b;
|
|
13254
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listInstalledWordPressPluginsV1(username, software, category, options);
|
|
13255
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.listInstalledWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13256
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13257
|
+
});
|
|
13258
|
+
},
|
|
13259
|
+
/**
|
|
13260
|
+
* List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
13261
|
+
* @summary List suggested WordPress plugins
|
|
13262
|
+
* @param {number | null} [orderId] Optionally scope suggestions to a specific order.
|
|
13263
|
+
* @param {*} [options] Override http request option.
|
|
13264
|
+
* @throws {RequiredError}
|
|
13265
|
+
*/
|
|
13266
|
+
listSuggestedWordPressPluginsV1(orderId, options) {
|
|
13267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13268
|
+
var _a, _b;
|
|
13269
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSuggestedWordPressPluginsV1(orderId, options);
|
|
13270
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.listSuggestedWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13271
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13272
|
+
});
|
|
13273
|
+
},
|
|
13274
|
+
/**
|
|
13275
|
+
* 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.
|
|
13276
|
+
* @summary Search WordPress plugins
|
|
13277
|
+
* @param {string} search Search term to match against plugin names. Minimum 3 characters.
|
|
13278
|
+
* @param {*} [options] Override http request option.
|
|
13279
|
+
* @throws {RequiredError}
|
|
13280
|
+
*/
|
|
13281
|
+
searchWordPressPluginsV1(search, options) {
|
|
13282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13283
|
+
var _a, _b;
|
|
13284
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchWordPressPluginsV1(search, options);
|
|
13285
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.searchWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13286
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13287
|
+
});
|
|
13288
|
+
},
|
|
13289
|
+
/**
|
|
13290
|
+
* 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.
|
|
13291
|
+
* @summary Uninstall WordPress plugins
|
|
13292
|
+
* @param {string} username
|
|
13293
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13294
|
+
* @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
|
|
13295
|
+
* @param {*} [options] Override http request option.
|
|
13296
|
+
* @throws {RequiredError}
|
|
13297
|
+
*/
|
|
13298
|
+
uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options) {
|
|
13299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13300
|
+
var _a, _b;
|
|
13301
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options);
|
|
13302
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.uninstallWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13303
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13304
|
+
});
|
|
13305
|
+
},
|
|
13306
|
+
/**
|
|
13307
|
+
* 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.
|
|
13308
|
+
* @summary Update Hostinger WordPress plugin
|
|
13309
|
+
* @param {string} username
|
|
13310
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13311
|
+
* @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
|
|
13312
|
+
* @param {*} [options] Override http request option.
|
|
13313
|
+
* @throws {RequiredError}
|
|
13314
|
+
*/
|
|
13315
|
+
updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options) {
|
|
13316
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13317
|
+
var _a, _b;
|
|
13318
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options);
|
|
13319
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.updateHostingerWordPressPluginV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13320
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13321
|
+
});
|
|
13322
|
+
},
|
|
13323
|
+
/**
|
|
13324
|
+
* 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.
|
|
13325
|
+
* @summary Update WordPress plugins
|
|
13326
|
+
* @param {string} username
|
|
13327
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13328
|
+
* @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
|
|
13329
|
+
* @param {*} [options] Override http request option.
|
|
13330
|
+
* @throws {RequiredError}
|
|
13331
|
+
*/
|
|
13332
|
+
updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options) {
|
|
13333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13334
|
+
var _a, _b;
|
|
13335
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options);
|
|
13336
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.updateWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13337
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13338
|
+
});
|
|
13339
|
+
},
|
|
13340
|
+
};
|
|
13341
|
+
};
|
|
13342
|
+
/**
|
|
13343
|
+
* WordPressPluginsApi - factory interface
|
|
13344
|
+
* @export
|
|
13345
|
+
*/
|
|
13346
|
+
export const WordPressPluginsApiFactory = function (configuration, basePath, axios) {
|
|
13347
|
+
const localVarFp = WordPressPluginsApiFp(configuration);
|
|
13348
|
+
return {
|
|
13349
|
+
/**
|
|
13350
|
+
* 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.
|
|
13351
|
+
* @summary Activate WordPress plugin
|
|
13352
|
+
* @param {string} username
|
|
13353
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13354
|
+
* @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
|
|
13355
|
+
* @param {*} [options] Override http request option.
|
|
13356
|
+
* @throws {RequiredError}
|
|
13357
|
+
*/
|
|
13358
|
+
activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options) {
|
|
13359
|
+
return localVarFp.activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options).then((request) => request(axios, basePath));
|
|
13360
|
+
},
|
|
13361
|
+
/**
|
|
13362
|
+
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
13363
|
+
* @summary Check if WooCommerce is installed
|
|
13364
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
13365
|
+
* @param {*} [options] Override http request option.
|
|
13366
|
+
* @throws {RequiredError}
|
|
13367
|
+
*/
|
|
13368
|
+
checkIfWooCommerceIsInstalledV1(domain, options) {
|
|
13369
|
+
return localVarFp.checkIfWooCommerceIsInstalledV1(domain, options).then((request) => request(axios, basePath));
|
|
13370
|
+
},
|
|
13371
|
+
/**
|
|
13372
|
+
* 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.
|
|
13373
|
+
* @summary Deactivate WordPress plugin
|
|
13374
|
+
* @param {string} username
|
|
13375
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13376
|
+
* @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
|
|
13377
|
+
* @param {*} [options] Override http request option.
|
|
13378
|
+
* @throws {RequiredError}
|
|
13379
|
+
*/
|
|
13380
|
+
deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
|
|
13381
|
+
return localVarFp.deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(axios, basePath));
|
|
13382
|
+
},
|
|
13383
|
+
/**
|
|
13384
|
+
* 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.
|
|
13385
|
+
* @summary Install WordPress plugins
|
|
13386
|
+
* @param {string} username
|
|
13387
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13388
|
+
* @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
|
|
13389
|
+
* @param {*} [options] Override http request option.
|
|
13390
|
+
* @throws {RequiredError}
|
|
13391
|
+
*/
|
|
13392
|
+
installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options) {
|
|
13393
|
+
return localVarFp.installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options).then((request) => request(axios, basePath));
|
|
13394
|
+
},
|
|
13395
|
+
/**
|
|
13396
|
+
* 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).
|
|
13397
|
+
* @summary List available WordPress plugins
|
|
13398
|
+
* @param {string} username
|
|
13399
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13400
|
+
* @param {*} [options] Override http request option.
|
|
13401
|
+
* @throws {RequiredError}
|
|
13402
|
+
*/
|
|
13403
|
+
listAvailableWordPressPluginsV1(username, software, options) {
|
|
13404
|
+
return localVarFp.listAvailableWordPressPluginsV1(username, software, options).then((request) => request(axios, basePath));
|
|
13405
|
+
},
|
|
13406
|
+
/**
|
|
13407
|
+
* 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).
|
|
13408
|
+
* @summary List installed WordPress plugins
|
|
13409
|
+
* @param {string} username
|
|
13410
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13411
|
+
* @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
|
|
13412
|
+
* @param {*} [options] Override http request option.
|
|
13413
|
+
* @throws {RequiredError}
|
|
13414
|
+
*/
|
|
13415
|
+
listInstalledWordPressPluginsV1(username, software, category, options) {
|
|
13416
|
+
return localVarFp.listInstalledWordPressPluginsV1(username, software, category, options).then((request) => request(axios, basePath));
|
|
13417
|
+
},
|
|
13418
|
+
/**
|
|
13419
|
+
* List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
13420
|
+
* @summary List suggested WordPress plugins
|
|
13421
|
+
* @param {number | null} [orderId] Optionally scope suggestions to a specific order.
|
|
13422
|
+
* @param {*} [options] Override http request option.
|
|
13423
|
+
* @throws {RequiredError}
|
|
13424
|
+
*/
|
|
13425
|
+
listSuggestedWordPressPluginsV1(orderId, options) {
|
|
13426
|
+
return localVarFp.listSuggestedWordPressPluginsV1(orderId, options).then((request) => request(axios, basePath));
|
|
13427
|
+
},
|
|
13428
|
+
/**
|
|
13429
|
+
* 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.
|
|
13430
|
+
* @summary Search WordPress plugins
|
|
13431
|
+
* @param {string} search Search term to match against plugin names. Minimum 3 characters.
|
|
13432
|
+
* @param {*} [options] Override http request option.
|
|
13433
|
+
* @throws {RequiredError}
|
|
13434
|
+
*/
|
|
13435
|
+
searchWordPressPluginsV1(search, options) {
|
|
13436
|
+
return localVarFp.searchWordPressPluginsV1(search, options).then((request) => request(axios, basePath));
|
|
13437
|
+
},
|
|
13438
|
+
/**
|
|
13439
|
+
* 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.
|
|
13440
|
+
* @summary Uninstall WordPress plugins
|
|
13441
|
+
* @param {string} username
|
|
13442
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13443
|
+
* @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
|
|
13444
|
+
* @param {*} [options] Override http request option.
|
|
13445
|
+
* @throws {RequiredError}
|
|
13446
|
+
*/
|
|
13447
|
+
uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options) {
|
|
13448
|
+
return localVarFp.uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options).then((request) => request(axios, basePath));
|
|
13449
|
+
},
|
|
13450
|
+
/**
|
|
13451
|
+
* 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.
|
|
13452
|
+
* @summary Update Hostinger WordPress plugin
|
|
13453
|
+
* @param {string} username
|
|
13454
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13455
|
+
* @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
|
|
13456
|
+
* @param {*} [options] Override http request option.
|
|
13457
|
+
* @throws {RequiredError}
|
|
13458
|
+
*/
|
|
13459
|
+
updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options) {
|
|
13460
|
+
return localVarFp.updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options).then((request) => request(axios, basePath));
|
|
13461
|
+
},
|
|
13462
|
+
/**
|
|
13463
|
+
* 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.
|
|
13464
|
+
* @summary Update WordPress plugins
|
|
13465
|
+
* @param {string} username
|
|
13466
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13467
|
+
* @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
|
|
13468
|
+
* @param {*} [options] Override http request option.
|
|
13469
|
+
* @throws {RequiredError}
|
|
13470
|
+
*/
|
|
13471
|
+
updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options) {
|
|
13472
|
+
return localVarFp.updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options).then((request) => request(axios, basePath));
|
|
13473
|
+
},
|
|
13474
|
+
};
|
|
13475
|
+
};
|
|
13476
|
+
/**
|
|
13477
|
+
* WordPressPluginsApi - object-oriented interface
|
|
13478
|
+
* @export
|
|
13479
|
+
* @class WordPressPluginsApi
|
|
13480
|
+
* @extends {BaseAPI}
|
|
13481
|
+
*/
|
|
13482
|
+
export class WordPressPluginsApi extends BaseAPI {
|
|
13483
|
+
/**
|
|
13484
|
+
* 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.
|
|
13485
|
+
* @summary Activate WordPress plugin
|
|
13486
|
+
* @param {string} username
|
|
13487
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13488
|
+
* @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
|
|
13489
|
+
* @param {*} [options] Override http request option.
|
|
13490
|
+
* @throws {RequiredError}
|
|
13491
|
+
* @memberof WordPressPluginsApi
|
|
13492
|
+
*/
|
|
13493
|
+
activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options) {
|
|
13494
|
+
return WordPressPluginsApiFp(this.configuration).activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13495
|
+
}
|
|
13496
|
+
/**
|
|
13497
|
+
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
13498
|
+
* @summary Check if WooCommerce is installed
|
|
13499
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
13500
|
+
* @param {*} [options] Override http request option.
|
|
13501
|
+
* @throws {RequiredError}
|
|
13502
|
+
* @memberof WordPressPluginsApi
|
|
13503
|
+
*/
|
|
13504
|
+
checkIfWooCommerceIsInstalledV1(domain, options) {
|
|
13505
|
+
return WordPressPluginsApiFp(this.configuration).checkIfWooCommerceIsInstalledV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
13506
|
+
}
|
|
13507
|
+
/**
|
|
13508
|
+
* 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.
|
|
13509
|
+
* @summary Deactivate WordPress plugin
|
|
13510
|
+
* @param {string} username
|
|
13511
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13512
|
+
* @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
|
|
13513
|
+
* @param {*} [options] Override http request option.
|
|
13514
|
+
* @throws {RequiredError}
|
|
13515
|
+
* @memberof WordPressPluginsApi
|
|
13516
|
+
*/
|
|
13517
|
+
deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
|
|
13518
|
+
return WordPressPluginsApiFp(this.configuration).deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13519
|
+
}
|
|
13520
|
+
/**
|
|
13521
|
+
* 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.
|
|
13522
|
+
* @summary Install WordPress plugins
|
|
13523
|
+
* @param {string} username
|
|
13524
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13525
|
+
* @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
|
|
13526
|
+
* @param {*} [options] Override http request option.
|
|
13527
|
+
* @throws {RequiredError}
|
|
13528
|
+
* @memberof WordPressPluginsApi
|
|
13529
|
+
*/
|
|
13530
|
+
installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options) {
|
|
13531
|
+
return WordPressPluginsApiFp(this.configuration).installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13532
|
+
}
|
|
13533
|
+
/**
|
|
13534
|
+
* 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).
|
|
13535
|
+
* @summary List available WordPress plugins
|
|
13536
|
+
* @param {string} username
|
|
13537
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13538
|
+
* @param {*} [options] Override http request option.
|
|
13539
|
+
* @throws {RequiredError}
|
|
13540
|
+
* @memberof WordPressPluginsApi
|
|
13541
|
+
*/
|
|
13542
|
+
listAvailableWordPressPluginsV1(username, software, options) {
|
|
13543
|
+
return WordPressPluginsApiFp(this.configuration).listAvailableWordPressPluginsV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
13544
|
+
}
|
|
13545
|
+
/**
|
|
13546
|
+
* 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).
|
|
13547
|
+
* @summary List installed WordPress plugins
|
|
13548
|
+
* @param {string} username
|
|
13549
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13550
|
+
* @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
|
|
13551
|
+
* @param {*} [options] Override http request option.
|
|
13552
|
+
* @throws {RequiredError}
|
|
13553
|
+
* @memberof WordPressPluginsApi
|
|
13554
|
+
*/
|
|
13555
|
+
listInstalledWordPressPluginsV1(username, software, category, options) {
|
|
13556
|
+
return WordPressPluginsApiFp(this.configuration).listInstalledWordPressPluginsV1(username, software, category, options).then((request) => request(this.axios, this.basePath));
|
|
13557
|
+
}
|
|
13558
|
+
/**
|
|
13559
|
+
* List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
13560
|
+
* @summary List suggested WordPress plugins
|
|
13561
|
+
* @param {number | null} [orderId] Optionally scope suggestions to a specific order.
|
|
13562
|
+
* @param {*} [options] Override http request option.
|
|
13563
|
+
* @throws {RequiredError}
|
|
13564
|
+
* @memberof WordPressPluginsApi
|
|
13565
|
+
*/
|
|
13566
|
+
listSuggestedWordPressPluginsV1(orderId, options) {
|
|
13567
|
+
return WordPressPluginsApiFp(this.configuration).listSuggestedWordPressPluginsV1(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
13568
|
+
}
|
|
13569
|
+
/**
|
|
13570
|
+
* 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.
|
|
13571
|
+
* @summary Search WordPress plugins
|
|
13572
|
+
* @param {string} search Search term to match against plugin names. Minimum 3 characters.
|
|
13573
|
+
* @param {*} [options] Override http request option.
|
|
13574
|
+
* @throws {RequiredError}
|
|
13575
|
+
* @memberof WordPressPluginsApi
|
|
13576
|
+
*/
|
|
13577
|
+
searchWordPressPluginsV1(search, options) {
|
|
13578
|
+
return WordPressPluginsApiFp(this.configuration).searchWordPressPluginsV1(search, options).then((request) => request(this.axios, this.basePath));
|
|
13579
|
+
}
|
|
13580
|
+
/**
|
|
13581
|
+
* 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.
|
|
13582
|
+
* @summary Uninstall WordPress plugins
|
|
13583
|
+
* @param {string} username
|
|
13584
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13585
|
+
* @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
|
|
13586
|
+
* @param {*} [options] Override http request option.
|
|
13587
|
+
* @throws {RequiredError}
|
|
13588
|
+
* @memberof WordPressPluginsApi
|
|
13589
|
+
*/
|
|
13590
|
+
uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options) {
|
|
13591
|
+
return WordPressPluginsApiFp(this.configuration).uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13592
|
+
}
|
|
13593
|
+
/**
|
|
13594
|
+
* 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.
|
|
13595
|
+
* @summary Update Hostinger WordPress plugin
|
|
13596
|
+
* @param {string} username
|
|
13597
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13598
|
+
* @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
|
|
13599
|
+
* @param {*} [options] Override http request option.
|
|
13600
|
+
* @throws {RequiredError}
|
|
13601
|
+
* @memberof WordPressPluginsApi
|
|
13602
|
+
*/
|
|
13603
|
+
updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options) {
|
|
13604
|
+
return WordPressPluginsApiFp(this.configuration).updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13605
|
+
}
|
|
13606
|
+
/**
|
|
13607
|
+
* 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.
|
|
13608
|
+
* @summary Update WordPress plugins
|
|
13609
|
+
* @param {string} username
|
|
13610
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13611
|
+
* @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
|
|
13612
|
+
* @param {*} [options] Override http request option.
|
|
13613
|
+
* @throws {RequiredError}
|
|
13614
|
+
* @memberof WordPressPluginsApi
|
|
13615
|
+
*/
|
|
13616
|
+
updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options) {
|
|
13617
|
+
return WordPressPluginsApiFp(this.configuration).updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13618
|
+
}
|
|
13619
|
+
}
|
|
13620
|
+
/**
|
|
13621
|
+
* @export
|
|
13622
|
+
*/
|
|
13623
|
+
export const ListInstalledWordPressPluginsV1CategoryEnum = {
|
|
13624
|
+
Cache: 'cache'
|
|
13625
|
+
};
|
|
13626
|
+
/**
|
|
13627
|
+
* WordPressThemesApi - axios parameter creator
|
|
13628
|
+
* @export
|
|
13629
|
+
*/
|
|
13630
|
+
export const WordPressThemesApiAxiosParamCreator = function (configuration) {
|
|
13631
|
+
return {
|
|
13632
|
+
/**
|
|
13633
|
+
* 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.
|
|
13634
|
+
* @summary Activate WordPress theme
|
|
13635
|
+
* @param {string} username
|
|
13636
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13637
|
+
* @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
|
|
13638
|
+
* @param {*} [options] Override http request option.
|
|
13639
|
+
* @throws {RequiredError}
|
|
13640
|
+
*/
|
|
13641
|
+
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 = {}) {
|
|
13642
|
+
// verify required parameter 'username' is not null or undefined
|
|
13643
|
+
assertParamExists('activateWordPressThemeV1', 'username', username);
|
|
13644
|
+
// verify required parameter 'software' is not null or undefined
|
|
13645
|
+
assertParamExists('activateWordPressThemeV1', 'software', software);
|
|
13646
|
+
// verify required parameter 'wordPressV1ThemesActivateThemeRequest' is not null or undefined
|
|
13647
|
+
assertParamExists('activateWordPressThemeV1', 'wordPressV1ThemesActivateThemeRequest', wordPressV1ThemesActivateThemeRequest);
|
|
13648
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/activate`
|
|
13649
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13650
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13651
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13652
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13653
|
+
let baseOptions;
|
|
13654
|
+
if (configuration) {
|
|
13655
|
+
baseOptions = configuration.baseOptions;
|
|
13656
|
+
}
|
|
13657
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13658
|
+
const localVarHeaderParameter = {};
|
|
13659
|
+
const localVarQueryParameter = {};
|
|
13660
|
+
// authentication apiToken required
|
|
13661
|
+
// http bearer authentication required
|
|
13662
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13663
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13664
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13665
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13666
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13667
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ThemesActivateThemeRequest, localVarRequestOptions, configuration);
|
|
13668
|
+
return {
|
|
13669
|
+
url: toPathString(localVarUrlObj),
|
|
13670
|
+
options: localVarRequestOptions,
|
|
13671
|
+
};
|
|
13672
|
+
}),
|
|
13673
|
+
/**
|
|
13674
|
+
* 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.
|
|
13675
|
+
* @summary Install WordPress theme
|
|
13676
|
+
* @param {string} username
|
|
13677
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13678
|
+
* @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
|
|
13679
|
+
* @param {*} [options] Override http request option.
|
|
13680
|
+
* @throws {RequiredError}
|
|
13681
|
+
*/
|
|
13682
|
+
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 = {}) {
|
|
13683
|
+
// verify required parameter 'username' is not null or undefined
|
|
13684
|
+
assertParamExists('installWordPressThemeV1', 'username', username);
|
|
13685
|
+
// verify required parameter 'software' is not null or undefined
|
|
13686
|
+
assertParamExists('installWordPressThemeV1', 'software', software);
|
|
13687
|
+
// verify required parameter 'wordPressV1ThemesInstallThemeRequest' is not null or undefined
|
|
13688
|
+
assertParamExists('installWordPressThemeV1', 'wordPressV1ThemesInstallThemeRequest', wordPressV1ThemesInstallThemeRequest);
|
|
13689
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install`
|
|
13690
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13691
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13692
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13693
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13694
|
+
let baseOptions;
|
|
13695
|
+
if (configuration) {
|
|
13696
|
+
baseOptions = configuration.baseOptions;
|
|
13697
|
+
}
|
|
13698
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13699
|
+
const localVarHeaderParameter = {};
|
|
13700
|
+
const localVarQueryParameter = {};
|
|
13701
|
+
// authentication apiToken required
|
|
13702
|
+
// http bearer authentication required
|
|
13703
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13704
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13705
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13706
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13707
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13708
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ThemesInstallThemeRequest, localVarRequestOptions, configuration);
|
|
13709
|
+
return {
|
|
13710
|
+
url: toPathString(localVarUrlObj),
|
|
13711
|
+
options: localVarRequestOptions,
|
|
13712
|
+
};
|
|
13713
|
+
}),
|
|
13714
|
+
/**
|
|
13715
|
+
* 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).
|
|
13716
|
+
* @summary List installed WordPress themes
|
|
13717
|
+
* @param {string} username
|
|
13718
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13719
|
+
* @param {*} [options] Override http request option.
|
|
13720
|
+
* @throws {RequiredError}
|
|
13721
|
+
*/
|
|
13722
|
+
listInstalledWordPressThemesV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
13723
|
+
// verify required parameter 'username' is not null or undefined
|
|
13724
|
+
assertParamExists('listInstalledWordPressThemesV1', 'username', username);
|
|
13725
|
+
// verify required parameter 'software' is not null or undefined
|
|
13726
|
+
assertParamExists('listInstalledWordPressThemesV1', 'software', software);
|
|
13727
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes`
|
|
13728
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13729
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13730
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13731
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13732
|
+
let baseOptions;
|
|
13733
|
+
if (configuration) {
|
|
13734
|
+
baseOptions = configuration.baseOptions;
|
|
13735
|
+
}
|
|
13736
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13737
|
+
const localVarHeaderParameter = {};
|
|
13738
|
+
const localVarQueryParameter = {};
|
|
13739
|
+
// authentication apiToken required
|
|
13740
|
+
// http bearer authentication required
|
|
13741
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13742
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13743
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13744
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13745
|
+
return {
|
|
13746
|
+
url: toPathString(localVarUrlObj),
|
|
13747
|
+
options: localVarRequestOptions,
|
|
13748
|
+
};
|
|
13749
|
+
}),
|
|
13750
|
+
/**
|
|
13751
|
+
* List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
|
|
13752
|
+
* @summary List WordPress themes
|
|
13753
|
+
* @param {number | null} [orderId] Optionally scope themes to a specific order.
|
|
13754
|
+
* @param {string | null} [search] Search term to match against theme names.
|
|
13755
|
+
* @param {*} [options] Override http request option.
|
|
13756
|
+
* @throws {RequiredError}
|
|
13757
|
+
*/
|
|
13758
|
+
listWordPressThemesV1: (orderId_1, search_1, ...args_1) => __awaiter(this, [orderId_1, search_1, ...args_1], void 0, function* (orderId, search, options = {}) {
|
|
13759
|
+
const localVarPath = `/api/hosting/v1/wordpress/themes`;
|
|
13760
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13761
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13762
|
+
let baseOptions;
|
|
13763
|
+
if (configuration) {
|
|
13764
|
+
baseOptions = configuration.baseOptions;
|
|
13765
|
+
}
|
|
13766
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13767
|
+
const localVarHeaderParameter = {};
|
|
13768
|
+
const localVarQueryParameter = {};
|
|
13769
|
+
// authentication apiToken required
|
|
13770
|
+
// http bearer authentication required
|
|
13771
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13772
|
+
if (orderId !== undefined) {
|
|
13773
|
+
localVarQueryParameter['order_id'] = orderId;
|
|
13774
|
+
}
|
|
13775
|
+
if (search !== undefined) {
|
|
13776
|
+
localVarQueryParameter['search'] = search;
|
|
13777
|
+
}
|
|
13778
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13779
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13780
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13781
|
+
return {
|
|
13782
|
+
url: toPathString(localVarUrlObj),
|
|
13783
|
+
options: localVarRequestOptions,
|
|
13784
|
+
};
|
|
13785
|
+
}),
|
|
13786
|
+
/**
|
|
13787
|
+
* 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.
|
|
13788
|
+
* @summary Uninstall WordPress themes
|
|
13789
|
+
* @param {string} username
|
|
13790
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13791
|
+
* @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
|
|
13792
|
+
* @param {*} [options] Override http request option.
|
|
13793
|
+
* @throws {RequiredError}
|
|
13794
|
+
*/
|
|
13795
|
+
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 = {}) {
|
|
13796
|
+
// verify required parameter 'username' is not null or undefined
|
|
13797
|
+
assertParamExists('uninstallWordPressThemesV1', 'username', username);
|
|
13798
|
+
// verify required parameter 'software' is not null or undefined
|
|
13799
|
+
assertParamExists('uninstallWordPressThemesV1', 'software', software);
|
|
13800
|
+
// verify required parameter 'wordPressV1ThemesUninstallThemesRequest' is not null or undefined
|
|
13801
|
+
assertParamExists('uninstallWordPressThemesV1', 'wordPressV1ThemesUninstallThemesRequest', wordPressV1ThemesUninstallThemesRequest);
|
|
13802
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/uninstall`
|
|
13803
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13804
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13805
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13806
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13807
|
+
let baseOptions;
|
|
13808
|
+
if (configuration) {
|
|
13809
|
+
baseOptions = configuration.baseOptions;
|
|
13810
|
+
}
|
|
13811
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13812
|
+
const localVarHeaderParameter = {};
|
|
13813
|
+
const localVarQueryParameter = {};
|
|
13814
|
+
// authentication apiToken required
|
|
13815
|
+
// http bearer authentication required
|
|
13816
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13817
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13818
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13819
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13820
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13821
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ThemesUninstallThemesRequest, localVarRequestOptions, configuration);
|
|
13822
|
+
return {
|
|
13823
|
+
url: toPathString(localVarUrlObj),
|
|
13824
|
+
options: localVarRequestOptions,
|
|
13825
|
+
};
|
|
13826
|
+
}),
|
|
13827
|
+
/**
|
|
13828
|
+
* 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.
|
|
13829
|
+
* @summary Update WordPress themes
|
|
13830
|
+
* @param {string} username
|
|
13831
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13832
|
+
* @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
|
|
13833
|
+
* @param {*} [options] Override http request option.
|
|
13834
|
+
* @throws {RequiredError}
|
|
13835
|
+
*/
|
|
13836
|
+
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 = {}) {
|
|
13837
|
+
// verify required parameter 'username' is not null or undefined
|
|
13838
|
+
assertParamExists('updateWordPressThemesV1', 'username', username);
|
|
13839
|
+
// verify required parameter 'software' is not null or undefined
|
|
13840
|
+
assertParamExists('updateWordPressThemesV1', 'software', software);
|
|
13841
|
+
// verify required parameter 'wordPressV1ThemesUpdateThemesRequest' is not null or undefined
|
|
13842
|
+
assertParamExists('updateWordPressThemesV1', 'wordPressV1ThemesUpdateThemesRequest', wordPressV1ThemesUpdateThemesRequest);
|
|
13843
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/update`
|
|
13844
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13845
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13846
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13847
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13848
|
+
let baseOptions;
|
|
13849
|
+
if (configuration) {
|
|
13850
|
+
baseOptions = configuration.baseOptions;
|
|
13851
|
+
}
|
|
13852
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13853
|
+
const localVarHeaderParameter = {};
|
|
13854
|
+
const localVarQueryParameter = {};
|
|
13855
|
+
// authentication apiToken required
|
|
13856
|
+
// http bearer authentication required
|
|
13857
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13858
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13859
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13860
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13861
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13862
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ThemesUpdateThemesRequest, localVarRequestOptions, configuration);
|
|
13863
|
+
return {
|
|
13864
|
+
url: toPathString(localVarUrlObj),
|
|
13865
|
+
options: localVarRequestOptions,
|
|
13866
|
+
};
|
|
13867
|
+
}),
|
|
13868
|
+
};
|
|
13869
|
+
};
|
|
13870
|
+
/**
|
|
13871
|
+
* WordPressThemesApi - functional programming interface
|
|
13872
|
+
* @export
|
|
13873
|
+
*/
|
|
13874
|
+
export const WordPressThemesApiFp = function (configuration) {
|
|
13875
|
+
const localVarAxiosParamCreator = WordPressThemesApiAxiosParamCreator(configuration);
|
|
13876
|
+
return {
|
|
13877
|
+
/**
|
|
13878
|
+
* 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.
|
|
13879
|
+
* @summary Activate WordPress theme
|
|
13880
|
+
* @param {string} username
|
|
13881
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13882
|
+
* @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
|
|
13883
|
+
* @param {*} [options] Override http request option.
|
|
13884
|
+
* @throws {RequiredError}
|
|
13885
|
+
*/
|
|
13886
|
+
activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
|
|
13887
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13888
|
+
var _a, _b;
|
|
13889
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options);
|
|
13890
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressThemesApi.activateWordPressThemeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13891
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13892
|
+
});
|
|
13893
|
+
},
|
|
13894
|
+
/**
|
|
13895
|
+
* 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.
|
|
13896
|
+
* @summary Install WordPress theme
|
|
13897
|
+
* @param {string} username
|
|
13898
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13899
|
+
* @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
|
|
13900
|
+
* @param {*} [options] Override http request option.
|
|
13901
|
+
* @throws {RequiredError}
|
|
13902
|
+
*/
|
|
13903
|
+
installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options) {
|
|
13904
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13905
|
+
var _a, _b;
|
|
13906
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options);
|
|
13907
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressThemesApi.installWordPressThemeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13908
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13909
|
+
});
|
|
13910
|
+
},
|
|
13911
|
+
/**
|
|
13912
|
+
* 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).
|
|
13913
|
+
* @summary List installed WordPress themes
|
|
13914
|
+
* @param {string} username
|
|
13915
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13916
|
+
* @param {*} [options] Override http request option.
|
|
13917
|
+
* @throws {RequiredError}
|
|
13918
|
+
*/
|
|
13919
|
+
listInstalledWordPressThemesV1(username, software, options) {
|
|
13920
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13921
|
+
var _a, _b;
|
|
13922
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listInstalledWordPressThemesV1(username, software, options);
|
|
13923
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressThemesApi.listInstalledWordPressThemesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13924
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13925
|
+
});
|
|
13926
|
+
},
|
|
13927
|
+
/**
|
|
13928
|
+
* List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
|
|
13929
|
+
* @summary List WordPress themes
|
|
13930
|
+
* @param {number | null} [orderId] Optionally scope themes to a specific order.
|
|
13931
|
+
* @param {string | null} [search] Search term to match against theme names.
|
|
13932
|
+
* @param {*} [options] Override http request option.
|
|
13933
|
+
* @throws {RequiredError}
|
|
13934
|
+
*/
|
|
13935
|
+
listWordPressThemesV1(orderId, search, options) {
|
|
13936
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13937
|
+
var _a, _b;
|
|
13938
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressThemesV1(orderId, search, options);
|
|
13939
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressThemesApi.listWordPressThemesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13940
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13941
|
+
});
|
|
13942
|
+
},
|
|
13943
|
+
/**
|
|
13944
|
+
* 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.
|
|
13945
|
+
* @summary Uninstall WordPress themes
|
|
13946
|
+
* @param {string} username
|
|
13947
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13948
|
+
* @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
|
|
13949
|
+
* @param {*} [options] Override http request option.
|
|
13950
|
+
* @throws {RequiredError}
|
|
13951
|
+
*/
|
|
13952
|
+
uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options) {
|
|
13953
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13954
|
+
var _a, _b;
|
|
13955
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options);
|
|
13956
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressThemesApi.uninstallWordPressThemesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13957
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13958
|
+
});
|
|
13959
|
+
},
|
|
13960
|
+
/**
|
|
13961
|
+
* 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.
|
|
13962
|
+
* @summary Update WordPress themes
|
|
13963
|
+
* @param {string} username
|
|
13964
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13965
|
+
* @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
|
|
13966
|
+
* @param {*} [options] Override http request option.
|
|
13967
|
+
* @throws {RequiredError}
|
|
13968
|
+
*/
|
|
13969
|
+
updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options) {
|
|
13970
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13971
|
+
var _a, _b;
|
|
13972
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options);
|
|
13973
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressThemesApi.updateWordPressThemesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13974
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13975
|
+
});
|
|
13976
|
+
},
|
|
13977
|
+
};
|
|
13978
|
+
};
|
|
13979
|
+
/**
|
|
13980
|
+
* WordPressThemesApi - factory interface
|
|
13981
|
+
* @export
|
|
13982
|
+
*/
|
|
13983
|
+
export const WordPressThemesApiFactory = function (configuration, basePath, axios) {
|
|
13984
|
+
const localVarFp = WordPressThemesApiFp(configuration);
|
|
13985
|
+
return {
|
|
13986
|
+
/**
|
|
13987
|
+
* 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.
|
|
13988
|
+
* @summary Activate WordPress theme
|
|
13989
|
+
* @param {string} username
|
|
13990
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13991
|
+
* @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
|
|
13992
|
+
* @param {*} [options] Override http request option.
|
|
13993
|
+
* @throws {RequiredError}
|
|
13994
|
+
*/
|
|
13995
|
+
activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
|
|
13996
|
+
return localVarFp.activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(axios, basePath));
|
|
13997
|
+
},
|
|
13998
|
+
/**
|
|
13999
|
+
* 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.
|
|
14000
|
+
* @summary Install WordPress theme
|
|
14001
|
+
* @param {string} username
|
|
14002
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14003
|
+
* @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
|
|
14004
|
+
* @param {*} [options] Override http request option.
|
|
14005
|
+
* @throws {RequiredError}
|
|
14006
|
+
*/
|
|
14007
|
+
installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options) {
|
|
14008
|
+
return localVarFp.installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options).then((request) => request(axios, basePath));
|
|
14009
|
+
},
|
|
14010
|
+
/**
|
|
14011
|
+
* 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).
|
|
14012
|
+
* @summary List installed WordPress themes
|
|
14013
|
+
* @param {string} username
|
|
14014
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14015
|
+
* @param {*} [options] Override http request option.
|
|
14016
|
+
* @throws {RequiredError}
|
|
14017
|
+
*/
|
|
14018
|
+
listInstalledWordPressThemesV1(username, software, options) {
|
|
14019
|
+
return localVarFp.listInstalledWordPressThemesV1(username, software, options).then((request) => request(axios, basePath));
|
|
14020
|
+
},
|
|
14021
|
+
/**
|
|
14022
|
+
* List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
|
|
14023
|
+
* @summary List WordPress themes
|
|
14024
|
+
* @param {number | null} [orderId] Optionally scope themes to a specific order.
|
|
14025
|
+
* @param {string | null} [search] Search term to match against theme names.
|
|
14026
|
+
* @param {*} [options] Override http request option.
|
|
14027
|
+
* @throws {RequiredError}
|
|
14028
|
+
*/
|
|
14029
|
+
listWordPressThemesV1(orderId, search, options) {
|
|
14030
|
+
return localVarFp.listWordPressThemesV1(orderId, search, options).then((request) => request(axios, basePath));
|
|
14031
|
+
},
|
|
14032
|
+
/**
|
|
14033
|
+
* 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.
|
|
14034
|
+
* @summary Uninstall WordPress themes
|
|
14035
|
+
* @param {string} username
|
|
14036
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14037
|
+
* @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
|
|
14038
|
+
* @param {*} [options] Override http request option.
|
|
14039
|
+
* @throws {RequiredError}
|
|
14040
|
+
*/
|
|
14041
|
+
uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options) {
|
|
14042
|
+
return localVarFp.uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options).then((request) => request(axios, basePath));
|
|
14043
|
+
},
|
|
14044
|
+
/**
|
|
14045
|
+
* 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.
|
|
14046
|
+
* @summary Update WordPress themes
|
|
14047
|
+
* @param {string} username
|
|
14048
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14049
|
+
* @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
|
|
14050
|
+
* @param {*} [options] Override http request option.
|
|
14051
|
+
* @throws {RequiredError}
|
|
14052
|
+
*/
|
|
14053
|
+
updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options) {
|
|
14054
|
+
return localVarFp.updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options).then((request) => request(axios, basePath));
|
|
14055
|
+
},
|
|
14056
|
+
};
|
|
14057
|
+
};
|
|
14058
|
+
/**
|
|
14059
|
+
* WordPressThemesApi - object-oriented interface
|
|
14060
|
+
* @export
|
|
14061
|
+
* @class WordPressThemesApi
|
|
14062
|
+
* @extends {BaseAPI}
|
|
14063
|
+
*/
|
|
14064
|
+
export class WordPressThemesApi extends BaseAPI {
|
|
14065
|
+
/**
|
|
14066
|
+
* 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.
|
|
14067
|
+
* @summary Activate WordPress theme
|
|
14068
|
+
* @param {string} username
|
|
14069
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14070
|
+
* @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
|
|
14071
|
+
* @param {*} [options] Override http request option.
|
|
14072
|
+
* @throws {RequiredError}
|
|
14073
|
+
* @memberof WordPressThemesApi
|
|
14074
|
+
*/
|
|
14075
|
+
activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
|
|
14076
|
+
return WordPressThemesApiFp(this.configuration).activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14077
|
+
}
|
|
14078
|
+
/**
|
|
14079
|
+
* 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.
|
|
14080
|
+
* @summary Install WordPress theme
|
|
14081
|
+
* @param {string} username
|
|
14082
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14083
|
+
* @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
|
|
14084
|
+
* @param {*} [options] Override http request option.
|
|
14085
|
+
* @throws {RequiredError}
|
|
14086
|
+
* @memberof WordPressThemesApi
|
|
14087
|
+
*/
|
|
14088
|
+
installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options) {
|
|
14089
|
+
return WordPressThemesApiFp(this.configuration).installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14090
|
+
}
|
|
14091
|
+
/**
|
|
14092
|
+
* 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).
|
|
14093
|
+
* @summary List installed WordPress themes
|
|
14094
|
+
* @param {string} username
|
|
14095
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14096
|
+
* @param {*} [options] Override http request option.
|
|
14097
|
+
* @throws {RequiredError}
|
|
14098
|
+
* @memberof WordPressThemesApi
|
|
14099
|
+
*/
|
|
14100
|
+
listInstalledWordPressThemesV1(username, software, options) {
|
|
14101
|
+
return WordPressThemesApiFp(this.configuration).listInstalledWordPressThemesV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14102
|
+
}
|
|
14103
|
+
/**
|
|
14104
|
+
* List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
|
|
14105
|
+
* @summary List WordPress themes
|
|
14106
|
+
* @param {number | null} [orderId] Optionally scope themes to a specific order.
|
|
14107
|
+
* @param {string | null} [search] Search term to match against theme names.
|
|
14108
|
+
* @param {*} [options] Override http request option.
|
|
14109
|
+
* @throws {RequiredError}
|
|
14110
|
+
* @memberof WordPressThemesApi
|
|
14111
|
+
*/
|
|
14112
|
+
listWordPressThemesV1(orderId, search, options) {
|
|
14113
|
+
return WordPressThemesApiFp(this.configuration).listWordPressThemesV1(orderId, search, options).then((request) => request(this.axios, this.basePath));
|
|
14114
|
+
}
|
|
14115
|
+
/**
|
|
14116
|
+
* 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.
|
|
14117
|
+
* @summary Uninstall WordPress themes
|
|
14118
|
+
* @param {string} username
|
|
14119
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14120
|
+
* @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
|
|
14121
|
+
* @param {*} [options] Override http request option.
|
|
14122
|
+
* @throws {RequiredError}
|
|
14123
|
+
* @memberof WordPressThemesApi
|
|
14124
|
+
*/
|
|
14125
|
+
uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options) {
|
|
14126
|
+
return WordPressThemesApiFp(this.configuration).uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14127
|
+
}
|
|
14128
|
+
/**
|
|
14129
|
+
* 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.
|
|
14130
|
+
* @summary Update WordPress themes
|
|
14131
|
+
* @param {string} username
|
|
14132
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14133
|
+
* @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
|
|
14134
|
+
* @param {*} [options] Override http request option.
|
|
14135
|
+
* @throws {RequiredError}
|
|
14136
|
+
* @memberof WordPressThemesApi
|
|
14137
|
+
*/
|
|
14138
|
+
updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options) {
|
|
14139
|
+
return WordPressThemesApiFp(this.configuration).updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14140
|
+
}
|
|
14141
|
+
}
|