@newfold/huapi-js 2.1189.0 → 2.1195.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 CHANGED
@@ -10,7 +10,7 @@
10
10
  "tslib": "2.7.0"
11
11
  },
12
12
  "module": "dist/index.ts",
13
- "version": "2.1189.0",
13
+ "version": "2.1195.0",
14
14
  "sideEffects": false,
15
15
  "main": "./src/index.js",
16
16
  "types": "./src/index.d.ts",
package/src/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
2
  import axios from 'axios';
3
3
  import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
4
- import type { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, 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, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, 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, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, 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, HostingVisitors200, HostingVisitorsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesParams, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
4
+ import type { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, 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, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200Item, DomainDnszoneReset200, 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, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, 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, HostingVisitors200, HostingVisitorsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesParams, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
5
5
  declare type AwaitedInput<T> = PromiseLike<T> | T;
6
6
  declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
7
  /**
@@ -1090,6 +1090,163 @@ export declare const useDomainCertUninstall: <TError = AxiosError<unknown, any>,
1090
1090
  } | undefined) => UseMutationResult<AxiosResponse<DomainCertUninstall200, any>, TError, {
1091
1091
  domainId: string;
1092
1092
  }, TContext>;
1093
+ /**
1094
+ * Deleting dns records to the specified domain
1095
+ * @summary delete zone record
1096
+ */
1097
+ export declare const domainDnseditor: (domainId: string, domainDnseditorBody: DomainDnseditorBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<DomainDnseditor200>>;
1098
+ export declare const getDomainDnseditorMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
1099
+ mutation?: UseMutationOptions<AxiosResponse<DomainDnseditor200, any>, TError, {
1100
+ domainId: string;
1101
+ data: DomainDnseditorBody;
1102
+ }, TContext> | undefined;
1103
+ axios?: AxiosRequestConfig<any> | undefined;
1104
+ } | undefined) => UseMutationOptions<AxiosResponse<DomainDnseditor200, any>, TError, {
1105
+ domainId: string;
1106
+ data: DomainDnseditorBody;
1107
+ }, TContext>;
1108
+ export declare type DomainDnseditorMutationResult = NonNullable<Awaited<ReturnType<typeof domainDnseditor>>>;
1109
+ export declare type DomainDnseditorMutationBody = DomainDnseditorBody;
1110
+ export declare type DomainDnseditorMutationError = AxiosError<unknown>;
1111
+ /**
1112
+ * @summary delete zone record
1113
+ */
1114
+ export declare const useDomainDnseditor: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
1115
+ mutation?: UseMutationOptions<AxiosResponse<DomainDnseditor200, any>, TError, {
1116
+ domainId: string;
1117
+ data: DomainDnseditorBody;
1118
+ }, TContext> | undefined;
1119
+ axios?: AxiosRequestConfig<any> | undefined;
1120
+ } | undefined) => UseMutationResult<AxiosResponse<DomainDnseditor200, any>, TError, {
1121
+ domainId: string;
1122
+ data: DomainDnseditorBody;
1123
+ }, TContext>;
1124
+ /**
1125
+ * Returns all the types of DNS records that are managable to that domain or id
1126
+ * @summary Manage your nameservers and advanced DNS records.
1127
+ */
1128
+ export declare const domainDnseditorList: (domainId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<DomainDnseditorList200Item[]>>;
1129
+ export declare const getDomainDnseditorListQueryKey: (domainId: string) => readonly [`/v1/domains/${string}/dns-editor`];
1130
+ export declare const getDomainDnseditorListQueryOptions: <TData = AxiosResponse<DomainDnseditorList200Item[], any>, TError = AxiosError<unknown, any>>(domainId: string, options?: {
1131
+ query?: Partial<UseQueryOptions<AxiosResponse<DomainDnseditorList200Item[], any>, TError, TData, QueryKey>> | undefined;
1132
+ axios?: AxiosRequestConfig<any> | undefined;
1133
+ } | undefined) => UseQueryOptions<AxiosResponse<DomainDnseditorList200Item[], any>, TError, TData, QueryKey> & {
1134
+ queryKey: QueryKey;
1135
+ };
1136
+ export declare type DomainDnseditorListQueryResult = NonNullable<Awaited<ReturnType<typeof domainDnseditorList>>>;
1137
+ export declare type DomainDnseditorListQueryError = AxiosError<unknown>;
1138
+ export declare function useDomainDnseditorList<TData = Awaited<ReturnType<typeof domainDnseditorList>>, TError = AxiosError<unknown>>(domainId: string, options: {
1139
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof domainDnseditorList>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof domainDnseditorList>>, TError, TData>, 'initialData'>;
1140
+ axios?: AxiosRequestConfig;
1141
+ }): DefinedUseQueryResult<TData, TError> & {
1142
+ queryKey: QueryKey;
1143
+ };
1144
+ export declare function useDomainDnseditorList<TData = Awaited<ReturnType<typeof domainDnseditorList>>, TError = AxiosError<unknown>>(domainId: string, options?: {
1145
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof domainDnseditorList>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof domainDnseditorList>>, TError, TData>, 'initialData'>;
1146
+ axios?: AxiosRequestConfig;
1147
+ }): UseQueryResult<TData, TError> & {
1148
+ queryKey: QueryKey;
1149
+ };
1150
+ export declare function useDomainDnseditorList<TData = Awaited<ReturnType<typeof domainDnseditorList>>, TError = AxiosError<unknown>>(domainId: string, options?: {
1151
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof domainDnseditorList>>, TError, TData>>;
1152
+ axios?: AxiosRequestConfig;
1153
+ }): UseQueryResult<TData, TError> & {
1154
+ queryKey: QueryKey;
1155
+ };
1156
+ /**
1157
+ * Adding dns records to the specified domain
1158
+ * @summary add dns zone record
1159
+ */
1160
+ export declare const domainDnseditorAdd: (domainId: string, domainDnseditorAddBody: DomainDnseditorAddBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<DomainDnseditorAdd200>>;
1161
+ export declare const getDomainDnseditorAddMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
1162
+ mutation?: UseMutationOptions<AxiosResponse<DomainDnseditorAdd200, any>, TError, {
1163
+ domainId: string;
1164
+ data: DomainDnseditorAddBody;
1165
+ }, TContext> | undefined;
1166
+ axios?: AxiosRequestConfig<any> | undefined;
1167
+ } | undefined) => UseMutationOptions<AxiosResponse<DomainDnseditorAdd200, any>, TError, {
1168
+ domainId: string;
1169
+ data: DomainDnseditorAddBody;
1170
+ }, TContext>;
1171
+ export declare type DomainDnseditorAddMutationResult = NonNullable<Awaited<ReturnType<typeof domainDnseditorAdd>>>;
1172
+ export declare type DomainDnseditorAddMutationBody = DomainDnseditorAddBody;
1173
+ export declare type DomainDnseditorAddMutationError = AxiosError<unknown>;
1174
+ /**
1175
+ * @summary add dns zone record
1176
+ */
1177
+ export declare const useDomainDnseditorAdd: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
1178
+ mutation?: UseMutationOptions<AxiosResponse<DomainDnseditorAdd200, any>, TError, {
1179
+ domainId: string;
1180
+ data: DomainDnseditorAddBody;
1181
+ }, TContext> | undefined;
1182
+ axios?: AxiosRequestConfig<any> | undefined;
1183
+ } | undefined) => UseMutationResult<AxiosResponse<DomainDnseditorAdd200, any>, TError, {
1184
+ domainId: string;
1185
+ data: DomainDnseditorAddBody;
1186
+ }, TContext>;
1187
+ /**
1188
+ * Editing dns records to the specified domain
1189
+ * @summary edit dns zone record
1190
+ */
1191
+ export declare const domainDnseditorEdit: (domainId: string, domainDnseditorEditBody: DomainDnseditorEditBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<DomainDnseditorEdit200>>;
1192
+ export declare const getDomainDnseditorEditMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
1193
+ mutation?: UseMutationOptions<AxiosResponse<DomainDnseditorEdit200, any>, TError, {
1194
+ domainId: string;
1195
+ data: DomainDnseditorEditBody;
1196
+ }, TContext> | undefined;
1197
+ axios?: AxiosRequestConfig<any> | undefined;
1198
+ } | undefined) => UseMutationOptions<AxiosResponse<DomainDnseditorEdit200, any>, TError, {
1199
+ domainId: string;
1200
+ data: DomainDnseditorEditBody;
1201
+ }, TContext>;
1202
+ export declare type DomainDnseditorEditMutationResult = NonNullable<Awaited<ReturnType<typeof domainDnseditorEdit>>>;
1203
+ export declare type DomainDnseditorEditMutationBody = DomainDnseditorEditBody;
1204
+ export declare type DomainDnseditorEditMutationError = AxiosError<unknown>;
1205
+ /**
1206
+ * @summary edit dns zone record
1207
+ */
1208
+ export declare const useDomainDnseditorEdit: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
1209
+ mutation?: UseMutationOptions<AxiosResponse<DomainDnseditorEdit200, any>, TError, {
1210
+ domainId: string;
1211
+ data: DomainDnseditorEditBody;
1212
+ }, TContext> | undefined;
1213
+ axios?: AxiosRequestConfig<any> | undefined;
1214
+ } | undefined) => UseMutationResult<AxiosResponse<DomainDnseditorEdit200, any>, TError, {
1215
+ domainId: string;
1216
+ data: DomainDnseditorEditBody;
1217
+ }, TContext>;
1218
+ /**
1219
+ * Returns all the types of DNS records to default state on that domain or id
1220
+ * @summary Reset your nameservers and advanced DNS records.
1221
+ */
1222
+ export declare const domainDnszoneReset: (domainId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<DomainDnszoneReset200>>;
1223
+ export declare const getDomainDnszoneResetQueryKey: (domainId: string) => readonly [`/v1/domains/${string}/dns-zone-reset`];
1224
+ export declare const getDomainDnszoneResetQueryOptions: <TData = AxiosResponse<DomainDnszoneReset200, any>, TError = AxiosError<unknown, any>>(domainId: string, options?: {
1225
+ query?: Partial<UseQueryOptions<AxiosResponse<DomainDnszoneReset200, any>, TError, TData, QueryKey>> | undefined;
1226
+ axios?: AxiosRequestConfig<any> | undefined;
1227
+ } | undefined) => UseQueryOptions<AxiosResponse<DomainDnszoneReset200, any>, TError, TData, QueryKey> & {
1228
+ queryKey: QueryKey;
1229
+ };
1230
+ export declare type DomainDnszoneResetQueryResult = NonNullable<Awaited<ReturnType<typeof domainDnszoneReset>>>;
1231
+ export declare type DomainDnszoneResetQueryError = AxiosError<unknown>;
1232
+ export declare function useDomainDnszoneReset<TData = Awaited<ReturnType<typeof domainDnszoneReset>>, TError = AxiosError<unknown>>(domainId: string, options: {
1233
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof domainDnszoneReset>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof domainDnszoneReset>>, TError, TData>, 'initialData'>;
1234
+ axios?: AxiosRequestConfig;
1235
+ }): DefinedUseQueryResult<TData, TError> & {
1236
+ queryKey: QueryKey;
1237
+ };
1238
+ export declare function useDomainDnszoneReset<TData = Awaited<ReturnType<typeof domainDnszoneReset>>, TError = AxiosError<unknown>>(domainId: string, options?: {
1239
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof domainDnszoneReset>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof domainDnszoneReset>>, TError, TData>, 'initialData'>;
1240
+ axios?: AxiosRequestConfig;
1241
+ }): UseQueryResult<TData, TError> & {
1242
+ queryKey: QueryKey;
1243
+ };
1244
+ export declare function useDomainDnszoneReset<TData = Awaited<ReturnType<typeof domainDnszoneReset>>, TError = AxiosError<unknown>>(domainId: string, options?: {
1245
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof domainDnszoneReset>>, TError, TData>>;
1246
+ axios?: AxiosRequestConfig;
1247
+ }): UseQueryResult<TData, TError> & {
1248
+ queryKey: QueryKey;
1249
+ };
1093
1250
  /**
1094
1251
  * Unassign a domain name
1095
1252
  * @summary domain unassign
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.1189.0
6
+ * OpenAPI spec version: 1.1195.0
7
7
  */
8
8
  import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
9
9
  import axios from 'axios';
@@ -857,6 +857,124 @@ export const useDomainCertUninstall = (options) => {
857
857
  const mutationOptions = getDomainCertUninstallMutationOptions(options);
858
858
  return useMutation(mutationOptions);
859
859
  };
860
+ /**
861
+ * Deleting dns records to the specified domain
862
+ * @summary delete zone record
863
+ */
864
+ export const domainDnseditor = (domainId, domainDnseditorBody, options) => {
865
+ return axios.delete(`/v1/domains/${domainId}/dns-editor`, Object.assign({ data: domainDnseditorBody }, options));
866
+ };
867
+ export const getDomainDnseditorMutationOptions = (options) => {
868
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
869
+ const mutationFn = (props) => {
870
+ const { domainId, data } = props !== null && props !== void 0 ? props : {};
871
+ return domainDnseditor(domainId, data, axiosOptions);
872
+ };
873
+ return Object.assign({ mutationFn }, mutationOptions);
874
+ };
875
+ /**
876
+ * @summary delete zone record
877
+ */
878
+ export const useDomainDnseditor = (options) => {
879
+ const mutationOptions = getDomainDnseditorMutationOptions(options);
880
+ return useMutation(mutationOptions);
881
+ };
882
+ /**
883
+ * Returns all the types of DNS records that are managable to that domain or id
884
+ * @summary Manage your nameservers and advanced DNS records.
885
+ */
886
+ export const domainDnseditorList = (domainId, options) => {
887
+ return axios.get(`/v1/domains/${domainId}/dns-editor`, options);
888
+ };
889
+ export const getDomainDnseditorListQueryKey = (domainId) => {
890
+ return [`/v1/domains/${domainId}/dns-editor`];
891
+ };
892
+ export const getDomainDnseditorListQueryOptions = (domainId, options) => {
893
+ var _a;
894
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
895
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getDomainDnseditorListQueryKey(domainId);
896
+ const queryFn = ({ signal }) => domainDnseditorList(domainId, Object.assign({ signal }, axiosOptions));
897
+ return Object.assign({ queryKey, queryFn, enabled: !!(domainId) }, queryOptions);
898
+ };
899
+ /**
900
+ * @summary Manage your nameservers and advanced DNS records.
901
+ */
902
+ export function useDomainDnseditorList(domainId, options) {
903
+ const queryOptions = getDomainDnseditorListQueryOptions(domainId, options);
904
+ const query = useQuery(queryOptions);
905
+ query.queryKey = queryOptions.queryKey;
906
+ return query;
907
+ }
908
+ /**
909
+ * Adding dns records to the specified domain
910
+ * @summary add dns zone record
911
+ */
912
+ export const domainDnseditorAdd = (domainId, domainDnseditorAddBody, options) => {
913
+ return axios.post(`/v1/domains/${domainId}/dns-editor`, domainDnseditorAddBody, options);
914
+ };
915
+ export const getDomainDnseditorAddMutationOptions = (options) => {
916
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
917
+ const mutationFn = (props) => {
918
+ const { domainId, data } = props !== null && props !== void 0 ? props : {};
919
+ return domainDnseditorAdd(domainId, data, axiosOptions);
920
+ };
921
+ return Object.assign({ mutationFn }, mutationOptions);
922
+ };
923
+ /**
924
+ * @summary add dns zone record
925
+ */
926
+ export const useDomainDnseditorAdd = (options) => {
927
+ const mutationOptions = getDomainDnseditorAddMutationOptions(options);
928
+ return useMutation(mutationOptions);
929
+ };
930
+ /**
931
+ * Editing dns records to the specified domain
932
+ * @summary edit dns zone record
933
+ */
934
+ export const domainDnseditorEdit = (domainId, domainDnseditorEditBody, options) => {
935
+ return axios.put(`/v1/domains/${domainId}/dns-editor`, domainDnseditorEditBody, options);
936
+ };
937
+ export const getDomainDnseditorEditMutationOptions = (options) => {
938
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
939
+ const mutationFn = (props) => {
940
+ const { domainId, data } = props !== null && props !== void 0 ? props : {};
941
+ return domainDnseditorEdit(domainId, data, axiosOptions);
942
+ };
943
+ return Object.assign({ mutationFn }, mutationOptions);
944
+ };
945
+ /**
946
+ * @summary edit dns zone record
947
+ */
948
+ export const useDomainDnseditorEdit = (options) => {
949
+ const mutationOptions = getDomainDnseditorEditMutationOptions(options);
950
+ return useMutation(mutationOptions);
951
+ };
952
+ /**
953
+ * Returns all the types of DNS records to default state on that domain or id
954
+ * @summary Reset your nameservers and advanced DNS records.
955
+ */
956
+ export const domainDnszoneReset = (domainId, options) => {
957
+ return axios.get(`/v1/domains/${domainId}/dns-zone-reset`, options);
958
+ };
959
+ export const getDomainDnszoneResetQueryKey = (domainId) => {
960
+ return [`/v1/domains/${domainId}/dns-zone-reset`];
961
+ };
962
+ export const getDomainDnszoneResetQueryOptions = (domainId, options) => {
963
+ var _a;
964
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
965
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getDomainDnszoneResetQueryKey(domainId);
966
+ const queryFn = ({ signal }) => domainDnszoneReset(domainId, Object.assign({ signal }, axiosOptions));
967
+ return Object.assign({ queryKey, queryFn, enabled: !!(domainId) }, queryOptions);
968
+ };
969
+ /**
970
+ * @summary Reset your nameservers and advanced DNS records.
971
+ */
972
+ export function useDomainDnszoneReset(domainId, options) {
973
+ const queryOptions = getDomainDnszoneResetQueryOptions(domainId, options);
974
+ const query = useQuery(queryOptions);
975
+ query.queryKey = queryOptions.queryKey;
976
+ return query;
977
+ }
860
978
  /**
861
979
  * Unassign a domain name
862
980
  * @summary domain unassign
@@ -1,5 +1,5 @@
1
1
  import { http } from 'msw';
2
- import type { AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonCloudflare200, AddonsCloudflare200, AddonsInfo200, 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, DbMultipleUserDatabase200, 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, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, 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, HostingVisitors200, Index200, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesV2200, ListIndex200, Privacy200, PrivacyUser200, RepairDatabase200, 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, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
2
+ import type { AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonCloudflare200, AddonsCloudflare200, AddonsInfo200, 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, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200Item, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, HostingAccount200, HostingAddons200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, 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, HostingVisitors200, Index200, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesV2200, ListIndex200, Privacy200, PrivacyUser200, RepairDatabase200, 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, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
3
3
  export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
4
4
  export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
5
5
  export declare const getAccountPublicKeysResponseMock: (overrideResponse?: Partial<AccountPublicKeys200>) => AccountPublicKeys200;
@@ -35,6 +35,11 @@ export declare const getDomainCertsResponseMock: (overrideResponse?: Partial<Dom
35
35
  export declare const getDomainCertInstallResponseMock: (overrideResponse?: Partial<DomainCertInstall200>) => DomainCertInstall200;
36
36
  export declare const getDomainCertUpdateResponseMock: (overrideResponse?: Partial<DomainCertUpdate200>) => DomainCertUpdate200;
37
37
  export declare const getDomainCertUninstallResponseMock: (overrideResponse?: Partial<DomainCertUninstall200>) => DomainCertUninstall200;
38
+ export declare const getDomainDnseditorResponseMock: (overrideResponse?: Partial<DomainDnseditor200>) => DomainDnseditor200;
39
+ export declare const getDomainDnseditorListResponseMock: () => DomainDnseditorList200Item[];
40
+ export declare const getDomainDnseditorAddResponseMock: (overrideResponse?: Partial<DomainDnseditorAdd200>) => DomainDnseditorAdd200;
41
+ export declare const getDomainDnseditorEditResponseMock: (overrideResponse?: Partial<DomainDnseditorEdit200>) => DomainDnseditorEdit200;
42
+ export declare const getDomainDnszoneResetResponseMock: (overrideResponse?: Partial<DomainDnszoneReset200>) => DomainDnszoneReset200;
38
43
  export declare const getDomainUnassignResponseMock: (overrideResponse?: Partial<DomainUnassign200>) => DomainUnassign200;
39
44
  export declare const getDomainZoneeditorUrlResponseMock: (overrideResponse?: Partial<DomainZoneeditorUrl200>) => DomainZoneeditorUrl200;
40
45
  export declare const getHostingAccountResponseMock: (overrideResponse?: Partial<HostingAccount200>) => HostingAccount200;
@@ -235,6 +240,11 @@ export declare const getDomainCertsMockHandler: (overrideResponse?: DomainCerts2
235
240
  export declare const getDomainCertInstallMockHandler: (overrideResponse?: DomainCertInstall200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<DomainCertInstall200> | DomainCertInstall200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
236
241
  export declare const getDomainCertUpdateMockHandler: (overrideResponse?: DomainCertUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<DomainCertUpdate200> | DomainCertUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
237
242
  export declare const getDomainCertUninstallMockHandler: (overrideResponse?: DomainCertUninstall200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<DomainCertUninstall200> | DomainCertUninstall200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
243
+ export declare const getDomainDnseditorMockHandler: (overrideResponse?: DomainDnseditor200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<DomainDnseditor200> | DomainDnseditor200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
244
+ export declare const getDomainDnseditorListMockHandler: (overrideResponse?: DomainDnseditorList200Item[] | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainDnseditorList200Item[]> | DomainDnseditorList200Item[]) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
245
+ export declare const getDomainDnseditorAddMockHandler: (overrideResponse?: DomainDnseditorAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<DomainDnseditorAdd200> | DomainDnseditorAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
246
+ export declare const getDomainDnseditorEditMockHandler: (overrideResponse?: DomainDnseditorEdit200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<DomainDnseditorEdit200> | DomainDnseditorEdit200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
247
+ export declare const getDomainDnszoneResetMockHandler: (overrideResponse?: DomainDnszoneReset200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainDnszoneReset200> | DomainDnszoneReset200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
238
248
  export declare const getDomainUnassignMockHandler: (overrideResponse?: DomainUnassign200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<DomainUnassign200> | DomainUnassign200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
239
249
  export declare const getDomainZoneeditorUrlMockHandler: (overrideResponse?: DomainZoneeditorUrl200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainZoneeditorUrl200> | DomainZoneeditorUrl200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
240
250
  export declare const getHostingAccountMockHandler: (overrideResponse?: HostingAccount200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAccount200> | HostingAccount200) | 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.1189.0
7
+ * OpenAPI spec version: 1.1195.0
8
8
  */
9
9
  import { faker } from '@faker-js/faker';
10
10
  import { HttpResponse, delay, http } from 'msw';
@@ -43,6 +43,11 @@ export const getDomainCertsResponseMock = (overrideResponse = {}) => (Object.ass
43
43
  export const getDomainCertInstallResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
44
44
  export const getDomainCertUpdateResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
45
45
  export const getDomainCertUninstallResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
46
+ export const getDomainDnseditorResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
47
+ export const getDomainDnseditorListResponseMock = () => (Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ content: faker.helpers.arrayElement([faker.word.sample(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), ttl: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })));
48
+ export const getDomainDnseditorAddResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
49
+ export const getDomainDnseditorEditResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
50
+ export const getDomainDnszoneResetResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
46
51
  export const getDomainUnassignResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
47
52
  export const getDomainZoneeditorUrlResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
48
53
  export const getHostingAccountResponseMock = (overrideResponse = {}) => (Object.assign({ account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), advanced: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), billing: faker.helpers.arrayElement([{ prod_code: faker.helpers.arrayElement([faker.word.sample(), undefined]), product_name: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), brand: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), panel: faker.helpers.arrayElement([faker.word.sample(), undefined]), plan_key: faker.helpers.arrayElement([faker.word.sample(), undefined]), platform: faker.helpers.arrayElement([faker.word.sample(), undefined]), resources: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) }, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), username: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
