hostinger-api-sdk 0.0.26 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +2 -2
  2. package/api.ts +9653 -7541
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +5026 -3721
  7. package/dist/api.js +1671 -214
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +5026 -3721
  15. package/dist/esm/api.js +1655 -206
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/{HostingWordpressApi.md → WordPressInstallationsApi.md} +12 -12
  27. package/docs/WordPressPluginsApi.md +658 -0
  28. package/docs/WordPressThemesApi.md +369 -0
  29. package/docs/WordPressV1CommonVulnerabilityResource.md +28 -0
  30. package/docs/{HostingV1WordpressInstallWordpressRequest.md → WordPressV1InstallationsInstallWordPressRequest.md} +5 -5
  31. package/docs/{HostingV1WordpressInstallWordpressRequestCredentials.md → WordPressV1InstallationsInstallWordPressRequestCredentials.md} +3 -3
  32. package/docs/{HostingV1WordpressInstallWordpressRequestDatabase.md → WordPressV1InstallationsInstallWordPressRequestDatabase.md} +3 -3
  33. package/docs/{HostingV1WordpressWordpressInstallationResource.md → WordPressV1InstallationsWordPressInstallationResource.md} +3 -3
  34. package/docs/WordPressV1PluginsActivatePluginRequest.md +20 -0
  35. package/docs/WordPressV1PluginsAvailablePluginResource.md +38 -0
  36. package/docs/WordPressV1PluginsDeactivatePluginRequest.md +20 -0
  37. package/docs/WordPressV1PluginsInstallPluginsRequest.md +20 -0
  38. package/docs/WordPressV1PluginsInstalledPluginResource.md +30 -0
  39. package/docs/WordPressV1PluginsPluginResource.md +26 -0
  40. package/docs/WordPressV1PluginsPluginResourceIcons.md +23 -0
  41. package/docs/WordPressV1PluginsSuggestedPluginGroupResource.md +22 -0
  42. package/docs/WordPressV1PluginsSuggestedPluginResource.md +40 -0
  43. package/docs/WordPressV1PluginsUninstallPluginsRequest.md +20 -0
  44. package/docs/WordPressV1PluginsUpdateHostingerPluginRequest.md +20 -0
  45. package/docs/WordPressV1PluginsUpdatePluginsRequest.md +20 -0
  46. package/docs/WordPressV1PluginsWoocommerceInstalledResource.md +20 -0
  47. package/docs/WordPressV1ThemesActivateThemeRequest.md +20 -0
  48. package/docs/WordPressV1ThemesInstallThemeRequest.md +26 -0
  49. package/docs/WordPressV1ThemesInstalledThemeResource.md +30 -0
  50. package/docs/WordPressV1ThemesThemeResource.md +34 -0
  51. package/docs/WordPressV1ThemesUninstallThemesRequest.md +20 -0
  52. package/docs/WordPressV1ThemesUpdateThemesRequest.md +20 -0
  53. package/index.ts +1 -1
  54. 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: 0.22.1
7
+ * API Version: 1.1.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -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.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.HostingV1WordpressInstallWordpressRequestAutoUpdatesEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
23
- exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = void 0;
24
- exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.HostingWordpressApi = exports.HostingWordpressApiFactory = exports.HostingWordpressApiFp = exports.HostingWordpressApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = void 0;
22
+ exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = 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.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.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = void 0;
24
+ exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = void 0;
25
25
  exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = void 0;
26
- exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = void 0;
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 = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -213,11 +213,6 @@ exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
213
213
  Parked: 'parked',
214
214
  Subdomain: 'subdomain'
215
215
  };
216
- exports.HostingV1WordpressInstallWordpressRequestAutoUpdatesEnum = {
217
- All: 'all',
218
- None: 'none',
219
- Minor: 'minor'
220
- };
221
216
  exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = {
222
217
  Subscribed: 'subscribed',
223
218
  Unsubscribed: 'unsubscribed'
@@ -387,6 +382,43 @@ exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
387
382
  Unlocked: 'unlocked',
388
383
  Locked: 'locked'
389
384
  };
