@newfold/huapi-js 2.1974.0 → 2.1978.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 +33 -1
- package/src/index.js +27 -1
- package/src/index.msw.d.ts +3 -1
- package/src/index.msw.js +13 -1
- package/src/index.schemas.d.ts +119 -75
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 { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AddonsWorkflowsParams, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateOndemandV1400, BackupCreateOndemandV1403, BackupCreateOndemandV1404, BackupCreateOndemandV1409, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupCustomDeleteV1200, BackupCustomDeleteV1400, BackupCustomDeleteV1403, BackupCustomDeleteV1404, BackupCustomDeleteV1409, BackupCustomDeleteV1Body, BackupDownloadV2200, BackupDownloadV2400, BackupDownloadV2403, BackupDownloadV2404, BackupDownloadV2409, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3400, BackupRestoreV3403, BackupRestoreV3404, BackupRestoreV3409, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupStatusV3200, BackupStatusV3400, BackupStatusV3Params, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, 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, 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, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedConsole200, HostingAdvancedConsoleParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, PublicImagesParams, PublicRegions200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, 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, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WaldaiSso200, WaldaiSso404, WaldaiSso502, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AddonsWorkflowsParams, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateOndemandV1400, BackupCreateOndemandV1403, BackupCreateOndemandV1404, BackupCreateOndemandV1409, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupCustomDeleteV1200, BackupCustomDeleteV1400, BackupCustomDeleteV1403, BackupCustomDeleteV1404, BackupCustomDeleteV1409, BackupCustomDeleteV1Body, BackupDownloadV2200, BackupDownloadV2400, BackupDownloadV2403, BackupDownloadV2404, BackupDownloadV2409, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3400, BackupRestoreV3403, BackupRestoreV3404, BackupRestoreV3409, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupStatusV3200, BackupStatusV3400, BackupStatusV3Params, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, 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, 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, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedConsole200, HostingAdvancedConsoleParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, PublicImagesParams, PublicRegions200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, 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, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, UserProservices200, WaldaiSso200, WaldaiSso404, WaldaiSso502, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } 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
|
/**
|
|
@@ -9168,6 +9168,38 @@ export declare function useAllUserMonarxDetails<TData = Awaited<ReturnType<typeo
|
|
|
9168
9168
|
}): UseQueryResult<TData, TError> & {
|
|
9169
9169
|
queryKey: QueryKey;
|
|
9170
9170
|
};
|
|
9171
|
+
/**
|
|
9172
|
+
* Returns pro-services FG products for the authenticated user
|
|
9173
|
+
* @summary Return pro-services products for the user
|
|
9174
|
+
*/
|
|
9175
|
+
export declare const userProservices: (options?: AxiosRequestConfig) => Promise<AxiosResponse<UserProservices200>>;
|
|
9176
|
+
export declare const getUserProservicesQueryKey: () => readonly ["/v1/user/proservices"];
|
|
9177
|
+
export declare const getUserProservicesQueryOptions: <TData = AxiosResponse<UserProservices200, any>, TError = AxiosError<unknown, any>>(options?: {
|
|
9178
|
+
query?: Partial<UseQueryOptions<AxiosResponse<UserProservices200, any>, TError, TData, QueryKey>> | undefined;
|
|
9179
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
9180
|
+
} | undefined) => UseQueryOptions<AxiosResponse<UserProservices200, any>, TError, TData, QueryKey> & {
|
|
9181
|
+
queryKey: QueryKey;
|
|
9182
|
+
};
|
|
9183
|
+
export declare type UserProservicesQueryResult = NonNullable<Awaited<ReturnType<typeof userProservices>>>;
|
|
9184
|
+
export declare type UserProservicesQueryError = AxiosError<unknown>;
|
|
9185
|
+
export declare function useUserProservices<TData = Awaited<ReturnType<typeof userProservices>>, TError = AxiosError<unknown>>(options: {
|
|
9186
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof userProservices>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof userProservices>>, TError, TData>, 'initialData'>;
|
|
9187
|
+
axios?: AxiosRequestConfig;
|
|
9188
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
9189
|
+
queryKey: QueryKey;
|
|
9190
|
+
};
|
|
9191
|
+
export declare function useUserProservices<TData = Awaited<ReturnType<typeof userProservices>>, TError = AxiosError<unknown>>(options?: {
|
|
9192
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userProservices>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof userProservices>>, TError, TData>, 'initialData'>;
|
|
9193
|
+
axios?: AxiosRequestConfig;
|
|
9194
|
+
}): UseQueryResult<TData, TError> & {
|
|
9195
|
+
queryKey: QueryKey;
|
|
9196
|
+
};
|
|
9197
|
+
export declare function useUserProservices<TData = Awaited<ReturnType<typeof userProservices>>, TError = AxiosError<unknown>>(options?: {
|
|
9198
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userProservices>>, TError, TData>>;
|
|
9199
|
+
axios?: AxiosRequestConfig;
|
|
9200
|
+
}): UseQueryResult<TData, TError> & {
|
|
9201
|
+
queryKey: QueryKey;
|
|
9202
|
+
};
|
|
9171
9203
|
/**
|
|
9172
9204
|
* Returns an SSO redirect URL for the WaldAI (BLU GPT / AI All Access) product. Accepts a product instance ID, resolves the providerProdInstId from FG, and returns the SSO redirect URL from ESB.
|
|
9173
9205
|
* @summary Get WaldAI SSO redirect URL
|
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.1978.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -7075,6 +7075,32 @@ export function useAllUserMonarxDetails(options) {
|
|
|
7075
7075
|
query.queryKey = queryOptions.queryKey;
|
|
7076
7076
|
return query;
|
|
7077
7077
|
}
|
|
7078
|
+
/**
|
|
7079
|
+
* Returns pro-services FG products for the authenticated user
|
|
7080
|
+
* @summary Return pro-services products for the user
|
|
7081
|
+
*/
|
|
7082
|
+
export const userProservices = (options) => {
|
|
7083
|
+
return axios.get(`/v1/user/proservices`, options);
|
|
7084
|
+
};
|
|
7085
|
+
export const getUserProservicesQueryKey = () => {
|
|
7086
|
+
return [`/v1/user/proservices`];
|
|
7087
|
+
};
|
|
7088
|
+
export const getUserProservicesQueryOptions = (options) => {
|
|
7089
|
+
var _a;
|
|
7090
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
7091
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getUserProservicesQueryKey();
|
|
7092
|
+
const queryFn = ({ signal }) => userProservices(Object.assign({ signal }, axiosOptions));
|
|
7093
|
+
return Object.assign({ queryKey, queryFn }, queryOptions);
|
|
7094
|
+
};
|
|
7095
|
+
/**
|
|
7096
|
+
* @summary Return pro-services products for the user
|
|
7097
|
+
*/
|
|
7098
|
+
export function useUserProservices(options) {
|
|
7099
|
+
const queryOptions = getUserProservicesQueryOptions(options);
|
|
7100
|
+
const query = useQuery(queryOptions);
|
|
7101
|
+
query.queryKey = queryOptions.queryKey;
|
|
7102
|
+
return query;
|
|
7103
|
+
}
|
|
7078
7104
|
/**
|
|
7079
7105
|
* Returns an SSO redirect URL for the WaldAI (BLU GPT / AI All Access) product. Accepts a product instance ID, resolves the providerProdInstId from FG, and returns the SSO redirect URL from ESB.
|
|
7080
7106
|
* @summary Get WaldAI SSO redirect URL
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateV2200, BackupCreateV3200, BackupCustomDeleteV1200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupListV3200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupStatusV3200, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedConsole200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, PublicRegions200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WaldaiSso200, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupDownload200, XcitiumBackupList200, XcitiumBackupRestore200, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateV2200, BackupCreateV3200, BackupCustomDeleteV1200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupListV3200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupStatusV3200, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedConsole200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, PublicRegions200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, UserProservices200, WaldaiSso200, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupDownload200, XcitiumBackupList200, XcitiumBackupRestore200, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountFeaturesResponseMock: (overrideResponse?: Partial<AccountFeatures200>) => AccountFeatures200;
|
|
5
5
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
@@ -289,6 +289,7 @@ export declare const getSiteAddonWpsolutionResponseMock: (overrideResponse?: Par
|
|
|
289
289
|
export declare const getUserHostingResponseMock: (overrideResponse?: Partial<UserHosting200>) => UserHosting200;
|
|
290
290
|
export declare const getUserHostingOverviewResponseMock: (overrideResponse?: Partial<UserHostingOverview200>) => UserHostingOverview200;
|
|
291
291
|
export declare const getAllUserMonarxDetailsResponseMock: (overrideResponse?: Partial<AllUserMonarxDetails200>) => AllUserMonarxDetails200;
|
|
292
|
+
export declare const getUserProservicesResponseMock: (overrideResponse?: Partial<UserProservices200>) => UserProservices200;
|
|
292
293
|
export declare const getWaldaiSsoResponseMock: (overrideResponse?: Partial<WaldaiSso200>) => WaldaiSso200;
|
|
293
294
|
export declare const getAddonsSitelockSsoV2ResponseMock: (overrideResponse?: Partial<AddonsSitelockSsoV2200>) => AddonsSitelockSsoV2200;
|
|
294
295
|
export declare const getBackupCreateV2ResponseMock: (overrideResponse?: Partial<BackupCreateV2200>) => BackupCreateV2200;
|
|
@@ -615,6 +616,7 @@ export declare const getSiteAddonWpsolutionMockHandler: (overrideResponse?: Site
|
|
|
615
616
|
export declare const getUserHostingMockHandler: (overrideResponse?: UserHosting200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserHosting200> | UserHosting200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
616
617
|
export declare const getUserHostingOverviewMockHandler: (overrideResponse?: UserHostingOverview200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserHostingOverview200> | UserHostingOverview200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
617
618
|
export declare const getAllUserMonarxDetailsMockHandler: (overrideResponse?: AllUserMonarxDetails200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AllUserMonarxDetails200> | AllUserMonarxDetails200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
619
|
+
export declare const getUserProservicesMockHandler: (overrideResponse?: UserProservices200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserProservices200> | UserProservices200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
618
620
|
export declare const getWaldaiSsoMockHandler: (overrideResponse?: WaldaiSso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WaldaiSso200> | WaldaiSso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
619
621
|
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;
|
|
620
622
|
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;
|
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.1978.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -324,6 +324,7 @@ export const getSiteAddonWpsolutionResponseMock = (overrideResponse = {}) => (Ob
|
|
|
324
324
|
export const getUserHostingResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_info: faker.helpers.arrayElement([{ addon_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_date_added: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), application: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), image: faker.helpers.arrayElement([{ app: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), software: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), meta: faker.helpers.arrayElement([{ main_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prev_tenant: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), region: faker.helpers.arrayElement([{ desc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), server_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), software: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), username: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), billing: faker.helpers.arrayElement([{ auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), expiration_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_inst_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), capability_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), feature_set: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), has_panel_mail: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), limit: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), limit_remote: faker.helpers.arrayElement([{ inodes: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), quota_kib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), package: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), panel: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), panel_mail_addon: faker.helpers.arrayElement([{ back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), inodes: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites_active: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), staging_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), used_stage: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) })), undefined]) }, overrideResponse));
|
|
325
325
|
export const getUserHostingOverviewResponseMock = (overrideResponse = {}) => (Object.assign({ has_unlimited_sites: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), hosting_accounts: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), max_sites: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
326
326
|
export const getAllUserMonarxDetailsResponseMock = (overrideResponse = {}) => (Object.assign({ rows: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_back_ref: faker.helpers.arrayElement([faker.word.sample(), undefined]), addon_id: faker.number.int({ min: undefined, max: undefined }), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), domain_name: faker.word.sample(), health_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), last_scan_completed_at: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), plan: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })) }, overrideResponse));
|
|
327
|
+
export const getUserProservicesResponseMock = (overrideResponse = {}) => (Object.assign({ products: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), billing_account_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), created_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), expiration_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), generic_prod_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), life_cycle_state: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), parent_prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), parent_prod_inst_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_inst_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), product_profile_options: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ profile_option: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), profile_value: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) })), undefined]), total: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
327
328
|
export const getWaldaiSsoResponseMock = (overrideResponse = {}) => (Object.assign({ redirect_url: faker.word.sample() }, overrideResponse));
|
|
328
329
|
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));
|
|
329
330
|
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));
|
|
@@ -3271,6 +3272,16 @@ export const getAllUserMonarxDetailsMockHandler = (overrideResponse) => {
|
|
|
3271
3272
|
});
|
|
3272
3273
|
}));
|
|
3273
3274
|
};
|
|
3275
|
+
export const getUserProservicesMockHandler = (overrideResponse) => {
|
|
3276
|
+
return http.get('*/v1/user/proservices', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3277
|
+
yield delay(0);
|
|
3278
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
3279
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
3280
|
+
: getUserProservicesResponseMock()), { status: 200,
|
|
3281
|
+
headers: { 'Content-Type': 'application/json' }
|
|
3282
|
+
});
|
|
3283
|
+
}));
|
|
3284
|
+
};
|
|
3274
3285
|
export const getWaldaiSsoMockHandler = (overrideResponse) => {
|
|
3275
3286
|
return http.get('*/v1/user/wald-ai/:prodInstId/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3276
3287
|
yield delay(0);
|
|
@@ -3913,6 +3924,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3913
3924
|
getUserHostingMockHandler(),
|
|
3914
3925
|
getUserHostingOverviewMockHandler(),
|
|
3915
3926
|
getAllUserMonarxDetailsMockHandler(),
|
|
3927
|
+
getUserProservicesMockHandler(),
|
|
3916
3928
|
getWaldaiSsoMockHandler(),
|
|
3917
3929
|
getAddonsSitelockSsoV2MockHandler(),
|
|
3918
3930
|
getBackupCreateV2MockHandler(),
|
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.1978.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -574,17 +574,6 @@ export declare type SitesDomainsV2200DomainsItem = {
|
|
|
574
574
|
export declare type SitesDomainsV2Params = {
|
|
575
575
|
scan?: boolean;
|
|
576
576
|
};
|
|
577
|
-
export declare type SitesListV2200 = {
|
|
578
|
-
items?: SitesListV2200ItemsItem[];
|
|
579
|
-
/** page size */
|
|
580
|
-
limit?: number;
|
|
581
|
-
/** current page number */
|
|
582
|
-
page?: number;
|
|
583
|
-
/** total number of pages */
|
|
584
|
-
pages?: number;
|
|
585
|
-
/** total number of sites returned */
|
|
586
|
-
total?: number;
|
|
587
|
-
};
|
|
588
577
|
/**
|
|
589
578
|
* @nullable
|
|
590
579
|
*/
|
|
@@ -612,63 +601,6 @@ export declare type SitesListV2200ItemsItemStaging = {
|
|
|
612
601
|
/** A list of staging sites of the current site */
|
|
613
602
|
sites?: number[];
|
|
614
603
|
} | null;
|
|
615
|
-
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
616
|
-
/** @nullable */
|
|
617
|
-
available?: number | null;
|
|
618
|
-
/** @nullable */
|
|
619
|
-
total?: number | null;
|
|
620
|
-
unit?: string;
|
|
621
|
-
/** @nullable */
|
|
622
|
-
used?: number | null;
|
|
623
|
-
};
|
|
624
|
-
export declare type SitesListV2200ItemsItemResources = {
|
|
625
|
-
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
626
|
-
/** @nullable */
|
|
627
|
-
workers?: number | null;
|
|
628
|
-
};
|
|
629
|
-
/**
|
|
630
|
-
* @nullable
|
|
631
|
-
*/
|
|
632
|
-
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
633
|
-
/**
|
|
634
|
-
* The root domain name
|
|
635
|
-
* @nullable
|
|
636
|
-
*/
|
|
637
|
-
base_domain?: string | null;
|
|
638
|
-
/**
|
|
639
|
-
* The Fully Qualified Domain Name (FQDN)
|
|
640
|
-
* @nullable
|
|
641
|
-
*/
|
|
642
|
-
domain?: string | null;
|
|
643
|
-
/**
|
|
644
|
-
* The current pending_url's HAL Domain ID
|
|
645
|
-
* @nullable
|
|
646
|
-
*/
|
|
647
|
-
domain_id?: number | null;
|
|
648
|
-
/** @nullable */
|
|
649
|
-
error?: string | null;
|
|
650
|
-
/** Flag indicating whether the pending_url is temporary or not */
|
|
651
|
-
is_temp?: boolean;
|
|
652
|
-
/**
|
|
653
|
-
* Flag indicating whether the url_sync job has run out of attempts
|
|
654
|
-
* @nullable
|
|
655
|
-
*/
|
|
656
|
-
job_failed?: boolean | null;
|
|
657
|
-
/** @nullable */
|
|
658
|
-
stage?: string | null;
|
|
659
|
-
/**
|
|
660
|
-
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
661
|
-
* @nullable
|
|
662
|
-
*/
|
|
663
|
-
wp_session?: string | null;
|
|
664
|
-
} | null;
|
|
665
|
-
/**
|
|
666
|
-
* Job ids for the site
|
|
667
|
-
* @nullable
|
|
668
|
-
*/
|
|
669
|
-
export declare type SitesListV2200ItemsItemJobs = {
|
|
670
|
-
[key: string]: unknown;
|
|
671
|
-
} | null;
|
|
672
604
|
export declare type SitesListV2200ItemsItem = {
|
|
673
605
|
/** @nullable */
|
|
674
606
|
account_back_ref?: string | null;
|
|
@@ -747,6 +679,74 @@ export declare type SitesListV2200ItemsItem = {
|
|
|
747
679
|
*/
|
|
748
680
|
version_ptr?: string | null;
|
|
749
681
|
};
|
|
682
|
+
export declare type SitesListV2200 = {
|
|
683
|
+
items?: SitesListV2200ItemsItem[];
|
|
684
|
+
/** page size */
|
|
685
|
+
limit?: number;
|
|
686
|
+
/** current page number */
|
|
687
|
+
page?: number;
|
|
688
|
+
/** total number of pages */
|
|
689
|
+
pages?: number;
|
|
690
|
+
/** total number of sites returned */
|
|
691
|
+
total?: number;
|
|
692
|
+
};
|
|
693
|
+
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
694
|
+
/** @nullable */
|
|
695
|
+
available?: number | null;
|
|
696
|
+
/** @nullable */
|
|
697
|
+
total?: number | null;
|
|
698
|
+
unit?: string;
|
|
699
|
+
/** @nullable */
|
|
700
|
+
used?: number | null;
|
|
701
|
+
};
|
|
702
|
+
export declare type SitesListV2200ItemsItemResources = {
|
|
703
|
+
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
704
|
+
/** @nullable */
|
|
705
|
+
workers?: number | null;
|
|
706
|
+
};
|
|
707
|
+
/**
|
|
708
|
+
* @nullable
|
|
709
|
+
*/
|
|
710
|
+
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
711
|
+
/**
|
|
712
|
+
* The root domain name
|
|
713
|
+
* @nullable
|
|
714
|
+
*/
|
|
715
|
+
base_domain?: string | null;
|
|
716
|
+
/**
|
|
717
|
+
* The Fully Qualified Domain Name (FQDN)
|
|
718
|
+
* @nullable
|
|
719
|
+
*/
|
|
720
|
+
domain?: string | null;
|
|
721
|
+
/**
|
|
722
|
+
* The current pending_url's HAL Domain ID
|
|
723
|
+
* @nullable
|
|
724
|
+
*/
|
|
725
|
+
domain_id?: number | null;
|
|
726
|
+
/** @nullable */
|
|
727
|
+
error?: string | null;
|
|
728
|
+
/** Flag indicating whether the pending_url is temporary or not */
|
|
729
|
+
is_temp?: boolean;
|
|
730
|
+
/**
|
|
731
|
+
* Flag indicating whether the url_sync job has run out of attempts
|
|
732
|
+
* @nullable
|
|
733
|
+
*/
|
|
734
|
+
job_failed?: boolean | null;
|
|
735
|
+
/** @nullable */
|
|
736
|
+
stage?: string | null;
|
|
737
|
+
/**
|
|
738
|
+
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
739
|
+
* @nullable
|
|
740
|
+
*/
|
|
741
|
+
wp_session?: string | null;
|
|
742
|
+
} | null;
|
|
743
|
+
/**
|
|
744
|
+
* Job ids for the site
|
|
745
|
+
* @nullable
|
|
746
|
+
*/
|
|
747
|
+
export declare type SitesListV2200ItemsItemJobs = {
|
|
748
|
+
[key: string]: unknown;
|
|
749
|
+
} | null;
|
|
750
750
|
export declare type SshKeyV2200 = {
|
|
751
751
|
deleted?: number;
|
|
752
752
|
key_name?: string;
|
|
@@ -1118,12 +1118,6 @@ export declare type HostingDomainsUnassignV2Body = {
|
|
|
1118
1118
|
/** The site id to be unassigned */
|
|
1119
1119
|
site_id: number;
|
|
1120
1120
|
};
|
|
1121
|
-
export declare type HostingDomainsV2200 = {
|
|
1122
|
-
domains: HostingDomainsV2200DomainsItem[];
|
|
1123
|
-
limit?: number;
|
|
1124
|
-
page?: number;
|
|
1125
|
-
total?: number;
|
|
1126
|
-
};
|
|
1127
1121
|
/**
|
|
1128
1122
|
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
1129
1123
|
* @nullable
|
|
@@ -1260,6 +1254,12 @@ export declare type HostingDomainsV2200DomainsItem = {
|
|
|
1260
1254
|
*/
|
|
1261
1255
|
used_entri?: number | null;
|
|
1262
1256
|
};
|
|
1257
|
+
export declare type HostingDomainsV2200 = {
|
|
1258
|
+
domains: HostingDomainsV2200DomainsItem[];
|
|
1259
|
+
limit?: number;
|
|
1260
|
+
page?: number;
|
|
1261
|
+
total?: number;
|
|
1262
|
+
};
|
|
1263
1263
|
export declare type HostingDomainsV2TypesItem = typeof HostingDomainsV2TypesItem[keyof typeof HostingDomainsV2TypesItem];
|
|
1264
1264
|
export declare const HostingDomainsV2TypesItem: {
|
|
1265
1265
|
readonly addon: "addon";
|
|
@@ -1477,6 +1477,50 @@ export declare type WaldaiSso200 = {
|
|
|
1477
1477
|
/** SSO redirect URL for WaldAI dashboard */
|
|
1478
1478
|
redirect_url: string;
|
|
1479
1479
|
};
|
|
1480
|
+
export declare type UserProservices200ProductsItemProductProfileOptionsItem = {
|
|
1481
|
+
/** @nullable */
|
|
1482
|
+
profile_option?: number | null;
|
|
1483
|
+
/** @nullable */
|
|
1484
|
+
profile_value?: string | null;
|
|
1485
|
+
};
|
|
1486
|
+
export declare type UserProservices200ProductsItem = {
|
|
1487
|
+
/** @nullable */
|
|
1488
|
+
auto_renew_flag?: boolean | null;
|
|
1489
|
+
/**
|
|
1490
|
+
* FG billing account id
|
|
1491
|
+
* @nullable
|
|
1492
|
+
*/
|
|
1493
|
+
billing_account_id?: string | null;
|
|
1494
|
+
/** @nullable */
|
|
1495
|
+
created_date?: string | null;
|
|
1496
|
+
/** @nullable */
|
|
1497
|
+
expiration_date?: string | null;
|
|
1498
|
+
/** @nullable */
|
|
1499
|
+
generic_prod_type?: string | null;
|
|
1500
|
+
/** @nullable */
|
|
1501
|
+
life_cycle_state?: string | null;
|
|
1502
|
+
/**
|
|
1503
|
+
* prod_code of the parent product referenced by parent_prod_inst_id
|
|
1504
|
+
* @nullable
|
|
1505
|
+
*/
|
|
1506
|
+
parent_prod_code?: string | null;
|
|
1507
|
+
/** @nullable */
|
|
1508
|
+
parent_prod_inst_id?: string | null;
|
|
1509
|
+
/** @nullable */
|
|
1510
|
+
prod_code?: string | null;
|
|
1511
|
+
/** @nullable */
|
|
1512
|
+
prod_inst_id?: string | null;
|
|
1513
|
+
/** @nullable */
|
|
1514
|
+
prod_name?: string | null;
|
|
1515
|
+
/** FG product profile options */
|
|
1516
|
+
product_profile_options?: UserProservices200ProductsItemProductProfileOptionsItem[];
|
|
1517
|
+
};
|
|
1518
|
+
export declare type UserProservices200 = {
|
|
1519
|
+
/** Pro-services products from FG */
|
|
1520
|
+
products?: UserProservices200ProductsItem[];
|
|
1521
|
+
/** Number of pro-services products returned */
|
|
1522
|
+
total?: number;
|
|
1523
|
+
};
|
|
1480
1524
|
export declare type AllUserMonarxDetails200RowsItem = {
|
|
1481
1525
|
/** HAL Account back_reference, used to link to the product instance */
|
|
1482
1526
|
account_back_ref?: string;
|