@@ -127,7 +132,7 @@ export const getSshKeyListResponseMock = (overrideResponse = {}) => (Object.assi
127
132
  export const getSshKeyResponseMock = (overrideResponse = {}) => (Object.assign({ deleted: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
128
133
  export const getSshKeyGenerateResponseMock = (overrideResponse = {}) => (Object.assign({ key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), private_key_path: faker.helpers.arrayElement([faker.word.sample(), undefined]), public_key_path: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
129
134
  export const getSsoResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
130
- export const getHostingVisitorsResponseMock = (overrideResponse = {}) => (Object.assign({ total_bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), interval_end: faker.helpers.arrayElement([faker.word.sample(), undefined]), interval_start: faker.helpers.arrayElement([faker.word.sample(), undefined]), unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]) }, overrideResponse));
135
+ export const getHostingVisitorsResponseMock = (overrideResponse = {}) => (Object.assign({ daily: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]), total_bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_daily: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ total_bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]), total_hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), interval_end: faker.helpers.arrayElement([faker.word.sample(), undefined]), interval_start: faker.helpers.arrayElement([faker.word.sample(), undefined]), unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]) }, overrideResponse));
131
136
  export const getSitesInfoResponseMock = (overrideResponse = {}) => (Object.assign({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), confirmed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), datacenter: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_modified: faker.helpers.arrayElement([faker.word.sample(), undefined]), detected_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), docroot: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), edge_cache: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), handler_404: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), installed_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_primary: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), jobs: faker.helpers.arrayElement([{}, undefined]), last_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), migration_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), onboarding: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), pending_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url_data: faker.helpers.arrayElement([{ base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_temp: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), job_failed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), stage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), wp_session: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), php_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), resources: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), staging: faker.helpers.arrayElement([{ parent_site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoted_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoting_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promotion_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.number.int({ min: undefined, max: undefined }))), undefined]) }, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url_is_provisional: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), version_ptr: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