385
+ exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = {
386
+ All: 'all',
387
+ None: 'none',
388
+ Minor: 'minor'
389
+ };
390
+ exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = {
391
+ Active: 'active',
392
+ Inactive: 'inactive'
393
+ };
394
+ exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = {
395
+ Business: 'business',
396
+ OnlineStore: 'online-store',
397
+ Blog: 'blog',
398
+ Portfolio: 'portfolio',
399
+ AffiliateMarketing: 'affiliate-marketing',
400
+ Other: 'other',
401
+ Default: 'default'
402
+ };
403
+ exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = {
404
+ Hostinger: 'hostinger',
405
+ HostingerAiAssistant: 'hostinger-ai-assistant',
406
+ HostingerAffiliatePlugin: 'hostinger-affiliate-plugin',
407
+ HostingerEasyOnboarding: 'hostinger-easy-onboarding',
408
+ HostingerReach: 'hostinger-reach'
409
+ };
410
+ exports.WordPressV1ThemesInstallThemeRequestFontEnum = {
411
+ Professional: 'professional',
412
+ Modern: 'modern',
413
+ Elegant: 'elegant',
414
+ Creative: 'creative',
415
+ Dynamic: 'dynamic',
416
+ Default: 'default'
417
+ };
418
+ exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = {
419
+ Active: 'active',
420
+ Inactive: 'inactive'
421
+ };
390
422
  /**
391
423
  * BillingCatalogApi - axios parameter creator
392
424
  * @export
@@ -6415,210 +6447,6 @@ class HostingWebsitesApi extends base_1.BaseAPI {
6415
6447
  }
6416
6448
  }
6417
6449
  exports.HostingWebsitesApi = HostingWebsitesApi;
6418
- /**
6419
- * HostingWordpressApi - axios parameter creator
6420
- * @export
6421
- */
6422
- const HostingWordpressApiAxiosParamCreator = function (configuration) {
6423
- return {
6424
- /**
6425
- * 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.
6426
- * @summary Install WordPress
6427
- * @param {string} username
6428
- * @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
6429
- * @param {*} [options] Override http request option.
6430
- * @throws {RequiredError}
6431
- */
6432
- installWordPressV1: (username_1, hostingV1WordpressInstallWordpressRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1WordpressInstallWordpressRequest_1, ...args_1], void 0, function* (username, hostingV1WordpressInstallWordpressRequest, options = {}) {
6433
- // verify required parameter 'username' is not null or undefined
6434
- (0, common_1.assertParamExists)('installWordPressV1', 'username', username);
6435
- // verify required parameter 'hostingV1WordpressInstallWordpressRequest' is not null or undefined
6436
- (0, common_1.assertParamExists)('installWordPressV1', 'hostingV1WordpressInstallWordpressRequest', hostingV1WordpressInstallWordpressRequest);
6437
- const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
6438
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
6439
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6440
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6441
- let baseOptions;
6442
- if (configuration) {
6443
- baseOptions = configuration.baseOptions;
6444
- }
6445
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6446
- const localVarHeaderParameter = {};
6447
- const localVarQueryParameter = {};
6448
- // authentication apiToken required
6449
- // http bearer authentication required
6450
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6451
- localVarHeaderParameter['Content-Type'] = 'application/json';
6452
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6453
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6454
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6455
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1WordpressInstallWordpressRequest, localVarRequestOptions, configuration);
6456
- return {
6457
- url: (0, common_1.toPathString)(localVarUrlObj),
6458
- options: localVarRequestOptions,
6459
- };
6460
- }),
6461
- /**
6462
- * 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.
6463
- * @summary List WordPress installations
6464
- * @param {string | null} [username] Filter by specific username
6465
- * @param {string | null} [domain] Filter by domain name (exact match)
6466
- * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
6467
- * @param {*} [options] Override http request option.
6468
- * @throws {RequiredError}
6469
- */
6470
- 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 = {}) {
6471
- const localVarPath = `/api/hosting/v1/wordpress/installations`;
6472
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6473
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6474
- let baseOptions;
6475
- if (configuration) {
6476
- baseOptions = configuration.baseOptions;
6477
- }
6478
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6479
- const localVarHeaderParameter = {};
6480
- const localVarQueryParameter = {};
6481
- // authentication apiToken required
6482
- // http bearer authentication required
6483
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6484
- if (username !== undefined) {
6485
- localVarQueryParameter['username'] = username;
6486
- }
6487
- if (domain !== undefined) {
6488
- localVarQueryParameter['domain'] = domain;
6489
- }
6490
- if (ownership !== undefined) {
6491
- localVarQueryParameter['ownership'] = ownership;
6492
- }
6493
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6494
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6495
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6496
- return {
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
6450
  /**
6623
6451
  * ReachContactsApi - axios parameter creator
6624
6452
  * @export
@@ -12561,3 +12389,1632 @@ class VPSVirtualMachineApi extends base_1.BaseAPI {
12561
12389
  }
12562
12390
  }
12563
12391
  exports.VPSVirtualMachineApi = VPSVirtualMachineApi;
12392
+ /**
12393
+ * WordPressInstallationsApi - axios parameter creator
12394
+ * @export
12395
+ */
12396
+ const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
12397
+ return {
12398
+ /**
12399
+ * 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.
12400
+ * @summary Install WordPress
12401
+ * @param {string} username
12402
+ * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
12403
+ * @param {*} [options] Override http request option.
12404
+ * @throws {RequiredError}
12405
+ */
12406
+ installWordPressV1: (username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1) => __awaiter(this, [username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1], void 0, function* (username, wordPressV1InstallationsInstallWordPressRequest, options = {}) {
12407
+ // verify required parameter 'username' is not null or undefined
12408
+ (0, common_1.assertParamExists)('installWordPressV1', 'username', username);
12409
+ // verify required parameter 'wordPressV1InstallationsInstallWordPressRequest' is not null or undefined
12410
+ (0, common_1.assertParamExists)('installWordPressV1', 'wordPressV1InstallationsInstallWordPressRequest', wordPressV1InstallationsInstallWordPressRequest);
12411
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
12412
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
12413
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12414
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12415
+ let baseOptions;
12416
+ if (configuration) {
12417
+ baseOptions = configuration.baseOptions;
12418
+ }
12419
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12420
+ const localVarHeaderParameter = {};
12421
+ const localVarQueryParameter = {};
12422
+ // authentication apiToken required
12423
+ // http bearer authentication required
12424
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12425
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12426
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12427
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12428
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12429
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsInstallWordPressRequest, localVarRequestOptions, configuration);
12430
+ return {
12431
+ url: (0, common_1.toPathString)(localVarUrlObj),
12432
+ options: localVarRequestOptions,
12433
+ };
12434
+ }),
12435
+ /**
12436
+ * 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.
12437
+ * @summary List WordPress installations
12438
+ * @param {string | null} [username] Filter by specific username
12439
+ * @param {string | null} [domain] Filter by domain name (exact match)
12440
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
12441
+ * @param {*} [options] Override http request option.
12442
+ * @throws {RequiredError}
12443
+ */
12444
+ 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 = {}) {
12445
+ const localVarPath = `/api/hosting/v1/wordpress/installations`;
12446
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12447
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12448
+ let baseOptions;
12449
+ if (configuration) {
12450
+ baseOptions = configuration.baseOptions;
12451
+ }
12452
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12453
+ const localVarHeaderParameter = {};
12454
+ const localVarQueryParameter = {};
12455
+ // authentication apiToken required
12456
+ // http bearer authentication required
12457
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12458
+ if (username !== undefined) {
12459
+ localVarQueryParameter['username'] = username;
12460
+ }
12461
+ if (domain !== undefined) {
12462
+ localVarQueryParameter['domain'] = domain;
12463
+ }
12464
+ if (ownership !== undefined) {
12465
+ localVarQueryParameter['ownership'] = ownership;
12466
+ }
12467
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12468
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12469
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12470
+ return {
12471
+ url: (0, common_1.toPathString)(localVarUrlObj),
12472
+ options: localVarRequestOptions,
12473
+ };
12474
+ }),
12475
+ };
12476
+ };
12477
+ exports.WordPressInstallationsApiAxiosParamCreator = WordPressInstallationsApiAxiosParamCreator;
12478
+ /**
12479
+ * WordPressInstallationsApi - functional programming interface
12480
+ * @export
12481
+ */
12482
+ const WordPressInstallationsApiFp = function (configuration) {
12483
+ const localVarAxiosParamCreator = (0, exports.WordPressInstallationsApiAxiosParamCreator)(configuration);
12484
+ return {
12485
+ /**
12486
+ * 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.
12487
+ * @summary Install WordPress
12488
+ * @param {string} username
12489
+ * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
12490
+ * @param {*} [options] Override http request option.
12491
+ * @throws {RequiredError}
12492
+ */
12493
+ installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
12494
+ return __awaiter(this, void 0, void 0, function* () {
12495
+ var _a, _b;
12496
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options);
12497
+ 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;
12498
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12499
+ });
12500
+ },
12501
+ /**
12502
+ * 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.
12503
+ * @summary List WordPress installations
12504
+ * @param {string | null} [username] Filter by specific username
12505
+ * @param {string | null} [domain] Filter by domain name (exact match)
12506
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
12507
+ * @param {*} [options] Override http request option.
12508
+ * @throws {RequiredError}
12509
+ */
12510
+ listWordPressInstallationsV1(username, domain, ownership, options) {
12511
+ return __awaiter(this, void 0, void 0, function* () {
12512
+ var _a, _b;
12513
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
12514
+ 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;
12515
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12516
+ });
12517
+ },
12518
+ };
12519
+ };
12520
+ exports.WordPressInstallationsApiFp = WordPressInstallationsApiFp;
12521
+ /**
12522
+ * WordPressInstallationsApi - factory interface
12523
+ * @export
12524
+ */
12525
+ const WordPressInstallationsApiFactory = function (configuration, basePath, axios) {
12526
+ const localVarFp = (0, exports.WordPressInstallationsApiFp)(configuration);
12527
+ return {
12528
+ /**
12529
+ * 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.
12530
+ * @summary Install WordPress
12531
+ * @param {string} username
12532
+ * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
12533
+ * @param {*} [options] Override http request option.
12534
+ * @throws {RequiredError}
12535
+ */
12536
+ installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
12537
+ return localVarFp.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(axios, basePath));
12538
+ },
12539
+ /**
12540
+ * 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.
12541
+ * @summary List WordPress installations
12542
+ * @param {string | null} [username] Filter by specific username
12543
+ * @param {string | null} [domain] Filter by domain name (exact match)
12544
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
12545
+ * @param {*} [options] Override http request option.
12546
+ * @throws {RequiredError}
12547
+ */
12548
+ listWordPressInstallationsV1(username, domain, ownership, options) {
12549
+ return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
12550
+ },
12551
+ };
12552
+ };
12553
+ exports.WordPressInstallationsApiFactory = WordPressInstallationsApiFactory;
12554
+ /**
12555
+ * WordPressInstallationsApi - object-oriented interface
12556
+ * @export
12557
+ * @class WordPressInstallationsApi
12558
+ * @extends {BaseAPI}
12559
+ */
12560
+ class WordPressInstallationsApi extends base_1.BaseAPI {
12561
+ /**
12562
+ * 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.
12563
+ * @summary Install WordPress
12564
+ * @param {string} username
12565
+ * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
12566
+ * @param {*} [options] Override http request option.
12567
+ * @throws {RequiredError}
12568
+ * @memberof WordPressInstallationsApi
12569
+ */
12570
+ installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
12571
+ return (0, exports.WordPressInstallationsApiFp)(this.configuration).installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(this.axios, this.basePath));
12572
+ }
12573
+ /**
12574
+ * 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.
12575
+ * @summary List WordPress installations
12576
+ * @param {string | null} [username] Filter by specific username
12577
+ * @param {string | null} [domain] Filter by domain name (exact match)
12578
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
12579
+ * @param {*} [options] Override http request option.
12580
+ * @throws {RequiredError}
12581
+ * @memberof WordPressInstallationsApi
12582
+ */
12583
+ listWordPressInstallationsV1(username, domain, ownership, options) {
12584
+ return (0, exports.WordPressInstallationsApiFp)(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
12585
+ }
12586
+ }
12587
+ exports.WordPressInstallationsApi = WordPressInstallationsApi;
12588
+ /**
12589
+ * @export
12590
+ */
12591
+ exports.ListWordPressInstallationsV1OwnershipEnum = {
12592
+ Owned: 'owned',
12593
+ Managed: 'managed',
12594
+ All: 'all'
12595
+ };
12596
+ /**
12597
+ * WordPressPluginsApi - axios parameter creator
12598
+ * @export
12599
+ */
12600
+ const WordPressPluginsApiAxiosParamCreator = function (configuration) {
12601
+ return {
12602
+ /**
12603
+ * 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.
12604
+ * @summary Activate WordPress plugin
12605
+ * @param {string} username
12606
+ * @param {string} software WordPress installation (software) identifier
12607
+ * @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
12608
+ * @param {*} [options] Override http request option.
12609
+ * @throws {RequiredError}
12610
+ */
12611
+ 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 = {}) {
12612
+ // verify required parameter 'username' is not null or undefined
12613
+ (0, common_1.assertParamExists)('activateWordPressPluginV1', 'username', username);
12614
+ // verify required parameter 'software' is not null or undefined
12615
+ (0, common_1.assertParamExists)('activateWordPressPluginV1', 'software', software);
12616
+ // verify required parameter 'wordPressV1PluginsActivatePluginRequest' is not null or undefined
12617
+ (0, common_1.assertParamExists)('activateWordPressPluginV1', 'wordPressV1PluginsActivatePluginRequest', wordPressV1PluginsActivatePluginRequest);
12618
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/activate`
12619
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12620
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
12621
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12622
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12623
+ let baseOptions;
12624
+ if (configuration) {
12625
+ baseOptions = configuration.baseOptions;
12626
+ }
12627
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12628
+ const localVarHeaderParameter = {};
12629
+ const localVarQueryParameter = {};
12630
+ // authentication apiToken required
12631
+ // http bearer authentication required
12632
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12633
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12634
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12635
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12636
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12637
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsActivatePluginRequest, localVarRequestOptions, configuration);
12638
+ return {
12639
+ url: (0, common_1.toPathString)(localVarUrlObj),
12640
+ options: localVarRequestOptions,
12641
+ };
12642
+ }),
12643
+ /**
12644
+ * Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
12645
+ * @summary Check if WooCommerce is installed
12646
+ * @param {string | null} [domain] Filter by domain name (exact match)
12647
+ * @param {*} [options] Override http request option.
12648
+ * @throws {RequiredError}
12649
+ */
12650
+ checkIfWooCommerceIsInstalledV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
12651
+ const localVarPath = `/api/hosting/v1/wordpress/plugins/is-woocommerce-installed`;
12652
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12653
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12654
+ let baseOptions;
12655
+ if (configuration) {
12656
+ baseOptions = configuration.baseOptions;
12657
+ }
12658
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12659
+ const localVarHeaderParameter = {};
12660
+ const localVarQueryParameter = {};
12661
+ // authentication apiToken required
12662
+ // http bearer authentication required
12663
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12664
+ if (domain !== undefined) {
12665
+ localVarQueryParameter['domain'] = domain;
12666
+ }
12667
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12668
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12669
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12670
+ return {
12671
+ url: (0, common_1.toPathString)(localVarUrlObj),
12672
+ options: localVarRequestOptions,
12673
+ };
12674
+ }),
12675
+ /**
12676
+ * 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.
12677
+ * @summary Deactivate WordPress plugin
12678
+ * @param {string} username
12679
+ * @param {string} software WordPress installation (software) identifier
12680
+ * @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
12681
+ * @param {*} [options] Override http request option.
12682
+ * @throws {RequiredError}
12683
+ */
12684
+ 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 = {}) {
12685
+ // verify required parameter 'username' is not null or undefined
12686
+ (0, common_1.assertParamExists)('deactivateWordPressPluginV1', 'username', username);
12687
+ // verify required parameter 'software' is not null or undefined
12688
+ (0, common_1.assertParamExists)('deactivateWordPressPluginV1', 'software', software);
12689
+ // verify required parameter 'wordPressV1PluginsDeactivatePluginRequest' is not null or undefined
12690
+ (0, common_1.assertParamExists)('deactivateWordPressPluginV1', 'wordPressV1PluginsDeactivatePluginRequest', wordPressV1PluginsDeactivatePluginRequest);
12691
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/deactivate`
12692
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12693
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
12694
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12695
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12696
+ let baseOptions;
12697
+ if (configuration) {
12698
+ baseOptions = configuration.baseOptions;
12699
+ }
12700
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12701
+ const localVarHeaderParameter = {};
12702
+ const localVarQueryParameter = {};
12703
+ // authentication apiToken required
12704
+ // http bearer authentication required
12705
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12706
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12707
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12708
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12709
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12710
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsDeactivatePluginRequest, localVarRequestOptions, configuration);
12711
+ return {
12712
+ url: (0, common_1.toPathString)(localVarUrlObj),
12713
+ options: localVarRequestOptions,
12714
+ };
12715
+ }),
12716
+ /**
12717
+ * 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.
12718
+ * @summary Install WordPress plugins
12719
+ * @param {string} username
12720
+ * @param {string} software WordPress installation (software) identifier
12721
+ * @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
12722
+ * @param {*} [options] Override http request option.
12723
+ * @throws {RequiredError}
12724
+ */
12725
+ 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 = {}) {
12726
+ // verify required parameter 'username' is not null or undefined
12727
+ (0, common_1.assertParamExists)('installWordPressPluginsV1', 'username', username);
12728
+ // verify required parameter 'software' is not null or undefined
12729
+ (0, common_1.assertParamExists)('installWordPressPluginsV1', 'software', software);
12730
+ // verify required parameter 'wordPressV1PluginsInstallPluginsRequest' is not null or undefined
12731
+ (0, common_1.assertParamExists)('installWordPressPluginsV1', 'wordPressV1PluginsInstallPluginsRequest', wordPressV1PluginsInstallPluginsRequest);
12732
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install`
12733
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12734
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
12735
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12736
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12737
+ let baseOptions;
12738
+ if (configuration) {
12739
+ baseOptions = configuration.baseOptions;
12740
+ }
12741
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12742
+ const localVarHeaderParameter = {};
12743
+ const localVarQueryParameter = {};
12744
+ // authentication apiToken required
12745
+ // http bearer authentication required
12746
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12747
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12748
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12749
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12750
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12751
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsInstallPluginsRequest, localVarRequestOptions, configuration);
12752
+ return {
12753
+ url: (0, common_1.toPathString)(localVarUrlObj),
12754
+ options: localVarRequestOptions,
12755
+ };
12756
+ }),
12757
+ /**
12758
+ * 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).
12759
+ * @summary List available WordPress plugins
12760
+ * @param {string} username
12761
+ * @param {string} software WordPress installation (software) identifier
12762
+ * @param {*} [options] Override http request option.
12763
+ * @throws {RequiredError}
12764
+ */
12765
+ listAvailableWordPressPluginsV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
12766
+ // verify required parameter 'username' is not null or undefined
12767
+ (0, common_1.assertParamExists)('listAvailableWordPressPluginsV1', 'username', username);
12768
+ // verify required parameter 'software' is not null or undefined
12769
+ (0, common_1.assertParamExists)('listAvailableWordPressPluginsV1', 'software', software);
12770
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/available`
12771
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12772
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
12773
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12774
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12775
+ let baseOptions;
12776
+ if (configuration) {
12777
+ baseOptions = configuration.baseOptions;
12778
+ }
12779
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12780
+ const localVarHeaderParameter = {};
12781
+ const localVarQueryParameter = {};
12782
+ // authentication apiToken required
12783
+ // http bearer authentication required
12784
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12785
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12786
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12787
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12788
+ return {
12789
+ url: (0, common_1.toPathString)(localVarUrlObj),
12790
+ options: localVarRequestOptions,
12791
+ };
12792
+ }),
12793
+ /**
12794
+ * 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).
12795
+ * @summary List installed WordPress plugins
12796
+ * @param {string} username
12797
+ * @param {string} software WordPress installation (software) identifier
12798
+ * @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
12799
+ * @param {*} [options] Override http request option.
12800
+ * @throws {RequiredError}
12801
+ */
12802
+ 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 = {}) {
12803
+ // verify required parameter 'username' is not null or undefined
12804
+ (0, common_1.assertParamExists)('listInstalledWordPressPluginsV1', 'username', username);
12805
+ // verify required parameter 'software' is not null or undefined
12806
+ (0, common_1.assertParamExists)('listInstalledWordPressPluginsV1', 'software', software);
12807
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins`
12808
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12809
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
12810
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12811
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12812
+ let baseOptions;
12813
+ if (configuration) {
12814
+ baseOptions = configuration.baseOptions;
12815
+ }
12816
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12817
+ const localVarHeaderParameter = {};
12818
+ const localVarQueryParameter = {};
12819
+ // authentication apiToken required
12820
+ // http bearer authentication required
12821
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12822
+ if (category !== undefined) {
12823
+ localVarQueryParameter['category'] = category;
12824
+ }
12825
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12826
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12827
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12828
+ return {
12829
+ url: (0, common_1.toPathString)(localVarUrlObj),
12830
+ options: localVarRequestOptions,
12831
+ };
12832
+ }),
12833
+ /**
12834
+ * List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
12835
+ * @summary List suggested WordPress plugins
12836
+ * @param {number | null} [orderId] Optionally scope suggestions to a specific order.
12837
+ * @param {*} [options] Override http request option.
12838
+ * @throws {RequiredError}
12839
+ */
12840
+ listSuggestedWordPressPluginsV1: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
12841
+ const localVarPath = `/api/hosting/v1/wordpress/plugins/suggested`;
12842
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12843
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12844
+ let baseOptions;
12845
+ if (configuration) {
12846
+ baseOptions = configuration.baseOptions;
12847
+ }
12848
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12849
+ const localVarHeaderParameter = {};
12850
+ const localVarQueryParameter = {};
12851
+ // authentication apiToken required
12852
+ // http bearer authentication required
12853
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12854
+ if (orderId !== undefined) {
12855
+ localVarQueryParameter['order_id'] = orderId;
12856
+ }
12857
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12858
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12859
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12860
+ return {
12861
+ url: (0, common_1.toPathString)(localVarUrlObj),
12862
+ options: localVarRequestOptions,
12863
+ };
12864
+ }),
12865
+ /**
12866
+ * 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.
12867
+ * @summary Search WordPress plugins
12868
+ * @param {string} search Search term to match against plugin names. Minimum 3 characters.
12869
+ * @param {*} [options] Override http request option.
12870
+ * @throws {RequiredError}
12871
+ */
12872
+ searchWordPressPluginsV1: (search_1, ...args_1) => __awaiter(this, [search_1, ...args_1], void 0, function* (search, options = {}) {
12873
+ // verify required parameter 'search' is not null or undefined
12874
+ (0, common_1.assertParamExists)('searchWordPressPluginsV1', 'search', search);
12875
+ const localVarPath = `/api/hosting/v1/wordpress/plugins`;
12876
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12877
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12878
+ let baseOptions;
12879
+ if (configuration) {
12880
+ baseOptions = configuration.baseOptions;
12881
+ }
12882
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12883
+ const localVarHeaderParameter = {};
12884
+ const localVarQueryParameter = {};
12885
+ // authentication apiToken required
12886
+ // http bearer authentication required
12887
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12888
+ if (search !== undefined) {
12889
+ localVarQueryParameter['search'] = search;
12890
+ }
12891
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12892
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12893
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12894
+ return {
12895
+ url: (0, common_1.toPathString)(localVarUrlObj),
12896
+ options: localVarRequestOptions,
12897
+ };
12898
+ }),
12899
+ /**
12900
+ * 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.
12901
+ * @summary Uninstall WordPress plugins
12902
+ * @param {string} username
12903
+ * @param {string} software WordPress installation (software) identifier
12904
+ * @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
12905
+ * @param {*} [options] Override http request option.
12906
+ * @throws {RequiredError}
12907
+ */
12908
+ 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 = {}) {
12909
+ // verify required parameter 'username' is not null or undefined
12910
+ (0, common_1.assertParamExists)('uninstallWordPressPluginsV1', 'username', username);
12911
+ // verify required parameter 'software' is not null or undefined
12912
+ (0, common_1.assertParamExists)('uninstallWordPressPluginsV1', 'software', software);
12913
+ // verify required parameter 'wordPressV1PluginsUninstallPluginsRequest' is not null or undefined
12914
+ (0, common_1.assertParamExists)('uninstallWordPressPluginsV1', 'wordPressV1PluginsUninstallPluginsRequest', wordPressV1PluginsUninstallPluginsRequest);
12915
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/uninstall`
12916
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12917
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
12918
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12919
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12920
+ let baseOptions;
12921
+ if (configuration) {
12922
+ baseOptions = configuration.baseOptions;
12923
+ }
12924
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12925
+ const localVarHeaderParameter = {};
12926
+ const localVarQueryParameter = {};
12927
+ // authentication apiToken required
12928
+ // http bearer authentication required
12929
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12930
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12931
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12932
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12933
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12934
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsUninstallPluginsRequest, localVarRequestOptions, configuration);
12935
+ return {
12936
+ url: (0, common_1.toPathString)(localVarUrlObj),
12937
+ options: localVarRequestOptions,
12938
+ };
12939
+ }),
12940
+ /**
12941
+ * 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.
12942
+ * @summary Update Hostinger WordPress plugin
12943
+ * @param {string} username
12944
+ * @param {string} software WordPress installation (software) identifier
12945
+ * @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
12946
+ * @param {*} [options] Override http request option.
12947
+ * @throws {RequiredError}
12948
+ */
12949
+ 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 = {}) {
12950
+ // verify required parameter 'username' is not null or undefined
12951
+ (0, common_1.assertParamExists)('updateHostingerWordPressPluginV1', 'username', username);
12952
+ // verify required parameter 'software' is not null or undefined
12953
+ (0, common_1.assertParamExists)('updateHostingerWordPressPluginV1', 'software', software);
12954
+ // verify required parameter 'wordPressV1PluginsUpdateHostingerPluginRequest' is not null or undefined
12955
+ (0, common_1.assertParamExists)('updateHostingerWordPressPluginV1', 'wordPressV1PluginsUpdateHostingerPluginRequest', wordPressV1PluginsUpdateHostingerPluginRequest);
12956
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/hostinger/update`
12957
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12958
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
12959
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12960
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12961
+ let baseOptions;
12962
+ if (configuration) {
12963
+ baseOptions = configuration.baseOptions;
12964
+ }
12965
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12966
+ const localVarHeaderParameter = {};
12967
+ const localVarQueryParameter = {};
12968
+ // authentication apiToken required
12969
+ // http bearer authentication required
12970
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12971
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12972
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12973
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12974
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12975
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsUpdateHostingerPluginRequest, localVarRequestOptions, configuration);
12976
+ return {
12977
+ url: (0, common_1.toPathString)(localVarUrlObj),
12978
+ options: localVarRequestOptions,
12979
+ };
12980
+ }),
12981
+ /**
12982
+ * 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.
12983
+ * @summary Update WordPress plugins
12984
+ * @param {string} username
12985
+ * @param {string} software WordPress installation (software) identifier
12986
+ * @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
12987
+ * @param {*} [options] Override http request option.
12988
+ * @throws {RequiredError}
12989
+ */
12990
+ 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 = {}) {
12991
+ // verify required parameter 'username' is not null or undefined
12992
+ (0, common_1.assertParamExists)('updateWordPressPluginsV1', 'username', username);
12993
+ // verify required parameter 'software' is not null or undefined
12994
+ (0, common_1.assertParamExists)('updateWordPressPluginsV1', 'software', software);
12995
+ // verify required parameter 'wordPressV1PluginsUpdatePluginsRequest' is not null or undefined
12996
+ (0, common_1.assertParamExists)('updateWordPressPluginsV1', 'wordPressV1PluginsUpdatePluginsRequest', wordPressV1PluginsUpdatePluginsRequest);
12997
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/update`
12998
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12999
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
13000
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13001
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13002
+ let baseOptions;
13003
+ if (configuration) {
13004
+ baseOptions = configuration.baseOptions;
13005
+ }
13006
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13007
+ const localVarHeaderParameter = {};
13008
+ const localVarQueryParameter = {};
13009
+ // authentication apiToken required
13010
+ // http bearer authentication required
13011
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13012
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13013
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13014
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13015
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13016
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsUpdatePluginsRequest, localVarRequestOptions, configuration);
13017
+ return {
13018
+ url: (0, common_1.toPathString)(localVarUrlObj),
13019
+ options: localVarRequestOptions,
13020
+ };
13021
+ }),
13022
+ };
13023
+ };
13024
+ exports.WordPressPluginsApiAxiosParamCreator = WordPressPluginsApiAxiosParamCreator;
13025
+ /**
13026
+ * WordPressPluginsApi - functional programming interface
13027
+ * @export
13028
+ */
13029
+ const WordPressPluginsApiFp = function (configuration) {
13030
+ const localVarAxiosParamCreator = (0, exports.WordPressPluginsApiAxiosParamCreator)(configuration);
13031
+ return {
13032
+ /**
13033
+ * 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.
13034
+ * @summary Activate WordPress plugin
13035
+ * @param {string} username
13036
+ * @param {string} software WordPress installation (software) identifier
13037
+ * @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
13038
+ * @param {*} [options] Override http request option.
13039
+ * @throws {RequiredError}
13040
+ */
13041
+ activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options) {
13042
+ return __awaiter(this, void 0, void 0, function* () {
13043
+ var _a, _b;
13044
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options);
13045
+ 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;
13046
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13047
+ });
13048
+ },
13049
+ /**
13050
+ * Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
13051
+ * @summary Check if WooCommerce is installed
13052
+ * @param {string | null} [domain] Filter by domain name (exact match)
13053
+ * @param {*} [options] Override http request option.
13054
+ * @throws {RequiredError}
13055
+ */
13056
+ checkIfWooCommerceIsInstalledV1(domain, options) {
13057
+ return __awaiter(this, void 0, void 0, function* () {
13058
+ var _a, _b;
13059
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkIfWooCommerceIsInstalledV1(domain, options);
13060
+ 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;
13061
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13062
+ });
13063
+ },
13064
+ /**
13065
+ * 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.
13066
+ * @summary Deactivate WordPress plugin
13067
+ * @param {string} username
13068
+ * @param {string} software WordPress installation (software) identifier
13069
+ * @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
13070
+ * @param {*} [options] Override http request option.
13071
+ * @throws {RequiredError}
13072
+ */
13073
+ deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
13074
+ return __awaiter(this, void 0, void 0, function* () {
13075
+ var _a, _b;
13076
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options);
13077
+ 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;
13078
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13079
+ });
13080
+ },
13081
+ /**
13082
+ * 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.
13083
+ * @summary Install WordPress plugins
13084
+ * @param {string} username
13085
+ * @param {string} software WordPress installation (software) identifier
13086
+ * @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
13087
+ * @param {*} [options] Override http request option.
13088
+ * @throws {RequiredError}
13089
+ */
13090
+ installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options) {
13091
+ return __awaiter(this, void 0, void 0, function* () {
13092
+ var _a, _b;
13093
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options);
13094
+ 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;
13095
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13096
+ });
13097
+ },
13098
+ /**
13099
+ * 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).
13100
+ * @summary List available WordPress plugins
13101
+ * @param {string} username
13102
+ * @param {string} software WordPress installation (software) identifier
13103
+ * @param {*} [options] Override http request option.
13104
+ * @throws {RequiredError}
13105
+ */
13106
+ listAvailableWordPressPluginsV1(username, software, options) {
13107
+ return __awaiter(this, void 0, void 0, function* () {
13108
+ var _a, _b;
13109
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableWordPressPluginsV1(username, software, options);
13110
+ 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;
13111
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13112
+ });
13113
+ },
13114
+ /**
13115
+ * List plugins installed on a WordPress installation, including their status, available updates and known vulnerabilities. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
13116
+ * @summary List installed WordPress plugins
13117
+ * @param {string} username
13118
+ * @param {string} software WordPress installation (software) identifier
13119
+ * @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
13120
+ * @param {*} [options] Override http request option.
13121
+ * @throws {RequiredError}
13122
+ */
13123
+ listInstalledWordPressPluginsV1(username, software, category, options) {
13124
+ return __awaiter(this, void 0, void 0, function* () {
13125
+ var _a, _b;
13126
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listInstalledWordPressPluginsV1(username, software, category, options);
13127
+ 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;
13128
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13129
+ });
13130
+ },
13131
+ /**
13132
+ * List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
13133
+ * @summary List suggested WordPress plugins
13134
+ * @param {number | null} [orderId] Optionally scope suggestions to a specific order.
13135
+ * @param {*} [options] Override http request option.
13136
+ * @throws {RequiredError}
13137
+ */
13138
+ listSuggestedWordPressPluginsV1(orderId, options) {
13139
+ return __awaiter(this, void 0, void 0, function* () {
13140
+ var _a, _b;
13141
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSuggestedWordPressPluginsV1(orderId, options);
13142
+ 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;
13143
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13144
+ });
13145
+ },
13146
+ /**
13147
+ * 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.
13148
+ * @summary Search WordPress plugins
13149
+ * @param {string} search Search term to match against plugin names. Minimum 3 characters.
13150
+ * @param {*} [options] Override http request option.
13151
+ * @throws {RequiredError}
13152
+ */
13153
+ searchWordPressPluginsV1(search, options) {
13154
+ return __awaiter(this, void 0, void 0, function* () {
13155
+ var _a, _b;
13156
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.searchWordPressPluginsV1(search, options);
13157
+ 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;
13158
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13159
+ });
13160
+ },
13161
+ /**
13162
+ * 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.
13163
+ * @summary Uninstall WordPress plugins
13164
+ * @param {string} username
13165
+ * @param {string} software WordPress installation (software) identifier
13166
+ * @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
13167
+ * @param {*} [options] Override http request option.
13168
+ * @throws {RequiredError}
13169
+ */
13170
+ uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options) {
13171
+ return __awaiter(this, void 0, void 0, function* () {
13172
+ var _a, _b;
13173
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options);
13174
+ 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;
13175
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13176
+ });
13177
+ },
13178
+ /**
13179
+ * 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.
13180
+ * @summary Update Hostinger WordPress plugin
13181
+ * @param {string} username
13182
+ * @param {string} software WordPress installation (software) identifier
13183
+ * @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
13184
+ * @param {*} [options] Override http request option.
13185
+ * @throws {RequiredError}
13186
+ */
13187
+ updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options) {
13188
+ return __awaiter(this, void 0, void 0, function* () {
13189
+ var _a, _b;
13190
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options);
13191
+ 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;
13192
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13193
+ });
13194
+ },
13195
+ /**
13196
+ * 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.
13197
+ * @summary Update WordPress plugins
13198
+ * @param {string} username
13199
+ * @param {string} software WordPress installation (software) identifier
13200
+ * @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
13201
+ * @param {*} [options] Override http request option.
13202
+ * @throws {RequiredError}
13203
+ */
13204
+ updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options) {
13205
+ return __awaiter(this, void 0, void 0, function* () {
13206
+ var _a, _b;
13207
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options);
13208
+ 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;
13209
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13210
+ });
13211
+ },
13212
+ };
13213
+ };
13214
+ exports.WordPressPluginsApiFp = WordPressPluginsApiFp;
13215
+ /**
13216
+ * WordPressPluginsApi - factory interface
13217
+ * @export
13218
+ */
13219
+ const WordPressPluginsApiFactory = function (configuration, basePath, axios) {
13220
+ const localVarFp = (0, exports.WordPressPluginsApiFp)(configuration);
13221
+ return {
13222
+ /**
13223
+ * 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.
13224
+ * @summary Activate WordPress plugin
13225
+ * @param {string} username
13226
+ * @param {string} software WordPress installation (software) identifier
13227
+ * @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
13228
+ * @param {*} [options] Override http request option.
13229
+ * @throws {RequiredError}
13230
+ */
13231
+ activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options) {
13232
+ return localVarFp.activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options).then((request) => request(axios, basePath));
13233
+ },
13234
+ /**
13235
+ * Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
13236
+ * @summary Check if WooCommerce is installed
13237
+ * @param {string | null} [domain] Filter by domain name (exact match)
13238
+ * @param {*} [options] Override http request option.
13239
+ * @throws {RequiredError}
13240
+ */
13241
+ checkIfWooCommerceIsInstalledV1(domain, options) {
13242
+ return localVarFp.checkIfWooCommerceIsInstalledV1(domain, options).then((request) => request(axios, basePath));
13243
+ },
13244
+ /**
13245
+ * 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.
13246
+ * @summary Deactivate WordPress plugin
13247
+ * @param {string} username
13248
+ * @param {string} software WordPress installation (software) identifier
13249
+ * @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
13250
+ * @param {*} [options] Override http request option.
13251
+ * @throws {RequiredError}
13252
+ */
13253
+ deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
13254
+ return localVarFp.deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(axios, basePath));
13255
+ },
13256
+ /**
13257
+ * 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.
13258
+ * @summary Install WordPress plugins
13259
+ * @param {string} username
13260
+ * @param {string} software WordPress installation (software) identifier
13261
+ * @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
13262
+ * @param {*} [options] Override http request option.
13263
+ * @throws {RequiredError}
13264
+ */
13265
+ installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options) {
13266
+ return localVarFp.installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options).then((request) => request(axios, basePath));
13267
+ },
13268
+ /**
13269
+ * 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).
13270
+ * @summary List available WordPress plugins
13271
+ * @param {string} username
13272
+ * @param {string} software WordPress installation (software) identifier
13273
+ * @param {*} [options] Override http request option.
13274
+ * @throws {RequiredError}
13275
+ */
13276
+ listAvailableWordPressPluginsV1(username, software, options) {
13277
+ return localVarFp.listAvailableWordPressPluginsV1(username, software, options).then((request) => request(axios, basePath));
13278
+ },
13279
+ /**
13280
+ * 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).
13281
+ * @summary List installed WordPress plugins
13282
+ * @param {string} username
13283
+ * @param {string} software WordPress installation (software) identifier
13284
+ * @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
13285
+ * @param {*} [options] Override http request option.
13286
+ * @throws {RequiredError}
13287
+ */
13288
+ listInstalledWordPressPluginsV1(username, software, category, options) {
13289
+ return localVarFp.listInstalledWordPressPluginsV1(username, software, category, options).then((request) => request(axios, basePath));
13290
+ },
13291
+ /**
13292
+ * List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
13293
+ * @summary List suggested WordPress plugins
13294
+ * @param {number | null} [orderId] Optionally scope suggestions to a specific order.
13295
+ * @param {*} [options] Override http request option.
13296
+ * @throws {RequiredError}
13297
+ */
13298
+ listSuggestedWordPressPluginsV1(orderId, options) {
13299
+ return localVarFp.listSuggestedWordPressPluginsV1(orderId, options).then((request) => request(axios, basePath));
13300
+ },
13301
+ /**
13302
+ * 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.
13303
+ * @summary Search WordPress plugins
13304
+ * @param {string} search Search term to match against plugin names. Minimum 3 characters.
13305
+ * @param {*} [options] Override http request option.
13306
+ * @throws {RequiredError}
13307
+ */
13308
+ searchWordPressPluginsV1(search, options) {
13309
+ return localVarFp.searchWordPressPluginsV1(search, options).then((request) => request(axios, basePath));
13310
+ },
13311
+ /**
13312
+ * 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.
13313
+ * @summary Uninstall WordPress plugins
13314
+ * @param {string} username
13315
+ * @param {string} software WordPress installation (software) identifier
13316
+ * @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
13317
+ * @param {*} [options] Override http request option.
13318
+ * @throws {RequiredError}
13319
+ */
13320
+ uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options) {
13321
+ return localVarFp.uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options).then((request) => request(axios, basePath));
13322
+ },
13323
+ /**
13324
+ * 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.
13325
+ * @summary Update Hostinger WordPress plugin
13326
+ * @param {string} username
13327
+ * @param {string} software WordPress installation (software) identifier
13328
+ * @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
13329
+ * @param {*} [options] Override http request option.
13330
+ * @throws {RequiredError}
13331
+ */
13332
+ updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options) {
13333
+ return localVarFp.updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options).then((request) => request(axios, basePath));
13334
+ },
13335
+ /**
13336
+ * 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.
13337
+ * @summary Update WordPress plugins
13338
+ * @param {string} username
13339
+ * @param {string} software WordPress installation (software) identifier
13340
+ * @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
13341
+ * @param {*} [options] Override http request option.
13342
+ * @throws {RequiredError}
13343
+ */
13344
+ updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options) {
13345
+ return localVarFp.updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options).then((request) => request(axios, basePath));
13346
+ },
13347
+ };
13348
+ };
13349
+ exports.WordPressPluginsApiFactory = WordPressPluginsApiFactory;
13350
+ /**
13351
+ * WordPressPluginsApi - object-oriented interface
13352
+ * @export
13353
+ * @class WordPressPluginsApi
13354
+ * @extends {BaseAPI}
13355
+ */
13356
+ class WordPressPluginsApi extends base_1.BaseAPI {
13357
+ /**
13358
+ * 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.
13359
+ * @summary Activate WordPress plugin
13360
+ * @param {string} username
13361
+ * @param {string} software WordPress installation (software) identifier
13362
+ * @param {WordPressV1PluginsActivatePluginRequest} wordPressV1PluginsActivatePluginRequest
13363
+ * @param {*} [options] Override http request option.
13364
+ * @throws {RequiredError}
13365
+ * @memberof WordPressPluginsApi
13366
+ */
13367
+ activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options) {
13368
+ return (0, exports.WordPressPluginsApiFp)(this.configuration).activateWordPressPluginV1(username, software, wordPressV1PluginsActivatePluginRequest, options).then((request) => request(this.axios, this.basePath));
13369
+ }
13370
+ /**
13371
+ * Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
13372
+ * @summary Check if WooCommerce is installed
13373
+ * @param {string | null} [domain] Filter by domain name (exact match)
13374
+ * @param {*} [options] Override http request option.
13375
+ * @throws {RequiredError}
13376
+ * @memberof WordPressPluginsApi
13377
+ */
13378
+ checkIfWooCommerceIsInstalledV1(domain, options) {
13379
+ return (0, exports.WordPressPluginsApiFp)(this.configuration).checkIfWooCommerceIsInstalledV1(domain, options).then((request) => request(this.axios, this.basePath));
13380
+ }
13381
+ /**
13382
+ * 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.
13383
+ * @summary Deactivate WordPress plugin
13384
+ * @param {string} username
13385
+ * @param {string} software WordPress installation (software) identifier
13386
+ * @param {WordPressV1PluginsDeactivatePluginRequest} wordPressV1PluginsDeactivatePluginRequest
13387
+ * @param {*} [options] Override http request option.
13388
+ * @throws {RequiredError}
13389
+ * @memberof WordPressPluginsApi
13390
+ */
13391
+ deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
13392
+ return (0, exports.WordPressPluginsApiFp)(this.configuration).deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(this.axios, this.basePath));
13393
+ }
13394
+ /**
13395
+ * 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.
13396
+ * @summary Install WordPress plugins
13397
+ * @param {string} username
13398
+ * @param {string} software WordPress installation (software) identifier
13399
+ * @param {WordPressV1PluginsInstallPluginsRequest} wordPressV1PluginsInstallPluginsRequest
13400
+ * @param {*} [options] Override http request option.
13401
+ * @throws {RequiredError}
13402
+ * @memberof WordPressPluginsApi
13403
+ */
13404
+ installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options) {
13405
+ return (0, exports.WordPressPluginsApiFp)(this.configuration).installWordPressPluginsV1(username, software, wordPressV1PluginsInstallPluginsRequest, options).then((request) => request(this.axios, this.basePath));
13406
+ }
13407
+ /**
13408
+ * 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).
13409
+ * @summary List available WordPress plugins
13410
+ * @param {string} username
13411
+ * @param {string} software WordPress installation (software) identifier
13412
+ * @param {*} [options] Override http request option.
13413
+ * @throws {RequiredError}
13414
+ * @memberof WordPressPluginsApi
13415
+ */
13416
+ listAvailableWordPressPluginsV1(username, software, options) {
13417
+ return (0, exports.WordPressPluginsApiFp)(this.configuration).listAvailableWordPressPluginsV1(username, software, options).then((request) => request(this.axios, this.basePath));
13418
+ }
13419
+ /**
13420
+ * 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).
13421
+ * @summary List installed WordPress plugins
13422
+ * @param {string} username
13423
+ * @param {string} software WordPress installation (software) identifier
13424
+ * @param {ListInstalledWordPressPluginsV1CategoryEnum} [category] Filter installed plugins by category.
13425
+ * @param {*} [options] Override http request option.
13426
+ * @throws {RequiredError}
13427
+ * @memberof WordPressPluginsApi
13428
+ */
13429
+ listInstalledWordPressPluginsV1(username, software, category, options) {
13430
+ return (0, exports.WordPressPluginsApiFp)(this.configuration).listInstalledWordPressPluginsV1(username, software, category, options).then((request) => request(this.axios, this.basePath));
13431
+ }
13432
+ /**
13433
+ * List curated plugin suggestions grouped by website type. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
13434
+ * @summary List suggested WordPress plugins
13435
+ * @param {number | null} [orderId] Optionally scope suggestions to a specific order.
13436
+ * @param {*} [options] Override http request option.
13437
+ * @throws {RequiredError}
13438
+ * @memberof WordPressPluginsApi
13439
+ */
13440
+ listSuggestedWordPressPluginsV1(orderId, options) {
13441
+ return (0, exports.WordPressPluginsApiFp)(this.configuration).listSuggestedWordPressPluginsV1(orderId, options).then((request) => request(this.axios, this.basePath));
13442
+ }
13443
+ /**
13444
+ * 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.
13445
+ * @summary Search WordPress plugins
13446
+ * @param {string} search Search term to match against plugin names. Minimum 3 characters.
13447
+ * @param {*} [options] Override http request option.
13448
+ * @throws {RequiredError}
13449
+ * @memberof WordPressPluginsApi
13450
+ */
13451
+ searchWordPressPluginsV1(search, options) {
13452
+ return (0, exports.WordPressPluginsApiFp)(this.configuration).searchWordPressPluginsV1(search, options).then((request) => request(this.axios, this.basePath));
13453
+ }
13454
+ /**
13455
+ * 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.
13456
+ * @summary Uninstall WordPress plugins
13457
+ * @param {string} username
13458
+ * @param {string} software WordPress installation (software) identifier
13459
+ * @param {WordPressV1PluginsUninstallPluginsRequest} wordPressV1PluginsUninstallPluginsRequest
13460
+ * @param {*} [options] Override http request option.
13461
+ * @throws {RequiredError}
13462
+ * @memberof WordPressPluginsApi
13463
+ */
13464
+ uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options) {
13465
+ return (0, exports.WordPressPluginsApiFp)(this.configuration).uninstallWordPressPluginsV1(username, software, wordPressV1PluginsUninstallPluginsRequest, options).then((request) => request(this.axios, this.basePath));
13466
+ }
13467
+ /**
13468
+ * 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.
13469
+ * @summary Update Hostinger WordPress plugin
13470
+ * @param {string} username
13471
+ * @param {string} software WordPress installation (software) identifier
13472
+ * @param {WordPressV1PluginsUpdateHostingerPluginRequest} wordPressV1PluginsUpdateHostingerPluginRequest
13473
+ * @param {*} [options] Override http request option.
13474
+ * @throws {RequiredError}
13475
+ * @memberof WordPressPluginsApi
13476
+ */
13477
+ updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options) {
13478
+ return (0, exports.WordPressPluginsApiFp)(this.configuration).updateHostingerWordPressPluginV1(username, software, wordPressV1PluginsUpdateHostingerPluginRequest, options).then((request) => request(this.axios, this.basePath));
13479
+ }
13480
+ /**
13481
+ * 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.
13482
+ * @summary Update WordPress plugins
13483
+ * @param {string} username
13484
+ * @param {string} software WordPress installation (software) identifier
13485
+ * @param {WordPressV1PluginsUpdatePluginsRequest} wordPressV1PluginsUpdatePluginsRequest
13486
+ * @param {*} [options] Override http request option.
13487
+ * @throws {RequiredError}
13488
+ * @memberof WordPressPluginsApi
13489
+ */
13490
+ updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options) {
13491
+ return (0, exports.WordPressPluginsApiFp)(this.configuration).updateWordPressPluginsV1(username, software, wordPressV1PluginsUpdatePluginsRequest, options).then((request) => request(this.axios, this.basePath));
13492
+ }
13493
+ }
13494
+ exports.WordPressPluginsApi = WordPressPluginsApi;
13495
+ /**
13496
+ * @export
13497
+ */
13498
+ exports.ListInstalledWordPressPluginsV1CategoryEnum = {
13499
+ Cache: 'cache'
13500
+ };
13501
+ /**
13502
+ * WordPressThemesApi - axios parameter creator
13503
+ * @export
13504
+ */
13505
+ const WordPressThemesApiAxiosParamCreator = function (configuration) {
13506
+ return {
13507
+ /**
13508
+ * 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.
13509
+ * @summary Activate WordPress theme
13510
+ * @param {string} username
13511
+ * @param {string} software WordPress installation (software) identifier
13512
+ * @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
13513
+ * @param {*} [options] Override http request option.
13514
+ * @throws {RequiredError}
13515
+ */
13516
+ 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 = {}) {
13517
+ // verify required parameter 'username' is not null or undefined
13518
+ (0, common_1.assertParamExists)('activateWordPressThemeV1', 'username', username);
13519
+ // verify required parameter 'software' is not null or undefined
13520
+ (0, common_1.assertParamExists)('activateWordPressThemeV1', 'software', software);
13521
+ // verify required parameter 'wordPressV1ThemesActivateThemeRequest' is not null or undefined
13522
+ (0, common_1.assertParamExists)('activateWordPressThemeV1', 'wordPressV1ThemesActivateThemeRequest', wordPressV1ThemesActivateThemeRequest);
13523
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/activate`
13524
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13525
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
13526
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13527
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13528
+ let baseOptions;
13529
+ if (configuration) {
13530
+ baseOptions = configuration.baseOptions;
13531
+ }
13532
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13533
+ const localVarHeaderParameter = {};
13534
+ const localVarQueryParameter = {};
13535
+ // authentication apiToken required
13536
+ // http bearer authentication required
13537
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13538
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13539
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13540
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13541
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13542
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1ThemesActivateThemeRequest, localVarRequestOptions, configuration);
13543
+ return {
13544
+ url: (0, common_1.toPathString)(localVarUrlObj),
13545
+ options: localVarRequestOptions,
13546
+ };
13547
+ }),
13548
+ /**
13549
+ * 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.
13550
+ * @summary Install WordPress theme
13551
+ * @param {string} username
13552
+ * @param {string} software WordPress installation (software) identifier
13553
+ * @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
13554
+ * @param {*} [options] Override http request option.
13555
+ * @throws {RequiredError}
13556
+ */
13557
+ 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 = {}) {
13558
+ // verify required parameter 'username' is not null or undefined
13559
+ (0, common_1.assertParamExists)('installWordPressThemeV1', 'username', username);
13560
+ // verify required parameter 'software' is not null or undefined
13561
+ (0, common_1.assertParamExists)('installWordPressThemeV1', 'software', software);
13562
+ // verify required parameter 'wordPressV1ThemesInstallThemeRequest' is not null or undefined
13563
+ (0, common_1.assertParamExists)('installWordPressThemeV1', 'wordPressV1ThemesInstallThemeRequest', wordPressV1ThemesInstallThemeRequest);
13564
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install`
13565
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13566
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
13567
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13568
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13569
+ let baseOptions;
13570
+ if (configuration) {
13571
+ baseOptions = configuration.baseOptions;
13572
+ }
13573
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13574
+ const localVarHeaderParameter = {};
13575
+ const localVarQueryParameter = {};
13576
+ // authentication apiToken required
13577
+ // http bearer authentication required
13578
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13579
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13580
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13581
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13582
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13583
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1ThemesInstallThemeRequest, localVarRequestOptions, configuration);
13584
+ return {
13585
+ url: (0, common_1.toPathString)(localVarUrlObj),
13586
+ options: localVarRequestOptions,
13587
+ };
13588
+ }),
13589
+ /**
13590
+ * 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).
13591
+ * @summary List installed WordPress themes
13592
+ * @param {string} username
13593
+ * @param {string} software WordPress installation (software) identifier
13594
+ * @param {*} [options] Override http request option.
13595
+ * @throws {RequiredError}
13596
+ */
13597
+ listInstalledWordPressThemesV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
13598
+ // verify required parameter 'username' is not null or undefined
13599
+ (0, common_1.assertParamExists)('listInstalledWordPressThemesV1', 'username', username);
13600
+ // verify required parameter 'software' is not null or undefined
13601
+ (0, common_1.assertParamExists)('listInstalledWordPressThemesV1', 'software', software);
13602
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes`
13603
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13604
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
13605
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13606
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13607
+ let baseOptions;
13608
+ if (configuration) {
13609
+ baseOptions = configuration.baseOptions;
13610
+ }
13611
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13612
+ const localVarHeaderParameter = {};
13613
+ const localVarQueryParameter = {};
13614
+ // authentication apiToken required
13615
+ // http bearer authentication required
13616
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13617
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13618
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13619
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13620
+ return {
13621
+ url: (0, common_1.toPathString)(localVarUrlObj),
13622
+ options: localVarRequestOptions,
13623
+ };
13624
+ }),
13625
+ /**
13626
+ * List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
13627
+ * @summary List WordPress themes
13628
+ * @param {number | null} [orderId] Optionally scope themes to a specific order.
13629
+ * @param {string | null} [search] Search term to match against theme names.
13630
+ * @param {*} [options] Override http request option.
13631
+ * @throws {RequiredError}
13632
+ */
13633
+ listWordPressThemesV1: (orderId_1, search_1, ...args_1) => __awaiter(this, [orderId_1, search_1, ...args_1], void 0, function* (orderId, search, options = {}) {
13634
+ const localVarPath = `/api/hosting/v1/wordpress/themes`;
13635
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13636
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13637
+ let baseOptions;
13638
+ if (configuration) {
13639
+ baseOptions = configuration.baseOptions;
13640
+ }
13641
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13642
+ const localVarHeaderParameter = {};
13643
+ const localVarQueryParameter = {};
13644
+ // authentication apiToken required
13645
+ // http bearer authentication required
13646
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13647
+ if (orderId !== undefined) {
13648
+ localVarQueryParameter['order_id'] = orderId;
13649
+ }
13650
+ if (search !== undefined) {
13651
+ localVarQueryParameter['search'] = search;
13652
+ }
13653
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13654
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13655
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13656
+ return {
13657
+ url: (0, common_1.toPathString)(localVarUrlObj),
13658
+ options: localVarRequestOptions,
13659
+ };
13660
+ }),
13661
+ /**
13662
+ * 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.
13663
+ * @summary Uninstall WordPress themes
13664
+ * @param {string} username
13665
+ * @param {string} software WordPress installation (software) identifier
13666
+ * @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
13667
+ * @param {*} [options] Override http request option.
13668
+ * @throws {RequiredError}
13669
+ */
13670
+ 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 = {}) {
13671
+ // verify required parameter 'username' is not null or undefined
13672
+ (0, common_1.assertParamExists)('uninstallWordPressThemesV1', 'username', username);
13673
+ // verify required parameter 'software' is not null or undefined
13674
+ (0, common_1.assertParamExists)('uninstallWordPressThemesV1', 'software', software);
13675
+ // verify required parameter 'wordPressV1ThemesUninstallThemesRequest' is not null or undefined
13676
+ (0, common_1.assertParamExists)('uninstallWordPressThemesV1', 'wordPressV1ThemesUninstallThemesRequest', wordPressV1ThemesUninstallThemesRequest);
13677
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/uninstall`
13678
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13679
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
13680
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13681
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13682
+ let baseOptions;
13683
+ if (configuration) {
13684
+ baseOptions = configuration.baseOptions;
13685
+ }
13686
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13687
+ const localVarHeaderParameter = {};
13688
+ const localVarQueryParameter = {};
13689
+ // authentication apiToken required
13690
+ // http bearer authentication required
13691
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13692
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13693
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13694
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13695
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13696
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1ThemesUninstallThemesRequest, localVarRequestOptions, configuration);
13697
+ return {
13698
+ url: (0, common_1.toPathString)(localVarUrlObj),
13699
+ options: localVarRequestOptions,
13700
+ };
13701
+ }),
13702
+ /**
13703
+ * 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.
13704
+ * @summary Update WordPress themes
13705
+ * @param {string} username
13706
+ * @param {string} software WordPress installation (software) identifier
13707
+ * @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
13708
+ * @param {*} [options] Override http request option.
13709
+ * @throws {RequiredError}
13710
+ */
13711
+ 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 = {}) {
13712
+ // verify required parameter 'username' is not null or undefined
13713
+ (0, common_1.assertParamExists)('updateWordPressThemesV1', 'username', username);
13714
+ // verify required parameter 'software' is not null or undefined
13715
+ (0, common_1.assertParamExists)('updateWordPressThemesV1', 'software', software);
13716
+ // verify required parameter 'wordPressV1ThemesUpdateThemesRequest' is not null or undefined
13717
+ (0, common_1.assertParamExists)('updateWordPressThemesV1', 'wordPressV1ThemesUpdateThemesRequest', wordPressV1ThemesUpdateThemesRequest);
13718
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/update`
13719
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13720
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
13721
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13722
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13723
+ let baseOptions;
13724
+ if (configuration) {
13725
+ baseOptions = configuration.baseOptions;
13726
+ }
13727
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13728
+ const localVarHeaderParameter = {};
13729
+ const localVarQueryParameter = {};
13730
+ // authentication apiToken required
13731
+ // http bearer authentication required
13732
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13733
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13734
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13735
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13736
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13737
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1ThemesUpdateThemesRequest, localVarRequestOptions, configuration);
13738
+ return {
13739
+ url: (0, common_1.toPathString)(localVarUrlObj),
13740
+ options: localVarRequestOptions,
13741
+ };
13742
+ }),
13743
+ };
13744
+ };
13745
+ exports.WordPressThemesApiAxiosParamCreator = WordPressThemesApiAxiosParamCreator;
13746
+ /**
13747
+ * WordPressThemesApi - functional programming interface
13748
+ * @export
13749
+ */
13750
+ const WordPressThemesApiFp = function (configuration) {
13751
+ const localVarAxiosParamCreator = (0, exports.WordPressThemesApiAxiosParamCreator)(configuration);
13752
+ return {
13753
+ /**
13754
+ * 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.
13755
+ * @summary Activate WordPress theme
13756
+ * @param {string} username
13757
+ * @param {string} software WordPress installation (software) identifier
13758
+ * @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
13759
+ * @param {*} [options] Override http request option.
13760
+ * @throws {RequiredError}
13761
+ */
13762
+ activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
13763
+ return __awaiter(this, void 0, void 0, function* () {
13764
+ var _a, _b;
13765
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options);
13766
+ 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;
13767
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13768
+ });
13769
+ },
13770
+ /**
13771
+ * 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.
13772
+ * @summary Install WordPress theme
13773
+ * @param {string} username
13774
+ * @param {string} software WordPress installation (software) identifier
13775
+ * @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
13776
+ * @param {*} [options] Override http request option.
13777
+ * @throws {RequiredError}
13778
+ */
13779
+ installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options) {
13780
+ return __awaiter(this, void 0, void 0, function* () {
13781
+ var _a, _b;
13782
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options);
13783
+ 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;
13784
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13785
+ });
13786
+ },
13787
+ /**
13788
+ * 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).
13789
+ * @summary List installed WordPress themes
13790
+ * @param {string} username
13791
+ * @param {string} software WordPress installation (software) identifier
13792
+ * @param {*} [options] Override http request option.
13793
+ * @throws {RequiredError}
13794
+ */
13795
+ listInstalledWordPressThemesV1(username, software, options) {
13796
+ return __awaiter(this, void 0, void 0, function* () {
13797
+ var _a, _b;
13798
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listInstalledWordPressThemesV1(username, software, options);
13799
+ 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;
13800
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13801
+ });
13802
+ },
13803
+ /**
13804
+ * List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
13805
+ * @summary List WordPress themes
13806
+ * @param {number | null} [orderId] Optionally scope themes to a specific order.
13807
+ * @param {string | null} [search] Search term to match against theme names.
13808
+ * @param {*} [options] Override http request option.
13809
+ * @throws {RequiredError}
13810
+ */
13811
+ listWordPressThemesV1(orderId, search, options) {
13812
+ return __awaiter(this, void 0, void 0, function* () {
13813
+ var _a, _b;
13814
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressThemesV1(orderId, search, options);
13815
+ 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;
13816
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13817
+ });
13818
+ },
13819
+ /**
13820
+ * 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.
13821
+ * @summary Uninstall WordPress themes
13822
+ * @param {string} username
13823
+ * @param {string} software WordPress installation (software) identifier
13824
+ * @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
13825
+ * @param {*} [options] Override http request option.
13826
+ * @throws {RequiredError}
13827
+ */
13828
+ uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options) {
13829
+ return __awaiter(this, void 0, void 0, function* () {
13830
+ var _a, _b;
13831
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options);
13832
+ 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;
13833
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13834
+ });
13835
+ },
13836
+ /**
13837
+ * Update one or more installed themes to their latest version on a WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
13838
+ * @summary Update WordPress themes
13839
+ * @param {string} username
13840
+ * @param {string} software WordPress installation (software) identifier
13841
+ * @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
13842
+ * @param {*} [options] Override http request option.
13843
+ * @throws {RequiredError}
13844
+ */
13845
+ updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options) {
13846
+ return __awaiter(this, void 0, void 0, function* () {
13847
+ var _a, _b;
13848
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options);
13849
+ 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;
13850
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13851
+ });
13852
+ },
13853
+ };
13854
+ };
13855
+ exports.WordPressThemesApiFp = WordPressThemesApiFp;
13856
+ /**
13857
+ * WordPressThemesApi - factory interface
13858
+ * @export
13859
+ */
13860
+ const WordPressThemesApiFactory = function (configuration, basePath, axios) {
13861
+ const localVarFp = (0, exports.WordPressThemesApiFp)(configuration);
13862
+ return {
13863
+ /**
13864
+ * 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.
13865
+ * @summary Activate WordPress theme
13866
+ * @param {string} username
13867
+ * @param {string} software WordPress installation (software) identifier
13868
+ * @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
13869
+ * @param {*} [options] Override http request option.
13870
+ * @throws {RequiredError}
13871
+ */
13872
+ activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
13873
+ return localVarFp.activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(axios, basePath));
13874
+ },
13875
+ /**
13876
+ * 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.
13877
+ * @summary Install WordPress theme
13878
+ * @param {string} username
13879
+ * @param {string} software WordPress installation (software) identifier
13880
+ * @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
13881
+ * @param {*} [options] Override http request option.
13882
+ * @throws {RequiredError}
13883
+ */
13884
+ installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options) {
13885
+ return localVarFp.installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options).then((request) => request(axios, basePath));
13886
+ },
13887
+ /**
13888
+ * 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).
13889
+ * @summary List installed WordPress themes
13890
+ * @param {string} username
13891
+ * @param {string} software WordPress installation (software) identifier
13892
+ * @param {*} [options] Override http request option.
13893
+ * @throws {RequiredError}
13894
+ */
13895
+ listInstalledWordPressThemesV1(username, software, options) {
13896
+ return localVarFp.listInstalledWordPressThemesV1(username, software, options).then((request) => request(axios, basePath));
13897
+ },
13898
+ /**
13899
+ * List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
13900
+ * @summary List WordPress themes
13901
+ * @param {number | null} [orderId] Optionally scope themes to a specific order.
13902
+ * @param {string | null} [search] Search term to match against theme names.
13903
+ * @param {*} [options] Override http request option.
13904
+ * @throws {RequiredError}
13905
+ */
13906
+ listWordPressThemesV1(orderId, search, options) {
13907
+ return localVarFp.listWordPressThemesV1(orderId, search, options).then((request) => request(axios, basePath));
13908
+ },
13909
+ /**
13910
+ * 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.
13911
+ * @summary Uninstall WordPress themes
13912
+ * @param {string} username
13913
+ * @param {string} software WordPress installation (software) identifier
13914
+ * @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
13915
+ * @param {*} [options] Override http request option.
13916
+ * @throws {RequiredError}
13917
+ */
13918
+ uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options) {
13919
+ return localVarFp.uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options).then((request) => request(axios, basePath));
13920
+ },
13921
+ /**
13922
+ * 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.
13923
+ * @summary Update WordPress themes
13924
+ * @param {string} username
13925
+ * @param {string} software WordPress installation (software) identifier
13926
+ * @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
13927
+ * @param {*} [options] Override http request option.
13928
+ * @throws {RequiredError}
13929
+ */
13930
+ updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options) {
13931
+ return localVarFp.updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options).then((request) => request(axios, basePath));
13932
+ },
13933
+ };
13934
+ };
13935
+ exports.WordPressThemesApiFactory = WordPressThemesApiFactory;
13936
+ /**
13937
+ * WordPressThemesApi - object-oriented interface
13938
+ * @export
13939
+ * @class WordPressThemesApi
13940
+ * @extends {BaseAPI}
13941
+ */
13942
+ class WordPressThemesApi extends base_1.BaseAPI {
13943
+ /**
13944
+ * 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.
13945
+ * @summary Activate WordPress theme
13946
+ * @param {string} username
13947
+ * @param {string} software WordPress installation (software) identifier
13948
+ * @param {WordPressV1ThemesActivateThemeRequest} wordPressV1ThemesActivateThemeRequest
13949
+ * @param {*} [options] Override http request option.
13950
+ * @throws {RequiredError}
13951
+ * @memberof WordPressThemesApi
13952
+ */
13953
+ activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
13954
+ return (0, exports.WordPressThemesApiFp)(this.configuration).activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(this.axios, this.basePath));
13955
+ }
13956
+ /**
13957
+ * 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.
13958
+ * @summary Install WordPress theme
13959
+ * @param {string} username
13960
+ * @param {string} software WordPress installation (software) identifier
13961
+ * @param {WordPressV1ThemesInstallThemeRequest} wordPressV1ThemesInstallThemeRequest
13962
+ * @param {*} [options] Override http request option.
13963
+ * @throws {RequiredError}
13964
+ * @memberof WordPressThemesApi
13965
+ */
13966
+ installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options) {
13967
+ return (0, exports.WordPressThemesApiFp)(this.configuration).installWordPressThemeV1(username, software, wordPressV1ThemesInstallThemeRequest, options).then((request) => request(this.axios, this.basePath));
13968
+ }
13969
+ /**
13970
+ * 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).
13971
+ * @summary List installed WordPress themes
13972
+ * @param {string} username
13973
+ * @param {string} software WordPress installation (software) identifier
13974
+ * @param {*} [options] Override http request option.
13975
+ * @throws {RequiredError}
13976
+ * @memberof WordPressThemesApi
13977
+ */
13978
+ listInstalledWordPressThemesV1(username, software, options) {
13979
+ return (0, exports.WordPressThemesApiFp)(this.configuration).listInstalledWordPressThemesV1(username, software, options).then((request) => request(this.axios, this.basePath));
13980
+ }
13981
+ /**
13982
+ * List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
13983
+ * @summary List WordPress themes
13984
+ * @param {number | null} [orderId] Optionally scope themes to a specific order.
13985
+ * @param {string | null} [search] Search term to match against theme names.
13986
+ * @param {*} [options] Override http request option.
13987
+ * @throws {RequiredError}
13988
+ * @memberof WordPressThemesApi
13989
+ */
13990
+ listWordPressThemesV1(orderId, search, options) {
13991
+ return (0, exports.WordPressThemesApiFp)(this.configuration).listWordPressThemesV1(orderId, search, options).then((request) => request(this.axios, this.basePath));
13992
+ }
13993
+ /**
13994
+ * 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.
13995
+ * @summary Uninstall WordPress themes
13996
+ * @param {string} username
13997
+ * @param {string} software WordPress installation (software) identifier
13998
+ * @param {WordPressV1ThemesUninstallThemesRequest} wordPressV1ThemesUninstallThemesRequest
13999
+ * @param {*} [options] Override http request option.
14000
+ * @throws {RequiredError}
14001
+ * @memberof WordPressThemesApi
14002
+ */
14003
+ uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options) {
14004
+ return (0, exports.WordPressThemesApiFp)(this.configuration).uninstallWordPressThemesV1(username, software, wordPressV1ThemesUninstallThemesRequest, options).then((request) => request(this.axios, this.basePath));
14005
+ }
14006
+ /**
14007
+ * 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.
14008
+ * @summary Update WordPress themes
14009
+ * @param {string} username
14010
+ * @param {string} software WordPress installation (software) identifier
14011
+ * @param {WordPressV1ThemesUpdateThemesRequest} wordPressV1ThemesUpdateThemesRequest
14012
+ * @param {*} [options] Override http request option.
14013
+ * @throws {RequiredError}
14014
+ * @memberof WordPressThemesApi
14015
+ */
14016
+ updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options) {
14017
+ return (0, exports.WordPressThemesApiFp)(this.configuration).updateWordPressThemesV1(username, software, wordPressV1ThemesUpdateThemesRequest, options).then((request) => request(this.axios, this.basePath));
14018
+ }
14019
+ }
14020
+ exports.WordPressThemesApi = WordPressThemesApi;