@newfold/huapi-js 1.980.0 → 1.982.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 +5 -5
- package/src/index.js +7 -7
- package/src/index.msw.d.ts +10 -10
- package/src/index.msw.js +11 -11
- package/src/index.schemas.d.ts +7 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
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.982.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import type { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
|
|
10
10
|
import type { UseQueryOptions, UseInfiniteQueryOptions, UseMutationOptions, UseQueryResult, UseInfiniteQueryResult, QueryKey } from '@tanstack/react-query';
|
|
11
|
-
import type { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKeys200, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyDelete200, AccountPublicKeyDelete404, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseList200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteList200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, AddonsSitelockSso200, BackupInitiate200, BackupInitiateBody, BackupStatus200, BackupStatusParams, BackupList200, BackupListParams, AddonsCloudflare200, AddonsInfo200, AddonsSpamexpertsSso200, WebzaiSso200, WeeblySso200, DomainInfo200, DomainUnassign200, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, AddonCloudflare200, AddonCloudflareBody, ListCrons200, AddCron200, AddCron400, AddCronBody, UpdateCron200, UpdateCronBody, Cron200, CronBody, DbAdd200, DbAddBody, Db200, DbBody, DbList200, DbCheckDatabase200, DbCheckDatabaseBody, DbUsage200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserRename200, DbUserRenameBody, Domains200, DomainsParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingEcommerceInfo200, HostingFtpList200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpUpdate200, HostingFtpUpdateBody, HostingFtp200, HostingFtpBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingNameservers200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirects200Item, HostingRedirect200, HostingRedirectBody, AddHostingRedirects200, AddHostingRedirectsBody, HostingResellerSsoWhm200, HostingShellToggle200, HostingShellToggleBody, HostingShellInfo200, HostingSiteAdd200, HostingSiteAddBody, SitesBatch200, SitesBatchBody, HostingSshInfo200, SshKeyFetch200, SshKeyFetchParams, SshKeyImport200, SshKeyImportBody, SshKeyList200, SshKey200, SshKeyBody, SshKeyGenerate200, SshKeyGenerateBody, Sso200, SsoParams, SitesList200, SitesInfo200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, Site200, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesHasBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, JetpackBackupStatus200, BackupsJetpackBackup200, SiteAddonCloudflare200, SiteAddonCloudflare400, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesAccessLogs200, SitesAccessLogsParams, SitesAccessLogsDownloadParams, SitesErrorLogs200, SitesErrorLogsParams, SitesErrorLogsDownloadParams, SiteMalwareStatus200, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesMetricDimensions200, SitesMetricDimensionsParams, SitePendingDomainDelete200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEndurancePageCache200, SitePlugins200, SitePluginsParams, SitePluginUpdate200, SitePluginUpdateBody, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, ResetSite200, ResetSiteBody, SitesSecurityCheckCore200, SitesSecurityResetCoreFiles200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecuritySitelock200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserList200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SiteStatus200, SiteUsers200, SitesVersion200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, HostingNameserversV2200, HostingSitesV2200, SshKeyListV2200, SitesListV2200, SitesDomainsV2200, SitesDomainsV2Params, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSshUserListV2200, SitesListV3200 } from './index.schemas';
|
|
11
|
+
import type { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKeys200, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyDelete200, AccountPublicKeyDelete404, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseList200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteList200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, AddonsSitelockSso200, BackupInitiate200, BackupInitiateBody, BackupStatus200, BackupStatusParams, BackupList200, BackupListParams, AddonsCloudflare200, AddonsInfo200, AddonsSpamexpertsSso200, WebzaiSso200, WeeblySso200, DomainInfo200, DomainUnassign200, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, AddonCloudflare200, AddonCloudflareBody, ListCrons200, AddCron200, AddCron400, AddCronBody, UpdateCron200, UpdateCronBody, Cron200, CronBody, DbAdd200, DbAddBody, Db200, DbBody, DbList200, DbCheckDatabase200, DbCheckDatabaseBody, DbUsage200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserRename200, DbUserRenameBody, Domains200, DomainsParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingEcommerceInfo200, HostingFtpList200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpUpdate200, HostingFtpUpdateBody, HostingFtp200, HostingFtpBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingNameservers200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirects200Item, HostingRedirect200, HostingRedirectBody, AddHostingRedirects200, AddHostingRedirectsBody, HostingResellerSsoWhm200, HostingShellToggle200, HostingShellToggleBody, HostingShellInfo200, HostingSiteAdd200, HostingSiteAddBody, SitesBatch200, SitesBatchBody, HostingSshInfo200, SshKeyFetch200, SshKeyFetchParams, SshKeyImport200, SshKeyImportBody, SshKeyList200, SshKey200, SshKeyBody, SshKeyGenerate200, SshKeyGenerateBody, Sso200, SsoParams, SitesList200, SitesInfo200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, Site200, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesHasBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, JetpackBackupStatus200, BackupsJetpackBackup200, SiteAddonCloudflare200, SiteAddonCloudflare400, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesAccessLogs200, SitesAccessLogsParams, SitesAccessLogsDownloadParams, SitesErrorLogs200, SitesErrorLogsParams, SitesErrorLogsDownloadParams, SiteMalwareStatus200, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesMetricDimensions200, SitesMetricDimensionsParams, SitePendingDomainDelete200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEndurancePageCache200, SitePlugins200, SitePluginsParams, SitePluginUpdate200, SitePluginUpdateBody, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, ResetSite200, ResetSiteBody, SitesSecurityCheckCore200, SitesSecurityResetCoreFiles200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecuritySitelock200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserList200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SiteStatus200, SiteUsers200, SitesVersion200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, HostingNameserversV2200, HostingSitesV2200, SshKeyListV2200, SitesListV2200, SitesDomainsV2200, SitesDomainsV2Params, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSshUserListV2200, SitesListV3200 } from './index.schemas';
|
|
12
12
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
13
13
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
14
14
|
/**
|
|
@@ -2131,11 +2131,11 @@ export declare const useSitesSecuritySslAcme: <TError = AxiosError<unknown, any>
|
|
|
2131
2131
|
* @deprecated
|
|
2132
2132
|
* @summary ssl status
|
|
2133
2133
|
*/
|
|
2134
|
-
export declare const sitesSecuritySslStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecuritySslStatus200>>;
|
|
2135
|
-
export declare const getSitesSecuritySslStatusQueryKey: (siteId: number) => string[];
|
|
2134
|
+
export declare const sitesSecuritySslStatus: (siteId: number, params?: SitesSecuritySslStatusParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecuritySslStatus200>>;
|
|
2135
|
+
export declare const getSitesSecuritySslStatusQueryKey: (siteId: number, params?: SitesSecuritySslStatusParams) => (string | SitesSecuritySslStatusParams)[];
|
|
2136
2136
|
export declare type SitesSecuritySslStatusQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecuritySslStatus>>>;
|
|
2137
2137
|
export declare type SitesSecuritySslStatusQueryError = AxiosError<unknown>;
|
|
2138
|
-
export declare const useSitesSecuritySslStatus: <TData = AxiosResponse<SitesSecuritySslStatus200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
2138
|
+
export declare const useSitesSecuritySslStatus: <TData = AxiosResponse<SitesSecuritySslStatus200, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesSecuritySslStatusParams, options?: {
|
|
2139
2139
|
query?: UseQueryOptions<AxiosResponse<SitesSecuritySslStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
2140
2140
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
2141
2141
|
} | undefined) => UseQueryResult<TData, TError> & {
|
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.982.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import { useQuery, useInfiniteQuery, useMutation } from '@tanstack/react-query';
|
|
@@ -2186,15 +2186,15 @@ export const useSitesSecuritySslAcme = (options) => {
|
|
|
2186
2186
|
* @deprecated
|
|
2187
2187
|
* @summary ssl status
|
|
2188
2188
|
*/
|
|
2189
|
-
export const sitesSecuritySslStatus = (siteId, options) => {
|
|
2190
|
-
return axios.get(`/v1/sites/${siteId}/security/ssl/status`, options);
|
|
2189
|
+
export const sitesSecuritySslStatus = (siteId, params, options) => {
|
|
2190
|
+
return axios.get(`/v1/sites/${siteId}/security/ssl/status`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
2191
2191
|
};
|
|
2192
|
-
export const getSitesSecuritySslStatusQueryKey = (siteId) => [`/v1/sites/${siteId}/security/ssl/status
|
|
2193
|
-
export const useSitesSecuritySslStatus = (siteId, options) => {
|
|
2192
|
+
export const getSitesSecuritySslStatusQueryKey = (siteId, params) => [`/v1/sites/${siteId}/security/ssl/status`, ...(params ? [params] : [])];
|
|
2193
|
+
export const useSitesSecuritySslStatus = (siteId, params, options) => {
|
|
2194
2194
|
var _a;
|
|
2195
2195
|
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2196
|
-
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSitesSecuritySslStatusQueryKey(siteId);
|
|
2197
|
-
const queryFn = ({ signal }) => sitesSecuritySslStatus(siteId, Object.assign({ signal }, axiosOptions));
|
|
2196
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSitesSecuritySslStatusQueryKey(siteId, params);
|
|
2197
|
+
const queryFn = ({ signal }) => sitesSecuritySslStatus(siteId, params, Object.assign({ signal }, axiosOptions));
|
|
2198
2198
|
const query = useQuery(Object.assign({ queryKey, queryFn, enabled: !!(siteId) }, queryOptions));
|
|
2199
2199
|
query.queryKey = queryKey;
|
|
2200
2200
|
return query;
|
package/src/index.msw.d.ts
CHANGED
|
@@ -766,61 +766,61 @@ export declare const getSitesMetricDimensionsMock: () => {
|
|
|
766
766
|
dimensions: {
|
|
767
767
|
http_version: {
|
|
768
768
|
dimension: {
|
|
769
|
-
|
|
769
|
+
cm0rej19b00001rlier9hbuq9: number;
|
|
770
770
|
} | undefined;
|
|
771
771
|
timestamp: number | undefined;
|
|
772
772
|
}[] | undefined;
|
|
773
773
|
http_verb: {
|
|
774
774
|
dimension: {
|
|
775
|
-
|
|
775
|
+
cm0rej19h00011rlih5sod7qf: number;
|
|
776
776
|
} | undefined;
|
|
777
777
|
timestamp: number | undefined;
|
|
778
778
|
}[] | undefined;
|
|
779
779
|
http_host: {
|
|
780
780
|
dimension: {
|
|
781
|
-
|
|
781
|
+
cm0rej19h00021rligot59fyt: number;
|
|
782
782
|
} | undefined;
|
|
783
783
|
timestamp: number | undefined;
|
|
784
784
|
}[] | undefined;
|
|
785
785
|
http_status: {
|
|
786
786
|
dimension: {
|
|
787
|
-
|
|
787
|
+
cm0rej19h00031rlihmre9h3k: number;
|
|
788
788
|
} | undefined;
|
|
789
789
|
timestamp: number | undefined;
|
|
790
790
|
}[] | undefined;
|
|
791
791
|
page_renderer: {
|
|
792
792
|
dimension: {
|
|
793
|
-
|
|
793
|
+
cm0rej19i00041rli9o2vhcrj: number;
|
|
794
794
|
} | undefined;
|
|
795
795
|
timestamp: number | undefined;
|
|
796
796
|
}[] | undefined;
|
|
797
797
|
page_is_cached: {
|
|
798
798
|
dimension: {
|
|
799
|
-
|
|
799
|
+
cm0rej19i00051rlidi5g1xz5: number;
|
|
800
800
|
} | undefined;
|
|
801
801
|
timestamp: number | undefined;
|
|
802
802
|
}[] | undefined;
|
|
803
803
|
wp_admin_ajax_action: {
|
|
804
804
|
dimension: {
|
|
805
|
-
|
|
805
|
+
cm0rej19i00061rli84h07w1p: number;
|
|
806
806
|
} | undefined;
|
|
807
807
|
timestamp: number | undefined;
|
|
808
808
|
}[] | undefined;
|
|
809
809
|
visitor_asn: {
|
|
810
810
|
dimension: {
|
|
811
|
-
|
|
811
|
+
cm0rej19i00071rli33ex8e89: number;
|
|
812
812
|
} | undefined;
|
|
813
813
|
timestamp: number | undefined;
|
|
814
814
|
}[] | undefined;
|
|
815
815
|
visitor_country_code: {
|
|
816
816
|
dimension: {
|
|
817
|
-
|
|
817
|
+
cm0rej19j00081rli4wtpdqjm: number;
|
|
818
818
|
} | undefined;
|
|
819
819
|
timestamp: number | undefined;
|
|
820
820
|
}[] | undefined;
|
|
821
821
|
visitor_is_crawler: {
|
|
822
822
|
dimension: {
|
|
823
|
-
|
|
823
|
+
cm0rej19j00091rliaylk27en: number;
|
|
824
824
|
} | undefined;
|
|
825
825
|
timestamp: number | undefined;
|
|
826
826
|
}[] | undefined;
|
package/src/index.msw.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.982.0
|
|
7
7
|
*/
|
|
8
8
|
import { rest } from 'msw';
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
@@ -121,25 +121,25 @@ export const getSitesErrorLogsMock = () => ({ datetime_end: faker.helpers.arrayE
|
|
|
121
121
|
export const getSiteMalwareStatusMock = () => ({ malware_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.random.word(), null]), undefined]), scanner_state: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.random.word(), null]), undefined]) });
|
|
122
122
|
export const getSitesMetricsDimensionAveragedMock = () => ({ date_end: faker.helpers.arrayElement([`${faker.date.past().toISOString().split('.')[0]}Z`, undefined]), date_start: faker.helpers.arrayElement([`${faker.date.past().toISOString().split('.')[0]}Z`, undefined]), dimension: faker.helpers.arrayElement([faker.random.word(), undefined]), elapsed: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]), unit: faker.helpers.arrayElement([faker.random.word(), undefined]), metrics: faker.helpers.arrayElement([{ requests_persec: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.datatype.number({ min: undefined, max: undefined }))), undefined]), response_bytes_persec: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.datatype.number({ min: undefined, max: undefined }))), undefined]), response_bytes_average: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.datatype.number({ min: undefined, max: undefined }))), undefined]), response_time_average: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.datatype.number({ min: undefined, max: undefined }))), undefined]) }, undefined]) });
|
|
123
123
|
export const getSitesMetricDimensionsMock = () => ({ date_end: faker.helpers.arrayElement([`${faker.date.past().toISOString().split('.')[0]}Z`, undefined]), date_start: faker.helpers.arrayElement([`${faker.date.past().toISOString().split('.')[0]}Z`, undefined]), elapsed: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]), metric: faker.helpers.arrayElement([faker.random.word(), undefined]), dimensions: faker.helpers.arrayElement([{ http_version: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ dimension: faker.helpers.arrayElement([{
|
|
124
|
-
'
|
|
124
|
+
'cm0rej19b00001rlier9hbuq9': faker.datatype.number({ min: undefined, max: undefined })
|
|
125
125
|
}, undefined]), timestamp: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) })), undefined]), http_verb: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ dimension: faker.helpers.arrayElement([{
|
|
126
|
-
'
|
|
126
|
+
'cm0rej19h00011rlih5sod7qf': faker.datatype.number({ min: undefined, max: undefined })
|
|
127
127
|
}, undefined]), timestamp: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) })), undefined]), http_host: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ dimension: faker.helpers.arrayElement([{
|
|
128
|
-
'
|
|
128
|
+
'cm0rej19h00021rligot59fyt': faker.datatype.number({ min: undefined, max: undefined })
|
|
129
129
|
}, undefined]), timestamp: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) })), undefined]), http_status: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ dimension: faker.helpers.arrayElement([{
|
|
130
|
-
'
|
|
130
|
+
'cm0rej19h00031rlihmre9h3k': faker.datatype.number({ min: undefined, max: undefined })
|
|
131
131
|
}, undefined]), timestamp: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) })), undefined]), page_renderer: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ dimension: faker.helpers.arrayElement([{
|
|
132
|
-
'
|
|
132
|
+
'cm0rej19i00041rli9o2vhcrj': faker.datatype.number({ min: undefined, max: undefined })
|
|
133
133
|
}, undefined]), timestamp: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) })), undefined]), page_is_cached: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ dimension: faker.helpers.arrayElement([{
|
|
134
|
-
'
|
|
134
|
+
'cm0rej19i00051rlidi5g1xz5': faker.datatype.number({ min: undefined, max: undefined })
|
|
135
135
|
}, undefined]), timestamp: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) })), undefined]), wp_admin_ajax_action: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ dimension: faker.helpers.arrayElement([{
|
|
136
|
-
'
|
|
136
|
+
'cm0rej19i00061rli84h07w1p': faker.datatype.number({ min: undefined, max: undefined })
|
|
137
137
|
}, undefined]), timestamp: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) })), undefined]), visitor_asn: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ dimension: faker.helpers.arrayElement([{
|
|
138
|
-
'
|
|
138
|
+
'cm0rej19i00071rli33ex8e89': faker.datatype.number({ min: undefined, max: undefined })
|
|
139
139
|
}, undefined]), timestamp: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) })), undefined]), visitor_country_code: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ dimension: faker.helpers.arrayElement([{
|
|
140
|
-
'
|
|
140
|
+
'cm0rej19j00081rli4wtpdqjm': faker.datatype.number({ min: undefined, max: undefined })
|
|
141
141
|
}, undefined]), timestamp: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) })), undefined]), visitor_is_crawler: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ dimension: faker.helpers.arrayElement([{
|
|
142
|
-
'
|
|
142
|
+
'cm0rej19j00091rliaylk27en': faker.datatype.number({ min: undefined, max: undefined })
|
|
143
143
|
}, undefined]), timestamp: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) })), undefined]) }, undefined]) });
|
|
144
144
|
export const getSitePendingDomainDeleteMock = () => ({});
|
|
145
145
|
export const getSitesPerformanceCachepurgeMock = () => ({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) });
|
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.982.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SitesListV3200 = {
|
|
9
9
|
total?: number;
|
|
@@ -475,6 +475,12 @@ export declare type SitesSecuritySslStatus200 = {
|
|
|
475
475
|
provider?: string;
|
|
476
476
|
upgradeable?: boolean;
|
|
477
477
|
};
|
|
478
|
+
export declare type SitesSecuritySslStatusParams = {
|
|
479
|
+
/**
|
|
480
|
+
* scans hal domains to get updated ssl information
|
|
481
|
+
*/
|
|
482
|
+
domain_scan?: boolean;
|
|
483
|
+
};
|
|
478
484
|
export declare type SitesSecuritySslAcme200 = {
|
|
479
485
|
success?: number;
|
|
480
486
|
message?: string;
|