132
137
  export const getSiteUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.datatype.boolean() }, overrideResponse));
133
138
  export const getSiteResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.datatype.boolean() }, overrideResponse));
@@ -580,6 +585,56 @@ export const getDomainCertUninstallMockHandler = (overrideResponse) => {
580
585
  });
581
586
  }));
582
587
  };
588
+ export const getDomainDnseditorMockHandler = (overrideResponse) => {
589
+ return http.delete('*/v1/domains/:domainId/dns-editor', (info) => __awaiter(void 0, void 0, void 0, function* () {
590
+ yield delay(1000);
591
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
592
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
593
+ : getDomainDnseditorResponseMock()), { status: 200,
594
+ headers: { 'Content-Type': 'application/json' }
595
+ });
596
+ }));
597
+ };
598
+ export const getDomainDnseditorListMockHandler = (overrideResponse) => {
599
+ return http.get('*/v1/domains/:domainId/dns-editor', (info) => __awaiter(void 0, void 0, void 0, function* () {
600
+ yield delay(1000);
601
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
602
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
603
+ : getDomainDnseditorListResponseMock()), { status: 200,
604
+ headers: { 'Content-Type': 'application/json' }
605
+ });
606
+ }));
607
+ };
608
+ export const getDomainDnseditorAddMockHandler = (overrideResponse) => {
609
+ return http.post('*/v1/domains/:domainId/dns-editor', (info) => __awaiter(void 0, void 0, void 0, function* () {
610
+ yield delay(1000);
611
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
612
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
613
+ : getDomainDnseditorAddResponseMock()), { status: 200,
614
+ headers: { 'Content-Type': 'application/json' }
615
+ });
616
+ }));
617
+ };
618
+ export const getDomainDnseditorEditMockHandler = (overrideResponse) => {
619
+ return http.put('*/v1/domains/:domainId/dns-editor', (info) => __awaiter(void 0, void 0, void 0, function* () {
620
+ yield delay(1000);
621
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
622
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
623
+ : getDomainDnseditorEditResponseMock()), { status: 200,
624
+ headers: { 'Content-Type': 'application/json' }
625
+ });
626
+ }));
627
+ };
628
+ export const getDomainDnszoneResetMockHandler = (overrideResponse) => {
629
+ return http.get('*/v1/domains/:domainId/dns-zone-reset', (info) => __awaiter(void 0, void 0, void 0, function* () {
630
+ yield delay(1000);
631
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
632
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
633
+ : getDomainDnszoneResetResponseMock()), { status: 200,
634
+ headers: { 'Content-Type': 'application/json' }
635
+ });
636
+ }));
637
+ };
583
638
  export const getDomainUnassignMockHandler = (overrideResponse) => {
584
639
  return http.post('*/v1/domains/:domainId/unassign', (info) => __awaiter(void 0, void 0, void 0, function* () {
585
640
  yield delay(1000);
@@ -2286,6 +2341,11 @@ export const getHostingUAPIMock = () => [
2286
2341
  getDomainCertInstallMockHandler(),
2287
2342
  getDomainCertUpdateMockHandler(),
2288
2343
  getDomainCertUninstallMockHandler(),
2344
+ getDomainDnseditorMockHandler(),
2345
+ getDomainDnseditorListMockHandler(),
2346
+ getDomainDnseditorAddMockHandler(),
2347
+ getDomainDnseditorEditMockHandler(),
2348
+ getDomainDnszoneResetMockHandler(),
2289
2349
  getDomainUnassignMockHandler(),
2290
2350
  getDomainZoneeditorUrlMockHandler(),
2291
2351
  getHostingAccountMockHandler(),
@@ -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.1189.0
6
+ * OpenAPI spec version: 1.1195.0
7
7
  */
8
8
  export declare type SshKeyListV4200RowsItem = {
9
9
  authorize?: boolean;
@@ -203,17 +203,6 @@ export declare type SitesDomainsV2200 = {
203
203
  export declare type SitesDomainsV2Params = {
204
204
  scan?: boolean;
205
205
  };
206
- export declare type SitesListV2200 = {
207
- items?: SitesListV2200ItemsItem[];
208
- /** page size */
209
- limit?: number;
210
- /** current page number */
211
- page?: number;
212
- /** total number of pages */
213
- pages?: number;
214
- /** total number of sites returned */
215
- total?: number;
216
- };
217
206
  /**
218
207
  * @nullable
219
208
  */
@@ -369,6 +358,17 @@ export declare type SitesListV2200ItemsItem = {
369
358
  */
370
359
  version_ptr?: string | null;
371
360
  };
361
+ export declare type SitesListV2200 = {
362
+ items?: SitesListV2200ItemsItem[];
363
+ /** page size */
364
+ limit?: number;
365
+ /** current page number */
366
+ page?: number;
367
+ /** total number of pages */
368
+ pages?: number;
369
+ /** total number of sites returned */
370
+ total?: number;
371
+ };
372
372
  export declare type SshKeyV2200 = {
373
373
  deleted?: number;
374
374
  key_name?: string;
@@ -1034,6 +1034,25 @@ export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
1034
1034
  dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
1035
1035
  timestamp?: number;
1036
1036
  };
1037
+ export declare type SitesMetricDimensions200Dimensions = {
1038
+ http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
1039
+ http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
1040
+ http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
1041
+ http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
1042
+ page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
1043
+ page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
1044
+ visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
1045
+ visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
1046
+ visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
1047
+ wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
1048
+ };
1049
+ export declare type SitesMetricDimensions200 = {
1050
+ date_end?: string;
1051
+ date_start?: string;
1052
+ dimensions?: SitesMetricDimensions200Dimensions;
1053
+ elapsed?: number;
1054
+ metric?: string;
1055
+ };
1037
1056
  export declare type SitesMetricDimensions200DimensionsVisitorIsCrawlerItemDimension = {
1038
1057
  [key: string]: number;
1039
1058
  };
@@ -1076,25 +1095,6 @@ export declare type SitesMetricDimensions200DimensionsHttpVersionItem = {
1076
1095
  dimension?: SitesMetricDimensions200DimensionsHttpVersionItemDimension;
1077
1096
  timestamp?: number;
1078
1097
  };
1079
- export declare type SitesMetricDimensions200Dimensions = {
1080
- http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
1081
- http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
1082
- http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
1083
- http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
1084
- page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
1085
- page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
1086
- visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
1087
- visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
1088
- visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
1089
- wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
1090
- };
1091
- export declare type SitesMetricDimensions200 = {
1092
- date_end?: string;
1093
- date_start?: string;
1094
- dimensions?: SitesMetricDimensions200Dimensions;
1095
- elapsed?: number;
1096
- metric?: string;
1097
- };
1098
1098
  export declare type SitesMetricDimensions200DimensionsHttpVerbItemDimension = {
1099
1099
  [key: string]: number;
1100
1100
  };
@@ -1685,8 +1685,22 @@ export declare type HostingVisitors200VisitorsItem = {
1685
1685
  unique_visitors?: number;
1686
1686
  visitors?: number;
1687
1687
  };
1688
+ export declare type HostingVisitors200TotalDailyItem = {
1689
+ total_bandwidth?: number;
1690
+ total_hits?: number;
1691
+ total_pages?: number;
1692
+ total_visitors?: number;
1693
+ };
1694
+ export declare type HostingVisitors200DailyItem = {
1695
+ bandwidth?: number;
1696
+ hits?: number;
1697
+ pages?: number;
1698
+ visits?: number;
1699
+ };
1688
1700
  export declare type HostingVisitors200 = {
1701
+ daily?: HostingVisitors200DailyItem[];
1689
1702
  total_bandwidth?: number;
1703
+ total_daily?: HostingVisitors200TotalDailyItem[];
1690
1704
  total_hits?: number;
1691
1705
  total_pages?: number;
1692
1706
  total_unique_visitors?: number;
@@ -2850,6 +2864,99 @@ export declare type DomainZoneeditorUrl200 = {
2850
2864
  export declare type DomainUnassign200 = {
2851
2865
  [key: string]: unknown;
2852
2866
  };
2867
+ export declare type DomainDnszoneReset200 = {
2868
+ [key: string]: unknown;
2869
+ };
2870
+ export declare type DomainDnseditorEdit200 = {
2871
+ success?: number;
2872
+ };
2873
+ export declare type DomainDnseditorEditBodyRecordsItem = {
2874
+ /** It describes dns point value for each type of record */
2875
+ content?: string;
2876
+ /** Flag of each DNS record it has */
2877
+ flag?: string;
2878
+ /** name type of dns record */
2879
+ name?: string;
2880
+ /** Port of SRV DNS record */
2881
+ port?: string;
2882
+ /** Priority of each DNS record, Default priority would be set to one */
2883
+ priority?: string;
2884
+ /** Tag of each DNS record */
2885
+ tag?: string;
2886
+ /** Target of SRV DNS record example.domain.com */
2887
+ target?: string;
2888
+ /** manage domain DNS records (A, MX, CNAME, TXT and SRV Records) for individual services */
2889
+ ttl?: string;
2890
+ /** Add host records for your domain name, such as A Records, MX Records, or IPV6 (AAAA). Choose MANAGE to see the full list of supported records */
2891
+ type?: string;
2892
+ /** Weight of each DNS record it holds */
2893
+ weight?: string;
2894
+ };
2895
+ export declare type DomainDnseditorEditBody = {
2896
+ records?: DomainDnseditorEditBodyRecordsItem[];
2897
+ };
2898
+ export declare type DomainDnseditorAdd200 = {
2899
+ success?: number;
2900
+ };
2901
+ export declare type DomainDnseditorAddBodyRecordsItem = {
2902
+ /** It describes dns point value for each type of record */
2903
+ content?: string;
2904
+ /** Flag of each DNS record it has */
2905
+ flag?: string;
2906
+ /** name type of dns record */
2907
+ name?: string;
2908
+ /** Port of SRV DNS record */
2909
+ port?: string;
2910
+ /** Priority of each DNS record, Default priority would be set to one */
2911
+ priority?: string;
2912
+ /** Tag of each DNS record */
2913
+ tag?: string;
2914
+ /** Target of SRV DNS record example.domain.com */
2915
+ target?: string;
2916
+ /** manage domain DNS records (A, MX, CNAME, TXT and SRV Records) for individual services */
2917
+ ttl?: string;
2918
+ /** Add host records for your domain name, such as A Records, MX Records, or IPV6 (AAAA). Choose MANAGE to see the full list of supported records */
2919
+ type?: string;
2920
+ /** Weight of each DNS record it holds */
2921
+ weight?: string;
2922
+ };
2923
+ export declare type DomainDnseditorAddBody = {
2924
+ records?: DomainDnseditorAddBodyRecordsItem[];
2925
+ };
2926
+ export declare type DomainDnseditorList200Item = {
2927
+ content?: string;
2928
+ name?: string;
2929
+ ttl?: number;
2930
+ type?: string;
2931
+ };
2932
+ export declare type DomainDnseditor200 = {
2933
+ success?: number;
2934
+ };
2935
+ export declare type DomainDnseditorBodyRecordsItem = {
2936
+ /** It describes dns point value for each type of record */
2937
+ content?: string;
2938
+ /** Flag of each DNS record it has */
2939
+ flag?: string;
2940
+ /** name type of dns record */
2941
+ name?: string;
2942
+ /** Port of SRV DNS record */
2943
+ port?: string;
2944
+ /** Priority of each DNS record, Default priority would be set to one */
2945
+ priority?: string;
2946
+ /** Tag of each DNS record */
2947
+ tag?: string;
2948
+ /** Target of SRV DNS record example.domain.com */
2949
+ target?: string;
2950
+ /** manage domain DNS records (A, MX, CNAME, TXT and SRV Records) for individual services */
2951
+ ttl?: string;
2952
+ /** Add host records for your domain name, such as A Records, MX Records, or IPV6 (AAAA). Choose MANAGE to see the full list of supported records */
2953
+ type?: string;
2954
+ /** Weight of each DNS record it holds */
2955
+ weight?: string;
2956
+ };
2957
+ export declare type DomainDnseditorBody = {
2958
+ records?: DomainDnseditorBodyRecordsItem[];
2959
+ };
2853
2960
  export declare type DomainCertUninstall200 = {
2854
2961
  [key: string]: unknown;
2855
2962
  };