@newfold/huapi-js 2.1305.0 → 2.1317.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.d.ts +96 -1
- package/src/index.js +75 -1
- package/src/index.msw.d.ts +7 -1
- package/src/index.msw.js +38 -2
- package/src/index.schemas.d.ts +84 -7
- package/src/index.schemas.js +9 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
|
-
import type { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbList200, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200Item, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailList200, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesParams, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
4
|
+
import type { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbList200, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200Item, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailList200, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesParams, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -3851,6 +3851,38 @@ export declare function usePhpErrors<TData = Awaited<ReturnType<typeof phpErrors
|
|
|
3851
3851
|
}): UseQueryResult<TData, TError> & {
|
|
3852
3852
|
queryKey: QueryKey;
|
|
3853
3853
|
};
|
|
3854
|
+
/**
|
|
3855
|
+
* Product license details
|
|
3856
|
+
* @summary Product license details
|
|
3857
|
+
*/
|
|
3858
|
+
export declare const productLicenseDetails: (hostingId: string, params: ProductLicenseDetailsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<ProductLicenseDetails200>>;
|
|
3859
|
+
export declare const getProductLicenseDetailsQueryKey: (hostingId: string, params: ProductLicenseDetailsParams) => readonly [`/v1/hosting/${string}/product/license-details`, ...ProductLicenseDetailsParams[]];
|
|
3860
|
+
export declare const getProductLicenseDetailsQueryOptions: <TData = AxiosResponse<ProductLicenseDetails200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params: ProductLicenseDetailsParams, options?: {
|
|
3861
|
+
query?: Partial<UseQueryOptions<AxiosResponse<ProductLicenseDetails200, any>, TError, TData, QueryKey>> | undefined;
|
|
3862
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3863
|
+
} | undefined) => UseQueryOptions<AxiosResponse<ProductLicenseDetails200, any>, TError, TData, QueryKey> & {
|
|
3864
|
+
queryKey: QueryKey;
|
|
3865
|
+
};
|
|
3866
|
+
export declare type ProductLicenseDetailsQueryResult = NonNullable<Awaited<ReturnType<typeof productLicenseDetails>>>;
|
|
3867
|
+
export declare type ProductLicenseDetailsQueryError = AxiosError<unknown>;
|
|
3868
|
+
export declare function useProductLicenseDetails<TData = Awaited<ReturnType<typeof productLicenseDetails>>, TError = AxiosError<unknown>>(hostingId: string, params: ProductLicenseDetailsParams, options: {
|
|
3869
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof productLicenseDetails>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof productLicenseDetails>>, TError, TData>, 'initialData'>;
|
|
3870
|
+
axios?: AxiosRequestConfig;
|
|
3871
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
3872
|
+
queryKey: QueryKey;
|
|
3873
|
+
};
|
|
3874
|
+
export declare function useProductLicenseDetails<TData = Awaited<ReturnType<typeof productLicenseDetails>>, TError = AxiosError<unknown>>(hostingId: string, params: ProductLicenseDetailsParams, options?: {
|
|
3875
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof productLicenseDetails>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof productLicenseDetails>>, TError, TData>, 'initialData'>;
|
|
3876
|
+
axios?: AxiosRequestConfig;
|
|
3877
|
+
}): UseQueryResult<TData, TError> & {
|
|
3878
|
+
queryKey: QueryKey;
|
|
3879
|
+
};
|
|
3880
|
+
export declare function useProductLicenseDetails<TData = Awaited<ReturnType<typeof productLicenseDetails>>, TError = AxiosError<unknown>>(hostingId: string, params: ProductLicenseDetailsParams, options?: {
|
|
3881
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof productLicenseDetails>>, TError, TData>>;
|
|
3882
|
+
axios?: AxiosRequestConfig;
|
|
3883
|
+
}): UseQueryResult<TData, TError> & {
|
|
3884
|
+
queryKey: QueryKey;
|
|
3885
|
+
};
|
|
3854
3886
|
/**
|
|
3855
3887
|
* Returns the list of site's redirects
|
|
3856
3888
|
* @summary List redirects
|
|
@@ -3977,6 +4009,38 @@ export declare function useHostingResellerSsoWhm<TData = Awaited<ReturnType<type
|
|
|
3977
4009
|
}): UseQueryResult<TData, TError> & {
|
|
3978
4010
|
queryKey: QueryKey;
|
|
3979
4011
|
};
|
|
4012
|
+
/**
|
|
4013
|
+
* Returns total hits and a list of hits for the last N number of days passed as input
|
|
4014
|
+
* @summary Hosting server hits
|
|
4015
|
+
*/
|
|
4016
|
+
export declare const hostingServerHits: (hostingId: string, params: HostingServerHitsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingServerHits200>>;
|
|
4017
|
+
export declare const getHostingServerHitsQueryKey: (hostingId: string, params: HostingServerHitsParams) => readonly [`/v1/hosting/${string}/server-hits`, ...HostingServerHitsParams[]];
|
|
4018
|
+
export declare const getHostingServerHitsQueryOptions: <TData = AxiosResponse<HostingServerHits200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params: HostingServerHitsParams, options?: {
|
|
4019
|
+
query?: Partial<UseQueryOptions<AxiosResponse<HostingServerHits200, any>, TError, TData, QueryKey>> | undefined;
|
|
4020
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
4021
|
+
} | undefined) => UseQueryOptions<AxiosResponse<HostingServerHits200, any>, TError, TData, QueryKey> & {
|
|
4022
|
+
queryKey: QueryKey;
|
|
4023
|
+
};
|
|
4024
|
+
export declare type HostingServerHitsQueryResult = NonNullable<Awaited<ReturnType<typeof hostingServerHits>>>;
|
|
4025
|
+
export declare type HostingServerHitsQueryError = AxiosError<unknown>;
|
|
4026
|
+
export declare function useHostingServerHits<TData = Awaited<ReturnType<typeof hostingServerHits>>, TError = AxiosError<unknown>>(hostingId: string, params: HostingServerHitsParams, options: {
|
|
4027
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingServerHits>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hostingServerHits>>, TError, TData>, 'initialData'>;
|
|
4028
|
+
axios?: AxiosRequestConfig;
|
|
4029
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
4030
|
+
queryKey: QueryKey;
|
|
4031
|
+
};
|
|
4032
|
+
export declare function useHostingServerHits<TData = Awaited<ReturnType<typeof hostingServerHits>>, TError = AxiosError<unknown>>(hostingId: string, params: HostingServerHitsParams, options?: {
|
|
4033
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingServerHits>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hostingServerHits>>, TError, TData>, 'initialData'>;
|
|
4034
|
+
axios?: AxiosRequestConfig;
|
|
4035
|
+
}): UseQueryResult<TData, TError> & {
|
|
4036
|
+
queryKey: QueryKey;
|
|
4037
|
+
};
|
|
4038
|
+
export declare function useHostingServerHits<TData = Awaited<ReturnType<typeof hostingServerHits>>, TError = AxiosError<unknown>>(hostingId: string, params: HostingServerHitsParams, options?: {
|
|
4039
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingServerHits>>, TError, TData>>;
|
|
4040
|
+
axios?: AxiosRequestConfig;
|
|
4041
|
+
}): UseQueryResult<TData, TError> & {
|
|
4042
|
+
queryKey: QueryKey;
|
|
4043
|
+
};
|
|
3980
4044
|
/**
|
|
3981
4045
|
* Enable or disable shell access on an account by setting the shell.SSH key access must be established separately.
|
|
3982
4046
|
* @summary hosting shell toggle
|
|
@@ -6455,6 +6519,37 @@ export declare function useSitesVersion<TData = Awaited<ReturnType<typeof sitesV
|
|
|
6455
6519
|
}): UseQueryResult<TData, TError> & {
|
|
6456
6520
|
queryKey: QueryKey;
|
|
6457
6521
|
};
|
|
6522
|
+
/**
|
|
6523
|
+
* Creates wpsolution license addon for site_id
|
|
6524
|
+
* @summary configure wpsolution license for site_id
|
|
6525
|
+
*/
|
|
6526
|
+
export declare const siteAddonWpsolution: (siteId: number, siteAddonWpsolutionBody: SiteAddonWpsolutionBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteAddonWpsolution200>>;
|
|
6527
|
+
export declare const getSiteAddonWpsolutionMutationOptions: <TError = AxiosError<SiteAddonWpsolution400, any>, TContext = unknown>(options?: {
|
|
6528
|
+
mutation?: UseMutationOptions<AxiosResponse<SiteAddonWpsolution200, any>, TError, {
|
|
6529
|
+
siteId: number;
|
|
6530
|
+
data: SiteAddonWpsolutionBody;
|
|
6531
|
+
}, TContext> | undefined;
|
|
6532
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6533
|
+
} | undefined) => UseMutationOptions<AxiosResponse<SiteAddonWpsolution200, any>, TError, {
|
|
6534
|
+
siteId: number;
|
|
6535
|
+
data: SiteAddonWpsolutionBody;
|
|
6536
|
+
}, TContext>;
|
|
6537
|
+
export declare type SiteAddonWpsolutionMutationResult = NonNullable<Awaited<ReturnType<typeof siteAddonWpsolution>>>;
|
|
6538
|
+
export declare type SiteAddonWpsolutionMutationBody = SiteAddonWpsolutionBody;
|
|
6539
|
+
export declare type SiteAddonWpsolutionMutationError = AxiosError<SiteAddonWpsolution400>;
|
|
6540
|
+
/**
|
|
6541
|
+
* @summary configure wpsolution license for site_id
|
|
6542
|
+
*/
|
|
6543
|
+
export declare const useSiteAddonWpsolution: <TError = AxiosError<SiteAddonWpsolution400, any>, TContext = unknown>(options?: {
|
|
6544
|
+
mutation?: UseMutationOptions<AxiosResponse<SiteAddonWpsolution200, any>, TError, {
|
|
6545
|
+
siteId: number;
|
|
6546
|
+
data: SiteAddonWpsolutionBody;
|
|
6547
|
+
}, TContext> | undefined;
|
|
6548
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6549
|
+
} | undefined) => UseMutationResult<AxiosResponse<SiteAddonWpsolution200, any>, TError, {
|
|
6550
|
+
siteId: number;
|
|
6551
|
+
data: SiteAddonWpsolutionBody;
|
|
6552
|
+
}, TContext>;
|
|
6458
6553
|
/**
|
|
6459
6554
|
* Returns an oauth login URL that can be used to access Sitelock dashboard for a user.
|
|
6460
6555
|
* @summary sso
|
package/src/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.1317.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -2966,6 +2966,32 @@ export function usePhpErrors(hostingId, params, options) {
|
|
|
2966
2966
|
query.queryKey = queryOptions.queryKey;
|
|
2967
2967
|
return query;
|
|
2968
2968
|
}
|
|
2969
|
+
/**
|
|
2970
|
+
* Product license details
|
|
2971
|
+
* @summary Product license details
|
|
2972
|
+
*/
|
|
2973
|
+
export const productLicenseDetails = (hostingId, params, options) => {
|
|
2974
|
+
return axios.get(`/v1/hosting/${hostingId}/product/license-details`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
2975
|
+
};
|
|
2976
|
+
export const getProductLicenseDetailsQueryKey = (hostingId, params) => {
|
|
2977
|
+
return [`/v1/hosting/${hostingId}/product/license-details`, ...(params ? [params] : [])];
|
|
2978
|
+
};
|
|
2979
|
+
export const getProductLicenseDetailsQueryOptions = (hostingId, params, options) => {
|
|
2980
|
+
var _a;
|
|
2981
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2982
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getProductLicenseDetailsQueryKey(hostingId, params);
|
|
2983
|
+
const queryFn = ({ signal }) => productLicenseDetails(hostingId, params, Object.assign({ signal }, axiosOptions));
|
|
2984
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
2985
|
+
};
|
|
2986
|
+
/**
|
|
2987
|
+
* @summary Product license details
|
|
2988
|
+
*/
|
|
2989
|
+
export function useProductLicenseDetails(hostingId, params, options) {
|
|
2990
|
+
const queryOptions = getProductLicenseDetailsQueryOptions(hostingId, params, options);
|
|
2991
|
+
const query = useQuery(queryOptions);
|
|
2992
|
+
query.queryKey = queryOptions.queryKey;
|
|
2993
|
+
return query;
|
|
2994
|
+
}
|
|
2969
2995
|
/**
|
|
2970
2996
|
* Returns the list of site's redirects
|
|
2971
2997
|
* @summary List redirects
|
|
@@ -3062,6 +3088,32 @@ export function useHostingResellerSsoWhm(hostingId, options) {
|
|
|
3062
3088
|
query.queryKey = queryOptions.queryKey;
|
|
3063
3089
|
return query;
|
|
3064
3090
|
}
|
|
3091
|
+
/**
|
|
3092
|
+
* Returns total hits and a list of hits for the last N number of days passed as input
|
|
3093
|
+
* @summary Hosting server hits
|
|
3094
|
+
*/
|
|
3095
|
+
export const hostingServerHits = (hostingId, params, options) => {
|
|
3096
|
+
return axios.get(`/v1/hosting/${hostingId}/server-hits`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
3097
|
+
};
|
|
3098
|
+
export const getHostingServerHitsQueryKey = (hostingId, params) => {
|
|
3099
|
+
return [`/v1/hosting/${hostingId}/server-hits`, ...(params ? [params] : [])];
|
|
3100
|
+
};
|
|
3101
|
+
export const getHostingServerHitsQueryOptions = (hostingId, params, options) => {
|
|
3102
|
+
var _a;
|
|
3103
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
3104
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingServerHitsQueryKey(hostingId, params);
|
|
3105
|
+
const queryFn = ({ signal }) => hostingServerHits(hostingId, params, Object.assign({ signal }, axiosOptions));
|
|
3106
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
3107
|
+
};
|
|
3108
|
+
/**
|
|
3109
|
+
* @summary Hosting server hits
|
|
3110
|
+
*/
|
|
3111
|
+
export function useHostingServerHits(hostingId, params, options) {
|
|
3112
|
+
const queryOptions = getHostingServerHitsQueryOptions(hostingId, params, options);
|
|
3113
|
+
const query = useQuery(queryOptions);
|
|
3114
|
+
query.queryKey = queryOptions.queryKey;
|
|
3115
|
+
return query;
|
|
3116
|
+
}
|
|
3065
3117
|
/**
|
|
3066
3118
|
* Enable or disable shell access on an account by setting the shell.SSH key access must be established separately.
|
|
3067
3119
|
* @summary hosting shell toggle
|
|
@@ -4987,6 +5039,28 @@ export function useSitesVersion(siteId, options) {
|
|
|
4987
5039
|
query.queryKey = queryOptions.queryKey;
|
|
4988
5040
|
return query;
|
|
4989
5041
|
}
|
|
5042
|
+
/**
|
|
5043
|
+
* Creates wpsolution license addon for site_id
|
|
5044
|
+
* @summary configure wpsolution license for site_id
|
|
5045
|
+
*/
|
|
5046
|
+
export const siteAddonWpsolution = (siteId, siteAddonWpsolutionBody, options) => {
|
|
5047
|
+
return axios.post(`/v1/sites/${siteId}/wpsolution`, siteAddonWpsolutionBody, options);
|
|
5048
|
+
};
|
|
5049
|
+
export const getSiteAddonWpsolutionMutationOptions = (options) => {
|
|
5050
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
5051
|
+
const mutationFn = (props) => {
|
|
5052
|
+
const { siteId, data } = props !== null && props !== void 0 ? props : {};
|
|
5053
|
+
return siteAddonWpsolution(siteId, data, axiosOptions);
|
|
5054
|
+
};
|
|
5055
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
5056
|
+
};
|
|
5057
|
+
/**
|
|
5058
|
+
* @summary configure wpsolution license for site_id
|
|
5059
|
+
*/
|
|
5060
|
+
export const useSiteAddonWpsolution = (options) => {
|
|
5061
|
+
const mutationOptions = getSiteAddonWpsolutionMutationOptions(options);
|
|
5062
|
+
return useMutation(mutationOptions);
|
|
5063
|
+
};
|
|
4990
5064
|
/**
|
|
4991
5065
|
* Returns an oauth login URL that can be used to access Sitelock dashboard for a user.
|
|
4992
5066
|
* @summary sso
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonCloudflare200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupCreateV2200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbList200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200Item, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailDelete200, HostingEmailList200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsCheck200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SitesAccessLogs200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
2
|
+
import type { AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonCloudflare200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupCreateV2200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbList200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200Item, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailDelete200, HostingEmailList200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsCheck200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SitesAccessLogs200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
5
5
|
export declare const getAccountPublicKeysResponseMock: (overrideResponse?: Partial<AccountPublicKeys200>) => AccountPublicKeys200;
|
|
@@ -123,10 +123,12 @@ export declare const getHostingOnboardingDataUpdateResponseMock: (overrideRespon
|
|
|
123
123
|
export declare const getPasswordGenerateResponseMock: (overrideResponse?: Partial<PasswordGenerate200>) => PasswordGenerate200;
|
|
124
124
|
export declare const getPasswordScoreResponseMock: (overrideResponse?: Partial<PasswordScore200>) => PasswordScore200;
|
|
125
125
|
export declare const getPhpErrorsResponseMock: (overrideResponse?: Partial<PhpErrors200>) => PhpErrors200;
|
|
126
|
+
export declare const getProductLicenseDetailsResponseMock: (overrideResponse?: Partial<ProductLicenseDetails200>) => ProductLicenseDetails200;
|
|
126
127
|
export declare const getHostingRedirectsResponseMock: () => HostingRedirects200Item[];
|
|
127
128
|
export declare const getHostingRedirectResponseMock: (overrideResponse?: Partial<HostingRedirect200>) => HostingRedirect200;
|
|
128
129
|
export declare const getAddHostingRedirectsResponseMock: (overrideResponse?: Partial<AddHostingRedirects200>) => AddHostingRedirects200;
|
|
129
130
|
export declare const getHostingResellerSsoWhmResponseMock: (overrideResponse?: Partial<HostingResellerSsoWhm200>) => HostingResellerSsoWhm200;
|
|
131
|
+
export declare const getHostingServerHitsResponseMock: (overrideResponse?: Partial<HostingServerHits200>) => HostingServerHits200;
|
|
130
132
|
export declare const getHostingShellToggleResponseMock: (overrideResponse?: Partial<HostingShellToggle200>) => HostingShellToggle200;
|
|
131
133
|
export declare const getHostingShellInfoResponseMock: (overrideResponse?: Partial<HostingShellInfo200>) => HostingShellInfo200;
|
|
132
134
|
export declare const getHostingSiteAddResponseMock: (overrideResponse?: Partial<HostingSiteAdd200>) => HostingSiteAdd200;
|
|
@@ -203,6 +205,7 @@ export declare const getStagingSitePromoteResponseMock: (overrideResponse?: Part
|
|
|
203
205
|
export declare const getSiteStatusResponseMock: (overrideResponse?: Partial<SiteStatus200>) => SiteStatus200;
|
|
204
206
|
export declare const getSiteUsersResponseMock: (overrideResponse?: Partial<SiteUsers200>) => SiteUsers200;
|
|
205
207
|
export declare const getSitesVersionResponseMock: (overrideResponse?: Partial<SitesVersion200>) => SitesVersion200;
|
|
208
|
+
export declare const getSiteAddonWpsolutionResponseMock: (overrideResponse?: Partial<SiteAddonWpsolution200>) => SiteAddonWpsolution200;
|
|
206
209
|
export declare const getAddonsSitelockSsoV2ResponseMock: (overrideResponse?: Partial<AddonsSitelockSsoV2200>) => AddonsSitelockSsoV2200;
|
|
207
210
|
export declare const getBackupCreateV2ResponseMock: (overrideResponse?: Partial<BackupCreateV2200>) => BackupCreateV2200;
|
|
208
211
|
export declare const getBackupDownloadV2ResponseMock: (overrideResponse?: Partial<BackupDownloadV2200>) => BackupDownloadV2200;
|
|
@@ -351,10 +354,12 @@ export declare const getHostingOnboardingDataUpdateMockHandler: (overrideRespons
|
|
|
351
354
|
export declare const getPasswordGenerateMockHandler: (overrideResponse?: PasswordGenerate200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<PasswordGenerate200> | PasswordGenerate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
352
355
|
export declare const getPasswordScoreMockHandler: (overrideResponse?: PasswordScore200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<PasswordScore200> | PasswordScore200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
353
356
|
export declare const getPhpErrorsMockHandler: (overrideResponse?: PhpErrors200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<PhpErrors200> | PhpErrors200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
357
|
+
export declare const getProductLicenseDetailsMockHandler: (overrideResponse?: ProductLicenseDetails200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ProductLicenseDetails200> | ProductLicenseDetails200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
354
358
|
export declare const getHostingRedirectsMockHandler: (overrideResponse?: HostingRedirects200Item[] | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingRedirects200Item[]> | HostingRedirects200Item[]) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
355
359
|
export declare const getHostingRedirectMockHandler: (overrideResponse?: HostingRedirect200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HostingRedirect200> | HostingRedirect200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
356
360
|
export declare const getAddHostingRedirectsMockHandler: (overrideResponse?: AddHostingRedirects200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<AddHostingRedirects200> | AddHostingRedirects200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
357
361
|
export declare const getHostingResellerSsoWhmMockHandler: (overrideResponse?: HostingResellerSsoWhm200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingResellerSsoWhm200> | HostingResellerSsoWhm200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
362
|
+
export declare const getHostingServerHitsMockHandler: (overrideResponse?: HostingServerHits200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingServerHits200> | HostingServerHits200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
358
363
|
export declare const getHostingShellToggleMockHandler: (overrideResponse?: HostingShellToggle200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingShellToggle200> | HostingShellToggle200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
359
364
|
export declare const getHostingShellInfoMockHandler: (overrideResponse?: HostingShellInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingShellInfo200> | HostingShellInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
360
365
|
export declare const getHostingSiteAddMockHandler: (overrideResponse?: HostingSiteAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingSiteAdd200> | HostingSiteAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -433,6 +438,7 @@ export declare const getStagingSitePromoteMockHandler: (overrideResponse?: Stagi
|
|
|
433
438
|
export declare const getSiteStatusMockHandler: (overrideResponse?: SiteStatus200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SiteStatus200> | SiteStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
434
439
|
export declare const getSiteUsersMockHandler: (overrideResponse?: SiteUsers200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SiteUsers200> | SiteUsers200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
435
440
|
export declare const getSitesVersionMockHandler: (overrideResponse?: SitesVersion200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesVersion200> | SitesVersion200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
441
|
+
export declare const getSiteAddonWpsolutionMockHandler: (overrideResponse?: SiteAddonWpsolution200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SiteAddonWpsolution200> | SiteAddonWpsolution200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
436
442
|
export declare const getAddonsSitelockSsoV2MockHandler: (overrideResponse?: AddonsSitelockSsoV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsSitelockSsoV2200> | AddonsSitelockSsoV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
437
443
|
export declare const getBackupCreateV2MockHandler: (overrideResponse?: BackupCreateV2200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupCreateV2200> | BackupCreateV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
438
444
|
export declare const getBackupDownloadV2MockHandler: (overrideResponse?: BackupDownloadV2200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupDownloadV2200> | BackupDownloadV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
package/src/index.msw.js
CHANGED
|
@@ -4,7 +4,7 @@ import { __awaiter } from "tslib";
|
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Hosting UAPI
|
|
6
6
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
7
|
-
* OpenAPI spec version: 1.
|
|
7
|
+
* OpenAPI spec version: 1.1317.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -133,10 +133,12 @@ export const getHostingOnboardingDataUpdateResponseMock = (overrideResponse = {}
|
|
|
133
133
|
export const getPasswordGenerateResponseMock = (overrideResponse = {}) => (Object.assign({ password: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
134
134
|
export const getPasswordScoreResponseMock = (overrideResponse = {}) => (Object.assign({ score: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
135
135
|
export const getPhpErrorsResponseMock = (overrideResponse = {}) => (Object.assign({ content: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
136
|
+
export const getProductLicenseDetailsResponseMock = (overrideResponse = {}) => (Object.assign({ wpsolution: faker.helpers.arrayElement([{ commerce: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ expirationDate: faker.helpers.arrayElement([faker.word.sample(), undefined]), prodInstId: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), creator: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ expirationDate: faker.helpers.arrayElement([faker.word.sample(), undefined]), prodInstId: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, undefined]) }, overrideResponse));
|
|
136
137
|
export const getHostingRedirectsResponseMock = () => (Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ docroot: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), http_status_code: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), redirect_www: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), src: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]), wildcard: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) })));
|
|
137
138
|
export const getHostingRedirectResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
138
139
|
export const getAddHostingRedirectsResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
139
140
|
export const getHostingResellerSsoWhmResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
141
|
+
export const getHostingServerHitsResponseMock = (overrideResponse = {}) => (Object.assign({ server_hits: { last_n_days: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ hits: faker.number.int({ min: undefined, max: undefined }), name: faker.word.sample() })), total_hits: faker.number.int({ min: undefined, max: undefined }) } }, overrideResponse));
|
|
140
142
|
export const getHostingShellToggleResponseMock = (overrideResponse = {}) => (Object.assign({ enabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
141
143
|
export const getHostingShellInfoResponseMock = (overrideResponse = {}) => (Object.assign({ enabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
142
144
|
export const getHostingSiteAddResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.datatype.boolean() }, overrideResponse));
|
|
@@ -148,7 +150,7 @@ export const getSshKeyListResponseMock = (overrideResponse = {}) => (Object.assi
|
|
|
148
150
|
export const getSshKeyResponseMock = (overrideResponse = {}) => (Object.assign({ deleted: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
149
151
|
export const getSshKeyGenerateResponseMock = (overrideResponse = {}) => (Object.assign({ key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), private_key_path: faker.helpers.arrayElement([faker.word.sample(), undefined]), public_key_path: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
150
152
|
export const getSsoResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
|
|
151
|
-
export const getHostingVisitorsResponseMock = (overrideResponse = {}) => (Object.assign({ daily: faker.helpers.arrayElement([{ data: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), date: faker.helpers.arrayElement([faker.word.sample(), undefined]), hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), interval_end: faker.helpers.arrayElement([faker.word.sample(), undefined]), interval_start: faker.helpers.arrayElement([faker.word.sample(), undefined]), pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]), total: faker.helpers.arrayElement([{ total_bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, undefined]) }, undefined]), total_bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), interval_end: faker.helpers.arrayElement([faker.word.sample(), undefined]), interval_start: faker.helpers.arrayElement([faker.word.sample(), undefined]), unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]) }, overrideResponse));
|
|
153
|
+
export const getHostingVisitorsResponseMock = (overrideResponse = {}) => (Object.assign({ daily: faker.helpers.arrayElement([{ data: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), date: faker.helpers.arrayElement([faker.word.sample(), undefined]), hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), interval_end: faker.helpers.arrayElement([faker.word.sample(), undefined]), interval_start: faker.helpers.arrayElement([faker.word.sample(), undefined]), pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]), total: faker.helpers.arrayElement([{ total_bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, undefined]) }, undefined]), is_linked_domain: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), linked_domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), total_bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), interval_end: faker.helpers.arrayElement([faker.word.sample(), undefined]), interval_start: faker.helpers.arrayElement([faker.word.sample(), undefined]), unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]) }, overrideResponse));
|
|
152
154
|
export const getSitesInfoResponseMock = (overrideResponse = {}) => (Object.assign({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), confirmed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), datacenter: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_modified: faker.helpers.arrayElement([faker.word.sample(), undefined]), detected_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), docroot: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), edge_cache: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), handler_404: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), installed_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_primary: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), jobs: faker.helpers.arrayElement([{}, undefined]), last_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), migration_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), onboarding: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), pagespeed: faker.helpers.arrayElement([{ lastrun: faker.helpers.arrayElement([faker.word.sample(), undefined]), performance: faker.helpers.arrayElement([faker.word.sample(), undefined]), strategy: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), pending_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url_data: faker.helpers.arrayElement([{ base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_temp: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), job_failed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), stage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), wp_session: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), php_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), resources: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), staging: faker.helpers.arrayElement([{ parent_site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoted_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoting_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promotion_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.number.int({ min: undefined, max: undefined }))), undefined]) }, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url_is_provisional: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), version_ptr: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
153
155
|
export const getSiteUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.datatype.boolean() }, overrideResponse));
|
|
154
156
|
export const getSiteResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.datatype.boolean() }, overrideResponse));
|
|
@@ -233,6 +235,7 @@ export const getStagingSitePromoteResponseMock = (overrideResponse = {}) => (Obj
|
|
|
233
235
|
export const getSiteStatusResponseMock = (overrideResponse = {}) => (Object.assign({ cloudflare_ready: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), pending_url: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
234
236
|
export const getSiteUsersResponseMock = (overrideResponse = {}) => (Object.assign({ users: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ display_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.number.int({ min: undefined, max: undefined }), meta: faker.helpers.arrayElement([{ maestro_web_pro: faker.helpers.arrayElement([faker.word.sample(), undefined]), maestro_wpp_identifier: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), post_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), role: faker.word.sample(), user_email: faker.word.sample(), user_id: faker.number.int({ min: undefined, max: undefined }), user_login: faker.word.sample(), user_nicename: faker.word.sample() })) }, overrideResponse));
|
|
235
237
|
export const getSitesVersionResponseMock = (overrideResponse = {}) => (Object.assign({ current: faker.helpers.arrayElement([faker.word.sample(), undefined]), latest: faker.helpers.arrayElement([faker.word.sample(), undefined]), update: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
238
|
+
export const getSiteAddonWpsolutionResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
236
239
|
export const getAddonsSitelockSsoV2ResponseMock = (overrideResponse = {}) => (Object.assign({ site_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sitelock_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
237
240
|
export const getBackupCreateV2ResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
238
241
|
export const getBackupDownloadV2ResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
@@ -1488,6 +1491,16 @@ export const getPhpErrorsMockHandler = (overrideResponse) => {
|
|
|
1488
1491
|
});
|
|
1489
1492
|
}));
|
|
1490
1493
|
};
|
|
1494
|
+
export const getProductLicenseDetailsMockHandler = (overrideResponse) => {
|
|
1495
|
+
return http.get('*/v1/hosting/:hostingId/product/license-details', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1496
|
+
yield delay(1000);
|
|
1497
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1498
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1499
|
+
: getProductLicenseDetailsResponseMock()), { status: 200,
|
|
1500
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1501
|
+
});
|
|
1502
|
+
}));
|
|
1503
|
+
};
|
|
1491
1504
|
export const getHostingRedirectsMockHandler = (overrideResponse) => {
|
|
1492
1505
|
return http.get('*/v1/hosting/:hostingId/redirects', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1493
1506
|
yield delay(1000);
|
|
@@ -1528,6 +1541,16 @@ export const getHostingResellerSsoWhmMockHandler = (overrideResponse) => {
|
|
|
1528
1541
|
});
|
|
1529
1542
|
}));
|
|
1530
1543
|
};
|
|
1544
|
+
export const getHostingServerHitsMockHandler = (overrideResponse) => {
|
|
1545
|
+
return http.get('*/v1/hosting/:hostingId/server-hits', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1546
|
+
yield delay(1000);
|
|
1547
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1548
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1549
|
+
: getHostingServerHitsResponseMock()), { status: 200,
|
|
1550
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1551
|
+
});
|
|
1552
|
+
}));
|
|
1553
|
+
};
|
|
1531
1554
|
export const getHostingShellToggleMockHandler = (overrideResponse) => {
|
|
1532
1555
|
return http.put('*/v1/hosting/:hostingId/shell', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1533
1556
|
yield delay(1000);
|
|
@@ -2308,6 +2331,16 @@ export const getSitesVersionMockHandler = (overrideResponse) => {
|
|
|
2308
2331
|
});
|
|
2309
2332
|
}));
|
|
2310
2333
|
};
|
|
2334
|
+
export const getSiteAddonWpsolutionMockHandler = (overrideResponse) => {
|
|
2335
|
+
return http.post('*/v1/sites/:siteId/wpsolution', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2336
|
+
yield delay(1000);
|
|
2337
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2338
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2339
|
+
: getSiteAddonWpsolutionResponseMock()), { status: 200,
|
|
2340
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2341
|
+
});
|
|
2342
|
+
}));
|
|
2343
|
+
};
|
|
2311
2344
|
export const getAddonsSitelockSsoV2MockHandler = (overrideResponse) => {
|
|
2312
2345
|
return http.get('*/v2/addons/sitelock/:addonId/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2313
2346
|
yield delay(1000);
|
|
@@ -2682,10 +2715,12 @@ export const getHostingUAPIMock = () => [
|
|
|
2682
2715
|
getPasswordGenerateMockHandler(),
|
|
2683
2716
|
getPasswordScoreMockHandler(),
|
|
2684
2717
|
getPhpErrorsMockHandler(),
|
|
2718
|
+
getProductLicenseDetailsMockHandler(),
|
|
2685
2719
|
getHostingRedirectsMockHandler(),
|
|
2686
2720
|
getHostingRedirectMockHandler(),
|
|
2687
2721
|
getAddHostingRedirectsMockHandler(),
|
|
2688
2722
|
getHostingResellerSsoWhmMockHandler(),
|
|
2723
|
+
getHostingServerHitsMockHandler(),
|
|
2689
2724
|
getHostingShellToggleMockHandler(),
|
|
2690
2725
|
getHostingShellInfoMockHandler(),
|
|
2691
2726
|
getHostingSiteAddMockHandler(),
|
|
@@ -2764,6 +2799,7 @@ export const getHostingUAPIMock = () => [
|
|
|
2764
2799
|
getSiteStatusMockHandler(),
|
|
2765
2800
|
getSiteUsersMockHandler(),
|
|
2766
2801
|
getSitesVersionMockHandler(),
|
|
2802
|
+
getSiteAddonWpsolutionMockHandler(),
|
|
2767
2803
|
getAddonsSitelockSsoV2MockHandler(),
|
|
2768
2804
|
getBackupCreateV2MockHandler(),
|
|
2769
2805
|
getBackupDownloadV2MockHandler(),
|
package/src/index.schemas.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.1317.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -766,6 +766,26 @@ export declare type AddonsSitelockSsoV2Params = {
|
|
|
766
766
|
*/
|
|
767
767
|
source?: string;
|
|
768
768
|
};
|
|
769
|
+
export declare type SiteAddonWpsolution400 = {
|
|
770
|
+
error?: string;
|
|
771
|
+
};
|
|
772
|
+
export declare type SiteAddonWpsolution200 = {
|
|
773
|
+
[key: string]: unknown;
|
|
774
|
+
};
|
|
775
|
+
/**
|
|
776
|
+
* wpsolution addon subtype
|
|
777
|
+
*/
|
|
778
|
+
export declare type SiteAddonWpsolutionBodySubtype = typeof SiteAddonWpsolutionBodySubtype[keyof typeof SiteAddonWpsolutionBodySubtype];
|
|
779
|
+
export declare const SiteAddonWpsolutionBodySubtype: {
|
|
780
|
+
readonly creator: "creator";
|
|
781
|
+
readonly commerce: "commerce";
|
|
782
|
+
};
|
|
783
|
+
export declare type SiteAddonWpsolutionBody = {
|
|
784
|
+
/** wpsolution product instance id */
|
|
785
|
+
prod_inst_id: string;
|
|
786
|
+
/** wpsolution addon subtype */
|
|
787
|
+
subtype: SiteAddonWpsolutionBodySubtype;
|
|
788
|
+
};
|
|
769
789
|
export declare type SitesVersion200 = {
|
|
770
790
|
current?: string;
|
|
771
791
|
latest?: string;
|
|
@@ -1090,9 +1110,6 @@ export declare type SiteQualityMetrics200AspectScores = {
|
|
|
1090
1110
|
performance?: number;
|
|
1091
1111
|
seo?: number;
|
|
1092
1112
|
};
|
|
1093
|
-
export declare type SiteQualityMetrics200AspectDetails = {
|
|
1094
|
-
performance?: SiteQualityMetrics200AspectDetailsPerformance;
|
|
1095
|
-
};
|
|
1096
1113
|
export declare type SiteQualityMetrics200 = {
|
|
1097
1114
|
aspect_details: SiteQualityMetrics200AspectDetails;
|
|
1098
1115
|
aspect_scores: SiteQualityMetrics200AspectScores;
|
|
@@ -1123,6 +1140,9 @@ export declare type SiteQualityMetrics200AspectDetailsPerformance = {
|
|
|
1123
1140
|
'speed-index'?: SiteQualityMetrics200AspectDetailsPerformanceSpeedIndex;
|
|
1124
1141
|
'total-blocking-time'?: SiteQualityMetrics200AspectDetailsPerformanceTotalBlockingTime;
|
|
1125
1142
|
};
|
|
1143
|
+
export declare type SiteQualityMetrics200AspectDetails = {
|
|
1144
|
+
performance?: SiteQualityMetrics200AspectDetailsPerformance;
|
|
1145
|
+
};
|
|
1126
1146
|
export declare type SiteQualityMetricsStrategy = typeof SiteQualityMetricsStrategy[keyof typeof SiteQualityMetricsStrategy];
|
|
1127
1147
|
export declare const SiteQualityMetricsStrategy: {
|
|
1128
1148
|
readonly MOBILE: "MOBILE";
|
|
@@ -1900,6 +1920,8 @@ export declare type HostingVisitors200VisitorsItem = {
|
|
|
1900
1920
|
};
|
|
1901
1921
|
export declare type HostingVisitors200 = {
|
|
1902
1922
|
daily?: HostingVisitors200Daily;
|
|
1923
|
+
is_linked_domain?: boolean;
|
|
1924
|
+
linked_domain?: string;
|
|
1903
1925
|
total_bandwidth?: number;
|
|
1904
1926
|
total_hits?: number;
|
|
1905
1927
|
total_pages?: number;
|
|
@@ -2148,6 +2170,39 @@ export declare type HostingShellToggleBody = {
|
|
|
2148
2170
|
/** boolean flag to enable or disable hosting shell */
|
|
2149
2171
|
enabled: boolean;
|
|
2150
2172
|
};
|
|
2173
|
+
export declare type HostingServerHits200ServerHitsLastNDaysItem = {
|
|
2174
|
+
hits: number;
|
|
2175
|
+
name: string;
|
|
2176
|
+
};
|
|
2177
|
+
export declare type HostingServerHits200ServerHits = {
|
|
2178
|
+
last_n_days: HostingServerHits200ServerHitsLastNDaysItem[];
|
|
2179
|
+
total_hits: number;
|
|
2180
|
+
};
|
|
2181
|
+
export declare type HostingServerHits200 = {
|
|
2182
|
+
server_hits: HostingServerHits200ServerHits;
|
|
2183
|
+
};
|
|
2184
|
+
export declare type HostingServerHitsParams = {
|
|
2185
|
+
/**
|
|
2186
|
+
* The source of the traffic (http, https, combined)
|
|
2187
|
+
*/
|
|
2188
|
+
source?: string;
|
|
2189
|
+
/**
|
|
2190
|
+
* The start date for fetching the server hits. Format is YYYY-MM-DD HH:MM:SS
|
|
2191
|
+
*/
|
|
2192
|
+
start?: string;
|
|
2193
|
+
/**
|
|
2194
|
+
* The end date for fetching the server hits. Format is YYYY-MM-DD HH:MM:SS
|
|
2195
|
+
*/
|
|
2196
|
+
end?: string;
|
|
2197
|
+
/**
|
|
2198
|
+
* The domain for which to fetch the server hits
|
|
2199
|
+
*/
|
|
2200
|
+
domain: string;
|
|
2201
|
+
/**
|
|
2202
|
+
* The number of intervals (days) to fetch. Default is 30
|
|
2203
|
+
*/
|
|
2204
|
+
interval?: number;
|
|
2205
|
+
};
|
|
2151
2206
|
export declare type HostingResellerSsoWhm200 = {
|
|
2152
2207
|
url?: string;
|
|
2153
2208
|
};
|
|
@@ -2189,6 +2244,28 @@ export declare type HostingRedirects200Item = {
|
|
|
2189
2244
|
url?: string;
|
|
2190
2245
|
wildcard?: boolean;
|
|
2191
2246
|
};
|
|
2247
|
+
export declare type ProductLicenseDetails200WpsolutionCreatorItem = {
|
|
2248
|
+
expirationDate?: string;
|
|
2249
|
+
prodInstId?: string;
|
|
2250
|
+
};
|
|
2251
|
+
export declare type ProductLicenseDetails200WpsolutionCommerceItem = {
|
|
2252
|
+
expirationDate?: string;
|
|
2253
|
+
prodInstId?: string;
|
|
2254
|
+
};
|
|
2255
|
+
export declare type ProductLicenseDetails200Wpsolution = {
|
|
2256
|
+
commerce?: ProductLicenseDetails200WpsolutionCommerceItem[];
|
|
2257
|
+
creator?: ProductLicenseDetails200WpsolutionCreatorItem[];
|
|
2258
|
+
};
|
|
2259
|
+
export declare type ProductLicenseDetails200 = {
|
|
2260
|
+
wpsolution?: ProductLicenseDetails200Wpsolution;
|
|
2261
|
+
};
|
|
2262
|
+
export declare type ProductLicenseDetailsProductName = typeof ProductLicenseDetailsProductName[keyof typeof ProductLicenseDetailsProductName];
|
|
2263
|
+
export declare const ProductLicenseDetailsProductName: {
|
|
2264
|
+
readonly wpsolution: "wpsolution";
|
|
2265
|
+
};
|
|
2266
|
+
export declare type ProductLicenseDetailsParams = {
|
|
2267
|
+
product_name: ProductLicenseDetailsProductName;
|
|
2268
|
+
};
|
|
2192
2269
|
export declare type PhpErrors200 = {
|
|
2193
2270
|
/** @nullable */
|
|
2194
2271
|
content?: string | null;
|
|
@@ -3602,9 +3679,6 @@ export declare type AddonsInfo200 = {
|
|
|
3602
3679
|
export declare type AddonsCloudflare200 = {
|
|
3603
3680
|
status?: string;
|
|
3604
3681
|
};
|
|
3605
|
-
export declare type BackupList200 = {
|
|
3606
|
-
home?: BackupList200HomeItem[];
|
|
3607
|
-
};
|
|
3608
3682
|
export declare type BackupList200HomeItemBackupStatus = {
|
|
3609
3683
|
/** @nullable */
|
|
3610
3684
|
download_url?: string | null;
|
|
@@ -3616,6 +3690,9 @@ export declare type BackupList200HomeItem = {
|
|
|
3616
3690
|
backup_status?: BackupList200HomeItemBackupStatus;
|
|
3617
3691
|
time_created?: string;
|
|
3618
3692
|
};
|
|
3693
|
+
export declare type BackupList200 = {
|
|
3694
|
+
home?: BackupList200HomeItem[];
|
|
3695
|
+
};
|
|
3619
3696
|
export declare type BackupListBackupType = typeof BackupListBackupType[keyof typeof BackupListBackupType];
|
|
3620
3697
|
export declare const BackupListBackupType: {
|
|
3621
3698
|
readonly full: "full";
|
package/src/index.schemas.js
CHANGED
|
@@ -12,6 +12,11 @@ export const HostingSiteAddV2BodyDatacenter = {
|
|
|
12
12
|
'Los_Angeles,_California': 'Los Angeles, California',
|
|
13
13
|
};
|
|
14
14
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
15
|
+
export const SiteAddonWpsolutionBodySubtype = {
|
|
16
|
+
creator: 'creator',
|
|
17
|
+
commerce: 'commerce',
|
|
18
|
+
};
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
15
20
|
export const SitesSsoBounceName = {
|
|
16
21
|
jetpackbackup: 'jetpackbackup',
|
|
17
22
|
jetpackdashboard: 'jetpackdashboard',
|
|
@@ -132,6 +137,10 @@ export const HostingSiteAddBodyDatacenter = {
|
|
|
132
137
|
'Los_Angeles,_California': 'Los Angeles, California',
|
|
133
138
|
};
|
|
134
139
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
140
|
+
export const ProductLicenseDetailsProductName = {
|
|
141
|
+
wpsolution: 'wpsolution',
|
|
142
|
+
};
|
|
143
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
135
144
|
export const HostingMigrationsEventBodyEventName = {
|
|
136
145
|
inReview: 'inReview',
|
|
137
146
|
approved: 'approved',
|