@newfold/huapi-js 2.1123.0 → 2.1128.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 +132 -7
- package/src/index.js +93 -1
- package/src/index.msw.d.ts +9 -1
- package/src/index.msw.js +50 -2
- package/src/index.schemas.d.ts +111 -22
- package/src/index.schemas.js +19 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
|
-
import type { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupStatus200, BackupStatusParams, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbList200, DbListV2200, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesParams, ListIndex200, ListIndexParams, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesList200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, Sso200, SsoParams, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
4
|
+
import type { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupStatus200, BackupStatusParams, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbList200, DbListV2200, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesParams, ListIndex200, ListIndexParams, Privacy200, PrivacyBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesList200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, Sso200, SsoParams, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -2157,6 +2157,131 @@ export declare const useDbUserRename: <TError = AxiosError<unknown, any>, TConte
|
|
|
2157
2157
|
hostingId: number;
|
|
2158
2158
|
data: DbUserRenameBody;
|
|
2159
2159
|
}, TContext>;
|
|
2160
|
+
/**
|
|
2161
|
+
* Allow user to secure specific folders
|
|
2162
|
+
* @summary Allow users to secure specific folders on their websites
|
|
2163
|
+
*/
|
|
2164
|
+
export declare const directoryPrivacy: (hostingId: string, params?: DirectoryPrivacyParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<DirectoryPrivacy200>>;
|
|
2165
|
+
export declare const getDirectoryPrivacyQueryKey: (hostingId: string, params?: DirectoryPrivacyParams) => readonly [`/v1/hosting/${string}/directoryprivacy`, ...DirectoryPrivacyParams[]];
|
|
2166
|
+
export declare const getDirectoryPrivacyQueryOptions: <TData = AxiosResponse<DirectoryPrivacy200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params?: DirectoryPrivacyParams, options?: {
|
|
2167
|
+
query?: Partial<UseQueryOptions<AxiosResponse<DirectoryPrivacy200, any>, TError, TData, QueryKey>> | undefined;
|
|
2168
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2169
|
+
} | undefined) => UseQueryOptions<AxiosResponse<DirectoryPrivacy200, any>, TError, TData, QueryKey> & {
|
|
2170
|
+
queryKey: QueryKey;
|
|
2171
|
+
};
|
|
2172
|
+
export declare type DirectoryPrivacyQueryResult = NonNullable<Awaited<ReturnType<typeof directoryPrivacy>>>;
|
|
2173
|
+
export declare type DirectoryPrivacyQueryError = AxiosError<unknown>;
|
|
2174
|
+
export declare function useDirectoryPrivacy<TData = Awaited<ReturnType<typeof directoryPrivacy>>, TError = AxiosError<unknown>>(hostingId: string, params: undefined | DirectoryPrivacyParams, options: {
|
|
2175
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof directoryPrivacy>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof directoryPrivacy>>, TError, TData>, 'initialData'>;
|
|
2176
|
+
axios?: AxiosRequestConfig;
|
|
2177
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
2178
|
+
queryKey: QueryKey;
|
|
2179
|
+
};
|
|
2180
|
+
export declare function useDirectoryPrivacy<TData = Awaited<ReturnType<typeof directoryPrivacy>>, TError = AxiosError<unknown>>(hostingId: string, params?: DirectoryPrivacyParams, options?: {
|
|
2181
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof directoryPrivacy>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof directoryPrivacy>>, TError, TData>, 'initialData'>;
|
|
2182
|
+
axios?: AxiosRequestConfig;
|
|
2183
|
+
}): UseQueryResult<TData, TError> & {
|
|
2184
|
+
queryKey: QueryKey;
|
|
2185
|
+
};
|
|
2186
|
+
export declare function useDirectoryPrivacy<TData = Awaited<ReturnType<typeof directoryPrivacy>>, TError = AxiosError<unknown>>(hostingId: string, params?: DirectoryPrivacyParams, options?: {
|
|
2187
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof directoryPrivacy>>, TError, TData>>;
|
|
2188
|
+
axios?: AxiosRequestConfig;
|
|
2189
|
+
}): UseQueryResult<TData, TError> & {
|
|
2190
|
+
queryKey: QueryKey;
|
|
2191
|
+
};
|
|
2192
|
+
/**
|
|
2193
|
+
* Allow user to add specific folders
|
|
2194
|
+
* @summary Allow users to secure specific folders on their websites
|
|
2195
|
+
*/
|
|
2196
|
+
export declare const addPrivacy: (hostingId: string, addPrivacyBody: AddPrivacyBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddPrivacy200>>;
|
|
2197
|
+
export declare const getAddPrivacyMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
2198
|
+
mutation?: UseMutationOptions<AxiosResponse<AddPrivacy200, any>, TError, {
|
|
2199
|
+
hostingId: string;
|
|
2200
|
+
data: AddPrivacyBody;
|
|
2201
|
+
}, TContext> | undefined;
|
|
2202
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2203
|
+
} | undefined) => UseMutationOptions<AxiosResponse<AddPrivacy200, any>, TError, {
|
|
2204
|
+
hostingId: string;
|
|
2205
|
+
data: AddPrivacyBody;
|
|
2206
|
+
}, TContext>;
|
|
2207
|
+
export declare type AddPrivacyMutationResult = NonNullable<Awaited<ReturnType<typeof addPrivacy>>>;
|
|
2208
|
+
export declare type AddPrivacyMutationBody = AddPrivacyBody;
|
|
2209
|
+
export declare type AddPrivacyMutationError = AxiosError<unknown>;
|
|
2210
|
+
/**
|
|
2211
|
+
* @summary Allow users to secure specific folders on their websites
|
|
2212
|
+
*/
|
|
2213
|
+
export declare const useAddPrivacy: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
2214
|
+
mutation?: UseMutationOptions<AxiosResponse<AddPrivacy200, any>, TError, {
|
|
2215
|
+
hostingId: string;
|
|
2216
|
+
data: AddPrivacyBody;
|
|
2217
|
+
}, TContext> | undefined;
|
|
2218
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2219
|
+
} | undefined) => UseMutationResult<AxiosResponse<AddPrivacy200, any>, TError, {
|
|
2220
|
+
hostingId: string;
|
|
2221
|
+
data: AddPrivacyBody;
|
|
2222
|
+
}, TContext>;
|
|
2223
|
+
/**
|
|
2224
|
+
* Allow user to delete specific folders
|
|
2225
|
+
* @summary Allow users to delete specific folders on their websites
|
|
2226
|
+
*/
|
|
2227
|
+
export declare const privacy: (hostingId: string, privacyBody: PrivacyBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<Privacy200>>;
|
|
2228
|
+
export declare const getPrivacyMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
2229
|
+
mutation?: UseMutationOptions<AxiosResponse<Privacy200, any>, TError, {
|
|
2230
|
+
hostingId: string;
|
|
2231
|
+
data: PrivacyBody;
|
|
2232
|
+
}, TContext> | undefined;
|
|
2233
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2234
|
+
} | undefined) => UseMutationOptions<AxiosResponse<Privacy200, any>, TError, {
|
|
2235
|
+
hostingId: string;
|
|
2236
|
+
data: PrivacyBody;
|
|
2237
|
+
}, TContext>;
|
|
2238
|
+
export declare type PrivacyMutationResult = NonNullable<Awaited<ReturnType<typeof privacy>>>;
|
|
2239
|
+
export declare type PrivacyMutationBody = PrivacyBody;
|
|
2240
|
+
export declare type PrivacyMutationError = AxiosError<unknown>;
|
|
2241
|
+
/**
|
|
2242
|
+
* @summary Allow users to delete specific folders on their websites
|
|
2243
|
+
*/
|
|
2244
|
+
export declare const usePrivacy: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
2245
|
+
mutation?: UseMutationOptions<AxiosResponse<Privacy200, any>, TError, {
|
|
2246
|
+
hostingId: string;
|
|
2247
|
+
data: PrivacyBody;
|
|
2248
|
+
}, TContext> | undefined;
|
|
2249
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2250
|
+
} | undefined) => UseMutationResult<AxiosResponse<Privacy200, any>, TError, {
|
|
2251
|
+
hostingId: string;
|
|
2252
|
+
data: PrivacyBody;
|
|
2253
|
+
}, TContext>;
|
|
2254
|
+
/**
|
|
2255
|
+
* Allow user to secure specific folders
|
|
2256
|
+
* @summary Allow users to edit secure specific folders on their websites
|
|
2257
|
+
*/
|
|
2258
|
+
export declare const editPrivacy: (hostingId: string, editPrivacyBody: EditPrivacyBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<EditPrivacy200>>;
|
|
2259
|
+
export declare const getEditPrivacyMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
2260
|
+
mutation?: UseMutationOptions<AxiosResponse<EditPrivacy200, any>, TError, {
|
|
2261
|
+
hostingId: string;
|
|
2262
|
+
data: EditPrivacyBody;
|
|
2263
|
+
}, TContext> | undefined;
|
|
2264
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2265
|
+
} | undefined) => UseMutationOptions<AxiosResponse<EditPrivacy200, any>, TError, {
|
|
2266
|
+
hostingId: string;
|
|
2267
|
+
data: EditPrivacyBody;
|
|
2268
|
+
}, TContext>;
|
|
2269
|
+
export declare type EditPrivacyMutationResult = NonNullable<Awaited<ReturnType<typeof editPrivacy>>>;
|
|
2270
|
+
export declare type EditPrivacyMutationBody = EditPrivacyBody;
|
|
2271
|
+
export declare type EditPrivacyMutationError = AxiosError<unknown>;
|
|
2272
|
+
/**
|
|
2273
|
+
* @summary Allow users to edit secure specific folders on their websites
|
|
2274
|
+
*/
|
|
2275
|
+
export declare const useEditPrivacy: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
2276
|
+
mutation?: UseMutationOptions<AxiosResponse<EditPrivacy200, any>, TError, {
|
|
2277
|
+
hostingId: string;
|
|
2278
|
+
data: EditPrivacyBody;
|
|
2279
|
+
}, TContext> | undefined;
|
|
2280
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2281
|
+
} | undefined) => UseMutationResult<AxiosResponse<EditPrivacy200, any>, TError, {
|
|
2282
|
+
hostingId: string;
|
|
2283
|
+
data: EditPrivacyBody;
|
|
2284
|
+
}, TContext>;
|
|
2160
2285
|
/**
|
|
2161
2286
|
* Returns a list of domains
|
|
2162
2287
|
* @summary domain list
|
|
@@ -2256,9 +2381,9 @@ export declare function useHostingEcommerceInfo<TData = Awaited<ReturnType<typeo
|
|
|
2256
2381
|
* List files under the given directory
|
|
2257
2382
|
* @summary List files
|
|
2258
2383
|
*/
|
|
2259
|
-
export declare const listFiles: (hostingId: string, params
|
|
2260
|
-
export declare const getListFilesQueryKey: (hostingId: string, params
|
|
2261
|
-
export declare const getListFilesQueryOptions: <TData = AxiosResponse<ListFiles200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params
|
|
2384
|
+
export declare const listFiles: (hostingId: string, params: ListFilesParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<ListFiles200>>;
|
|
2385
|
+
export declare const getListFilesQueryKey: (hostingId: string, params: ListFilesParams) => readonly [`/v1/hosting/${string}/files`, ...ListFilesParams[]];
|
|
2386
|
+
export declare const getListFilesQueryOptions: <TData = AxiosResponse<ListFiles200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params: ListFilesParams, options?: {
|
|
2262
2387
|
query?: Partial<UseQueryOptions<AxiosResponse<ListFiles200, any>, TError, TData, QueryKey>> | undefined;
|
|
2263
2388
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
2264
2389
|
} | undefined) => UseQueryOptions<AxiosResponse<ListFiles200, any>, TError, TData, QueryKey> & {
|
|
@@ -2266,19 +2391,19 @@ export declare const getListFilesQueryOptions: <TData = AxiosResponse<ListFiles2
|
|
|
2266
2391
|
};
|
|
2267
2392
|
export declare type ListFilesQueryResult = NonNullable<Awaited<ReturnType<typeof listFiles>>>;
|
|
2268
2393
|
export declare type ListFilesQueryError = AxiosError<unknown>;
|
|
2269
|
-
export declare function useListFiles<TData = Awaited<ReturnType<typeof listFiles>>, TError = AxiosError<unknown>>(hostingId: string, params:
|
|
2394
|
+
export declare function useListFiles<TData = Awaited<ReturnType<typeof listFiles>>, TError = AxiosError<unknown>>(hostingId: string, params: ListFilesParams, options: {
|
|
2270
2395
|
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listFiles>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listFiles>>, TError, TData>, 'initialData'>;
|
|
2271
2396
|
axios?: AxiosRequestConfig;
|
|
2272
2397
|
}): DefinedUseQueryResult<TData, TError> & {
|
|
2273
2398
|
queryKey: QueryKey;
|
|
2274
2399
|
};
|
|
2275
|
-
export declare function useListFiles<TData = Awaited<ReturnType<typeof listFiles>>, TError = AxiosError<unknown>>(hostingId: string, params
|
|
2400
|
+
export declare function useListFiles<TData = Awaited<ReturnType<typeof listFiles>>, TError = AxiosError<unknown>>(hostingId: string, params: ListFilesParams, options?: {
|
|
2276
2401
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listFiles>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listFiles>>, TError, TData>, 'initialData'>;
|
|
2277
2402
|
axios?: AxiosRequestConfig;
|
|
2278
2403
|
}): UseQueryResult<TData, TError> & {
|
|
2279
2404
|
queryKey: QueryKey;
|
|
2280
2405
|
};
|
|
2281
|
-
export declare function useListFiles<TData = Awaited<ReturnType<typeof listFiles>>, TError = AxiosError<unknown>>(hostingId: string, params
|
|
2406
|
+
export declare function useListFiles<TData = Awaited<ReturnType<typeof listFiles>>, TError = AxiosError<unknown>>(hostingId: string, params: ListFilesParams, options?: {
|
|
2282
2407
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listFiles>>, TError, TData>>;
|
|
2283
2408
|
axios?: AxiosRequestConfig;
|
|
2284
2409
|
}): 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.1128.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -1669,6 +1669,98 @@ export const useDbUserRename = (options) => {
|
|
|
1669
1669
|
const mutationOptions = getDbUserRenameMutationOptions(options);
|
|
1670
1670
|
return useMutation(mutationOptions);
|
|
1671
1671
|
};
|
|
1672
|
+
/**
|
|
1673
|
+
* Allow user to secure specific folders
|
|
1674
|
+
* @summary Allow users to secure specific folders on their websites
|
|
1675
|
+
*/
|
|
1676
|
+
export const directoryPrivacy = (hostingId, params, options) => {
|
|
1677
|
+
return axios.get(`/v1/hosting/${hostingId}/directoryprivacy`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
1678
|
+
};
|
|
1679
|
+
export const getDirectoryPrivacyQueryKey = (hostingId, params) => {
|
|
1680
|
+
return [`/v1/hosting/${hostingId}/directoryprivacy`, ...(params ? [params] : [])];
|
|
1681
|
+
};
|
|
1682
|
+
export const getDirectoryPrivacyQueryOptions = (hostingId, params, options) => {
|
|
1683
|
+
var _a;
|
|
1684
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1685
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getDirectoryPrivacyQueryKey(hostingId, params);
|
|
1686
|
+
const queryFn = ({ signal }) => directoryPrivacy(hostingId, params, Object.assign({ signal }, axiosOptions));
|
|
1687
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
1688
|
+
};
|
|
1689
|
+
/**
|
|
1690
|
+
* @summary Allow users to secure specific folders on their websites
|
|
1691
|
+
*/
|
|
1692
|
+
export function useDirectoryPrivacy(hostingId, params, options) {
|
|
1693
|
+
const queryOptions = getDirectoryPrivacyQueryOptions(hostingId, params, options);
|
|
1694
|
+
const query = useQuery(queryOptions);
|
|
1695
|
+
query.queryKey = queryOptions.queryKey;
|
|
1696
|
+
return query;
|
|
1697
|
+
}
|
|
1698
|
+
/**
|
|
1699
|
+
* Allow user to add specific folders
|
|
1700
|
+
* @summary Allow users to secure specific folders on their websites
|
|
1701
|
+
*/
|
|
1702
|
+
export const addPrivacy = (hostingId, addPrivacyBody, options) => {
|
|
1703
|
+
return axios.post(`/v1/hosting/${hostingId}/directoryprivacy`, addPrivacyBody, options);
|
|
1704
|
+
};
|
|
1705
|
+
export const getAddPrivacyMutationOptions = (options) => {
|
|
1706
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1707
|
+
const mutationFn = (props) => {
|
|
1708
|
+
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
1709
|
+
return addPrivacy(hostingId, data, axiosOptions);
|
|
1710
|
+
};
|
|
1711
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
1712
|
+
};
|
|
1713
|
+
/**
|
|
1714
|
+
* @summary Allow users to secure specific folders on their websites
|
|
1715
|
+
*/
|
|
1716
|
+
export const useAddPrivacy = (options) => {
|
|
1717
|
+
const mutationOptions = getAddPrivacyMutationOptions(options);
|
|
1718
|
+
return useMutation(mutationOptions);
|
|
1719
|
+
};
|
|
1720
|
+
/**
|
|
1721
|
+
* Allow user to delete specific folders
|
|
1722
|
+
* @summary Allow users to delete specific folders on their websites
|
|
1723
|
+
*/
|
|
1724
|
+
export const privacy = (hostingId, privacyBody, options) => {
|
|
1725
|
+
return axios.delete(`/v1/hosting/${hostingId}/directoryprivacy`, Object.assign({ data: privacyBody }, options));
|
|
1726
|
+
};
|
|
1727
|
+
export const getPrivacyMutationOptions = (options) => {
|
|
1728
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1729
|
+
const mutationFn = (props) => {
|
|
1730
|
+
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
1731
|
+
return privacy(hostingId, data, axiosOptions);
|
|
1732
|
+
};
|
|
1733
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
1734
|
+
};
|
|
1735
|
+
/**
|
|
1736
|
+
* @summary Allow users to delete specific folders on their websites
|
|
1737
|
+
*/
|
|
1738
|
+
export const usePrivacy = (options) => {
|
|
1739
|
+
const mutationOptions = getPrivacyMutationOptions(options);
|
|
1740
|
+
return useMutation(mutationOptions);
|
|
1741
|
+
};
|
|
1742
|
+
/**
|
|
1743
|
+
* Allow user to secure specific folders
|
|
1744
|
+
* @summary Allow users to edit secure specific folders on their websites
|
|
1745
|
+
*/
|
|
1746
|
+
export const editPrivacy = (hostingId, editPrivacyBody, options) => {
|
|
1747
|
+
return axios.put(`/v1/hosting/${hostingId}/directoryprivacy`, editPrivacyBody, options);
|
|
1748
|
+
};
|
|
1749
|
+
export const getEditPrivacyMutationOptions = (options) => {
|
|
1750
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1751
|
+
const mutationFn = (props) => {
|
|
1752
|
+
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
1753
|
+
return editPrivacy(hostingId, data, axiosOptions);
|
|
1754
|
+
};
|
|
1755
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
1756
|
+
};
|
|
1757
|
+
/**
|
|
1758
|
+
* @summary Allow users to edit secure specific folders on their websites
|
|
1759
|
+
*/
|
|
1760
|
+
export const useEditPrivacy = (options) => {
|
|
1761
|
+
const mutationOptions = getEditPrivacyMutationOptions(options);
|
|
1762
|
+
return useMutation(mutationOptions);
|
|
1763
|
+
};
|
|
1672
1764
|
/**
|
|
1673
1765
|
* Returns a list of domains
|
|
1674
1766
|
* @summary domain list
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddSiteIpaddress200, AddonCloudflare200, AddonsCloudflare200, AddonsInfo200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupInitiate200, BackupList200, BackupStatus200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, Db200, DbAdd200, DbCheckDatabase200, DbList200, DbListV2200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, HostingAccount200, HostingAddons200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainsUnassign200, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsCheck200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSitesV2200, HostingSshInfo200, Index200, JetpackBackupStatus200, ListCrons200, ListFiles200, ListIndex200, ResetSite200, Site200, SiteAddonCloudflare200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteStatus200, SiteUpdate200, SiteUsers200, SitesAccessLogs200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesList200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, Sso200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
2
|
+
import type { AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonCloudflare200, AddonsCloudflare200, AddonsInfo200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupInitiate200, BackupList200, BackupStatus200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, Db200, DbAdd200, DbCheckDatabase200, DbList200, DbListV2200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, HostingAccount200, HostingAddons200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainsUnassign200, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsCheck200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSitesV2200, HostingSshInfo200, Index200, JetpackBackupStatus200, ListCrons200, ListFiles200, ListIndex200, Privacy200, ResetSite200, Site200, SiteAddonCloudflare200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteStatus200, SiteUpdate200, SiteUsers200, SitesAccessLogs200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesList200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, Sso200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
5
5
|
export declare const getAccountPublicKeysResponseMock: (overrideResponse?: Partial<AccountPublicKeys200>) => AccountPublicKeys200;
|
|
@@ -69,6 +69,10 @@ export declare const getDbUserAddResponseMock: (overrideResponse?: Partial<DbUse
|
|
|
69
69
|
export declare const getDbUserDeleteResponseMock: (overrideResponse?: Partial<DbUserDelete200>) => DbUserDelete200;
|
|
70
70
|
export declare const getDbUserListResponseMock: (overrideResponse?: Partial<DbUserList200>) => DbUserList200;
|
|
71
71
|
export declare const getDbUserRenameResponseMock: (overrideResponse?: Partial<DbUserRename200>) => DbUserRename200;
|
|
72
|
+
export declare const getDirectoryPrivacyResponseMock: (overrideResponse?: Partial<DirectoryPrivacy200>) => DirectoryPrivacy200;
|
|
73
|
+
export declare const getAddPrivacyResponseMock: (overrideResponse?: Partial<AddPrivacy200>) => AddPrivacy200;
|
|
74
|
+
export declare const getPrivacyResponseMock: (overrideResponse?: Partial<Privacy200>) => Privacy200;
|
|
75
|
+
export declare const getEditPrivacyResponseMock: (overrideResponse?: Partial<EditPrivacy200>) => EditPrivacy200;
|
|
72
76
|
export declare const getDomainsResponseMock: (overrideResponse?: Partial<Domains200>) => Domains200;
|
|
73
77
|
export declare const getHostingDomainsUnassignResponseMock: (overrideResponse?: Partial<HostingDomainsUnassign200>) => HostingDomainsUnassign200;
|
|
74
78
|
export declare const getHostingEcommerceInfoResponseMock: (overrideResponse?: Partial<HostingEcommerceInfo200>) => HostingEcommerceInfo200;
|
|
@@ -256,6 +260,10 @@ export declare const getDbUserAddMockHandler: (overrideResponse?: DbUserAdd200 |
|
|
|
256
260
|
export declare const getDbUserDeleteMockHandler: (overrideResponse?: DbUserDelete200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<DbUserDelete200> | DbUserDelete200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
257
261
|
export declare const getDbUserListMockHandler: (overrideResponse?: DbUserList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DbUserList200> | DbUserList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
258
262
|
export declare const getDbUserRenameMockHandler: (overrideResponse?: DbUserRename200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<DbUserRename200> | DbUserRename200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
263
|
+
export declare const getDirectoryPrivacyMockHandler: (overrideResponse?: DirectoryPrivacy200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DirectoryPrivacy200> | DirectoryPrivacy200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
264
|
+
export declare const getAddPrivacyMockHandler: (overrideResponse?: AddPrivacy200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<AddPrivacy200> | AddPrivacy200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
265
|
+
export declare const getPrivacyMockHandler: (overrideResponse?: Privacy200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<Privacy200> | Privacy200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
266
|
+
export declare const getEditPrivacyMockHandler: (overrideResponse?: EditPrivacy200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<EditPrivacy200> | EditPrivacy200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
259
267
|
export declare const getDomainsMockHandler: (overrideResponse?: Domains200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<Domains200> | Domains200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
260
268
|
export declare const getHostingDomainsUnassignMockHandler: (overrideResponse?: HostingDomainsUnassign200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingDomainsUnassign200> | HostingDomainsUnassign200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
261
269
|
export declare const getHostingEcommerceInfoMockHandler: (overrideResponse?: HostingEcommerceInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEcommerceInfo200> | HostingEcommerceInfo200) | 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.1128.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -79,10 +79,14 @@ export const getDbUserAddResponseMock = (overrideResponse = {}) => (Object.assig
|
|
|
79
79
|
export const getDbUserDeleteResponseMock = (overrideResponse = {}) => (Object.assign({ dbuser: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
80
80
|
export const getDbUserListResponseMock = (overrideResponse = {}) => (Object.assign({ users: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ dblist: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), shortuser: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
81
81
|
export const getDbUserRenameResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
82
|
+
export const getDirectoryPrivacyResponseMock = (overrideResponse = {}) => (Object.assign({ directory: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ directory_path: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), directory_users: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) })), undefined]) }, overrideResponse));
|
|
83
|
+
export const getAddPrivacyResponseMock = (overrideResponse = {}) => (Object.assign({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
84
|
+
export const getPrivacyResponseMock = (overrideResponse = {}) => (Object.assign({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
85
|
+
export const getEditPrivacyResponseMock = (overrideResponse = {}) => (Object.assign({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
82
86
|
export const getDomainsResponseMock = (overrideResponse = {}) => (Object.assign({ domains: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ date_ssl_exp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.word.sample(), domain: faker.word.sample(), id: faker.number.int({ min: undefined, max: undefined }), ssl_issuer: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.word.sample() })) }, overrideResponse));
|
|
83
87
|
export const getHostingDomainsUnassignResponseMock = (overrideResponse = {}) => (Object.assign({ queued: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
84
88
|
export const getHostingEcommerceInfoResponseMock = (overrideResponse = {}) => (Object.assign({ addon_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), back_ref: faker.helpers.arrayElement([faker.word.sample(), undefined]), level: faker.helpers.arrayElement([faker.word.sample(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
85
|
-
export const getListFilesResponseMock = (overrideResponse = {}) => (Object.assign({ files: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]),
|
|
89
|
+
export const getListFilesResponseMock = (overrideResponse = {}) => (Object.assign({ files: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), size: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
86
90
|
export const getHostingFixownershipResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
87
91
|
export const getHostingFtpListResponseMock = (overrideResponse = {}) => (Object.assign({ ftp_accounts: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), homedir: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), server_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), special_ftp_accounts: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), homedir: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
88
92
|
export const getHostingFtpAddResponseMock = (overrideResponse = {}) => (Object.assign({ pass: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
@@ -907,6 +911,46 @@ export const getDbUserRenameMockHandler = (overrideResponse) => {
|
|
|
907
911
|
});
|
|
908
912
|
}));
|
|
909
913
|
};
|
|
914
|
+
export const getDirectoryPrivacyMockHandler = (overrideResponse) => {
|
|
915
|
+
return http.get('*/v1/hosting/:hostingId/directoryprivacy', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
916
|
+
yield delay(1000);
|
|
917
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
918
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
919
|
+
: getDirectoryPrivacyResponseMock()), { status: 200,
|
|
920
|
+
headers: { 'Content-Type': 'application/json' }
|
|
921
|
+
});
|
|
922
|
+
}));
|
|
923
|
+
};
|
|
924
|
+
export const getAddPrivacyMockHandler = (overrideResponse) => {
|
|
925
|
+
return http.post('*/v1/hosting/:hostingId/directoryprivacy', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
926
|
+
yield delay(1000);
|
|
927
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
928
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
929
|
+
: getAddPrivacyResponseMock()), { status: 200,
|
|
930
|
+
headers: { 'Content-Type': 'application/json' }
|
|
931
|
+
});
|
|
932
|
+
}));
|
|
933
|
+
};
|
|
934
|
+
export const getPrivacyMockHandler = (overrideResponse) => {
|
|
935
|
+
return http.delete('*/v1/hosting/:hostingId/directoryprivacy', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
936
|
+
yield delay(1000);
|
|
937
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
938
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
939
|
+
: getPrivacyResponseMock()), { status: 200,
|
|
940
|
+
headers: { 'Content-Type': 'application/json' }
|
|
941
|
+
});
|
|
942
|
+
}));
|
|
943
|
+
};
|
|
944
|
+
export const getEditPrivacyMockHandler = (overrideResponse) => {
|
|
945
|
+
return http.put('*/v1/hosting/:hostingId/directoryprivacy', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
946
|
+
yield delay(1000);
|
|
947
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
948
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
949
|
+
: getEditPrivacyResponseMock()), { status: 200,
|
|
950
|
+
headers: { 'Content-Type': 'application/json' }
|
|
951
|
+
});
|
|
952
|
+
}));
|
|
953
|
+
};
|
|
910
954
|
export const getDomainsMockHandler = (overrideResponse) => {
|
|
911
955
|
return http.get('*/v1/hosting/:hostingId/domains', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
912
956
|
yield delay(1000);
|
|
@@ -2177,6 +2221,10 @@ export const getHostingUAPIMock = () => [
|
|
|
2177
2221
|
getDbUserDeleteMockHandler(),
|
|
2178
2222
|
getDbUserListMockHandler(),
|
|
2179
2223
|
getDbUserRenameMockHandler(),
|
|
2224
|
+
getDirectoryPrivacyMockHandler(),
|
|
2225
|
+
getAddPrivacyMockHandler(),
|
|
2226
|
+
getPrivacyMockHandler(),
|
|
2227
|
+
getEditPrivacyMockHandler(),
|
|
2180
2228
|
getDomainsMockHandler(),
|
|
2181
2229
|
getHostingDomainsUnassignMockHandler(),
|
|
2182
2230
|
getHostingEcommerceInfoMockHandler(),
|
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.1128.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -925,13 +925,6 @@ export declare type SitesPerformanceCachepurgeBody = {
|
|
|
925
925
|
export declare type SitePendingDomainDelete200 = {
|
|
926
926
|
[key: string]: unknown;
|
|
927
927
|
};
|
|
928
|
-
export declare type SitesMetricDimensions200 = {
|
|
929
|
-
date_end?: string;
|
|
930
|
-
date_start?: string;
|
|
931
|
-
dimensions?: SitesMetricDimensions200Dimensions;
|
|
932
|
-
elapsed?: number;
|
|
933
|
-
metric?: string;
|
|
934
|
-
};
|
|
935
928
|
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
|
|
936
929
|
[key: string]: number;
|
|
937
930
|
};
|
|
@@ -939,6 +932,25 @@ export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
|
|
|
939
932
|
dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
|
|
940
933
|
timestamp?: number;
|
|
941
934
|
};
|
|
935
|
+
export declare type SitesMetricDimensions200Dimensions = {
|
|
936
|
+
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
937
|
+
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
938
|
+
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
939
|
+
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
940
|
+
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
941
|
+
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
942
|
+
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
943
|
+
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
944
|
+
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
945
|
+
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
946
|
+
};
|
|
947
|
+
export declare type SitesMetricDimensions200 = {
|
|
948
|
+
date_end?: string;
|
|
949
|
+
date_start?: string;
|
|
950
|
+
dimensions?: SitesMetricDimensions200Dimensions;
|
|
951
|
+
elapsed?: number;
|
|
952
|
+
metric?: string;
|
|
953
|
+
};
|
|
942
954
|
export declare type SitesMetricDimensions200DimensionsVisitorIsCrawlerItemDimension = {
|
|
943
955
|
[key: string]: number;
|
|
944
956
|
};
|
|
@@ -1002,18 +1014,6 @@ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
|
|
|
1002
1014
|
dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
|
|
1003
1015
|
timestamp?: number;
|
|
1004
1016
|
};
|
|
1005
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
1006
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
1007
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
1008
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
1009
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
1010
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
1011
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
1012
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
1013
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
1014
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
1015
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
1016
|
-
};
|
|
1017
1017
|
export declare type SitesMetricDimensionsParams = {
|
|
1018
1018
|
start?: string;
|
|
1019
1019
|
end?: string;
|
|
@@ -1576,6 +1576,7 @@ export declare const SsoApp: {
|
|
|
1576
1576
|
readonly mysql: "mysql";
|
|
1577
1577
|
readonly zoneeditor: "zoneeditor";
|
|
1578
1578
|
readonly ipblocker: "ipblocker";
|
|
1579
|
+
readonly indexmanager: "indexmanager";
|
|
1579
1580
|
};
|
|
1580
1581
|
export declare type SsoParams = {
|
|
1581
1582
|
app?: SsoApp;
|
|
@@ -2048,7 +2049,6 @@ export declare type HostingFixownership200 = {
|
|
|
2048
2049
|
};
|
|
2049
2050
|
export declare type ListFiles200FilesItem = {
|
|
2050
2051
|
file?: string;
|
|
2051
|
-
fullpath?: string;
|
|
2052
2052
|
path?: string;
|
|
2053
2053
|
size?: number;
|
|
2054
2054
|
type?: string;
|
|
@@ -2057,7 +2057,7 @@ export declare type ListFiles200 = {
|
|
|
2057
2057
|
files?: ListFiles200FilesItem[];
|
|
2058
2058
|
};
|
|
2059
2059
|
export declare type ListFilesParams = {
|
|
2060
|
-
|
|
2060
|
+
path: string;
|
|
2061
2061
|
};
|
|
2062
2062
|
/**
|
|
2063
2063
|
* @nullable
|
|
@@ -2114,6 +2114,95 @@ export declare const DomainsType: {
|
|
|
2114
2114
|
export declare type DomainsParams = {
|
|
2115
2115
|
type?: DomainsType;
|
|
2116
2116
|
};
|
|
2117
|
+
export declare type EditPrivacy200 = {
|
|
2118
|
+
/**
|
|
2119
|
+
* docroot path
|
|
2120
|
+
*/
|
|
2121
|
+
file?: string;
|
|
2122
|
+
/** */
|
|
2123
|
+
status?: string;
|
|
2124
|
+
};
|
|
2125
|
+
/**
|
|
2126
|
+
* action name
|
|
2127
|
+
*/
|
|
2128
|
+
export declare type EditPrivacyBodyAction = typeof EditPrivacyBodyAction[keyof typeof EditPrivacyBodyAction];
|
|
2129
|
+
export declare const EditPrivacyBodyAction: {
|
|
2130
|
+
readonly view: "view";
|
|
2131
|
+
readonly enable: "enable";
|
|
2132
|
+
readonly disable: "disable";
|
|
2133
|
+
};
|
|
2134
|
+
export declare type EditPrivacyBody = {
|
|
2135
|
+
/** action name */
|
|
2136
|
+
action?: EditPrivacyBodyAction;
|
|
2137
|
+
/** directory that has to be protected */
|
|
2138
|
+
docpath: string;
|
|
2139
|
+
/** user to add for ppd */
|
|
2140
|
+
htuser: string;
|
|
2141
|
+
/** password that is required to lock the folder */
|
|
2142
|
+
pass: string;
|
|
2143
|
+
};
|
|
2144
|
+
export declare type Privacy200 = {
|
|
2145
|
+
/**
|
|
2146
|
+
* docroot path
|
|
2147
|
+
*/
|
|
2148
|
+
file?: string;
|
|
2149
|
+
/** */
|
|
2150
|
+
status?: string;
|
|
2151
|
+
};
|
|
2152
|
+
/**
|
|
2153
|
+
* action name
|
|
2154
|
+
*/
|
|
2155
|
+
export declare type PrivacyBodyAction = typeof PrivacyBodyAction[keyof typeof PrivacyBodyAction];
|
|
2156
|
+
export declare const PrivacyBodyAction: {
|
|
2157
|
+
readonly view: "view";
|
|
2158
|
+
readonly enable: "enable";
|
|
2159
|
+
readonly disable: "disable";
|
|
2160
|
+
};
|
|
2161
|
+
export declare type PrivacyBody = {
|
|
2162
|
+
/** action name */
|
|
2163
|
+
action?: PrivacyBodyAction;
|
|
2164
|
+
/** directory that has to be protected */
|
|
2165
|
+
docpath: string;
|
|
2166
|
+
};
|
|
2167
|
+
export declare type AddPrivacy200 = {
|
|
2168
|
+
/**
|
|
2169
|
+
* docroot path
|
|
2170
|
+
*/
|
|
2171
|
+
file?: string;
|
|
2172
|
+
/** */
|
|
2173
|
+
status?: string;
|
|
2174
|
+
};
|
|
2175
|
+
/**
|
|
2176
|
+
* action name
|
|
2177
|
+
*/
|
|
2178
|
+
export declare type AddPrivacyBodyAction = typeof AddPrivacyBodyAction[keyof typeof AddPrivacyBodyAction];
|
|
2179
|
+
export declare const AddPrivacyBodyAction: {
|
|
2180
|
+
readonly view: "view";
|
|
2181
|
+
readonly enable: "enable";
|
|
2182
|
+
readonly disable: "disable";
|
|
2183
|
+
};
|
|
2184
|
+
export declare type AddPrivacyBody = {
|
|
2185
|
+
/** action name */
|
|
2186
|
+
action?: AddPrivacyBodyAction;
|
|
2187
|
+
/** directory that has to be protected */
|
|
2188
|
+
docpath: string;
|
|
2189
|
+
/** user who can have an access to specific folder on their website */
|
|
2190
|
+
htuser: string;
|
|
2191
|
+
/** password that is required to lock the folder */
|
|
2192
|
+
pass: string;
|
|
2193
|
+
};
|
|
2194
|
+
export declare type DirectoryPrivacy200DirectoryItem = {
|
|
2195
|
+
/** @nullable */
|
|
2196
|
+
directory_path?: string | null;
|
|
2197
|
+
/** @nullable */
|
|
2198
|
+
directory_users?: string[] | null;
|
|
2199
|
+
};
|
|
2200
|
+
export declare type DirectoryPrivacy200 = {
|
|
2201
|
+
directory?: DirectoryPrivacy200DirectoryItem[];
|
|
2202
|
+
};
|
|
2203
|
+
export declare type DirectoryPrivacyParams = {
|
|
2204
|
+
docpath?: string;
|
|
2205
|
+
};
|
|
2117
2206
|
export declare type DbUserRename200 = {
|
|
2118
2207
|
success?: number;
|
|
2119
2208
|
};
|
package/src/index.schemas.js
CHANGED
|
@@ -82,6 +82,7 @@ export const SsoApp = {
|
|
|
82
82
|
mysql: 'mysql',
|
|
83
83
|
zoneeditor: 'zoneeditor',
|
|
84
84
|
ipblocker: 'ipblocker',
|
|
85
|
+
indexmanager: 'indexmanager',
|
|
85
86
|
};
|
|
86
87
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
87
88
|
export const SshKeyGenerateBodyEncType = {
|
|
@@ -139,6 +140,24 @@ export const DomainsType = {
|
|
|
139
140
|
unassigned: 'unassigned',
|
|
140
141
|
};
|
|
141
142
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
143
|
+
export const EditPrivacyBodyAction = {
|
|
144
|
+
view: 'view',
|
|
145
|
+
enable: 'enable',
|
|
146
|
+
disable: 'disable',
|
|
147
|
+
};
|
|
148
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
149
|
+
export const PrivacyBodyAction = {
|
|
150
|
+
view: 'view',
|
|
151
|
+
enable: 'enable',
|
|
152
|
+
disable: 'disable',
|
|
153
|
+
};
|
|
154
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
155
|
+
export const AddPrivacyBodyAction = {
|
|
156
|
+
view: 'view',
|
|
157
|
+
enable: 'enable',
|
|
158
|
+
disable: 'disable',
|
|
159
|
+
};
|
|
160
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
142
161
|
export const DbUserAddBodyDbType = {
|
|
143
162
|
mysql: 'mysql',
|
|
144
163
|
postgres: 'postgres',
|