hostinger-api-sdk 1.1.0 → 1.2.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 (44) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1227 -29
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +768 -1
  7. package/dist/api.js +818 -6
  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 +768 -1
  15. package/dist/esm/api.js +801 -1
  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/EcommerceMiscellaneousApi.md +54 -0
  27. package/docs/EcommerceSalesChannelsApi.md +120 -0
  28. package/docs/EcommerceV1MiscellaneousCustomStorefrontInstructionsResource.md +20 -0
  29. package/docs/EcommerceV1SalesChannelSalesChannelCreationResource.md +20 -0
  30. package/docs/EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel.md +32 -0
  31. package/docs/EcommerceV1SalesChannelSalesChannelListResource.md +20 -0
  32. package/docs/EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner.md +32 -0
  33. package/docs/EcommerceV1SalesChannelStoreRequest.md +24 -0
  34. package/docs/HostingPHPApi.md +364 -0
  35. package/docs/HostingV1PhpPhpDetailsResource.md +30 -0
  36. package/docs/HostingV1PhpPhpInfoResource.md +20 -0
  37. package/docs/HostingV1PhpPhpOptionResource.md +30 -0
  38. package/docs/HostingV1PhpPhpVersionsResource.md +22 -0
  39. package/docs/HostingV1PhpUpdatePhpExtensionsRequest.md +22 -0
  40. package/docs/HostingV1PhpUpdatePhpOptionsRequest.md +20 -0
  41. package/docs/HostingV1PhpUpdatePhpOptionsRequestOptionsValue.md +18 -0
  42. package/docs/HostingV1PhpUpdatePhpVersionRequest.md +20 -0
  43. package/index.ts +1 -1
  44. 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: 1.1.0
7
+ * API Version: 1.2.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.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
- 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.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;
22
+ exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
23
+ exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = void 0;
24
+ exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = void 0;
25
+ exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = void 0;
26
+ exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -145,6 +145,25 @@ exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = {
145
145
  Physical: 'physical',
146
146
  Digital: 'digital'
147
147
  };
148
+ exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = {
149
+ Builder: 'builder',
150
+ Horizons: 'horizons',
151
+ Tiktok: 'tiktok',
152
+ Custom: 'custom',
153
+ QuickLink: 'quick-link',
154
+ Wordpress: 'wordpress'
155
+ };
156
+ exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = {
157
+ Builder: 'builder',
158
+ Horizons: 'horizons',
159
+ Tiktok: 'tiktok',
160
+ Custom: 'custom',
161
+ QuickLink: 'quick-link',
162
+ Wordpress: 'wordpress'
163
+ };
164
+ exports.EcommerceV1SalesChannelStoreRequestTypeEnum = {
165
+ Custom: 'custom'
166
+ };
148
167
  exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = {
149
168
  Builder: 'builder',
150
169
  Horizons: 'horizons',
@@ -3095,6 +3114,105 @@ class DomainsWHOISApi extends base_1.BaseAPI {
3095
3114
  }
3096
3115
  }
3097
3116
  exports.DomainsWHOISApi = DomainsWHOISApi;
