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/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version:
|
|
7
|
+
* API Version: 1.1.1
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -19,11 +19,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = void 0;
|
|
22
|
+
exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
|
|
23
|
+
exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = void 0;
|
|
24
|
+
exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = void 0;
|
|
25
|
+
exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = void 0;
|
|
26
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = void 0;
|
|
27
27
|
const axios_1 = require("axios");
|
|
28
28
|
// Some imports not used depending on template conditions
|
|
29
29
|
// @ts-ignore
|
|
@@ -145,6 +145,25 @@ exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = {
|
|
|
145
145
|
Physical: 'physical',
|
|
146
146
|
Digital: 'digital'
|
|
147
147
|
};
|
|
148
|
+
exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = {
|
|
149
|
+
Builder: 'builder',
|
|
150
|
+
Horizons: 'horizons',
|
|
151
|
+
Tiktok: 'tiktok',
|
|
152
|
+
Custom: 'custom',
|
|
153
|
+
QuickLink: 'quick-link',
|
|
154
|
+
Wordpress: 'wordpress'
|
|
155
|
+
};
|
|
156
|
+
exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = {
|
|
157
|
+
Builder: 'builder',
|
|
158
|
+
Horizons: 'horizons',
|
|
159
|
+
Tiktok: 'tiktok',
|
|
160
|
+
Custom: 'custom',
|
|
161
|
+
QuickLink: 'quick-link',
|
|
162
|
+
Wordpress: 'wordpress'
|
|
163
|
+
};
|
|
164
|
+
exports.EcommerceV1SalesChannelStoreRequestTypeEnum = {
|
|
165
|
+
Custom: 'custom'
|
|
166
|
+
};
|
|
148
167
|
exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = {
|
|
149
168
|
Builder: 'builder',
|
|
150
169
|
Horizons: 'horizons',
|
|
@@ -213,11 +232,6 @@ exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
|
|
|
213
232
|
Parked: 'parked',
|
|
214
233
|
Subdomain: 'subdomain'
|
|
215
234
|
};
|
|
216
|
-
exports.HostingV1WordpressInstallWordpressRequestAutoUpdatesEnum = {
|
|
217
|
-
All: 'all',
|
|
218
|
-
None: 'none',
|
|
219
|
-
Minor: 'minor'
|
|
220
|
-
};
|
|
221
235
|
exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = {
|
|
222
236
|
Subscribed: 'subscribed',
|
|
223
237
|
Unsubscribed: 'unsubscribed'
|
|
@@ -387,6 +401,43 @@ exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
|
|
|
387
401
|
Unlocked: 'unlocked',
|
|
388
402
|
Locked: 'locked'
|
|
389
403
|
};
|
|
404
|
+
exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = {
|
|
405
|
+
All: 'all',
|
|
406
|
+
None: 'none',
|
|
407
|
+
Minor: 'minor'
|
|
408
|
+
};
|
|
409
|
+
exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = {
|
|
410
|
+
Active: 'active',
|
|
411
|
+
Inactive: 'inactive'
|
|
412
|
+
};
|
|
413
|
+
exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = {
|
|
414
|
+
Business: 'business',
|
|
415
|
+
OnlineStore: 'online-store',
|
|
416
|
+
Blog: 'blog',
|
|
417
|
+
Portfolio: 'portfolio',
|
|
418
|
+
AffiliateMarketing: 'affiliate-marketing',
|
|
419
|
+
Other: 'other',
|
|
420
|
+
Default: 'default'
|
|
421
|
+
};
|
|
422
|
+
exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = {
|
|
423
|
+
Hostinger: 'hostinger',
|
|
424
|
+
HostingerAiAssistant: 'hostinger-ai-assistant',
|
|
425
|
+
HostingerAffiliatePlugin: 'hostinger-affiliate-plugin',
|
|
426
|
+
HostingerEasyOnboarding: 'hostinger-easy-onboarding',
|
|
427
|
+
HostingerReach: 'hostinger-reach'
|
|
428
|
+
};
|
|
429
|
+
exports.WordPressV1ThemesInstallThemeRequestFontEnum = {
|
|
430
|
+
Professional: 'professional',
|
|
431
|
+
Modern: 'modern',
|
|
432
|
+
Elegant: 'elegant',
|
|
433
|
+
Creative: 'creative',
|
|
434
|
+
Dynamic: 'dynamic',
|
|
435
|
+
Default: 'default'
|
|
436
|
+
};
|
|
437
|
+
exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = {
|
|
438
|
+
Active: 'active',
|
|
439
|
+
Inactive: 'inactive'
|
|
440
|
+
};
|
|
390
441
|
/**
|
|
391
442
|
* BillingCatalogApi - axios parameter creator
|
|
392
443
|
* @export
|
|
@@ -3063,6 +3114,105 @@ class DomainsWHOISApi extends base_1.BaseAPI {
|
|
|
3063
3114
|
}
|
|
3064
3115
|
}
|
|
3065
3116
|
exports.DomainsWHOISApi = DomainsWHOISApi;
|
|
3117
|
+
/**
|
|
3118
|
+
* EcommerceMiscellaneousApi - axios parameter creator
|
|
3119
|
+
* @export
|
|
3120
|
+
*/
|
|
3121
|
+
const EcommerceMiscellaneousApiAxiosParamCreator = function (configuration) {
|
|
3122
|
+
return {
|
|
3123
|
+
/**
|
|
3124
|
+
* 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.
|
|
3125
|
+
* @summary Get custom storefront setup instructions
|
|
3126
|
+
* @param {*} [options] Override http request option.
|
|
3127
|
+
* @throws {RequiredError}
|
|
3128
|
+
*/
|
|
3129
|
+
getCustomStorefrontSetupInstructionsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3130
|
+
const localVarPath = `/api/ecommerce/v1/miscellaneous/custom-storefront-instructions`;
|
|
3131
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3132
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3133
|
+
let baseOptions;
|
|
3134
|
+
if (configuration) {
|
|
3135
|
+
baseOptions = configuration.baseOptions;
|
|
3136
|
+
}
|
|
3137
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3138
|
+
const localVarHeaderParameter = {};
|
|
3139
|
+
const localVarQueryParameter = {};
|
|
3140
|
+
// authentication apiToken required
|
|
3141
|
+
// http bearer authentication required
|
|
3142
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3143
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3144
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3145
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3146
|
+
return {
|
|
3147
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3148
|
+
options: localVarRequestOptions,
|
|
3149
|
+
};
|
|
3150
|
+
}),
|
|
3151
|
+
};
|
|
3152
|
+
};
|
|
3153
|
+
exports.EcommerceMiscellaneousApiAxiosParamCreator = EcommerceMiscellaneousApiAxiosParamCreator;
|
|
3154
|
+
/**
|
|
3155
|
+
* EcommerceMiscellaneousApi - functional programming interface
|
|
3156
|
+
* @export
|
|
3157
|
+
*/
|
|
3158
|
+
const EcommerceMiscellaneousApiFp = function (configuration) {
|
|
3159
|
+
const localVarAxiosParamCreator = (0, exports.EcommerceMiscellaneousApiAxiosParamCreator)(configuration);
|
|
3160
|
+
return {
|
|
3161
|
+
/**
|
|
3162
|
+
* 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.
|
|
3163
|
+
* @summary Get custom storefront setup instructions
|
|
3164
|
+
* @param {*} [options] Override http request option.
|
|
3165
|
+
* @throws {RequiredError}
|
|
3166
|
+
*/
|
|
3167
|
+
getCustomStorefrontSetupInstructionsV1(options) {
|
|
3168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3169
|
+
var _a, _b;
|
|
3170
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomStorefrontSetupInstructionsV1(options);
|
|
3171
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceMiscellaneousApi.getCustomStorefrontSetupInstructionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3172
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3173
|
+
});
|
|
3174
|
+
},
|
|
3175
|
+
};
|
|
3176
|
+
};
|
|
3177
|
+
exports.EcommerceMiscellaneousApiFp = EcommerceMiscellaneousApiFp;
|
|
3178
|
+
/**
|
|
3179
|
+
* EcommerceMiscellaneousApi - factory interface
|
|
3180
|
+
* @export
|
|
3181
|
+
*/
|
|
3182
|
+
const EcommerceMiscellaneousApiFactory = function (configuration, basePath, axios) {
|
|
3183
|
+
const localVarFp = (0, exports.EcommerceMiscellaneousApiFp)(configuration);
|
|
3184
|
+
return {
|
|
3185
|
+
/**
|
|
3186
|
+
* 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.
|
|
3187
|
+
* @summary Get custom storefront setup instructions
|
|
3188
|
+
* @param {*} [options] Override http request option.
|
|
3189
|
+
* @throws {RequiredError}
|
|
3190
|
+
*/
|
|
3191
|
+
getCustomStorefrontSetupInstructionsV1(options) {
|
|
3192
|
+
return localVarFp.getCustomStorefrontSetupInstructionsV1(options).then((request) => request(axios, basePath));
|
|
3193
|
+
},
|
|
3194
|
+
};
|
|
3195
|
+
};
|
|
3196
|
+
exports.EcommerceMiscellaneousApiFactory = EcommerceMiscellaneousApiFactory;
|
|
3197
|
+
/**
|
|
3198
|
+
* EcommerceMiscellaneousApi - object-oriented interface
|
|
3199
|
+
* @export
|
|
3200
|
+
* @class EcommerceMiscellaneousApi
|
|
3201
|
+
* @extends {BaseAPI}
|
|
3202
|
+
*/
|
|
3203
|
+
class EcommerceMiscellaneousApi extends base_1.BaseAPI {
|
|
3204
|
+
/**
|
|
3205
|
+
* 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.
|
|
3206
|
+
* @summary Get custom storefront setup instructions
|
|
3207
|
+
* @param {*} [options] Override http request option.
|
|
3208
|
+
* @throws {RequiredError}
|
|
3209
|
+
* @memberof EcommerceMiscellaneousApi
|
|
3210
|
+
*/
|
|
3211
|
+
getCustomStorefrontSetupInstructionsV1(options) {
|
|
3212
|
+
return (0, exports.EcommerceMiscellaneousApiFp)(this.configuration).getCustomStorefrontSetupInstructionsV1(options).then((request) => request(this.axios, this.basePath));
|
|
3213
|
+
}
|
|
3214
|
+
}
|
|
3215
|
+
exports.EcommerceMiscellaneousApi = EcommerceMiscellaneousApi;
|
|
3066
3216
|
/**
|
|
3067
3217
|
* EcommercePaymentsApi - axios parameter creator
|
|
3068
3218
|
* @export
|
|
@@ -3367,6 +3517,188 @@ class EcommerceProductsApi extends base_1.BaseAPI {
|
|
|
3367
3517
|
}
|
|
3368
3518
|
}
|
|
3369
3519
|
exports.EcommerceProductsApi = EcommerceProductsApi;
|
|
3520
|
+
/**
|
|
3521
|
+
* EcommerceSalesChannelsApi - axios parameter creator
|
|
3522
|
+
* @export
|
|
3523
|
+
*/
|
|
3524
|
+
const EcommerceSalesChannelsApiAxiosParamCreator = function (configuration) {
|
|
3525
|
+
return {
|
|
3526
|
+
/**
|
|
3527
|
+
* 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.
|
|
3528
|
+
* @summary Create a custom sales channel
|
|
3529
|
+
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3530
|
+
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3531
|
+
* @param {*} [options] Override http request option.
|
|
3532
|
+
* @throws {RequiredError}
|
|
3533
|
+
*/
|
|
3534
|
+
createACustomSalesChannelV1: (storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1SalesChannelStoreRequest, options = {}) {
|
|
3535
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
3536
|
+
(0, common_1.assertParamExists)('createACustomSalesChannelV1', 'storeId', storeId);
|
|
3537
|
+
// verify required parameter 'ecommerceV1SalesChannelStoreRequest' is not null or undefined
|
|
3538
|
+
(0, common_1.assertParamExists)('createACustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest);
|
|
3539
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
|
|
3540
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
|
|
3541
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3542
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3543
|
+
let baseOptions;
|
|
3544
|
+
if (configuration) {
|
|
3545
|
+
baseOptions = configuration.baseOptions;
|
|
3546
|
+
}
|
|
3547
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3548
|
+
const localVarHeaderParameter = {};
|
|
3549
|
+
const localVarQueryParameter = {};
|
|
3550
|
+
// authentication apiToken required
|
|
3551
|
+
// http bearer authentication required
|
|
3552
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3553
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3554
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3555
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3556
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3557
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1SalesChannelStoreRequest, localVarRequestOptions, configuration);
|
|
3558
|
+
return {
|
|
3559
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3560
|
+
options: localVarRequestOptions,
|
|
3561
|
+
};
|
|
3562
|
+
}),
|
|
3563
|
+
/**
|
|
3564
|
+
* List a store\'s active sales channels with their full metadata.
|
|
3565
|
+
* @summary List sales channels
|
|
3566
|
+
* @param {string} storeId The ID of the store to list sales channels for.
|
|
3567
|
+
* @param {*} [options] Override http request option.
|
|
3568
|
+
* @throws {RequiredError}
|
|
3569
|
+
*/
|
|
3570
|
+
listSalesChannelsV1: (storeId_1, ...args_1) => __awaiter(this, [storeId_1, ...args_1], void 0, function* (storeId, options = {}) {
|
|
3571
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
3572
|
+
(0, common_1.assertParamExists)('listSalesChannelsV1', 'storeId', storeId);
|
|
3573
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
|
|
3574
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
|
|
3575
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3576
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3577
|
+
let baseOptions;
|
|
3578
|
+
if (configuration) {
|
|
3579
|
+
baseOptions = configuration.baseOptions;
|
|
3580
|
+
}
|
|
3581
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3582
|
+
const localVarHeaderParameter = {};
|
|
3583
|
+
const localVarQueryParameter = {};
|
|
3584
|
+
// authentication apiToken required
|
|
3585
|
+
// http bearer authentication required
|
|
3586
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3587
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3588
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3589
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3590
|
+
return {
|
|
3591
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3592
|
+
options: localVarRequestOptions,
|
|
3593
|
+
};
|
|
3594
|
+
}),
|
|
3595
|
+
};
|
|
3596
|
+
};
|
|
3597
|
+
exports.EcommerceSalesChannelsApiAxiosParamCreator = EcommerceSalesChannelsApiAxiosParamCreator;
|
|
3598
|
+
/**
|
|
3599
|
+
* EcommerceSalesChannelsApi - functional programming interface
|
|
3600
|
+
* @export
|
|
3601
|
+
*/
|
|
3602
|
+
const EcommerceSalesChannelsApiFp = function (configuration) {
|
|
3603
|
+
const localVarAxiosParamCreator = (0, exports.EcommerceSalesChannelsApiAxiosParamCreator)(configuration);
|
|
3604
|
+
return {
|
|
3605
|
+
/**
|
|
3606
|
+
* 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.
|
|
3607
|
+
* @summary Create a custom sales channel
|
|
3608
|
+
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3609
|
+
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3610
|
+
* @param {*} [options] Override http request option.
|
|
3611
|
+
* @throws {RequiredError}
|
|
3612
|
+
*/
|
|
3613
|
+
createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
|
|
3614
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3615
|
+
var _a, _b;
|
|
3616
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
|
|
3617
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceSalesChannelsApi.createACustomSalesChannelV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3618
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3619
|
+
});
|
|
3620
|
+
},
|
|
3621
|
+
/**
|
|
3622
|
+
* List a store\'s active sales channels with their full metadata.
|
|
3623
|
+
* @summary List sales channels
|
|
3624
|
+
* @param {string} storeId The ID of the store to list sales channels for.
|
|
3625
|
+
* @param {*} [options] Override http request option.
|
|
3626
|
+
* @throws {RequiredError}
|
|
3627
|
+
*/
|
|
3628
|
+
listSalesChannelsV1(storeId, options) {
|
|
3629
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3630
|
+
var _a, _b;
|
|
3631
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSalesChannelsV1(storeId, options);
|
|
3632
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceSalesChannelsApi.listSalesChannelsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3633
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3634
|
+
});
|
|
3635
|
+
},
|
|
3636
|
+
};
|
|
3637
|
+
};
|
|
3638
|
+
exports.EcommerceSalesChannelsApiFp = EcommerceSalesChannelsApiFp;
|
|
3639
|
+
/**
|
|
3640
|
+
* EcommerceSalesChannelsApi - factory interface
|
|
3641
|
+
* @export
|
|
3642
|
+
*/
|
|
3643
|
+
const EcommerceSalesChannelsApiFactory = function (configuration, basePath, axios) {
|
|
3644
|
+
const localVarFp = (0, exports.EcommerceSalesChannelsApiFp)(configuration);
|
|
3645
|
+
return {
|
|
3646
|
+
/**
|
|
3647
|
+
* 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.
|
|
3648
|
+
* @summary Create a custom sales channel
|
|
3649
|
+
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3650
|
+
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3651
|
+
* @param {*} [options] Override http request option.
|
|
3652
|
+
* @throws {RequiredError}
|
|
3653
|
+
*/
|
|
3654
|
+
createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
|
|
3655
|
+
return localVarFp.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
|
|
3656
|
+
},
|
|
3657
|
+
/**
|
|
3658
|
+
* List a store\'s active sales channels with their full metadata.
|
|
3659
|
+
* @summary List sales channels
|
|
3660
|
+
* @param {string} storeId The ID of the store to list sales channels for.
|
|
3661
|
+
* @param {*} [options] Override http request option.
|
|
3662
|
+
* @throws {RequiredError}
|
|
3663
|
+
*/
|
|
3664
|
+
listSalesChannelsV1(storeId, options) {
|
|
3665
|
+
return localVarFp.listSalesChannelsV1(storeId, options).then((request) => request(axios, basePath));
|
|
3666
|
+
},
|
|
3667
|
+
};
|
|
3668
|
+
};
|
|
3669
|
+
exports.EcommerceSalesChannelsApiFactory = EcommerceSalesChannelsApiFactory;
|
|
3670
|
+
/**
|
|
3671
|
+
* EcommerceSalesChannelsApi - object-oriented interface
|
|
3672
|
+
* @export
|
|
3673
|
+
* @class EcommerceSalesChannelsApi
|
|
3674
|
+
* @extends {BaseAPI}
|
|
3675
|
+
*/
|
|
3676
|
+
class EcommerceSalesChannelsApi extends base_1.BaseAPI {
|
|
3677
|
+
/**
|
|
3678
|
+
* 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.
|
|
3679
|
+
* @summary Create a custom sales channel
|
|
3680
|
+
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3681
|
+
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3682
|
+
* @param {*} [options] Override http request option.
|
|
3683
|
+
* @throws {RequiredError}
|
|
3684
|
+
* @memberof EcommerceSalesChannelsApi
|
|
3685
|
+
*/
|
|
3686
|
+
createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
|
|
3687
|
+
return (0, exports.EcommerceSalesChannelsApiFp)(this.configuration).createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3688
|
+
}
|
|
3689
|
+
/**
|
|
3690
|
+
* List a store\'s active sales channels with their full metadata.
|
|
3691
|
+
* @summary List sales channels
|
|
3692
|
+
* @param {string} storeId The ID of the store to list sales channels for.
|
|
3693
|
+
* @param {*} [options] Override http request option.
|
|
3694
|
+
* @throws {RequiredError}
|
|
3695
|
+
* @memberof EcommerceSalesChannelsApi
|
|
3696
|
+
*/
|
|
3697
|
+
listSalesChannelsV1(storeId, options) {
|
|
3698
|
+
return (0, exports.EcommerceSalesChannelsApiFp)(this.configuration).listSalesChannelsV1(storeId, options).then((request) => request(this.axios, this.basePath));
|
|
3699
|
+
}
|
|
3700
|
+
}
|
|
3701
|
+
exports.EcommerceSalesChannelsApi = EcommerceSalesChannelsApi;
|
|
3370
3702
|
/**
|
|
3371
3703
|
* EcommerceShippingApi - axios parameter creator
|
|
3372
3704
|
* @export
|
|
@@ -6416,26 +6748,23 @@ class HostingWebsitesApi extends base_1.BaseAPI {
|
|
|
6416
6748
|
}
|
|
6417
6749
|
exports.HostingWebsitesApi = HostingWebsitesApi;
|
|
6418
6750
|
/**
|
|
6419
|
-
*
|
|
6751
|
+
* ReachContactsApi - axios parameter creator
|
|
6420
6752
|
* @export
|
|
6421
6753
|
*/
|
|
6422
|
-
const
|
|
6754
|
+
const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
6423
6755
|
return {
|
|
6424
6756
|
/**
|
|
6425
|
-
*
|
|
6426
|
-
* @summary
|
|
6427
|
-
* @param {
|
|
6428
|
-
* @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
|
|
6757
|
+
* 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.
|
|
6758
|
+
* @summary Create a new contact
|
|
6759
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
6429
6760
|
* @param {*} [options] Override http request option.
|
|
6761
|
+
* @deprecated
|
|
6430
6762
|
* @throws {RequiredError}
|
|
6431
6763
|
*/
|
|
6432
|
-
|
|
6433
|
-
// verify required parameter '
|
|
6434
|
-
(0, common_1.assertParamExists)('
|
|
6435
|
-
|
|
6436
|
-
(0, common_1.assertParamExists)('installWordPressV1', 'hostingV1WordpressInstallWordpressRequest', hostingV1WordpressInstallWordpressRequest);
|
|
6437
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
|
|
6438
|
-
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
6764
|
+
createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
|
|
6765
|
+
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
6766
|
+
(0, common_1.assertParamExists)('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
|
|
6767
|
+
const localVarPath = `/api/reach/v1/contacts`;
|
|
6439
6768
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6440
6769
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6441
6770
|
let baseOptions;
|
|
@@ -6452,245 +6781,44 @@ const HostingWordpressApiAxiosParamCreator = function (configuration) {
|
|
|
6452
6781
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6453
6782
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6454
6783
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6455
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
6784
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
6456
6785
|
return {
|
|
6457
6786
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6458
6787
|
options: localVarRequestOptions,
|
|
6459
6788
|
};
|
|
6460
6789
|
}),
|
|
6461
6790
|
/**
|
|
6462
|
-
*
|
|
6463
|
-
* @summary
|
|
6464
|
-
* @param {string
|
|
6465
|
-
* @param {
|
|
6466
|
-
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
6791
|
+
* 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.
|
|
6792
|
+
* @summary Create new contacts
|
|
6793
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
6794
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
6467
6795
|
* @param {*} [options] Override http request option.
|
|
6468
6796
|
* @throws {RequiredError}
|
|
6469
6797
|
*/
|
|
6470
|
-
|
|
6471
|
-
|
|
6798
|
+
createNewContactsV1: (profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsStoreRequest, options = {}) {
|
|
6799
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
6800
|
+
(0, common_1.assertParamExists)('createNewContactsV1', 'profileUuid', profileUuid);
|
|
6801
|
+
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
6802
|
+
(0, common_1.assertParamExists)('createNewContactsV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
|
|
6803
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
|
|
6804
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
6472
6805
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6473
6806
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6474
6807
|
let baseOptions;
|
|
6475
6808
|
if (configuration) {
|
|
6476
6809
|
baseOptions = configuration.baseOptions;
|
|
6477
6810
|
}
|
|
6478
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6811
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6479
6812
|
const localVarHeaderParameter = {};
|
|
6480
6813
|
const localVarQueryParameter = {};
|
|
6481
6814
|
// authentication apiToken required
|
|
6482
6815
|
// http bearer authentication required
|
|
6483
6816
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6484
|
-
|
|
6485
|
-
localVarQueryParameter['username'] = username;
|
|
6486
|
-
}
|
|
6487
|
-
if (domain !== undefined) {
|
|
6488
|
-
localVarQueryParameter['domain'] = domain;
|
|
6489
|
-
}
|
|
6490
|
-
if (ownership !== undefined) {
|
|
6491
|
-
localVarQueryParameter['ownership'] = ownership;
|
|
6492
|
-
}
|
|
6817
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6493
6818
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6494
6819
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6495
6820
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6496
|
-
|
|
6497
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6498
|
-
options: localVarRequestOptions,
|
|
6499
|
-
};
|
|
6500
|
-
}),
|
|
6501
|
-
};
|
|
6502
|
-
};
|
|
6503
|
-
exports.HostingWordpressApiAxiosParamCreator = HostingWordpressApiAxiosParamCreator;
|
|
6504
|
-
/**
|
|
6505
|
-
* HostingWordpressApi - functional programming interface
|
|
6506
|
-
* @export
|
|
6507
|
-
*/
|
|
6508
|
-
const HostingWordpressApiFp = function (configuration) {
|
|
6509
|
-
const localVarAxiosParamCreator = (0, exports.HostingWordpressApiAxiosParamCreator)(configuration);
|
|
6510
|
-
return {
|
|
6511
|
-
/**
|
|
6512
|
-
* 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.
|
|
6513
|
-
* @summary Install WordPress
|
|
6514
|
-
* @param {string} username
|
|
6515
|
-
* @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
|
|
6516
|
-
* @param {*} [options] Override http request option.
|
|
6517
|
-
* @throws {RequiredError}
|
|
6518
|
-
*/
|
|
6519
|
-
installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options) {
|
|
6520
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6521
|
-
var _a, _b;
|
|
6522
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options);
|
|
6523
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingWordpressApi.installWordPressV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6524
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6525
|
-
});
|
|
6526
|
-
},
|
|
6527
|
-
/**
|
|
6528
|
-
* 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.
|
|
6529
|
-
* @summary List WordPress installations
|
|
6530
|
-
* @param {string | null} [username] Filter by specific username
|
|
6531
|
-
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
6532
|
-
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
6533
|
-
* @param {*} [options] Override http request option.
|
|
6534
|
-
* @throws {RequiredError}
|
|
6535
|
-
*/
|
|
6536
|
-
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
6537
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6538
|
-
var _a, _b;
|
|
6539
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
|
|
6540
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingWordpressApi.listWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6541
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6542
|
-
});
|
|
6543
|
-
},
|
|
6544
|
-
};
|
|
6545
|
-
};
|
|
6546
|
-
exports.HostingWordpressApiFp = HostingWordpressApiFp;
|
|
6547
|
-
/**
|
|
6548
|
-
* HostingWordpressApi - factory interface
|
|
6549
|
-
* @export
|
|
6550
|
-
*/
|
|
6551
|
-
const HostingWordpressApiFactory = function (configuration, basePath, axios) {
|
|
6552
|
-
const localVarFp = (0, exports.HostingWordpressApiFp)(configuration);
|
|
6553
|
-
return {
|
|
6554
|
-
/**
|
|
6555
|
-
* 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.
|
|
6556
|
-
* @summary Install WordPress
|
|
6557
|
-
* @param {string} username
|
|
6558
|
-
* @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
|
|
6559
|
-
* @param {*} [options] Override http request option.
|
|
6560
|
-
* @throws {RequiredError}
|
|
6561
|
-
*/
|
|
6562
|
-
installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options) {
|
|
6563
|
-
return localVarFp.installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options).then((request) => request(axios, basePath));
|
|
6564
|
-
},
|
|
6565
|
-
/**
|
|
6566
|
-
* 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.
|
|
6567
|
-
* @summary List WordPress installations
|
|
6568
|
-
* @param {string | null} [username] Filter by specific username
|
|
6569
|
-
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
6570
|
-
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
6571
|
-
* @param {*} [options] Override http request option.
|
|
6572
|
-
* @throws {RequiredError}
|
|
6573
|
-
*/
|
|
6574
|
-
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
6575
|
-
return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
|
|
6576
|
-
},
|
|
6577
|
-
};
|
|
6578
|
-
};
|
|
6579
|
-
exports.HostingWordpressApiFactory = HostingWordpressApiFactory;
|
|
6580
|
-
/**
|
|
6581
|
-
* HostingWordpressApi - object-oriented interface
|
|
6582
|
-
* @export
|
|
6583
|
-
* @class HostingWordpressApi
|
|
6584
|
-
* @extends {BaseAPI}
|
|
6585
|
-
*/
|
|
6586
|
-
class HostingWordpressApi extends base_1.BaseAPI {
|
|
6587
|
-
/**
|
|
6588
|
-
* 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.
|
|
6589
|
-
* @summary Install WordPress
|
|
6590
|
-
* @param {string} username
|
|
6591
|
-
* @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
|
|
6592
|
-
* @param {*} [options] Override http request option.
|
|
6593
|
-
* @throws {RequiredError}
|
|
6594
|
-
* @memberof HostingWordpressApi
|
|
6595
|
-
*/
|
|
6596
|
-
installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options) {
|
|
6597
|
-
return (0, exports.HostingWordpressApiFp)(this.configuration).installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6598
|
-
}
|
|
6599
|
-
/**
|
|
6600
|
-
* 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.
|
|
6601
|
-
* @summary List WordPress installations
|
|
6602
|
-
* @param {string | null} [username] Filter by specific username
|
|
6603
|
-
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
6604
|
-
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
6605
|
-
* @param {*} [options] Override http request option.
|
|
6606
|
-
* @throws {RequiredError}
|
|
6607
|
-
* @memberof HostingWordpressApi
|
|
6608
|
-
*/
|
|
6609
|
-
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
6610
|
-
return (0, exports.HostingWordpressApiFp)(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
|
|
6611
|
-
}
|
|
6612
|
-
}
|
|
6613
|
-
exports.HostingWordpressApi = HostingWordpressApi;
|
|
6614
|
-
/**
|
|
6615
|
-
* @export
|
|
6616
|
-
*/
|
|
6617
|
-
exports.ListWordPressInstallationsV1OwnershipEnum = {
|
|
6618
|
-
Owned: 'owned',
|
|
6619
|
-
Managed: 'managed',
|
|
6620
|
-
All: 'all'
|
|
6621
|
-
};
|
|
6622
|
-
/**
|
|
6623
|
-
* ReachContactsApi - axios parameter creator
|
|
6624
|
-
* @export
|
|
6625
|
-
*/
|
|
6626
|
-
const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
6627
|
-
return {
|
|
6628
|
-
/**
|
|
6629
|
-
* 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.
|
|
6630
|
-
* @summary Create a new contact
|
|
6631
|
-
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
6632
|
-
* @param {*} [options] Override http request option.
|
|
6633
|
-
* @deprecated
|
|
6634
|
-
* @throws {RequiredError}
|
|
6635
|
-
*/
|
|
6636
|
-
createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
|
|
6637
|
-
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
6638
|
-
(0, common_1.assertParamExists)('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
|
|
6639
|
-
const localVarPath = `/api/reach/v1/contacts`;
|
|
6640
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6641
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6642
|
-
let baseOptions;
|
|
6643
|
-
if (configuration) {
|
|
6644
|
-
baseOptions = configuration.baseOptions;
|
|
6645
|
-
}
|
|
6646
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6647
|
-
const localVarHeaderParameter = {};
|
|
6648
|
-
const localVarQueryParameter = {};
|
|
6649
|
-
// authentication apiToken required
|
|
6650
|
-
// http bearer authentication required
|
|
6651
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6652
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6653
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6654
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6655
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6656
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
6657
|
-
return {
|
|
6658
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6659
|
-
options: localVarRequestOptions,
|
|
6660
|
-
};
|
|
6661
|
-
}),
|
|
6662
|
-
/**
|
|
6663
|
-
* 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.
|
|
6664
|
-
* @summary Create new contacts
|
|
6665
|
-
* @param {string} profileUuid Profile uuid parameter
|
|
6666
|
-
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
6667
|
-
* @param {*} [options] Override http request option.
|
|
6668
|
-
* @throws {RequiredError}
|
|
6669
|
-
*/
|
|
6670
|
-
createNewContactsV1: (profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsStoreRequest, options = {}) {
|
|
6671
|
-
// verify required parameter 'profileUuid' is not null or undefined
|
|
6672
|
-
(0, common_1.assertParamExists)('createNewContactsV1', 'profileUuid', profileUuid);
|
|
6673
|
-
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
6674
|
-
(0, common_1.assertParamExists)('createNewContactsV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
|
|
6675
|
-
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
|
|
6676
|
-
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
6677
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6678
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6679
|
-
let baseOptions;
|
|
6680
|
-
if (configuration) {
|
|
6681
|
-
baseOptions = configuration.baseOptions;
|
|
6682
|
-
}
|
|
6683
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6684
|
-
const localVarHeaderParameter = {};
|
|
6685
|
-
const localVarQueryParameter = {};
|
|
6686
|
-
// authentication apiToken required
|
|
6687
|
-
// http bearer authentication required
|
|
6688
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6689
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6690
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6691
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6692
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6693
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
6821
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
6694
6822
|
return {
|
|
6695
6823
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6696
6824
|
options: localVarRequestOptions,
|
|
@@ -12561,3 +12689,1632 @@ class VPSVirtualMachineApi extends base_1.BaseAPI {
|
|
|
12561
12689
|
}
|
|
12562
12690
|
}
|
|
12563
12691
|
exports.VPSVirtualMachineApi = VPSVirtualMachineApi;
|
|
12692
|
+
/**
|
|
12693
|
+
* WordPressInstallationsApi - axios parameter creator
|
|
12694
|
+
* @export
|
|
12695
|
+
*/
|
|
12696
|
+
const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
|
|
12697
|
+
return {
|
|
12698
|
+
/**
|
|
12699
|
+
* 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.
|
|
12700
|
+
* @summary Install WordPress
|
|
12701
|
+
* @param {string} username
|
|
12702
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
12703
|
+
* @param {*} [options] Override http request option.
|
|
12704
|
+
* @throws {RequiredError}
|
|
12705
|
+
*/
|
|
12706
|
+
installWordPressV1: (username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1) => __awaiter(this, [username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1], void 0, function* (username, wordPressV1InstallationsInstallWordPressRequest, options = {}) {
|
|
12707
|
+
// verify required parameter 'username' is not null or undefined
|
|
12708
|
+
(0, common_1.assertParamExists)('installWordPressV1', 'username', username);
|
|
12709
|
+
// verify required parameter 'wordPressV1InstallationsInstallWordPressRequest' is not null or undefined
|
|
12710
|
+
(0, common_1.assertParamExists)('installWordPressV1', 'wordPressV1InstallationsInstallWordPressRequest', wordPressV1InstallationsInstallWordPressRequest);
|
|
12711
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
|
|
12712
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
12713
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12714
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12715
|
+
let baseOptions;
|
|
12716
|
+
if (configuration) {
|
|
12717
|
+
baseOptions = configuration.baseOptions;
|
|
12718
|
+
}
|
|
12719
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12720
|
+
const localVarHeaderParameter = {};
|
|
12721
|
+
const localVarQueryParameter = {};
|
|
12722
|
+
// authentication apiToken required
|
|
12723
|
+
// http bearer authentication required
|
|
12724
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12725
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12726
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12727
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12728
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12729
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsInstallWordPressRequest, localVarRequestOptions, configuration);
|
|
12730
|
+
return {
|
|
12731
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12732
|
+
options: localVarRequestOptions,
|
|
12733
|
+
};
|
|
12734
|
+
}),
|
|
12735
|
+
/**
|
|
12736
|
+
* 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.
|
|
12737
|
+
* @summary List WordPress installations
|
|
12738
|
+
* @param {string | null} [username] Filter by specific username
|
|
12739
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12740
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
12741
|
+
* @param {*} [options] Override http request option.
|
|
12742
|
+
* @throws {RequiredError}
|
|
12743
|
+
*/
|
|
12744
|
+
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 = {}) {
|
|
12745
|
+
const localVarPath = `/api/hosting/v1/wordpress/installations`;
|
|
12746
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12747
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12748
|
+
let baseOptions;
|
|
12749
|
+
if (configuration) {
|
|
12750
|
+
baseOptions = configuration.baseOptions;
|
|
12751
|
+
}
|
|
12752
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12753
|
+
const localVarHeaderParameter = {};
|
|
12754
|
+
const localVarQueryParameter = {};
|
|
12755
|
+
// authentication apiToken required
|
|
12756
|
+
// http bearer authentication required
|
|
12757
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12758
|
+
if (username !== undefined) {
|
|
12759
|
+
localVarQueryParameter['username'] = username;
|
|
12760
|
+
}
|
|
12761
|
+
if (domain !== undefined) {
|
|
12762
|
+
localVarQueryParameter['domain'] = domain;
|
|
12763
|
+
}
|
|
12764
|
+
if (ownership !== undefined) {
|
|
12765
|
+
localVarQueryParameter['ownership'] = ownership;
|
|
12766
|
+
}
|
|
12767
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12768
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12769
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12770
|
+
return {
|
|
12771
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12772
|
+
options: localVarRequestOptions,
|
|
12773
|
+
};
|
|
12774
|
+
}),
|
|
12775
|
+
};
|
|
12776
|
+
};
|
|
12777
|
+
exports.WordPressInstallationsApiAxiosParamCreator = WordPressInstallationsApiAxiosParamCreator;
|
|
12778
|
+
/**
|
|
12779
|
+
* WordPressInstallationsApi - functional programming interface
|
|
12780
|
+
* @export
|
|
12781
|
+
*/
|
|
12782
|
+
const WordPressInstallationsApiFp = function (configuration) {
|
|
12783
|
+
const localVarAxiosParamCreator = (0, exports.WordPressInstallationsApiAxiosParamCreator)(configuration);
|
|
12784
|
+
return {
|
|
12785
|
+
/**
|
|
12786
|
+
* 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.
|
|
12787
|
+
* @summary Install WordPress
|
|
12788
|
+
* @param {string} username
|
|
12789
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
12790
|
+
* @param {*} [options] Override http request option.
|
|
12791
|
+
* @throws {RequiredError}
|
|
12792
|
+
*/
|
|
12793
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
12794
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12795
|
+
var _a, _b;
|
|
12796
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options);
|
|
12797
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.installWordPressV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12798
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12799
|
+
});
|
|
12800
|
+
},
|
|
12801
|
+
/**
|
|
12802
|
+
* 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.
|
|
12803
|
+
* @summary List WordPress installations
|
|
12804
|
+
* @param {string | null} [username] Filter by specific username
|
|
12805
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12806
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
12807
|
+
* @param {*} [options] Override http request option.
|
|
12808
|
+
* @throws {RequiredError}
|
|
12809
|
+
*/
|
|
12810
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
12811
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12812
|
+
var _a, _b;
|
|
12813
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
|
|
12814
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.listWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12815
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12816
|
+
});
|
|
12817
|
+
},
|
|
12818
|
+
};
|
|
12819
|
+
};
|
|
12820
|
+
exports.WordPressInstallationsApiFp = WordPressInstallationsApiFp;
|
|
12821
|
+
/**
|
|
12822
|
+
* WordPressInstallationsApi - factory interface
|
|
12823
|
+
* @export
|
|
12824
|
+
*/
|
|
12825
|
+
const WordPressInstallationsApiFactory = function (configuration, basePath, axios) {
|
|
12826
|
+
const localVarFp = (0, exports.WordPressInstallationsApiFp)(configuration);
|
|
12827
|
+
return {
|
|
12828
|
+
/**
|
|
12829
|
+
* 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.
|
|
12830
|
+
* @summary Install WordPress
|
|
12831
|
+
* @param {string} username
|
|
12832
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
12833
|
+
* @param {*} [options] Override http request option.
|
|
12834
|
+
* @throws {RequiredError}
|
|
12835
|
+
*/
|
|
12836
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
12837
|
+
return localVarFp.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(axios, basePath));
|
|
12838
|
+
},
|
|
12839
|
+
/**
|
|
12840
|
+
* 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.
|
|
12841
|
+
* @summary List WordPress installations
|
|
12842
|
+
* @param {string | null} [username] Filter by specific username
|
|
12843
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12844
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
12845
|
+
* @param {*} [options] Override http request option.
|
|
12846
|
+
* @throws {RequiredError}
|
|
12847
|
+
*/
|
|
12848
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
12849
|
+
return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
|
|
12850
|
+
},
|
|
12851
|
+
};
|
|
12852
|
+
};
|
|
12853
|
+
exports.WordPressInstallationsApiFactory = WordPressInstallationsApiFactory;
|
|
12854
|
+
/**
|
|
12855
|
+
* WordPressInstallationsApi - object-oriented interface
|
|
12856
|
+
* @export
|
|
12857
|
+
* @class WordPressInstallationsApi
|
|
12858
|
+
* @extends {BaseAPI}
|
|
12859
|
+
*/
|
|
12860
|
+
class WordPressInstallationsApi extends base_1.BaseAPI {
|
|
12861
|
+
/**
|
|
12862
|
+
* 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.
|
|
12863
|
+
* @summary Install WordPress
|
|
12864
|
+
* @param {string} username
|
|
12865
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
12866
|
+
* @param {*} [options] Override http request option.
|
|
12867
|
+
* @throws {RequiredError}
|
|
12868
|
+
* @memberof WordPressInstallationsApi
|
|
12869
|
+
*/
|
|
12870
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
12871
|
+
return (0, exports.WordPressInstallationsApiFp)(this.configuration).installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12872
|
+
}
|
|
12873
|
+
/**
|
|
12874
|
+
* 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.
|
|
12875
|
+
* @summary List WordPress installations
|
|
12876
|
+
* @param {string | null} [username] Filter by specific username
|
|
12877
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12878
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
12879
|
+
* @param {*} [options] Override http request option.
|
|
12880
|
+
* @throws {RequiredError}
|
|
12881
|
+
* @memberof WordPressInstallationsApi
|
|
12882
|
+
*/
|
|
12883
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
12884
|
+
return (0, exports.WordPressInstallationsApiFp)(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
|
|
12885
|
+
}
|
|
12886
|
+
}
|
|
12887
|
+
exports.WordPressInstallationsApi = WordPressInstallationsApi;
|
|
12888
|
+
/**
|
|
12889
|
+
* @export
|
|
12890
|
+
*/
|
|
12891
|
+
exports.ListWordPressInstallationsV1OwnershipEnum = {
|
|
12892
|
+
Owned: 'owned',
|
|
12893
|
+
Managed: 'managed',
|
|
12894
|
+
All: 'all'
|
|
12895
|
+
};
|
|
12896
|
+
/**
|
|
12897
|
+
* WordPressPluginsApi - axios parameter creator
|
|
12898
|
+
* @export
|
|
12899
|
+
*/
|
|
12900
|
+
const WordPressPluginsApiAxiosParamCreator = function (configuration) {
|
|
12901
|
+
return {
|
|
12902
|
+
/**
|
|
12903
|
+
* 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.
|
|
12904
|
+
* @summary Activate WordPress plugin
|
|
12905
|
+
* @param {string} username
|
|
12906
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12907
|
+
* @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
|
|
12908
|
+
* @param {*} [options] Override http request option.
|
|
12909
|
+
* @throws {RequiredError}
|
|
12910
|
+
*/
|
|
12911
|
+
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 = {}) {
|
|
12912
|
+
// verify required parameter 'username' is not null or undefined
|
|
12913
|
+
(0, common_1.assertParamExists)('activateWordPressPluginV1', 'username', username);
|
|
12914
|
+
// verify required parameter 'software' is not null or undefined
|
|
12915
|
+
(0, common_1.assertParamExists)('activateWordPressPluginV1', 'software', software);
|
|
12916
|
+
// verify required parameter 'wordPressV1PluginsActivatePluginRequest' is not null or undefined
|
|
12917
|
+
(0, common_1.assertParamExists)('activateWordPressPluginV1', 'wordPressV1PluginsActivatePluginRequest', wordPressV1PluginsActivatePluginRequest);
|
|
12918
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/activate`
|
|
12919
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12920
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12921
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12922
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12923
|
+
let baseOptions;
|
|
12924
|
+
if (configuration) {
|
|
12925
|
+
baseOptions = configuration.baseOptions;
|
|
12926
|
+
}
|
|
12927
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12928
|
+
const localVarHeaderParameter = {};
|
|
12929
|
+
const localVarQueryParameter = {};
|
|
12930
|
+
// authentication apiToken required
|
|
12931
|
+
// http bearer authentication required
|
|
12932
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12933
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12934
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12935
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12936
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12937
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsActivatePluginRequest, localVarRequestOptions, configuration);
|
|
12938
|
+
return {
|
|
12939
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12940
|
+
options: localVarRequestOptions,
|
|
12941
|
+
};
|
|
12942
|
+
}),
|
|
12943
|
+
/**
|
|
12944
|
+
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
12945
|
+
* @summary Check if WooCommerce is installed
|
|
12946
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
12947
|
+
* @param {*} [options] Override http request option.
|
|
12948
|
+
* @throws {RequiredError}
|
|
12949
|
+
*/
|
|
12950
|
+
checkIfWooCommerceIsInstalledV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
12951
|
+
const localVarPath = `/api/hosting/v1/wordpress/plugins/is-woocommerce-installed`;
|
|
12952
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12953
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12954
|
+
let baseOptions;
|
|
12955
|
+
if (configuration) {
|
|
12956
|
+
baseOptions = configuration.baseOptions;
|
|
12957
|
+
}
|
|
12958
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12959
|
+
const localVarHeaderParameter = {};
|
|
12960
|
+
const localVarQueryParameter = {};
|
|
12961
|
+
// authentication apiToken required
|
|
12962
|
+
// http bearer authentication required
|
|
12963
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12964
|
+
if (domain !== undefined) {
|
|
12965
|
+
localVarQueryParameter['domain'] = domain;
|
|
12966
|
+
}
|
|
12967
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12968
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12969
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12970
|
+
return {
|
|
12971
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12972
|
+
options: localVarRequestOptions,
|
|
12973
|
+
};
|
|
12974
|
+
}),
|
|
12975
|
+
/**
|
|
12976
|
+
* 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.
|
|
12977
|
+
* @summary Deactivate WordPress plugin
|
|
12978
|
+
* @param {string} username
|
|
12979
|
+
* @param {string} software WordPress installation (software) identifier
|
|
12980
|
+
* @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
|
|
12981
|
+
* @param {*} [options] Override http request option.
|
|
12982
|
+
* @throws {RequiredError}
|
|
12983
|
+
*/
|
|
12984
|
+
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 = {}) {
|
|
12985
|
+
// verify required parameter 'username' is not null or undefined
|
|
12986
|
+
(0, common_1.assertParamExists)('deactivateWordPressPluginV1', 'username', username);
|
|
12987
|
+
// verify required parameter 'software' is not null or undefined
|
|
12988
|
+
(0, common_1.assertParamExists)('deactivateWordPressPluginV1', 'software', software);
|
|
12989
|
+
// verify required parameter 'wordPressV1PluginsDeactivatePluginRequest' is not null or undefined
|
|
12990
|
+
(0, common_1.assertParamExists)('deactivateWordPressPluginV1', 'wordPressV1PluginsDeactivatePluginRequest', wordPressV1PluginsDeactivatePluginRequest);
|
|
12991
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/deactivate`
|
|
12992
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12993
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
12994
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12995
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12996
|
+
let baseOptions;
|
|
12997
|
+
if (configuration) {
|
|
12998
|
+
baseOptions = configuration.baseOptions;
|
|
12999
|
+
}
|
|
13000
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13001
|
+
const localVarHeaderParameter = {};
|
|
13002
|
+
const localVarQueryParameter = {};
|
|
13003
|
+
// authentication apiToken required
|
|
13004
|
+
// http bearer authentication required
|
|
13005
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13006
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13007
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13008
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13009
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13010
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsDeactivatePluginRequest, localVarRequestOptions, configuration);
|
|
13011
|
+
return {
|
|
13012
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13013
|
+
options: localVarRequestOptions,
|
|
13014
|
+
};
|
|
13015
|
+
}),
|
|
13016
|
+
/**
|
|
13017
|
+
* 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.
|
|
13018
|
+
* @summary Install WordPress plugins
|
|
13019
|
+
* @param {string} username
|
|
13020
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13021
|
+
* @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
|
|
13022
|
+
* @param {*} [options] Override http request option.
|
|
13023
|
+
* @throws {RequiredError}
|
|
13024
|
+
*/
|
|
13025
|
+
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 = {}) {
|
|
13026
|
+
// verify required parameter 'username' is not null or undefined
|
|
13027
|
+
(0, common_1.assertParamExists)('installWordPressPluginsV1', 'username', username);
|
|
13028
|
+
// verify required parameter 'software' is not null or undefined
|
|
13029
|
+
(0, common_1.assertParamExists)('installWordPressPluginsV1', 'software', software);
|
|
13030
|
+
// verify required parameter 'wordPressV1PluginsInstallPluginsRequest' is not null or undefined
|
|
13031
|
+
(0, common_1.assertParamExists)('installWordPressPluginsV1', 'wordPressV1PluginsInstallPluginsRequest', wordPressV1PluginsInstallPluginsRequest);
|
|
13032
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install`
|
|
13033
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13034
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13035
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13036
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13037
|
+
let baseOptions;
|
|
13038
|
+
if (configuration) {
|
|
13039
|
+
baseOptions = configuration.baseOptions;
|
|
13040
|
+
}
|
|
13041
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13042
|
+
const localVarHeaderParameter = {};
|
|
13043
|
+
const localVarQueryParameter = {};
|
|
13044
|
+
// authentication apiToken required
|
|
13045
|
+
// http bearer authentication required
|
|
13046
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13047
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13048
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13049
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13050
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13051
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsInstallPluginsRequest, localVarRequestOptions, configuration);
|
|
13052
|
+
return {
|
|
13053
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13054
|
+
options: localVarRequestOptions,
|
|
13055
|
+
};
|
|
13056
|
+
}),
|
|
13057
|
+
/**
|
|
13058
|
+
* 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).
|
|
13059
|
+
* @summary List available WordPress plugins
|
|
13060
|
+
* @param {string} username
|
|
13061
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13062
|
+
* @param {*} [options] Override http request option.
|
|
13063
|
+
* @throws {RequiredError}
|
|
13064
|
+
*/
|
|
13065
|
+
listAvailableWordPressPluginsV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
13066
|
+
// verify required parameter 'username' is not null or undefined
|
|
13067
|
+
(0, common_1.assertParamExists)('listAvailableWordPressPluginsV1', 'username', username);
|
|
13068
|
+
// verify required parameter 'software' is not null or undefined
|
|
13069
|
+
(0, common_1.assertParamExists)('listAvailableWordPressPluginsV1', 'software', software);
|
|
13070
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/available`
|
|
13071
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13072
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13073
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13074
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13075
|
+
let baseOptions;
|
|
13076
|
+
if (configuration) {
|
|
13077
|
+
baseOptions = configuration.baseOptions;
|
|
13078
|
+
}
|
|
13079
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13080
|
+
const localVarHeaderParameter = {};
|
|
13081
|
+
const localVarQueryParameter = {};
|
|
13082
|
+
// authentication apiToken required
|
|
13083
|
+
// http bearer authentication required
|
|
13084
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13085
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13086
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13087
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13088
|
+
return {
|
|
13089
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13090
|
+
options: localVarRequestOptions,
|
|
13091
|
+
};
|
|
13092
|
+
}),
|
|
13093
|
+
/**
|
|
13094
|
+
* 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).
|
|
13095
|
+
* @summary List installed WordPress plugins
|
|
13096
|
+
* @param {string} username
|
|
13097
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13098
|
+
* @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
|
|
13099
|
+
* @param {*} [options] Override http request option.
|
|
13100
|
+
* @throws {RequiredError}
|
|
13101
|
+
*/
|
|
13102
|
+
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 = {}) {
|
|
13103
|
+
// verify required parameter 'username' is not null or undefined
|
|
13104
|
+
(0, common_1.assertParamExists)('listInstalledWordPressPluginsV1', 'username', username);
|
|
13105
|
+
// verify required parameter 'software' is not null or undefined
|
|
13106
|
+
(0, common_1.assertParamExists)('listInstalledWordPressPluginsV1', 'software', software);
|
|
13107
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins`
|
|
13108
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13109
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13110
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13111
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13112
|
+
let baseOptions;
|
|
13113
|
+
if (configuration) {
|
|
13114
|
+
baseOptions = configuration.baseOptions;
|
|
13115
|
+
}
|
|
13116
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13117
|
+
const localVarHeaderParameter = {};
|
|
13118
|
+
const localVarQueryParameter = {};
|
|
13119
|
+
// authentication apiToken required
|
|
13120
|
+
// http bearer authentication required
|
|
13121
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13122
|
+
if (category !== undefined) {
|
|
13123
|
+
localVarQueryParameter['category'] = category;
|
|
13124
|
+
}
|
|
13125
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13126
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13127
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13128
|
+
return {
|
|
13129
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13130
|
+
options: localVarRequestOptions,
|
|
13131
|
+
};
|
|
13132
|
+
}),
|
|
13133
|
+
/**
|
|
13134
|
+
* List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
13135
|
+
* @summary List suggested WordPress plugins
|
|
13136
|
+
* @param {number | null} [orderId] Optionally scope suggestions to a specific order.
|
|
13137
|
+
* @param {*} [options] Override http request option.
|
|
13138
|
+
* @throws {RequiredError}
|
|
13139
|
+
*/
|
|
13140
|
+
listSuggestedWordPressPluginsV1: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
|
|
13141
|
+
const localVarPath = `/api/hosting/v1/wordpress/plugins/suggested`;
|
|
13142
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13143
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13144
|
+
let baseOptions;
|
|
13145
|
+
if (configuration) {
|
|
13146
|
+
baseOptions = configuration.baseOptions;
|
|
13147
|
+
}
|
|
13148
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13149
|
+
const localVarHeaderParameter = {};
|
|
13150
|
+
const localVarQueryParameter = {};
|
|
13151
|
+
// authentication apiToken required
|
|
13152
|
+
// http bearer authentication required
|
|
13153
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13154
|
+
if (orderId !== undefined) {
|
|
13155
|
+
localVarQueryParameter['order_id'] = orderId;
|
|
13156
|
+
}
|
|
13157
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13158
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13159
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13160
|
+
return {
|
|
13161
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13162
|
+
options: localVarRequestOptions,
|
|
13163
|
+
};
|
|
13164
|
+
}),
|
|
13165
|
+
/**
|
|
13166
|
+
* 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.
|
|
13167
|
+
* @summary Search WordPress plugins
|
|
13168
|
+
* @param {string} search Search term to match against plugin names. Minimum 3 characters.
|
|
13169
|
+
* @param {*} [options] Override http request option.
|
|
13170
|
+
* @throws {RequiredError}
|
|
13171
|
+
*/
|
|
13172
|
+
searchWordPressPluginsV1: (search_1, ...args_1) => __awaiter(this, [search_1, ...args_1], void 0, function* (search, options = {}) {
|
|
13173
|
+
// verify required parameter 'search' is not null or undefined
|
|
13174
|
+
(0, common_1.assertParamExists)('searchWordPressPluginsV1', 'search', search);
|
|
13175
|
+
const localVarPath = `/api/hosting/v1/wordpress/plugins`;
|
|
13176
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13177
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13178
|
+
let baseOptions;
|
|
13179
|
+
if (configuration) {
|
|
13180
|
+
baseOptions = configuration.baseOptions;
|
|
13181
|
+
}
|
|
13182
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13183
|
+
const localVarHeaderParameter = {};
|
|
13184
|
+
const localVarQueryParameter = {};
|
|
13185
|
+
// authentication apiToken required
|
|
13186
|
+
// http bearer authentication required
|
|
13187
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13188
|
+
if (search !== undefined) {
|
|
13189
|
+
localVarQueryParameter['search'] = search;
|
|
13190
|
+
}
|
|
13191
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13192
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13193
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13194
|
+
return {
|
|
13195
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13196
|
+
options: localVarRequestOptions,
|
|
13197
|
+
};
|
|
13198
|
+
}),
|
|
13199
|
+
/**
|
|
13200
|
+
* 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.
|
|
13201
|
+
* @summary Uninstall WordPress plugins
|
|
13202
|
+
* @param {string} username
|
|
13203
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13204
|
+
* @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
|
|
13205
|
+
* @param {*} [options] Override http request option.
|
|
13206
|
+
* @throws {RequiredError}
|
|
13207
|
+
*/
|
|
13208
|
+
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 = {}) {
|
|
13209
|
+
// verify required parameter 'username' is not null or undefined
|
|
13210
|
+
(0, common_1.assertParamExists)('uninstallWordPressPluginsV1', 'username', username);
|
|
13211
|
+
// verify required parameter 'software' is not null or undefined
|
|
13212
|
+
(0, common_1.assertParamExists)('uninstallWordPressPluginsV1', 'software', software);
|
|
13213
|
+
// verify required parameter 'wordPressV1PluginsUninstallPluginsRequest' is not null or undefined
|
|
13214
|
+
(0, common_1.assertParamExists)('uninstallWordPressPluginsV1', 'wordPressV1PluginsUninstallPluginsRequest', wordPressV1PluginsUninstallPluginsRequest);
|
|
13215
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/uninstall`
|
|
13216
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13217
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13218
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13219
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13220
|
+
let baseOptions;
|
|
13221
|
+
if (configuration) {
|
|
13222
|
+
baseOptions = configuration.baseOptions;
|
|
13223
|
+
}
|
|
13224
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13225
|
+
const localVarHeaderParameter = {};
|
|
13226
|
+
const localVarQueryParameter = {};
|
|
13227
|
+
// authentication apiToken required
|
|
13228
|
+
// http bearer authentication required
|
|
13229
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13230
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13231
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13232
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13233
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13234
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsUninstallPluginsRequest, localVarRequestOptions, configuration);
|
|
13235
|
+
return {
|
|
13236
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13237
|
+
options: localVarRequestOptions,
|
|
13238
|
+
};
|
|
13239
|
+
}),
|
|
13240
|
+
/**
|
|
13241
|
+
* 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.
|
|
13242
|
+
* @summary Update Hostinger WordPress plugin
|
|
13243
|
+
* @param {string} username
|
|
13244
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13245
|
+
* @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
|
|
13246
|
+
* @param {*} [options] Override http request option.
|
|
13247
|
+
* @throws {RequiredError}
|
|
13248
|
+
*/
|
|
13249
|
+
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 = {}) {
|
|
13250
|
+
// verify required parameter 'username' is not null or undefined
|
|
13251
|
+
(0, common_1.assertParamExists)('updateHostingerWordPressPluginV1', 'username', username);
|
|
13252
|
+
// verify required parameter 'software' is not null or undefined
|
|
13253
|
+
(0, common_1.assertParamExists)('updateHostingerWordPressPluginV1', 'software', software);
|
|
13254
|
+
// verify required parameter 'wordPressV1PluginsUpdateHostingerPluginRequest' is not null or undefined
|
|
13255
|
+
(0, common_1.assertParamExists)('updateHostingerWordPressPluginV1', 'wordPressV1PluginsUpdateHostingerPluginRequest', wordPressV1PluginsUpdateHostingerPluginRequest);
|
|
13256
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/hostinger/update`
|
|
13257
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13258
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13259
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13260
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13261
|
+
let baseOptions;
|
|
13262
|
+
if (configuration) {
|
|
13263
|
+
baseOptions = configuration.baseOptions;
|
|
13264
|
+
}
|
|
13265
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13266
|
+
const localVarHeaderParameter = {};
|
|
13267
|
+
const localVarQueryParameter = {};
|
|
13268
|
+
// authentication apiToken required
|
|
13269
|
+
// http bearer authentication required
|
|
13270
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13271
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13272
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13274
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13275
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsUpdateHostingerPluginRequest, localVarRequestOptions, configuration);
|
|
13276
|
+
return {
|
|
13277
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13278
|
+
options: localVarRequestOptions,
|
|
13279
|
+
};
|
|
13280
|
+
}),
|
|
13281
|
+
/**
|
|
13282
|
+
* 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.
|
|
13283
|
+
* @summary Update WordPress plugins
|
|
13284
|
+
* @param {string} username
|
|
13285
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13286
|
+
* @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
|
|
13287
|
+
* @param {*} [options] Override http request option.
|
|
13288
|
+
* @throws {RequiredError}
|
|
13289
|
+
*/
|
|
13290
|
+
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 = {}) {
|
|
13291
|
+
// verify required parameter 'username' is not null or undefined
|
|
13292
|
+
(0, common_1.assertParamExists)('updateWordPressPluginsV1', 'username', username);
|
|
13293
|
+
// verify required parameter 'software' is not null or undefined
|
|
13294
|
+
(0, common_1.assertParamExists)('updateWordPressPluginsV1', 'software', software);
|
|
13295
|
+
// verify required parameter 'wordPressV1PluginsUpdatePluginsRequest' is not null or undefined
|
|
13296
|
+
(0, common_1.assertParamExists)('updateWordPressPluginsV1', 'wordPressV1PluginsUpdatePluginsRequest', wordPressV1PluginsUpdatePluginsRequest);
|
|
13297
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/update`
|
|
13298
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13299
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13300
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13301
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13302
|
+
let baseOptions;
|
|
13303
|
+
if (configuration) {
|
|
13304
|
+
baseOptions = configuration.baseOptions;
|
|
13305
|
+
}
|
|
13306
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13307
|
+
const localVarHeaderParameter = {};
|
|
13308
|
+
const localVarQueryParameter = {};
|
|
13309
|
+
// authentication apiToken required
|
|
13310
|
+
// http bearer authentication required
|
|
13311
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13312
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13313
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13314
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13315
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13316
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsUpdatePluginsRequest, localVarRequestOptions, configuration);
|
|
13317
|
+
return {
|
|
13318
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13319
|
+
options: localVarRequestOptions,
|
|
13320
|
+
};
|
|
13321
|
+
}),
|
|
13322
|
+
};
|
|
13323
|
+
};
|
|
13324
|
+
exports.WordPressPluginsApiAxiosParamCreator = WordPressPluginsApiAxiosParamCreator;
|
|
13325
|
+
/**
|
|
13326
|
+
* WordPressPluginsApi - functional programming interface
|
|
13327
|
+
* @export
|
|
13328
|
+
*/
|
|
13329
|
+
const WordPressPluginsApiFp = function (configuration) {
|
|
13330
|
+
const localVarAxiosParamCreator = (0, exports.WordPressPluginsApiAxiosParamCreator)(configuration);
|
|
13331
|
+
return {
|
|
13332
|
+
/**
|
|
13333
|
+
* 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.
|
|
13334
|
+
* @summary Activate WordPress plugin
|
|
13335
|
+
* @param {string} username
|
|
13336
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13337
|
+
* @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
|
|
13338
|
+
* @param {*} [options] Override http request option.
|
|
13339
|
+
* @throws {RequiredError}
|
|
13340
|
+
*/
|
|
13341
|
+
activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options) {
|
|
13342
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13343
|
+
var _a, _b;
|
|
13344
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options);
|
|
13345
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressPluginsApi.activateWordPressPluginV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13346
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13347
|
+
});
|
|
13348
|
+
},
|
|
13349
|
+
/**
|
|
13350
|
+
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
13351
|
+
* @summary Check if WooCommerce is installed
|
|
13352
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
13353
|
+
* @param {*} [options] Override http request option.
|
|
13354
|
+
* @throws {RequiredError}
|
|
13355
|
+
*/
|
|
13356
|
+
checkIfWooCommerceIsInstalledV1(domain, options) {
|
|
13357
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13358
|
+
var _a, _b;
|
|
13359
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkIfWooCommerceIsInstalledV1(domain, options);
|
|
13360
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressPluginsApi.checkIfWooCommerceIsInstalledV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13361
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13362
|
+
});
|
|
13363
|
+
},
|
|
13364
|
+
/**
|
|
13365
|
+
* 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.
|
|
13366
|
+
* @summary Deactivate WordPress plugin
|
|
13367
|
+
* @param {string} username
|
|
13368
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13369
|
+
* @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
|
|
13370
|
+
* @param {*} [options] Override http request option.
|
|
13371
|
+
* @throws {RequiredError}
|
|
13372
|
+
*/
|
|
13373
|
+
deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
|
|
13374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13375
|
+
var _a, _b;
|
|
13376
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options);
|
|
13377
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressPluginsApi.deactivateWordPressPluginV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13378
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13379
|
+
});
|
|
13380
|
+
},
|
|
13381
|
+
/**
|
|
13382
|
+
* 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.
|
|
13383
|
+
* @summary Install WordPress plugins
|
|
13384
|
+
* @param {string} username
|
|
13385
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13386
|
+
* @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
|
|
13387
|
+
* @param {*} [options] Override http request option.
|
|
13388
|
+
* @throws {RequiredError}
|
|
13389
|
+
*/
|
|
13390
|
+
installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options) {
|
|
13391
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13392
|
+
var _a, _b;
|
|
13393
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options);
|
|
13394
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressPluginsApi.installWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13395
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13396
|
+
});
|
|
13397
|
+
},
|
|
13398
|
+
/**
|
|
13399
|
+
* 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).
|
|
13400
|
+
* @summary List available WordPress plugins
|
|
13401
|
+
* @param {string} username
|
|
13402
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13403
|
+
* @param {*} [options] Override http request option.
|
|
13404
|
+
* @throws {RequiredError}
|
|
13405
|
+
*/
|
|
13406
|
+
listAvailableWordPressPluginsV1(username, software, options) {
|
|
13407
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13408
|
+
var _a, _b;
|
|
13409
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableWordPressPluginsV1(username, software, options);
|
|
13410
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressPluginsApi.listAvailableWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13411
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13412
|
+
});
|
|
13413
|
+
},
|
|
13414
|
+
/**
|
|
13415
|
+
* 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).
|
|
13416
|
+
* @summary List installed WordPress plugins
|
|
13417
|
+
* @param {string} username
|
|
13418
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13419
|
+
* @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
|
|
13420
|
+
* @param {*} [options] Override http request option.
|
|
13421
|
+
* @throws {RequiredError}
|
|
13422
|
+
*/
|
|
13423
|
+
listInstalledWordPressPluginsV1(username, software, category, options) {
|
|
13424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13425
|
+
var _a, _b;
|
|
13426
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listInstalledWordPressPluginsV1(username, software, category, options);
|
|
13427
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressPluginsApi.listInstalledWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13428
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13429
|
+
});
|
|
13430
|
+
},
|
|
13431
|
+
/**
|
|
13432
|
+
* List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
13433
|
+
* @summary List suggested WordPress plugins
|
|
13434
|
+
* @param {number | null} [orderId] Optionally scope suggestions to a specific order.
|
|
13435
|
+
* @param {*} [options] Override http request option.
|
|
13436
|
+
* @throws {RequiredError}
|
|
13437
|
+
*/
|
|
13438
|
+
listSuggestedWordPressPluginsV1(orderId, options) {
|
|
13439
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13440
|
+
var _a, _b;
|
|
13441
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSuggestedWordPressPluginsV1(orderId, options);
|
|
13442
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressPluginsApi.listSuggestedWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13443
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13444
|
+
});
|
|
13445
|
+
},
|
|
13446
|
+
/**
|
|
13447
|
+
* 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.
|
|
13448
|
+
* @summary Search WordPress plugins
|
|
13449
|
+
* @param {string} search Search term to match against plugin names. Minimum 3 characters.
|
|
13450
|
+
* @param {*} [options] Override http request option.
|
|
13451
|
+
* @throws {RequiredError}
|
|
13452
|
+
*/
|
|
13453
|
+
searchWordPressPluginsV1(search, options) {
|
|
13454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13455
|
+
var _a, _b;
|
|
13456
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchWordPressPluginsV1(search, options);
|
|
13457
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressPluginsApi.searchWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13458
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13459
|
+
});
|
|
13460
|
+
},
|
|
13461
|
+
/**
|
|
13462
|
+
* 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.
|
|
13463
|
+
* @summary Uninstall WordPress plugins
|
|
13464
|
+
* @param {string} username
|
|
13465
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13466
|
+
* @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
|
|
13467
|
+
* @param {*} [options] Override http request option.
|
|
13468
|
+
* @throws {RequiredError}
|
|
13469
|
+
*/
|
|
13470
|
+
uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options) {
|
|
13471
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13472
|
+
var _a, _b;
|
|
13473
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options);
|
|
13474
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressPluginsApi.uninstallWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13475
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13476
|
+
});
|
|
13477
|
+
},
|
|
13478
|
+
/**
|
|
13479
|
+
* 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.
|
|
13480
|
+
* @summary Update Hostinger WordPress plugin
|
|
13481
|
+
* @param {string} username
|
|
13482
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13483
|
+
* @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
|
|
13484
|
+
* @param {*} [options] Override http request option.
|
|
13485
|
+
* @throws {RequiredError}
|
|
13486
|
+
*/
|
|
13487
|
+
updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options) {
|
|
13488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13489
|
+
var _a, _b;
|
|
13490
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options);
|
|
13491
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressPluginsApi.updateHostingerWordPressPluginV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13492
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13493
|
+
});
|
|
13494
|
+
},
|
|
13495
|
+
/**
|
|
13496
|
+
* 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.
|
|
13497
|
+
* @summary Update WordPress plugins
|
|
13498
|
+
* @param {string} username
|
|
13499
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13500
|
+
* @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
|
|
13501
|
+
* @param {*} [options] Override http request option.
|
|
13502
|
+
* @throws {RequiredError}
|
|
13503
|
+
*/
|
|
13504
|
+
updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options) {
|
|
13505
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13506
|
+
var _a, _b;
|
|
13507
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options);
|
|
13508
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressPluginsApi.updateWordPressPluginsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13509
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13510
|
+
});
|
|
13511
|
+
},
|
|
13512
|
+
};
|
|
13513
|
+
};
|
|
13514
|
+
exports.WordPressPluginsApiFp = WordPressPluginsApiFp;
|
|
13515
|
+
/**
|
|
13516
|
+
* WordPressPluginsApi - factory interface
|
|
13517
|
+
* @export
|
|
13518
|
+
*/
|
|
13519
|
+
const WordPressPluginsApiFactory = function (configuration, basePath, axios) {
|
|
13520
|
+
const localVarFp = (0, exports.WordPressPluginsApiFp)(configuration);
|
|
13521
|
+
return {
|
|
13522
|
+
/**
|
|
13523
|
+
* 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.
|
|
13524
|
+
* @summary Activate WordPress plugin
|
|
13525
|
+
* @param {string} username
|
|
13526
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13527
|
+
* @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
|
|
13528
|
+
* @param {*} [options] Override http request option.
|
|
13529
|
+
* @throws {RequiredError}
|
|
13530
|
+
*/
|
|
13531
|
+
activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options) {
|
|
13532
|
+
return localVarFp.activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options).then((request) => request(axios, basePath));
|
|
13533
|
+
},
|
|
13534
|
+
/**
|
|
13535
|
+
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
13536
|
+
* @summary Check if WooCommerce is installed
|
|
13537
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
13538
|
+
* @param {*} [options] Override http request option.
|
|
13539
|
+
* @throws {RequiredError}
|
|
13540
|
+
*/
|
|
13541
|
+
checkIfWooCommerceIsInstalledV1(domain, options) {
|
|
13542
|
+
return localVarFp.checkIfWooCommerceIsInstalledV1(domain, options).then((request) => request(axios, basePath));
|
|
13543
|
+
},
|
|
13544
|
+
/**
|
|
13545
|
+
* 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.
|
|
13546
|
+
* @summary Deactivate WordPress plugin
|
|
13547
|
+
* @param {string} username
|
|
13548
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13549
|
+
* @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
|
|
13550
|
+
* @param {*} [options] Override http request option.
|
|
13551
|
+
* @throws {RequiredError}
|
|
13552
|
+
*/
|
|
13553
|
+
deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
|
|
13554
|
+
return localVarFp.deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(axios, basePath));
|
|
13555
|
+
},
|
|
13556
|
+
/**
|
|
13557
|
+
* 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.
|
|
13558
|
+
* @summary Install WordPress plugins
|
|
13559
|
+
* @param {string} username
|
|
13560
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13561
|
+
* @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
|
|
13562
|
+
* @param {*} [options] Override http request option.
|
|
13563
|
+
* @throws {RequiredError}
|
|
13564
|
+
*/
|
|
13565
|
+
installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options) {
|
|
13566
|
+
return localVarFp.installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options).then((request) => request(axios, basePath));
|
|
13567
|
+
},
|
|
13568
|
+
/**
|
|
13569
|
+
* 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).
|
|
13570
|
+
* @summary List available WordPress plugins
|
|
13571
|
+
* @param {string} username
|
|
13572
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13573
|
+
* @param {*} [options] Override http request option.
|
|
13574
|
+
* @throws {RequiredError}
|
|
13575
|
+
*/
|
|
13576
|
+
listAvailableWordPressPluginsV1(username, software, options) {
|
|
13577
|
+
return localVarFp.listAvailableWordPressPluginsV1(username, software, options).then((request) => request(axios, basePath));
|
|
13578
|
+
},
|
|
13579
|
+
/**
|
|
13580
|
+
* 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).
|
|
13581
|
+
* @summary List installed WordPress plugins
|
|
13582
|
+
* @param {string} username
|
|
13583
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13584
|
+
* @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
|
|
13585
|
+
* @param {*} [options] Override http request option.
|
|
13586
|
+
* @throws {RequiredError}
|
|
13587
|
+
*/
|
|
13588
|
+
listInstalledWordPressPluginsV1(username, software, category, options) {
|
|
13589
|
+
return localVarFp.listInstalledWordPressPluginsV1(username, software, category, options).then((request) => request(axios, basePath));
|
|
13590
|
+
},
|
|
13591
|
+
/**
|
|
13592
|
+
* List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
13593
|
+
* @summary List suggested WordPress plugins
|
|
13594
|
+
* @param {number | null} [orderId] Optionally scope suggestions to a specific order.
|
|
13595
|
+
* @param {*} [options] Override http request option.
|
|
13596
|
+
* @throws {RequiredError}
|
|
13597
|
+
*/
|
|
13598
|
+
listSuggestedWordPressPluginsV1(orderId, options) {
|
|
13599
|
+
return localVarFp.listSuggestedWordPressPluginsV1(orderId, options).then((request) => request(axios, basePath));
|
|
13600
|
+
},
|
|
13601
|
+
/**
|
|
13602
|
+
* 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.
|
|
13603
|
+
* @summary Search WordPress plugins
|
|
13604
|
+
* @param {string} search Search term to match against plugin names. Minimum 3 characters.
|
|
13605
|
+
* @param {*} [options] Override http request option.
|
|
13606
|
+
* @throws {RequiredError}
|
|
13607
|
+
*/
|
|
13608
|
+
searchWordPressPluginsV1(search, options) {
|
|
13609
|
+
return localVarFp.searchWordPressPluginsV1(search, options).then((request) => request(axios, basePath));
|
|
13610
|
+
},
|
|
13611
|
+
/**
|
|
13612
|
+
* 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.
|
|
13613
|
+
* @summary Uninstall WordPress plugins
|
|
13614
|
+
* @param {string} username
|
|
13615
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13616
|
+
* @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
|
|
13617
|
+
* @param {*} [options] Override http request option.
|
|
13618
|
+
* @throws {RequiredError}
|
|
13619
|
+
*/
|
|
13620
|
+
uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options) {
|
|
13621
|
+
return localVarFp.uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options).then((request) => request(axios, basePath));
|
|
13622
|
+
},
|
|
13623
|
+
/**
|
|
13624
|
+
* 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.
|
|
13625
|
+
* @summary Update Hostinger WordPress plugin
|
|
13626
|
+
* @param {string} username
|
|
13627
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13628
|
+
* @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
|
|
13629
|
+
* @param {*} [options] Override http request option.
|
|
13630
|
+
* @throws {RequiredError}
|
|
13631
|
+
*/
|
|
13632
|
+
updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options) {
|
|
13633
|
+
return localVarFp.updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options).then((request) => request(axios, basePath));
|
|
13634
|
+
},
|
|
13635
|
+
/**
|
|
13636
|
+
* 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.
|
|
13637
|
+
* @summary Update WordPress plugins
|
|
13638
|
+
* @param {string} username
|
|
13639
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13640
|
+
* @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
|
|
13641
|
+
* @param {*} [options] Override http request option.
|
|
13642
|
+
* @throws {RequiredError}
|
|
13643
|
+
*/
|
|
13644
|
+
updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options) {
|
|
13645
|
+
return localVarFp.updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options).then((request) => request(axios, basePath));
|
|
13646
|
+
},
|
|
13647
|
+
};
|
|
13648
|
+
};
|
|
13649
|
+
exports.WordPressPluginsApiFactory = WordPressPluginsApiFactory;
|
|
13650
|
+
/**
|
|
13651
|
+
* WordPressPluginsApi - object-oriented interface
|
|
13652
|
+
* @export
|
|
13653
|
+
* @class WordPressPluginsApi
|
|
13654
|
+
* @extends {BaseAPI}
|
|
13655
|
+
*/
|
|
13656
|
+
class WordPressPluginsApi extends base_1.BaseAPI {
|
|
13657
|
+
/**
|
|
13658
|
+
* 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.
|
|
13659
|
+
* @summary Activate WordPress plugin
|
|
13660
|
+
* @param {string} username
|
|
13661
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13662
|
+
* @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
|
|
13663
|
+
* @param {*} [options] Override http request option.
|
|
13664
|
+
* @throws {RequiredError}
|
|
13665
|
+
* @memberof WordPressPluginsApi
|
|
13666
|
+
*/
|
|
13667
|
+
activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options) {
|
|
13668
|
+
return (0, exports.WordPressPluginsApiFp)(this.configuration).activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13669
|
+
}
|
|
13670
|
+
/**
|
|
13671
|
+
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
13672
|
+
* @summary Check if WooCommerce is installed
|
|
13673
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
13674
|
+
* @param {*} [options] Override http request option.
|
|
13675
|
+
* @throws {RequiredError}
|
|
13676
|
+
* @memberof WordPressPluginsApi
|
|
13677
|
+
*/
|
|
13678
|
+
checkIfWooCommerceIsInstalledV1(domain, options) {
|
|
13679
|
+
return (0, exports.WordPressPluginsApiFp)(this.configuration).checkIfWooCommerceIsInstalledV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
13680
|
+
}
|
|
13681
|
+
/**
|
|
13682
|
+
* 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.
|
|
13683
|
+
* @summary Deactivate WordPress plugin
|
|
13684
|
+
* @param {string} username
|
|
13685
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13686
|
+
* @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
|
|
13687
|
+
* @param {*} [options] Override http request option.
|
|
13688
|
+
* @throws {RequiredError}
|
|
13689
|
+
* @memberof WordPressPluginsApi
|
|
13690
|
+
*/
|
|
13691
|
+
deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
|
|
13692
|
+
return (0, exports.WordPressPluginsApiFp)(this.configuration).deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13693
|
+
}
|
|
13694
|
+
/**
|
|
13695
|
+
* 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.
|
|
13696
|
+
* @summary Install WordPress plugins
|
|
13697
|
+
* @param {string} username
|
|
13698
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13699
|
+
* @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
|
|
13700
|
+
* @param {*} [options] Override http request option.
|
|
13701
|
+
* @throws {RequiredError}
|
|
13702
|
+
* @memberof WordPressPluginsApi
|
|
13703
|
+
*/
|
|
13704
|
+
installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options) {
|
|
13705
|
+
return (0, exports.WordPressPluginsApiFp)(this.configuration).installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13706
|
+
}
|
|
13707
|
+
/**
|
|
13708
|
+
* 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).
|
|
13709
|
+
* @summary List available WordPress plugins
|
|
13710
|
+
* @param {string} username
|
|
13711
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13712
|
+
* @param {*} [options] Override http request option.
|
|
13713
|
+
* @throws {RequiredError}
|
|
13714
|
+
* @memberof WordPressPluginsApi
|
|
13715
|
+
*/
|
|
13716
|
+
listAvailableWordPressPluginsV1(username, software, options) {
|
|
13717
|
+
return (0, exports.WordPressPluginsApiFp)(this.configuration).listAvailableWordPressPluginsV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
13718
|
+
}
|
|
13719
|
+
/**
|
|
13720
|
+
* 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).
|
|
13721
|
+
* @summary List installed WordPress plugins
|
|
13722
|
+
* @param {string} username
|
|
13723
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13724
|
+
* @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
|
|
13725
|
+
* @param {*} [options] Override http request option.
|
|
13726
|
+
* @throws {RequiredError}
|
|
13727
|
+
* @memberof WordPressPluginsApi
|
|
13728
|
+
*/
|
|
13729
|
+
listInstalledWordPressPluginsV1(username, software, category, options) {
|
|
13730
|
+
return (0, exports.WordPressPluginsApiFp)(this.configuration).listInstalledWordPressPluginsV1(username, software, category, options).then((request) => request(this.axios, this.basePath));
|
|
13731
|
+
}
|
|
13732
|
+
/**
|
|
13733
|
+
* List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
13734
|
+
* @summary List suggested WordPress plugins
|
|
13735
|
+
* @param {number | null} [orderId] Optionally scope suggestions to a specific order.
|
|
13736
|
+
* @param {*} [options] Override http request option.
|
|
13737
|
+
* @throws {RequiredError}
|
|
13738
|
+
* @memberof WordPressPluginsApi
|
|
13739
|
+
*/
|
|
13740
|
+
listSuggestedWordPressPluginsV1(orderId, options) {
|
|
13741
|
+
return (0, exports.WordPressPluginsApiFp)(this.configuration).listSuggestedWordPressPluginsV1(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
13742
|
+
}
|
|
13743
|
+
/**
|
|
13744
|
+
* 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.
|
|
13745
|
+
* @summary Search WordPress plugins
|
|
13746
|
+
* @param {string} search Search term to match against plugin names. Minimum 3 characters.
|
|
13747
|
+
* @param {*} [options] Override http request option.
|
|
13748
|
+
* @throws {RequiredError}
|
|
13749
|
+
* @memberof WordPressPluginsApi
|
|
13750
|
+
*/
|
|
13751
|
+
searchWordPressPluginsV1(search, options) {
|
|
13752
|
+
return (0, exports.WordPressPluginsApiFp)(this.configuration).searchWordPressPluginsV1(search, options).then((request) => request(this.axios, this.basePath));
|
|
13753
|
+
}
|
|
13754
|
+
/**
|
|
13755
|
+
* 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.
|
|
13756
|
+
* @summary Uninstall WordPress plugins
|
|
13757
|
+
* @param {string} username
|
|
13758
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13759
|
+
* @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
|
|
13760
|
+
* @param {*} [options] Override http request option.
|
|
13761
|
+
* @throws {RequiredError}
|
|
13762
|
+
* @memberof WordPressPluginsApi
|
|
13763
|
+
*/
|
|
13764
|
+
uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options) {
|
|
13765
|
+
return (0, exports.WordPressPluginsApiFp)(this.configuration).uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13766
|
+
}
|
|
13767
|
+
/**
|
|
13768
|
+
* 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.
|
|
13769
|
+
* @summary Update Hostinger WordPress plugin
|
|
13770
|
+
* @param {string} username
|
|
13771
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13772
|
+
* @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
|
|
13773
|
+
* @param {*} [options] Override http request option.
|
|
13774
|
+
* @throws {RequiredError}
|
|
13775
|
+
* @memberof WordPressPluginsApi
|
|
13776
|
+
*/
|
|
13777
|
+
updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options) {
|
|
13778
|
+
return (0, exports.WordPressPluginsApiFp)(this.configuration).updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13779
|
+
}
|
|
13780
|
+
/**
|
|
13781
|
+
* 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.
|
|
13782
|
+
* @summary Update WordPress plugins
|
|
13783
|
+
* @param {string} username
|
|
13784
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13785
|
+
* @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
|
|
13786
|
+
* @param {*} [options] Override http request option.
|
|
13787
|
+
* @throws {RequiredError}
|
|
13788
|
+
* @memberof WordPressPluginsApi
|
|
13789
|
+
*/
|
|
13790
|
+
updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options) {
|
|
13791
|
+
return (0, exports.WordPressPluginsApiFp)(this.configuration).updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13792
|
+
}
|
|
13793
|
+
}
|
|
13794
|
+
exports.WordPressPluginsApi = WordPressPluginsApi;
|
|
13795
|
+
/**
|
|
13796
|
+
* @export
|
|
13797
|
+
*/
|
|
13798
|
+
exports.ListInstalledWordPressPluginsV1CategoryEnum = {
|
|
13799
|
+
Cache: 'cache'
|
|
13800
|
+
};
|
|
13801
|
+
/**
|
|
13802
|
+
* WordPressThemesApi - axios parameter creator
|
|
13803
|
+
* @export
|
|
13804
|
+
*/
|
|
13805
|
+
const WordPressThemesApiAxiosParamCreator = function (configuration) {
|
|
13806
|
+
return {
|
|
13807
|
+
/**
|
|
13808
|
+
* 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.
|
|
13809
|
+
* @summary Activate WordPress theme
|
|
13810
|
+
* @param {string} username
|
|
13811
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13812
|
+
* @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
|
|
13813
|
+
* @param {*} [options] Override http request option.
|
|
13814
|
+
* @throws {RequiredError}
|
|
13815
|
+
*/
|
|
13816
|
+
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 = {}) {
|
|
13817
|
+
// verify required parameter 'username' is not null or undefined
|
|
13818
|
+
(0, common_1.assertParamExists)('activateWordPressThemeV1', 'username', username);
|
|
13819
|
+
// verify required parameter 'software' is not null or undefined
|
|
13820
|
+
(0, common_1.assertParamExists)('activateWordPressThemeV1', 'software', software);
|
|
13821
|
+
// verify required parameter 'wordPressV1ThemesActivateThemeRequest' is not null or undefined
|
|
13822
|
+
(0, common_1.assertParamExists)('activateWordPressThemeV1', 'wordPressV1ThemesActivateThemeRequest', wordPressV1ThemesActivateThemeRequest);
|
|
13823
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/activate`
|
|
13824
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13825
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13826
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13827
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13828
|
+
let baseOptions;
|
|
13829
|
+
if (configuration) {
|
|
13830
|
+
baseOptions = configuration.baseOptions;
|
|
13831
|
+
}
|
|
13832
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13833
|
+
const localVarHeaderParameter = {};
|
|
13834
|
+
const localVarQueryParameter = {};
|
|
13835
|
+
// authentication apiToken required
|
|
13836
|
+
// http bearer authentication required
|
|
13837
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13838
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13839
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13840
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13841
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13842
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1ThemesActivateThemeRequest, localVarRequestOptions, configuration);
|
|
13843
|
+
return {
|
|
13844
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13845
|
+
options: localVarRequestOptions,
|
|
13846
|
+
};
|
|
13847
|
+
}),
|
|
13848
|
+
/**
|
|
13849
|
+
* 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.
|
|
13850
|
+
* @summary Install WordPress theme
|
|
13851
|
+
* @param {string} username
|
|
13852
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13853
|
+
* @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
|
|
13854
|
+
* @param {*} [options] Override http request option.
|
|
13855
|
+
* @throws {RequiredError}
|
|
13856
|
+
*/
|
|
13857
|
+
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 = {}) {
|
|
13858
|
+
// verify required parameter 'username' is not null or undefined
|
|
13859
|
+
(0, common_1.assertParamExists)('installWordPressThemeV1', 'username', username);
|
|
13860
|
+
// verify required parameter 'software' is not null or undefined
|
|
13861
|
+
(0, common_1.assertParamExists)('installWordPressThemeV1', 'software', software);
|
|
13862
|
+
// verify required parameter 'wordPressV1ThemesInstallThemeRequest' is not null or undefined
|
|
13863
|
+
(0, common_1.assertParamExists)('installWordPressThemeV1', 'wordPressV1ThemesInstallThemeRequest', wordPressV1ThemesInstallThemeRequest);
|
|
13864
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install`
|
|
13865
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13866
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13867
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13868
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13869
|
+
let baseOptions;
|
|
13870
|
+
if (configuration) {
|
|
13871
|
+
baseOptions = configuration.baseOptions;
|
|
13872
|
+
}
|
|
13873
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13874
|
+
const localVarHeaderParameter = {};
|
|
13875
|
+
const localVarQueryParameter = {};
|
|
13876
|
+
// authentication apiToken required
|
|
13877
|
+
// http bearer authentication required
|
|
13878
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13879
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13880
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13881
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13882
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13883
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1ThemesInstallThemeRequest, localVarRequestOptions, configuration);
|
|
13884
|
+
return {
|
|
13885
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13886
|
+
options: localVarRequestOptions,
|
|
13887
|
+
};
|
|
13888
|
+
}),
|
|
13889
|
+
/**
|
|
13890
|
+
* 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).
|
|
13891
|
+
* @summary List installed WordPress themes
|
|
13892
|
+
* @param {string} username
|
|
13893
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13894
|
+
* @param {*} [options] Override http request option.
|
|
13895
|
+
* @throws {RequiredError}
|
|
13896
|
+
*/
|
|
13897
|
+
listInstalledWordPressThemesV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
13898
|
+
// verify required parameter 'username' is not null or undefined
|
|
13899
|
+
(0, common_1.assertParamExists)('listInstalledWordPressThemesV1', 'username', username);
|
|
13900
|
+
// verify required parameter 'software' is not null or undefined
|
|
13901
|
+
(0, common_1.assertParamExists)('listInstalledWordPressThemesV1', 'software', software);
|
|
13902
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes`
|
|
13903
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13904
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13905
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13906
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13907
|
+
let baseOptions;
|
|
13908
|
+
if (configuration) {
|
|
13909
|
+
baseOptions = configuration.baseOptions;
|
|
13910
|
+
}
|
|
13911
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13912
|
+
const localVarHeaderParameter = {};
|
|
13913
|
+
const localVarQueryParameter = {};
|
|
13914
|
+
// authentication apiToken required
|
|
13915
|
+
// http bearer authentication required
|
|
13916
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13917
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13918
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13919
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13920
|
+
return {
|
|
13921
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13922
|
+
options: localVarRequestOptions,
|
|
13923
|
+
};
|
|
13924
|
+
}),
|
|
13925
|
+
/**
|
|
13926
|
+
* List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
|
|
13927
|
+
* @summary List WordPress themes
|
|
13928
|
+
* @param {number | null} [orderId] Optionally scope themes to a specific order.
|
|
13929
|
+
* @param {string | null} [search] Search term to match against theme names.
|
|
13930
|
+
* @param {*} [options] Override http request option.
|
|
13931
|
+
* @throws {RequiredError}
|
|
13932
|
+
*/
|
|
13933
|
+
listWordPressThemesV1: (orderId_1, search_1, ...args_1) => __awaiter(this, [orderId_1, search_1, ...args_1], void 0, function* (orderId, search, options = {}) {
|
|
13934
|
+
const localVarPath = `/api/hosting/v1/wordpress/themes`;
|
|
13935
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13936
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13937
|
+
let baseOptions;
|
|
13938
|
+
if (configuration) {
|
|
13939
|
+
baseOptions = configuration.baseOptions;
|
|
13940
|
+
}
|
|
13941
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13942
|
+
const localVarHeaderParameter = {};
|
|
13943
|
+
const localVarQueryParameter = {};
|
|
13944
|
+
// authentication apiToken required
|
|
13945
|
+
// http bearer authentication required
|
|
13946
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13947
|
+
if (orderId !== undefined) {
|
|
13948
|
+
localVarQueryParameter['order_id'] = orderId;
|
|
13949
|
+
}
|
|
13950
|
+
if (search !== undefined) {
|
|
13951
|
+
localVarQueryParameter['search'] = search;
|
|
13952
|
+
}
|
|
13953
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13954
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13955
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13956
|
+
return {
|
|
13957
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13958
|
+
options: localVarRequestOptions,
|
|
13959
|
+
};
|
|
13960
|
+
}),
|
|
13961
|
+
/**
|
|
13962
|
+
* 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.
|
|
13963
|
+
* @summary Uninstall WordPress themes
|
|
13964
|
+
* @param {string} username
|
|
13965
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13966
|
+
* @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
|
|
13967
|
+
* @param {*} [options] Override http request option.
|
|
13968
|
+
* @throws {RequiredError}
|
|
13969
|
+
*/
|
|
13970
|
+
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 = {}) {
|
|
13971
|
+
// verify required parameter 'username' is not null or undefined
|
|
13972
|
+
(0, common_1.assertParamExists)('uninstallWordPressThemesV1', 'username', username);
|
|
13973
|
+
// verify required parameter 'software' is not null or undefined
|
|
13974
|
+
(0, common_1.assertParamExists)('uninstallWordPressThemesV1', 'software', software);
|
|
13975
|
+
// verify required parameter 'wordPressV1ThemesUninstallThemesRequest' is not null or undefined
|
|
13976
|
+
(0, common_1.assertParamExists)('uninstallWordPressThemesV1', 'wordPressV1ThemesUninstallThemesRequest', wordPressV1ThemesUninstallThemesRequest);
|
|
13977
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/uninstall`
|
|
13978
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13979
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13980
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13981
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13982
|
+
let baseOptions;
|
|
13983
|
+
if (configuration) {
|
|
13984
|
+
baseOptions = configuration.baseOptions;
|
|
13985
|
+
}
|
|
13986
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13987
|
+
const localVarHeaderParameter = {};
|
|
13988
|
+
const localVarQueryParameter = {};
|
|
13989
|
+
// authentication apiToken required
|
|
13990
|
+
// http bearer authentication required
|
|
13991
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13992
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13993
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13994
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13995
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13996
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1ThemesUninstallThemesRequest, localVarRequestOptions, configuration);
|
|
13997
|
+
return {
|
|
13998
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13999
|
+
options: localVarRequestOptions,
|
|
14000
|
+
};
|
|
14001
|
+
}),
|
|
14002
|
+
/**
|
|
14003
|
+
* 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.
|
|
14004
|
+
* @summary Update WordPress themes
|
|
14005
|
+
* @param {string} username
|
|
14006
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14007
|
+
* @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
|
|
14008
|
+
* @param {*} [options] Override http request option.
|
|
14009
|
+
* @throws {RequiredError}
|
|
14010
|
+
*/
|
|
14011
|
+
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 = {}) {
|
|
14012
|
+
// verify required parameter 'username' is not null or undefined
|
|
14013
|
+
(0, common_1.assertParamExists)('updateWordPressThemesV1', 'username', username);
|
|
14014
|
+
// verify required parameter 'software' is not null or undefined
|
|
14015
|
+
(0, common_1.assertParamExists)('updateWordPressThemesV1', 'software', software);
|
|
14016
|
+
// verify required parameter 'wordPressV1ThemesUpdateThemesRequest' is not null or undefined
|
|
14017
|
+
(0, common_1.assertParamExists)('updateWordPressThemesV1', 'wordPressV1ThemesUpdateThemesRequest', wordPressV1ThemesUpdateThemesRequest);
|
|
14018
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/update`
|
|
14019
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14020
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14021
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14022
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14023
|
+
let baseOptions;
|
|
14024
|
+
if (configuration) {
|
|
14025
|
+
baseOptions = configuration.baseOptions;
|
|
14026
|
+
}
|
|
14027
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14028
|
+
const localVarHeaderParameter = {};
|
|
14029
|
+
const localVarQueryParameter = {};
|
|
14030
|
+
// authentication apiToken required
|
|
14031
|
+
// http bearer authentication required
|
|
14032
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14033
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14034
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14035
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14036
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14037
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1ThemesUpdateThemesRequest, localVarRequestOptions, configuration);
|
|
14038
|
+
return {
|
|
14039
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14040
|
+
options: localVarRequestOptions,
|
|
14041
|
+
};
|
|
14042
|
+
}),
|
|
14043
|
+
};
|
|
14044
|
+
};
|
|
14045
|
+
exports.WordPressThemesApiAxiosParamCreator = WordPressThemesApiAxiosParamCreator;
|
|
14046
|
+
/**
|
|
14047
|
+
* WordPressThemesApi - functional programming interface
|
|
14048
|
+
* @export
|
|
14049
|
+
*/
|
|
14050
|
+
const WordPressThemesApiFp = function (configuration) {
|
|
14051
|
+
const localVarAxiosParamCreator = (0, exports.WordPressThemesApiAxiosParamCreator)(configuration);
|
|
14052
|
+
return {
|
|
14053
|
+
/**
|
|
14054
|
+
* 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.
|
|
14055
|
+
* @summary Activate WordPress theme
|
|
14056
|
+
* @param {string} username
|
|
14057
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14058
|
+
* @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
|
|
14059
|
+
* @param {*} [options] Override http request option.
|
|
14060
|
+
* @throws {RequiredError}
|
|
14061
|
+
*/
|
|
14062
|
+
activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
|
|
14063
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14064
|
+
var _a, _b;
|
|
14065
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options);
|
|
14066
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressThemesApi.activateWordPressThemeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14067
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14068
|
+
});
|
|
14069
|
+
},
|
|
14070
|
+
/**
|
|
14071
|
+
* 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.
|
|
14072
|
+
* @summary Install WordPress theme
|
|
14073
|
+
* @param {string} username
|
|
14074
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14075
|
+
* @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
|
|
14076
|
+
* @param {*} [options] Override http request option.
|
|
14077
|
+
* @throws {RequiredError}
|
|
14078
|
+
*/
|
|
14079
|
+
installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options) {
|
|
14080
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14081
|
+
var _a, _b;
|
|
14082
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options);
|
|
14083
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressThemesApi.installWordPressThemeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14084
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14085
|
+
});
|
|
14086
|
+
},
|
|
14087
|
+
/**
|
|
14088
|
+
* 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).
|
|
14089
|
+
* @summary List installed WordPress themes
|
|
14090
|
+
* @param {string} username
|
|
14091
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14092
|
+
* @param {*} [options] Override http request option.
|
|
14093
|
+
* @throws {RequiredError}
|
|
14094
|
+
*/
|
|
14095
|
+
listInstalledWordPressThemesV1(username, software, options) {
|
|
14096
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14097
|
+
var _a, _b;
|
|
14098
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listInstalledWordPressThemesV1(username, software, options);
|
|
14099
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressThemesApi.listInstalledWordPressThemesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14100
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14101
|
+
});
|
|
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
|
+
*/
|
|
14111
|
+
listWordPressThemesV1(orderId, search, options) {
|
|
14112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14113
|
+
var _a, _b;
|
|
14114
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressThemesV1(orderId, search, options);
|
|
14115
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressThemesApi.listWordPressThemesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14116
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14117
|
+
});
|
|
14118
|
+
},
|
|
14119
|
+
/**
|
|
14120
|
+
* 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.
|
|
14121
|
+
* @summary Uninstall WordPress themes
|
|
14122
|
+
* @param {string} username
|
|
14123
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14124
|
+
* @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
|
|
14125
|
+
* @param {*} [options] Override http request option.
|
|
14126
|
+
* @throws {RequiredError}
|
|
14127
|
+
*/
|
|
14128
|
+
uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options) {
|
|
14129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14130
|
+
var _a, _b;
|
|
14131
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options);
|
|
14132
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressThemesApi.uninstallWordPressThemesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14133
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14134
|
+
});
|
|
14135
|
+
},
|
|
14136
|
+
/**
|
|
14137
|
+
* 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.
|
|
14138
|
+
* @summary Update WordPress themes
|
|
14139
|
+
* @param {string} username
|
|
14140
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14141
|
+
* @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
|
|
14142
|
+
* @param {*} [options] Override http request option.
|
|
14143
|
+
* @throws {RequiredError}
|
|
14144
|
+
*/
|
|
14145
|
+
updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options) {
|
|
14146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14147
|
+
var _a, _b;
|
|
14148
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options);
|
|
14149
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressThemesApi.updateWordPressThemesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14150
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14151
|
+
});
|
|
14152
|
+
},
|
|
14153
|
+
};
|
|
14154
|
+
};
|
|
14155
|
+
exports.WordPressThemesApiFp = WordPressThemesApiFp;
|
|
14156
|
+
/**
|
|
14157
|
+
* WordPressThemesApi - factory interface
|
|
14158
|
+
* @export
|
|
14159
|
+
*/
|
|
14160
|
+
const WordPressThemesApiFactory = function (configuration, basePath, axios) {
|
|
14161
|
+
const localVarFp = (0, exports.WordPressThemesApiFp)(configuration);
|
|
14162
|
+
return {
|
|
14163
|
+
/**
|
|
14164
|
+
* 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.
|
|
14165
|
+
* @summary Activate WordPress theme
|
|
14166
|
+
* @param {string} username
|
|
14167
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14168
|
+
* @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
|
|
14169
|
+
* @param {*} [options] Override http request option.
|
|
14170
|
+
* @throws {RequiredError}
|
|
14171
|
+
*/
|
|
14172
|
+
activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
|
|
14173
|
+
return localVarFp.activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(axios, basePath));
|
|
14174
|
+
},
|
|
14175
|
+
/**
|
|
14176
|
+
* 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.
|
|
14177
|
+
* @summary Install WordPress theme
|
|
14178
|
+
* @param {string} username
|
|
14179
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14180
|
+
* @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
|
|
14181
|
+
* @param {*} [options] Override http request option.
|
|
14182
|
+
* @throws {RequiredError}
|
|
14183
|
+
*/
|
|
14184
|
+
installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options) {
|
|
14185
|
+
return localVarFp.installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options).then((request) => request(axios, basePath));
|
|
14186
|
+
},
|
|
14187
|
+
/**
|
|
14188
|
+
* 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).
|
|
14189
|
+
* @summary List installed WordPress themes
|
|
14190
|
+
* @param {string} username
|
|
14191
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14192
|
+
* @param {*} [options] Override http request option.
|
|
14193
|
+
* @throws {RequiredError}
|
|
14194
|
+
*/
|
|
14195
|
+
listInstalledWordPressThemesV1(username, software, options) {
|
|
14196
|
+
return localVarFp.listInstalledWordPressThemesV1(username, software, options).then((request) => request(axios, basePath));
|
|
14197
|
+
},
|
|
14198
|
+
/**
|
|
14199
|
+
* List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
|
|
14200
|
+
* @summary List WordPress themes
|
|
14201
|
+
* @param {number | null} [orderId] Optionally scope themes to a specific order.
|
|
14202
|
+
* @param {string | null} [search] Search term to match against theme names.
|
|
14203
|
+
* @param {*} [options] Override http request option.
|
|
14204
|
+
* @throws {RequiredError}
|
|
14205
|
+
*/
|
|
14206
|
+
listWordPressThemesV1(orderId, search, options) {
|
|
14207
|
+
return localVarFp.listWordPressThemesV1(orderId, search, options).then((request) => request(axios, basePath));
|
|
14208
|
+
},
|
|
14209
|
+
/**
|
|
14210
|
+
* 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.
|
|
14211
|
+
* @summary Uninstall WordPress themes
|
|
14212
|
+
* @param {string} username
|
|
14213
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14214
|
+
* @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
|
|
14215
|
+
* @param {*} [options] Override http request option.
|
|
14216
|
+
* @throws {RequiredError}
|
|
14217
|
+
*/
|
|
14218
|
+
uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options) {
|
|
14219
|
+
return localVarFp.uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options).then((request) => request(axios, basePath));
|
|
14220
|
+
},
|
|
14221
|
+
/**
|
|
14222
|
+
* 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.
|
|
14223
|
+
* @summary Update WordPress themes
|
|
14224
|
+
* @param {string} username
|
|
14225
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14226
|
+
* @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
|
|
14227
|
+
* @param {*} [options] Override http request option.
|
|
14228
|
+
* @throws {RequiredError}
|
|
14229
|
+
*/
|
|
14230
|
+
updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options) {
|
|
14231
|
+
return localVarFp.updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options).then((request) => request(axios, basePath));
|
|
14232
|
+
},
|
|
14233
|
+
};
|
|
14234
|
+
};
|
|
14235
|
+
exports.WordPressThemesApiFactory = WordPressThemesApiFactory;
|
|
14236
|
+
/**
|
|
14237
|
+
* WordPressThemesApi - object-oriented interface
|
|
14238
|
+
* @export
|
|
14239
|
+
* @class WordPressThemesApi
|
|
14240
|
+
* @extends {BaseAPI}
|
|
14241
|
+
*/
|
|
14242
|
+
class WordPressThemesApi extends base_1.BaseAPI {
|
|
14243
|
+
/**
|
|
14244
|
+
* 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.
|
|
14245
|
+
* @summary Activate WordPress theme
|
|
14246
|
+
* @param {string} username
|
|
14247
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14248
|
+
* @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
|
|
14249
|
+
* @param {*} [options] Override http request option.
|
|
14250
|
+
* @throws {RequiredError}
|
|
14251
|
+
* @memberof WordPressThemesApi
|
|
14252
|
+
*/
|
|
14253
|
+
activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
|
|
14254
|
+
return (0, exports.WordPressThemesApiFp)(this.configuration).activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14255
|
+
}
|
|
14256
|
+
/**
|
|
14257
|
+
* 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.
|
|
14258
|
+
* @summary Install WordPress theme
|
|
14259
|
+
* @param {string} username
|
|
14260
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14261
|
+
* @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
|
|
14262
|
+
* @param {*} [options] Override http request option.
|
|
14263
|
+
* @throws {RequiredError}
|
|
14264
|
+
* @memberof WordPressThemesApi
|
|
14265
|
+
*/
|
|
14266
|
+
installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options) {
|
|
14267
|
+
return (0, exports.WordPressThemesApiFp)(this.configuration).installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14268
|
+
}
|
|
14269
|
+
/**
|
|
14270
|
+
* 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).
|
|
14271
|
+
* @summary List installed WordPress themes
|
|
14272
|
+
* @param {string} username
|
|
14273
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14274
|
+
* @param {*} [options] Override http request option.
|
|
14275
|
+
* @throws {RequiredError}
|
|
14276
|
+
* @memberof WordPressThemesApi
|
|
14277
|
+
*/
|
|
14278
|
+
listInstalledWordPressThemesV1(username, software, options) {
|
|
14279
|
+
return (0, exports.WordPressThemesApiFp)(this.configuration).listInstalledWordPressThemesV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14280
|
+
}
|
|
14281
|
+
/**
|
|
14282
|
+
* List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
|
|
14283
|
+
* @summary List WordPress themes
|
|
14284
|
+
* @param {number | null} [orderId] Optionally scope themes to a specific order.
|
|
14285
|
+
* @param {string | null} [search] Search term to match against theme names.
|
|
14286
|
+
* @param {*} [options] Override http request option.
|
|
14287
|
+
* @throws {RequiredError}
|
|
14288
|
+
* @memberof WordPressThemesApi
|
|
14289
|
+
*/
|
|
14290
|
+
listWordPressThemesV1(orderId, search, options) {
|
|
14291
|
+
return (0, exports.WordPressThemesApiFp)(this.configuration).listWordPressThemesV1(orderId, search, options).then((request) => request(this.axios, this.basePath));
|
|
14292
|
+
}
|
|
14293
|
+
/**
|
|
14294
|
+
* 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.
|
|
14295
|
+
* @summary Uninstall WordPress themes
|
|
14296
|
+
* @param {string} username
|
|
14297
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14298
|
+
* @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
|
|
14299
|
+
* @param {*} [options] Override http request option.
|
|
14300
|
+
* @throws {RequiredError}
|
|
14301
|
+
* @memberof WordPressThemesApi
|
|
14302
|
+
*/
|
|
14303
|
+
uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options) {
|
|
14304
|
+
return (0, exports.WordPressThemesApiFp)(this.configuration).uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14305
|
+
}
|
|
14306
|
+
/**
|
|
14307
|
+
* 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.
|
|
14308
|
+
* @summary Update WordPress themes
|
|
14309
|
+
* @param {string} username
|
|
14310
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14311
|
+
* @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
|
|
14312
|
+
* @param {*} [options] Override http request option.
|
|
14313
|
+
* @throws {RequiredError}
|
|
14314
|
+
* @memberof WordPressThemesApi
|
|
14315
|
+
*/
|
|
14316
|
+
updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options) {
|
|
14317
|
+
return (0, exports.WordPressThemesApiFp)(this.configuration).updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14318
|
+
}
|
|
14319
|
+
}
|
|
14320
|
+
exports.WordPressThemesApi = WordPressThemesApi;
|