3117
+ /**
3118
+ * EcommerceMiscellaneousApi - axios parameter creator
3119
+ * @export
3120
+ */
3121
+ const EcommerceMiscellaneousApiAxiosParamCreator = function (configuration) {
3122
+ return {
3123
+ /**
3124
+ * Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
3125
+ * @summary Get custom storefront setup instructions
3126
+ * @param {*} [options] Override http request option.
3127
+ * @throws {RequiredError}
3128
+ */
3129
+ getCustomStorefrontSetupInstructionsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3130
+ const localVarPath = `/api/ecommerce/v1/miscellaneous/custom-storefront-instructions`;
3131
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3132
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3133
+ let baseOptions;
3134
+ if (configuration) {
3135
+ baseOptions = configuration.baseOptions;
3136
+ }
3137
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3138
+ const localVarHeaderParameter = {};
3139
+ const localVarQueryParameter = {};
3140
+ // authentication apiToken required
3141
+ // http bearer authentication required
3142
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3143
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3144
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3145
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3146
+ return {
3147
+ url: (0, common_1.toPathString)(localVarUrlObj),
3148
+ options: localVarRequestOptions,
3149
+ };
3150
+ }),
3151
+ };
3152
+ };
3153
+ exports.EcommerceMiscellaneousApiAxiosParamCreator = EcommerceMiscellaneousApiAxiosParamCreator;
3154
+ /**
3155
+ * EcommerceMiscellaneousApi - functional programming interface
3156
+ * @export
3157
+ */
3158
+ const EcommerceMiscellaneousApiFp = function (configuration) {
3159
+ const localVarAxiosParamCreator = (0, exports.EcommerceMiscellaneousApiAxiosParamCreator)(configuration);
3160
+ return {
3161
+ /**
3162
+ * Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
3163
+ * @summary Get custom storefront setup instructions
3164
+ * @param {*} [options] Override http request option.
3165
+ * @throws {RequiredError}
3166
+ */
3167
+ getCustomStorefrontSetupInstructionsV1(options) {
3168
+ return __awaiter(this, void 0, void 0, function* () {
3169
+ var _a, _b;
3170
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomStorefrontSetupInstructionsV1(options);
3171
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceMiscellaneousApi.getCustomStorefrontSetupInstructionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3172
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3173
+ });
3174
+ },
3175
+ };
3176
+ };
3177
+ exports.EcommerceMiscellaneousApiFp = EcommerceMiscellaneousApiFp;
3178
+ /**
3179
+ * EcommerceMiscellaneousApi - factory interface
3180
+ * @export
3181
+ */
3182
+ const EcommerceMiscellaneousApiFactory = function (configuration, basePath, axios) {
3183
+ const localVarFp = (0, exports.EcommerceMiscellaneousApiFp)(configuration);
3184
+ return {
3185
+ /**
3186
+ * Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
3187
+ * @summary Get custom storefront setup instructions
3188
+ * @param {*} [options] Override http request option.
3189
+ * @throws {RequiredError}
3190
+ */
3191
+ getCustomStorefrontSetupInstructionsV1(options) {
3192
+ return localVarFp.getCustomStorefrontSetupInstructionsV1(options).then((request) => request(axios, basePath));
3193
+ },
3194
+ };
3195
+ };
3196
+ exports.EcommerceMiscellaneousApiFactory = EcommerceMiscellaneousApiFactory;
3197
+ /**
3198
+ * EcommerceMiscellaneousApi - object-oriented interface
3199
+ * @export
3200
+ * @class EcommerceMiscellaneousApi
3201
+ * @extends {BaseAPI}
3202
+ */
3203
+ class EcommerceMiscellaneousApi extends base_1.BaseAPI {
3204
+ /**
3205
+ * Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
3206
+ * @summary Get custom storefront setup instructions
3207
+ * @param {*} [options] Override http request option.
3208
+ * @throws {RequiredError}
3209
+ * @memberof EcommerceMiscellaneousApi
3210
+ */
3211
+ getCustomStorefrontSetupInstructionsV1(options) {
3212
+ return (0, exports.EcommerceMiscellaneousApiFp)(this.configuration).getCustomStorefrontSetupInstructionsV1(options).then((request) => request(this.axios, this.basePath));
3213
+ }
3214
+ }
3215
+ exports.EcommerceMiscellaneousApi = EcommerceMiscellaneousApi;
3098
3216
  /**
3099
3217
  * EcommercePaymentsApi - axios parameter creator
3100
3218
  * @export
@@ -3399,6 +3517,188 @@ class EcommerceProductsApi extends base_1.BaseAPI {
3399
3517
  }
3400
3518
  }
3401
3519
  exports.EcommerceProductsApi = EcommerceProductsApi;
3520
+ /**
3521
+ * EcommerceSalesChannelsApi - axios parameter creator
3522
+ * @export
3523
+ */
3524
+ const EcommerceSalesChannelsApiAxiosParamCreator = function (configuration) {
3525
+ return {
3526
+ /**
3527
+ * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
3528
+ * @summary Create a custom sales channel
3529
+ * @param {string} storeId The ID of the store to create the sales channel for.
3530
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3531
+ * @param {*} [options] Override http request option.
3532
+ * @throws {RequiredError}
3533
+ */
3534
+ createACustomSalesChannelV1: (storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1SalesChannelStoreRequest, options = {}) {
3535
+ // verify required parameter 'storeId' is not null or undefined
3536
+ (0, common_1.assertParamExists)('createACustomSalesChannelV1', 'storeId', storeId);
3537
+ // verify required parameter 'ecommerceV1SalesChannelStoreRequest' is not null or undefined
3538
+ (0, common_1.assertParamExists)('createACustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest);
3539
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
3540
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3541
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3542
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3543
+ let baseOptions;
3544
+ if (configuration) {
3545
+ baseOptions = configuration.baseOptions;
3546
+ }
3547
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3548
+ const localVarHeaderParameter = {};
3549
+ const localVarQueryParameter = {};
3550
+ // authentication apiToken required
3551
+ // http bearer authentication required
3552
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3553
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3554
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3555
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3556
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3557
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1SalesChannelStoreRequest, localVarRequestOptions, configuration);
3558
+ return {
3559
+ url: (0, common_1.toPathString)(localVarUrlObj),
3560
+ options: localVarRequestOptions,
3561
+ };
3562
+ }),
3563
+ /**
3564
+ * List a store\'s active sales channels with their full metadata.
3565
+ * @summary List sales channels
3566
+ * @param {string} storeId The ID of the store to list sales channels for.
3567
+ * @param {*} [options] Override http request option.
3568
+ * @throws {RequiredError}
3569
+ */
3570
+ listSalesChannelsV1: (storeId_1, ...args_1) => __awaiter(this, [storeId_1, ...args_1], void 0, function* (storeId, options = {}) {
3571
+ // verify required parameter 'storeId' is not null or undefined
3572
+ (0, common_1.assertParamExists)('listSalesChannelsV1', 'storeId', storeId);
3573
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
3574
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3575
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3576
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3577
+ let baseOptions;
3578
+ if (configuration) {
3579
+ baseOptions = configuration.baseOptions;
3580
+ }
3581
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3582
+ const localVarHeaderParameter = {};
3583
+ const localVarQueryParameter = {};
3584
+ // authentication apiToken required
3585
+ // http bearer authentication required
3586
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3587
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3588
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3589
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3590
+ return {
3591
+ url: (0, common_1.toPathString)(localVarUrlObj),
3592
+ options: localVarRequestOptions,
3593
+ };
3594
+ }),
3595
+ };
3596
+ };
3597
+ exports.EcommerceSalesChannelsApiAxiosParamCreator = EcommerceSalesChannelsApiAxiosParamCreator;
3598
+ /**
3599
+ * EcommerceSalesChannelsApi - functional programming interface
3600
+ * @export
3601
+ */
3602
+ const EcommerceSalesChannelsApiFp = function (configuration) {
3603
+ const localVarAxiosParamCreator = (0, exports.EcommerceSalesChannelsApiAxiosParamCreator)(configuration);
3604
+ return {
3605
+ /**
3606
+ * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
3607
+ * @summary Create a custom sales channel
3608
+ * @param {string} storeId The ID of the store to create the sales channel for.
3609
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3610
+ * @param {*} [options] Override http request option.
3611
+ * @throws {RequiredError}
3612
+ */
3613
+ createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3614
+ return __awaiter(this, void 0, void 0, function* () {
3615
+ var _a, _b;
3616
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
3617
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceSalesChannelsApi.createACustomSalesChannelV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3618
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3619
+ });
3620
+ },
3621
+ /**
3622
+ * List a store\'s active sales channels with their full metadata.
3623
+ * @summary List sales channels
3624
+ * @param {string} storeId The ID of the store to list sales channels for.
3625
+ * @param {*} [options] Override http request option.
3626
+ * @throws {RequiredError}
3627
+ */
3628
+ listSalesChannelsV1(storeId, options) {
3629
+ return __awaiter(this, void 0, void 0, function* () {
3630
+ var _a, _b;
3631
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSalesChannelsV1(storeId, options);
3632
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceSalesChannelsApi.listSalesChannelsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3633
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3634
+ });
3635
+ },
3636
+ };
3637
+ };
3638
+ exports.EcommerceSalesChannelsApiFp = EcommerceSalesChannelsApiFp;
3639
+ /**
3640
+ * EcommerceSalesChannelsApi - factory interface
3641
+ * @export
3642
+ */
3643
+ const EcommerceSalesChannelsApiFactory = function (configuration, basePath, axios) {
3644
+ const localVarFp = (0, exports.EcommerceSalesChannelsApiFp)(configuration);
3645
+ return {
3646
+ /**
3647
+ * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
3648
+ * @summary Create a custom sales channel
3649
+ * @param {string} storeId The ID of the store to create the sales channel for.
3650
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3651
+ * @param {*} [options] Override http request option.
3652
+ * @throws {RequiredError}
3653
+ */
3654
+ createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3655
+ return localVarFp.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
3656
+ },
3657
+ /**
3658
+ * List a store\'s active sales channels with their full metadata.
3659
+ * @summary List sales channels
3660
+ * @param {string} storeId The ID of the store to list sales channels for.
3661
+ * @param {*} [options] Override http request option.
3662
+ * @throws {RequiredError}
3663
+ */
3664
+ listSalesChannelsV1(storeId, options) {
3665
+ return localVarFp.listSalesChannelsV1(storeId, options).then((request) => request(axios, basePath));
3666
+ },
3667
+ };
3668
+ };
3669
+ exports.EcommerceSalesChannelsApiFactory = EcommerceSalesChannelsApiFactory;
3670
+ /**
3671
+ * EcommerceSalesChannelsApi - object-oriented interface
3672
+ * @export
3673
+ * @class EcommerceSalesChannelsApi
3674
+ * @extends {BaseAPI}
3675
+ */
3676
+ class EcommerceSalesChannelsApi extends base_1.BaseAPI {
3677
+ /**
3678
+ * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
3679
+ * @summary Create a custom sales channel
3680
+ * @param {string} storeId The ID of the store to create the sales channel for.
3681
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3682
+ * @param {*} [options] Override http request option.
3683
+ * @throws {RequiredError}
3684
+ * @memberof EcommerceSalesChannelsApi
3685
+ */
3686
+ createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3687
+ return (0, exports.EcommerceSalesChannelsApiFp)(this.configuration).createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
3688
+ }
3689
+ /**
3690
+ * List a store\'s active sales channels with their full metadata.
3691
+ * @summary List sales channels
3692
+ * @param {string} storeId The ID of the store to list sales channels for.
3693
+ * @param {*} [options] Override http request option.
3694
+ * @throws {RequiredError}
3695
+ * @memberof EcommerceSalesChannelsApi
3696
+ */
3697
+ listSalesChannelsV1(storeId, options) {
3698
+ return (0, exports.EcommerceSalesChannelsApiFp)(this.configuration).listSalesChannelsV1(storeId, options).then((request) => request(this.axios, this.basePath));
3699
+ }
3700
+ }
3701
+ exports.EcommerceSalesChannelsApi = EcommerceSalesChannelsApi;
3402
3702
  /**
3403
3703
  * EcommerceShippingApi - axios parameter creator
3404
3704
  * @export
@@ -6237,6 +6537,518 @@ exports.ListOrdersV1StatusesEnum = {
6237
6537
  Deleted: 'deleted',
6238
6538
  Suspended: 'suspended'
6239
6539
  };
6540
+ /**
6541
+ * HostingPHPApi - axios parameter creator
6542
+ * @export
6543
+ */
6544
+ const HostingPHPApiAxiosParamCreator = function (configuration) {
6545
+ return {
6546
+ /**
6547
+ * Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
6548
+ * @summary Get PHP details
6549
+ * @param {string} username
6550
+ * @param {string} domain Domain name
6551
+ * @param {*} [options] Override http request option.
6552
+ * @throws {RequiredError}
6553
+ */
6554
+ getPHPDetailsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
6555
+ // verify required parameter 'username' is not null or undefined
6556
+ (0, common_1.assertParamExists)('getPHPDetailsV1', 'username', username);
6557
+ // verify required parameter 'domain' is not null or undefined
6558
+ (0, common_1.assertParamExists)('getPHPDetailsV1', 'domain', domain);
6559
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/details`
6560
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6561
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6562
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6563
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6564
+ let baseOptions;
6565
+ if (configuration) {
6566
+ baseOptions = configuration.baseOptions;
6567
+ }
6568
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6569
+ const localVarHeaderParameter = {};
6570
+ const localVarQueryParameter = {};
6571
+ // authentication apiToken required
6572
+ // http bearer authentication required
6573
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6574
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6575
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6576
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6577
+ return {
6578
+ url: (0, common_1.toPathString)(localVarUrlObj),
6579
+ options: localVarRequestOptions,
6580
+ };
6581
+ }),
6582
+ /**
6583
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
6584
+ * @summary Get PHP info
6585
+ * @param {string} username
6586
+ * @param {string} domain Domain name
6587
+ * @param {*} [options] Override http request option.
6588
+ * @throws {RequiredError}
6589
+ */
6590
+ getPHPInfoV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
6591
+ // verify required parameter 'username' is not null or undefined
6592
+ (0, common_1.assertParamExists)('getPHPInfoV1', 'username', username);
6593
+ // verify required parameter 'domain' is not null or undefined
6594
+ (0, common_1.assertParamExists)('getPHPInfoV1', 'domain', domain);
6595
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info`
6596
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6597
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6598
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6599
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6600
+ let baseOptions;
6601
+ if (configuration) {
6602
+ baseOptions = configuration.baseOptions;
6603
+ }
6604
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6605
+ const localVarHeaderParameter = {};
6606
+ const localVarQueryParameter = {};
6607
+ // authentication apiToken required
6608
+ // http bearer authentication required
6609
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6610
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6611
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6612
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6613
+ return {
6614
+ url: (0, common_1.toPathString)(localVarUrlObj),
6615
+ options: localVarRequestOptions,
6616
+ };
6617
+ }),
6618
+ /**
6619
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
6620
+ * @summary Reset PHP extensions
6621
+ * @param {string} username
6622
+ * @param {string} domain Domain name
6623
+ * @param {*} [options] Override http request option.
6624
+ * @throws {RequiredError}
6625
+ */
6626
+ resetPHPExtensionsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
6627
+ // verify required parameter 'username' is not null or undefined
6628
+ (0, common_1.assertParamExists)('resetPHPExtensionsV1', 'username', username);
6629
+ // verify required parameter 'domain' is not null or undefined
6630
+ (0, common_1.assertParamExists)('resetPHPExtensionsV1', 'domain', domain);
6631
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions/reset`
6632
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6633
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6634
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6635
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6636
+ let baseOptions;
6637
+ if (configuration) {
6638
+ baseOptions = configuration.baseOptions;
6639
+ }
6640
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6641
+ const localVarHeaderParameter = {};
6642
+ const localVarQueryParameter = {};
6643
+ // authentication apiToken required
6644
+ // http bearer authentication required
6645
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6646
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6647
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6648
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6649
+ return {
6650
+ url: (0, common_1.toPathString)(localVarUrlObj),
6651
+ options: localVarRequestOptions,
6652
+ };
6653
+ }),
6654
+ /**
6655
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
6656
+ * @summary Update PHP extensions
6657
+ * @param {string} username
6658
+ * @param {string} domain Domain name
6659
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
6660
+ * @param {*} [options] Override http request option.
6661
+ * @throws {RequiredError}
6662
+ */
6663
+ updatePHPExtensionsV1: (username_1, domain_1, hostingV1PhpUpdatePhpExtensionsRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1PhpUpdatePhpExtensionsRequest_1, ...args_1], void 0, function* (username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options = {}) {
6664
+ // verify required parameter 'username' is not null or undefined
6665
+ (0, common_1.assertParamExists)('updatePHPExtensionsV1', 'username', username);
6666
+ // verify required parameter 'domain' is not null or undefined
6667
+ (0, common_1.assertParamExists)('updatePHPExtensionsV1', 'domain', domain);
6668
+ // verify required parameter 'hostingV1PhpUpdatePhpExtensionsRequest' is not null or undefined
6669
+ (0, common_1.assertParamExists)('updatePHPExtensionsV1', 'hostingV1PhpUpdatePhpExtensionsRequest', hostingV1PhpUpdatePhpExtensionsRequest);
6670
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions`
6671
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6672
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6673
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6674
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6675
+ let baseOptions;
6676
+ if (configuration) {
6677
+ baseOptions = configuration.baseOptions;
6678
+ }
6679
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6680
+ const localVarHeaderParameter = {};
6681
+ const localVarQueryParameter = {};
6682
+ // authentication apiToken required
6683
+ // http bearer authentication required
6684
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6685
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6686
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6687
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6688
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6689
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1PhpUpdatePhpExtensionsRequest, localVarRequestOptions, configuration);
6690
+ return {
6691
+ url: (0, common_1.toPathString)(localVarUrlObj),
6692
+ options: localVarRequestOptions,
6693
+ };
6694
+ }),
6695
+ /**
6696
+ * Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
6697
+ * @summary Update PHP options
6698
+ * @param {string} username
6699
+ * @param {string} domain Domain name
6700
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
6701
+ * @param {*} [options] Override http request option.
6702
+ * @throws {RequiredError}
6703
+ */
6704
+ updatePHPOptionsV1: (username_1, domain_1, hostingV1PhpUpdatePhpOptionsRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1PhpUpdatePhpOptionsRequest_1, ...args_1], void 0, function* (username, domain, hostingV1PhpUpdatePhpOptionsRequest, options = {}) {
6705
+ // verify required parameter 'username' is not null or undefined
6706
+ (0, common_1.assertParamExists)('updatePHPOptionsV1', 'username', username);
6707
+ // verify required parameter 'domain' is not null or undefined
6708
+ (0, common_1.assertParamExists)('updatePHPOptionsV1', 'domain', domain);
6709
+ // verify required parameter 'hostingV1PhpUpdatePhpOptionsRequest' is not null or undefined
6710
+ (0, common_1.assertParamExists)('updatePHPOptionsV1', 'hostingV1PhpUpdatePhpOptionsRequest', hostingV1PhpUpdatePhpOptionsRequest);
6711
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/options`
6712
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6713
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6714
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6715
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6716
+ let baseOptions;
6717
+ if (configuration) {
6718
+ baseOptions = configuration.baseOptions;
6719
+ }
6720
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6721
+ const localVarHeaderParameter = {};
6722
+ const localVarQueryParameter = {};
6723
+ // authentication apiToken required
6724
+ // http bearer authentication required
6725
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6726
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6727
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6728
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6729
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6730
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1PhpUpdatePhpOptionsRequest, localVarRequestOptions, configuration);
6731
+ return {
6732
+ url: (0, common_1.toPathString)(localVarUrlObj),
6733
+ options: localVarRequestOptions,
6734
+ };
6735
+ }),
6736
+ /**
6737
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
6738
+ * @summary Update PHP version
6739
+ * @param {string} username
6740
+ * @param {string} domain Domain name
6741
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
6742
+ * @param {*} [options] Override http request option.
6743
+ * @throws {RequiredError}
6744
+ */
6745
+ updatePHPVersionV1: (username_1, domain_1, hostingV1PhpUpdatePhpVersionRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1PhpUpdatePhpVersionRequest_1, ...args_1], void 0, function* (username, domain, hostingV1PhpUpdatePhpVersionRequest, options = {}) {
6746
+ // verify required parameter 'username' is not null or undefined
6747
+ (0, common_1.assertParamExists)('updatePHPVersionV1', 'username', username);
6748
+ // verify required parameter 'domain' is not null or undefined
6749
+ (0, common_1.assertParamExists)('updatePHPVersionV1', 'domain', domain);
6750
+ // verify required parameter 'hostingV1PhpUpdatePhpVersionRequest' is not null or undefined
6751
+ (0, common_1.assertParamExists)('updatePHPVersionV1', 'hostingV1PhpUpdatePhpVersionRequest', hostingV1PhpUpdatePhpVersionRequest);
6752
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/version`
6753
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6754
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6755
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6756
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6757
+ let baseOptions;
6758
+ if (configuration) {
6759
+ baseOptions = configuration.baseOptions;
6760
+ }
6761
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6762
+ const localVarHeaderParameter = {};
6763
+ const localVarQueryParameter = {};
6764
+ // authentication apiToken required
6765
+ // http bearer authentication required
6766
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6767
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6768
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6769
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6770
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6771
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1PhpUpdatePhpVersionRequest, localVarRequestOptions, configuration);
6772
+ return {
6773
+ url: (0, common_1.toPathString)(localVarUrlObj),
6774
+ options: localVarRequestOptions,
6775
+ };
6776
+ }),
6777
+ };
6778
+ };
6779
+ exports.HostingPHPApiAxiosParamCreator = HostingPHPApiAxiosParamCreator;
6780
+ /**
6781
+ * HostingPHPApi - functional programming interface
6782
+ * @export
6783
+ */
6784
+ const HostingPHPApiFp = function (configuration) {
6785
+ const localVarAxiosParamCreator = (0, exports.HostingPHPApiAxiosParamCreator)(configuration);
6786
+ return {
6787
+ /**
6788
+ * Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
6789
+ * @summary Get PHP details
6790
+ * @param {string} username
6791
+ * @param {string} domain Domain name
6792
+ * @param {*} [options] Override http request option.
6793
+ * @throws {RequiredError}
6794
+ */
6795
+ getPHPDetailsV1(username, domain, options) {
6796
+ return __awaiter(this, void 0, void 0, function* () {
6797
+ var _a, _b;
6798
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPHPDetailsV1(username, domain, options);
6799
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPHPApi.getPHPDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6800
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6801
+ });
6802
+ },
6803
+ /**
6804
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
6805
+ * @summary Get PHP info
6806
+ * @param {string} username
6807
+ * @param {string} domain Domain name
6808
+ * @param {*} [options] Override http request option.
6809
+ * @throws {RequiredError}
6810
+ */
6811
+ getPHPInfoV1(username, domain, options) {
6812
+ return __awaiter(this, void 0, void 0, function* () {
6813
+ var _a, _b;
6814
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPHPInfoV1(username, domain, options);
6815
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPHPApi.getPHPInfoV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6816
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6817
+ });
6818
+ },
6819
+ /**
6820
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
6821
+ * @summary Reset PHP extensions
6822
+ * @param {string} username
6823
+ * @param {string} domain Domain name
6824
+ * @param {*} [options] Override http request option.
6825
+ * @throws {RequiredError}
6826
+ */
6827
+ resetPHPExtensionsV1(username, domain, options) {
6828
+ return __awaiter(this, void 0, void 0, function* () {
6829
+ var _a, _b;
6830
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resetPHPExtensionsV1(username, domain, options);
6831
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPHPApi.resetPHPExtensionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6832
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6833
+ });
6834
+ },
6835
+ /**
6836
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
6837
+ * @summary Update PHP extensions
6838
+ * @param {string} username
6839
+ * @param {string} domain Domain name
6840
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
6841
+ * @param {*} [options] Override http request option.
6842
+ * @throws {RequiredError}
6843
+ */
6844
+ updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
6845
+ return __awaiter(this, void 0, void 0, function* () {
6846
+ var _a, _b;
6847
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options);
6848
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPHPApi.updatePHPExtensionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6849
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6850
+ });
6851
+ },
6852
+ /**
6853
+ * Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
6854
+ * @summary Update PHP options
6855
+ * @param {string} username
6856
+ * @param {string} domain Domain name
6857
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
6858
+ * @param {*} [options] Override http request option.
6859
+ * @throws {RequiredError}
6860
+ */
6861
+ updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
6862
+ return __awaiter(this, void 0, void 0, function* () {
6863
+ var _a, _b;
6864
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options);
6865
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPHPApi.updatePHPOptionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6866
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6867
+ });
6868
+ },
6869
+ /**
6870
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
6871
+ * @summary Update PHP version
6872
+ * @param {string} username
6873
+ * @param {string} domain Domain name
6874
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
6875
+ * @param {*} [options] Override http request option.
6876
+ * @throws {RequiredError}
6877
+ */
6878
+ updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
6879
+ return __awaiter(this, void 0, void 0, function* () {
6880
+ var _a, _b;
6881
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options);
6882
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPHPApi.updatePHPVersionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6883
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6884
+ });
6885
+ },
6886
+ };
6887
+ };
6888
+ exports.HostingPHPApiFp = HostingPHPApiFp;
6889
+ /**
6890
+ * HostingPHPApi - factory interface
6891
+ * @export
6892
+ */
6893
+ const HostingPHPApiFactory = function (configuration, basePath, axios) {
6894
+ const localVarFp = (0, exports.HostingPHPApiFp)(configuration);
6895
+ return {
6896
+ /**
6897
+ * Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
6898
+ * @summary Get PHP details
6899
+ * @param {string} username
6900
+ * @param {string} domain Domain name
6901
+ * @param {*} [options] Override http request option.
6902
+ * @throws {RequiredError}
6903
+ */
6904
+ getPHPDetailsV1(username, domain, options) {
6905
+ return localVarFp.getPHPDetailsV1(username, domain, options).then((request) => request(axios, basePath));
6906
+ },
6907
+ /**
6908
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
6909
+ * @summary Get PHP info
6910
+ * @param {string} username
6911
+ * @param {string} domain Domain name
6912
+ * @param {*} [options] Override http request option.
6913
+ * @throws {RequiredError}
6914
+ */
6915
+ getPHPInfoV1(username, domain, options) {
6916
+ return localVarFp.getPHPInfoV1(username, domain, options).then((request) => request(axios, basePath));
6917
+ },
6918
+ /**
6919
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
6920
+ * @summary Reset PHP extensions
6921
+ * @param {string} username
6922
+ * @param {string} domain Domain name
6923
+ * @param {*} [options] Override http request option.
6924
+ * @throws {RequiredError}
6925
+ */
6926
+ resetPHPExtensionsV1(username, domain, options) {
6927
+ return localVarFp.resetPHPExtensionsV1(username, domain, options).then((request) => request(axios, basePath));
6928
+ },
6929
+ /**
6930
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
6931
+ * @summary Update PHP extensions
6932
+ * @param {string} username
6933
+ * @param {string} domain Domain name
6934
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
6935
+ * @param {*} [options] Override http request option.
6936
+ * @throws {RequiredError}
6937
+ */
6938
+ updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
6939
+ return localVarFp.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(axios, basePath));
6940
+ },
6941
+ /**
6942
+ * Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
6943
+ * @summary Update PHP options
6944
+ * @param {string} username
6945
+ * @param {string} domain Domain name
6946
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
6947
+ * @param {*} [options] Override http request option.
6948
+ * @throws {RequiredError}
6949
+ */
6950
+ updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
6951
+ return localVarFp.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(axios, basePath));
6952
+ },
6953
+ /**
6954
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
6955
+ * @summary Update PHP version
6956
+ * @param {string} username
6957
+ * @param {string} domain Domain name
6958
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
6959
+ * @param {*} [options] Override http request option.
6960
+ * @throws {RequiredError}
6961
+ */
6962
+ updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
6963
+ return localVarFp.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(axios, basePath));
6964
+ },
6965
+ };
6966
+ };
6967
+ exports.HostingPHPApiFactory = HostingPHPApiFactory;
6968
+ /**
6969
+ * HostingPHPApi - object-oriented interface
6970
+ * @export
6971
+ * @class HostingPHPApi
6972
+ * @extends {BaseAPI}
6973
+ */
6974
+ class HostingPHPApi extends base_1.BaseAPI {
6975
+ /**
6976
+ * Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
6977
+ * @summary Get PHP details
6978
+ * @param {string} username
6979
+ * @param {string} domain Domain name
6980
+ * @param {*} [options] Override http request option.
6981
+ * @throws {RequiredError}
6982
+ * @memberof HostingPHPApi
6983
+ */
6984
+ getPHPDetailsV1(username, domain, options) {
6985
+ return (0, exports.HostingPHPApiFp)(this.configuration).getPHPDetailsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
6986
+ }
6987
+ /**
6988
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
6989
+ * @summary Get PHP info
6990
+ * @param {string} username
6991
+ * @param {string} domain Domain name
6992
+ * @param {*} [options] Override http request option.
6993
+ * @throws {RequiredError}
6994
+ * @memberof HostingPHPApi
6995
+ */
6996
+ getPHPInfoV1(username, domain, options) {
6997
+ return (0, exports.HostingPHPApiFp)(this.configuration).getPHPInfoV1(username, domain, options).then((request) => request(this.axios, this.basePath));
6998
+ }
6999
+ /**
7000
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
7001
+ * @summary Reset PHP extensions
7002
+ * @param {string} username
7003
+ * @param {string} domain Domain name
7004
+ * @param {*} [options] Override http request option.
7005
+ * @throws {RequiredError}
7006
+ * @memberof HostingPHPApi
7007
+ */
7008
+ resetPHPExtensionsV1(username, domain, options) {
7009
+ return (0, exports.HostingPHPApiFp)(this.configuration).resetPHPExtensionsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
7010
+ }
7011
+ /**
7012
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
7013
+ * @summary Update PHP extensions
7014
+ * @param {string} username
7015
+ * @param {string} domain Domain name
7016
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
7017
+ * @param {*} [options] Override http request option.
7018
+ * @throws {RequiredError}
7019
+ * @memberof HostingPHPApi
7020
+ */
7021
+ updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
7022
+ return (0, exports.HostingPHPApiFp)(this.configuration).updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(this.axios, this.basePath));
7023
+ }
7024
+ /**
7025
+ * Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
7026
+ * @summary Update PHP options
7027
+ * @param {string} username
7028
+ * @param {string} domain Domain name
7029
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
7030
+ * @param {*} [options] Override http request option.
7031
+ * @throws {RequiredError}
7032
+ * @memberof HostingPHPApi
7033
+ */
7034
+ updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
7035
+ return (0, exports.HostingPHPApiFp)(this.configuration).updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(this.axios, this.basePath));
7036
+ }
7037
+ /**
7038
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
7039
+ * @summary Update PHP version
7040
+ * @param {string} username
7041
+ * @param {string} domain Domain name
7042
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
7043
+ * @param {*} [options] Override http request option.
7044
+ * @throws {RequiredError}
7045
+ * @memberof HostingPHPApi
7046
+ */
7047
+ updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
7048
+ return (0, exports.HostingPHPApiFp)(this.configuration).updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(this.axios, this.basePath));
7049
+ }
7050
+ }
7051
+ exports.HostingPHPApi = HostingPHPApi;
6240
7052
  /**
6241
7053
  * HostingWebsitesApi - axios parameter creator
6242
7054
  * @export