@newfold/huapi-js 2.1188.0 → 2.1192.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 +189 -1
- package/src/index.js +141 -1
- package/src/index.msw.d.ts +13 -1
- package/src/index.msw.js +73 -1
- package/src/index.schemas.d.ts +156 -54
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
|
-
import type { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, 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, 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
|
|
@@ -5825,6 +5982,37 @@ export declare function useDbListV2<TData = Awaited<ReturnType<typeof dbListV2>>
|
|
|
5825
5982
|
}): UseQueryResult<TData, TError> & {
|
|
5826
5983
|
queryKey: QueryKey;
|
|
5827
5984
|
};
|
|
5985
|
+
/**
|
|
5986
|
+
* Unassign the domain associated with the hosting account
|
|
5987
|
+
* @summary Unassign the domain
|
|
5988
|
+
*/
|
|
5989
|
+
export declare const hostingDomainsUnassignV2: (hostingId: string, hostingDomainsUnassignV2Body: HostingDomainsUnassignV2Body, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingDomainsUnassignV2200>>;
|
|
5990
|
+
export declare const getHostingDomainsUnassignV2MutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
5991
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingDomainsUnassignV2200, any>, TError, {
|
|
5992
|
+
hostingId: string;
|
|
5993
|
+
data: HostingDomainsUnassignV2Body;
|
|
5994
|
+
}, TContext> | undefined;
|
|
5995
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
5996
|
+
} | undefined) => UseMutationOptions<AxiosResponse<HostingDomainsUnassignV2200, any>, TError, {
|
|
5997
|
+
hostingId: string;
|
|
5998
|
+
data: HostingDomainsUnassignV2Body;
|
|
5999
|
+
}, TContext>;
|
|
6000
|
+
export declare type HostingDomainsUnassignV2MutationResult = NonNullable<Awaited<ReturnType<typeof hostingDomainsUnassignV2>>>;
|
|
6001
|
+
export declare type HostingDomainsUnassignV2MutationBody = HostingDomainsUnassignV2Body;
|
|
6002
|
+
export declare type HostingDomainsUnassignV2MutationError = AxiosError<unknown>;
|
|
6003
|
+
/**
|
|
6004
|
+
* @summary Unassign the domain
|
|
6005
|
+
*/
|
|
6006
|
+
export declare const useHostingDomainsUnassignV2: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
6007
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingDomainsUnassignV2200, any>, TError, {
|
|
6008
|
+
hostingId: string;
|
|
6009
|
+
data: HostingDomainsUnassignV2Body;
|
|
6010
|
+
}, TContext> | undefined;
|
|
6011
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6012
|
+
} | undefined) => UseMutationResult<AxiosResponse<HostingDomainsUnassignV2200, any>, TError, {
|
|
6013
|
+
hostingId: string;
|
|
6014
|
+
data: HostingDomainsUnassignV2Body;
|
|
6015
|
+
}, TContext>;
|
|
5828
6016
|
/**
|
|
5829
6017
|
* List files under the given directory
|
|
5830
6018
|
* @summary List files
|
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.1192.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
|
|
@@ -4505,6 +4623,28 @@ export function useDbListV2(hostingId, options) {
|
|
|
4505
4623
|
query.queryKey = queryOptions.queryKey;
|
|
4506
4624
|
return query;
|
|
4507
4625
|
}
|
|
4626
|
+
/**
|
|
4627
|
+
* Unassign the domain associated with the hosting account
|
|
4628
|
+
* @summary Unassign the domain
|
|
4629
|
+
*/
|
|
4630
|
+
export const hostingDomainsUnassignV2 = (hostingId, hostingDomainsUnassignV2Body, options) => {
|
|
4631
|
+
return axios.post(`/v2/hosting/${hostingId}/domains/unassign`, hostingDomainsUnassignV2Body, options);
|
|
4632
|
+
};
|
|
4633
|
+
export const getHostingDomainsUnassignV2MutationOptions = (options) => {
|
|
4634
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
4635
|
+
const mutationFn = (props) => {
|
|
4636
|
+
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
4637
|
+
return hostingDomainsUnassignV2(hostingId, data, axiosOptions);
|
|
4638
|
+
};
|
|
4639
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
4640
|
+
};
|
|
4641
|
+
/**
|
|
4642
|
+
* @summary Unassign the domain
|
|
4643
|
+
*/
|
|
4644
|
+
export const useHostingDomainsUnassignV2 = (options) => {
|
|
4645
|
+
const mutationOptions = getHostingDomainsUnassignV2MutationOptions(options);
|
|
4646
|
+
return useMutation(mutationOptions);
|
|
4647
|
+
};
|
|
4508
4648
|
/**
|
|
4509
4649
|
* List files under the given directory
|
|
4510
4650
|
* @summary List files
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonCloudflare200, AddonsCloudflare200, AddonsInfo200, 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, 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;
|
|
@@ -183,6 +188,7 @@ export declare const getSiteUsersResponseMock: (overrideResponse?: Partial<SiteU
|
|
|
183
188
|
export declare const getSitesVersionResponseMock: (overrideResponse?: Partial<SitesVersion200>) => SitesVersion200;
|
|
184
189
|
export declare const getAddonsSitelockSsoV2ResponseMock: (overrideResponse?: Partial<AddonsSitelockSsoV2200>) => AddonsSitelockSsoV2200;
|
|
185
190
|
export declare const getDbListV2ResponseMock: (overrideResponse?: Partial<DbListV2200>) => DbListV2200;
|
|
191
|
+
export declare const getHostingDomainsUnassignV2ResponseMock: (overrideResponse?: Partial<HostingDomainsUnassignV2200>) => HostingDomainsUnassignV2200;
|
|
186
192
|
export declare const getListFilesV2ResponseMock: (overrideResponse?: Partial<ListFilesV2200>) => ListFilesV2200;
|
|
187
193
|
export declare const getHostingNameserversV2ResponseMock: (overrideResponse?: Partial<HostingNameserversV2200>) => HostingNameserversV2200;
|
|
188
194
|
export declare const getHostingRedirectsV2ResponseMock: () => HostingRedirectsV2200Item[];
|
|
@@ -234,6 +240,11 @@ export declare const getDomainCertsMockHandler: (overrideResponse?: DomainCerts2
|
|
|
234
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;
|
|
235
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;
|
|
236
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;
|
|
237
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;
|
|
238
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;
|
|
239
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;
|
|
@@ -384,6 +395,7 @@ export declare const getSiteUsersMockHandler: (overrideResponse?: SiteUsers200 |
|
|
|
384
395
|
export declare const getSitesVersionMockHandler: (overrideResponse?: SitesVersion200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesVersion200> | SitesVersion200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
385
396
|
export declare const getAddonsSitelockSsoV2MockHandler: (overrideResponse?: AddonsSitelockSsoV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsSitelockSsoV2200> | AddonsSitelockSsoV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
386
397
|
export declare const getDbListV2MockHandler: (overrideResponse?: DbListV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DbListV2200> | DbListV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
398
|
+
export declare const getHostingDomainsUnassignV2MockHandler: (overrideResponse?: HostingDomainsUnassignV2200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingDomainsUnassignV2200> | HostingDomainsUnassignV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
387
399
|
export declare const getListFilesV2MockHandler: (overrideResponse?: ListFilesV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ListFilesV2200> | ListFilesV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
388
400
|
export declare const getHostingNameserversV2MockHandler: (overrideResponse?: HostingNameserversV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingNameserversV2200> | HostingNameserversV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
389
401
|
export declare const getHostingRedirectsV2MockHandler: (overrideResponse?: HostingRedirectsV2200Item[] | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingRedirectsV2200Item[]> | HostingRedirectsV2200Item[]) | 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.1192.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));
|
|
@@ -213,6 +218,7 @@ export const getSiteUsersResponseMock = (overrideResponse = {}) => (Object.assig
|
|
|
213
218
|
export const getSitesVersionResponseMock = (overrideResponse = {}) => (Object.assign({ current: faker.helpers.arrayElement([faker.word.sample(), undefined]), latest: faker.helpers.arrayElement([faker.word.sample(), undefined]), update: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
214
219
|
export const getAddonsSitelockSsoV2ResponseMock = (overrideResponse = {}) => (Object.assign({ site_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sitelock_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
215
220
|
export const getDbListV2ResponseMock = (overrideResponse = {}) => (Object.assign({ databases: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ db: faker.helpers.arrayElement([faker.word.sample(), undefined]), sitename: faker.helpers.arrayElement([faker.word.sample(), undefined]), sizemib: faker.helpers.arrayElement([faker.word.sample(), undefined]), usercount: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), userlist: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ db: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) })), undefined]) }, overrideResponse));
|
|
221
|
+
export const getHostingDomainsUnassignV2ResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
216
222
|
export const getListFilesV2ResponseMock = (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));
|
|
217
223
|
export const getHostingNameserversV2ResponseMock = (overrideResponse = {}) => (Object.assign({ brand: faker.word.sample(), hosts: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ host: faker.helpers.arrayElement([faker.word.sample(), undefined]), ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) })), id: faker.number.int({ min: undefined, max: undefined }), is_default: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
218
224
|
export const getHostingRedirectsV2ResponseMock = () => (Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ docroot: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), http_status_code: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), redirect_www: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), src: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]), wildcard: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })));
|
|
@@ -579,6 +585,56 @@ export const getDomainCertUninstallMockHandler = (overrideResponse) => {
|
|
|
579
585
|
});
|
|
580
586
|
}));
|
|
581
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
|
+
};
|
|
582
638
|
export const getDomainUnassignMockHandler = (overrideResponse) => {
|
|
583
639
|
return http.post('*/v1/domains/:domainId/unassign', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
584
640
|
yield delay(1000);
|
|
@@ -2079,6 +2135,16 @@ export const getDbListV2MockHandler = (overrideResponse) => {
|
|
|
2079
2135
|
});
|
|
2080
2136
|
}));
|
|
2081
2137
|
};
|
|
2138
|
+
export const getHostingDomainsUnassignV2MockHandler = (overrideResponse) => {
|
|
2139
|
+
return http.post('*/v2/hosting/:hostingId/domains/unassign', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2140
|
+
yield delay(1000);
|
|
2141
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2142
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2143
|
+
: getHostingDomainsUnassignV2ResponseMock()), { status: 200,
|
|
2144
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2145
|
+
});
|
|
2146
|
+
}));
|
|
2147
|
+
};
|
|
2082
2148
|
export const getListFilesV2MockHandler = (overrideResponse) => {
|
|
2083
2149
|
return http.get('*/v2/hosting/:hostingId/files', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2084
2150
|
yield delay(1000);
|
|
@@ -2275,6 +2341,11 @@ export const getHostingUAPIMock = () => [
|
|
|
2275
2341
|
getDomainCertInstallMockHandler(),
|
|
2276
2342
|
getDomainCertUpdateMockHandler(),
|
|
2277
2343
|
getDomainCertUninstallMockHandler(),
|
|
2344
|
+
getDomainDnseditorMockHandler(),
|
|
2345
|
+
getDomainDnseditorListMockHandler(),
|
|
2346
|
+
getDomainDnseditorAddMockHandler(),
|
|
2347
|
+
getDomainDnseditorEditMockHandler(),
|
|
2348
|
+
getDomainDnszoneResetMockHandler(),
|
|
2278
2349
|
getDomainUnassignMockHandler(),
|
|
2279
2350
|
getDomainZoneeditorUrlMockHandler(),
|
|
2280
2351
|
getHostingAccountMockHandler(),
|
|
@@ -2425,6 +2496,7 @@ export const getHostingUAPIMock = () => [
|
|
|
2425
2496
|
getSitesVersionMockHandler(),
|
|
2426
2497
|
getAddonsSitelockSsoV2MockHandler(),
|
|
2427
2498
|
getDbListV2MockHandler(),
|
|
2499
|
+
getHostingDomainsUnassignV2MockHandler(),
|
|
2428
2500
|
getListFilesV2MockHandler(),
|
|
2429
2501
|
getHostingNameserversV2MockHandler(),
|
|
2430
2502
|
getHostingRedirectsV2MockHandler(),
|
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.1192.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;
|
|
@@ -411,6 +411,29 @@ export declare type SshKeyImportV2Body = {
|
|
|
411
411
|
/** The entity that initiated the GAP call */
|
|
412
412
|
source?: string;
|
|
413
413
|
};
|
|
414
|
+
export declare type HostingSitesV2200 = {
|
|
415
|
+
/**
|
|
416
|
+
* Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
|
|
417
|
+
* @nullable
|
|
418
|
+
*/
|
|
419
|
+
available_sites?: number | null;
|
|
420
|
+
items?: HostingSitesV2200ItemsItem[];
|
|
421
|
+
/** page size */
|
|
422
|
+
limit?: number;
|
|
423
|
+
/**
|
|
424
|
+
* Maximum number of sites the customer can have. Null means 'unlimited'.
|
|
425
|
+
* @nullable
|
|
426
|
+
*/
|
|
427
|
+
max_sites?: number | null;
|
|
428
|
+
/** current page number */
|
|
429
|
+
page?: number;
|
|
430
|
+
/** total number of pages */
|
|
431
|
+
pages?: number;
|
|
432
|
+
/** total number of sites returned */
|
|
433
|
+
total?: number;
|
|
434
|
+
/** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
|
|
435
|
+
used_sites?: number;
|
|
436
|
+
};
|
|
414
437
|
/**
|
|
415
438
|
* @nullable
|
|
416
439
|
*/
|
|
@@ -566,29 +589,6 @@ export declare type HostingSitesV2200ItemsItem = {
|
|
|
566
589
|
*/
|
|
567
590
|
version_ptr?: string | null;
|
|
568
591
|
};
|
|
569
|
-
export declare type HostingSitesV2200 = {
|
|
570
|
-
/**
|
|
571
|
-
* Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
|
|
572
|
-
* @nullable
|
|
573
|
-
*/
|
|
574
|
-
available_sites?: number | null;
|
|
575
|
-
items?: HostingSitesV2200ItemsItem[];
|
|
576
|
-
/** page size */
|
|
577
|
-
limit?: number;
|
|
578
|
-
/**
|
|
579
|
-
* Maximum number of sites the customer can have. Null means 'unlimited'.
|
|
580
|
-
* @nullable
|
|
581
|
-
*/
|
|
582
|
-
max_sites?: number | null;
|
|
583
|
-
/** current page number */
|
|
584
|
-
page?: number;
|
|
585
|
-
/** total number of pages */
|
|
586
|
-
pages?: number;
|
|
587
|
-
/** total number of sites returned */
|
|
588
|
-
total?: number;
|
|
589
|
-
/** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
|
|
590
|
-
used_sites?: number;
|
|
591
|
-
};
|
|
592
592
|
export declare type HostingSitesV2Params = {
|
|
593
593
|
limit?: number;
|
|
594
594
|
page?: number;
|
|
@@ -631,6 +631,15 @@ export declare type ListFilesV2Params = {
|
|
|
631
631
|
dir: string;
|
|
632
632
|
showdotfiles?: boolean;
|
|
633
633
|
};
|
|
634
|
+
export declare type HostingDomainsUnassignV2200 = {
|
|
635
|
+
[key: string]: unknown;
|
|
636
|
+
};
|
|
637
|
+
export declare type HostingDomainsUnassignV2Body = {
|
|
638
|
+
/** The domain id to be unassigned */
|
|
639
|
+
domain_id: number;
|
|
640
|
+
/** The site id to be unassigned */
|
|
641
|
+
site_id: number;
|
|
642
|
+
};
|
|
634
643
|
export declare type DbListV2200DatabasesItemUserlistItem = {
|
|
635
644
|
db?: string;
|
|
636
645
|
user?: string;
|
|
@@ -1025,6 +1034,25 @@ export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
|
|
|
1025
1034
|
dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
|
|
1026
1035
|
timestamp?: number;
|
|
1027
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
|
+
};
|
|
1028
1056
|
export declare type SitesMetricDimensions200DimensionsVisitorIsCrawlerItemDimension = {
|
|
1029
1057
|
[key: string]: number;
|
|
1030
1058
|
};
|
|
@@ -1067,25 +1095,6 @@ export declare type SitesMetricDimensions200DimensionsHttpVersionItem = {
|
|
|
1067
1095
|
dimension?: SitesMetricDimensions200DimensionsHttpVersionItemDimension;
|
|
1068
1096
|
timestamp?: number;
|
|
1069
1097
|
};
|
|
1070
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
1071
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
1072
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
1073
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
1074
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
1075
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
1076
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
1077
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
1078
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
1079
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
1080
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
1081
|
-
};
|
|
1082
|
-
export declare type SitesMetricDimensions200 = {
|
|
1083
|
-
date_end?: string;
|
|
1084
|
-
date_start?: string;
|
|
1085
|
-
dimensions?: SitesMetricDimensions200Dimensions;
|
|
1086
|
-
elapsed?: number;
|
|
1087
|
-
metric?: string;
|
|
1088
|
-
};
|
|
1089
1098
|
export declare type SitesMetricDimensions200DimensionsHttpVerbItemDimension = {
|
|
1090
1099
|
[key: string]: number;
|
|
1091
1100
|
};
|
|
@@ -2841,6 +2850,99 @@ export declare type DomainZoneeditorUrl200 = {
|
|
|
2841
2850
|
export declare type DomainUnassign200 = {
|
|
2842
2851
|
[key: string]: unknown;
|
|
2843
2852
|
};
|
|
2853
|
+
export declare type DomainDnszoneReset200 = {
|
|
2854
|
+
[key: string]: unknown;
|
|
2855
|
+
};
|
|
2856
|
+
export declare type DomainDnseditorEdit200 = {
|
|
2857
|
+
success?: number;
|
|
2858
|
+
};
|
|
2859
|
+
export declare type DomainDnseditorEditBodyRecordsItem = {
|
|
2860
|
+
/** It describes dns point value for each type of record */
|
|
2861
|
+
content?: string;
|
|
2862
|
+
/** Flag of each DNS record it has */
|
|
2863
|
+
flag?: string;
|
|
2864
|
+
/** name type of dns record */
|
|
2865
|
+
name?: string;
|
|
2866
|
+
/** Port of SRV DNS record */
|
|
2867
|
+
port?: string;
|
|
2868
|
+
/** Priority of each DNS record, Default priority would be set to one */
|
|
2869
|
+
priority?: string;
|
|
2870
|
+
/** Tag of each DNS record */
|
|
2871
|
+
tag?: string;
|
|
2872
|
+
/** Target of SRV DNS record example.domain.com */
|
|
2873
|
+
target?: string;
|
|
2874
|
+
/** manage domain DNS records (A, MX, CNAME, TXT and SRV Records) for individual services */
|
|
2875
|
+
ttl?: string;
|
|
2876
|
+
/** 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 */
|
|
2877
|
+
type?: string;
|
|
2878
|
+
/** Weight of each DNS record it holds */
|
|
2879
|
+
weight?: string;
|
|
2880
|
+
};
|
|
2881
|
+
export declare type DomainDnseditorEditBody = {
|
|
2882
|
+
records?: DomainDnseditorEditBodyRecordsItem[];
|
|
2883
|
+
};
|
|
2884
|
+
export declare type DomainDnseditorAdd200 = {
|
|
2885
|
+
success?: number;
|
|
2886
|
+
};
|
|
2887
|
+
export declare type DomainDnseditorAddBodyRecordsItem = {
|
|
2888
|
+
/** It describes dns point value for each type of record */
|
|
2889
|
+
content?: string;
|
|
2890
|
+
/** Flag of each DNS record it has */
|
|
2891
|
+
flag?: string;
|
|
2892
|
+
/** name type of dns record */
|
|
2893
|
+
name?: string;
|
|
2894
|
+
/** Port of SRV DNS record */
|
|
2895
|
+
port?: string;
|
|
2896
|
+
/** Priority of each DNS record, Default priority would be set to one */
|
|
2897
|
+
priority?: string;
|
|
2898
|
+
/** Tag of each DNS record */
|
|
2899
|
+
tag?: string;
|
|
2900
|
+
/** Target of SRV DNS record example.domain.com */
|
|
2901
|
+
target?: string;
|
|
2902
|
+
/** manage domain DNS records (A, MX, CNAME, TXT and SRV Records) for individual services */
|
|
2903
|
+
ttl?: string;
|
|
2904
|
+
/** 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 */
|
|
2905
|
+
type?: string;
|
|
2906
|
+
/** Weight of each DNS record it holds */
|
|
2907
|
+
weight?: string;
|
|
2908
|
+
};
|
|
2909
|
+
export declare type DomainDnseditorAddBody = {
|
|
2910
|
+
records?: DomainDnseditorAddBodyRecordsItem[];
|
|
2911
|
+
};
|
|
2912
|
+
export declare type DomainDnseditorList200Item = {
|
|
2913
|
+
content?: string;
|
|
2914
|
+
name?: string;
|
|
2915
|
+
ttl?: number;
|
|
2916
|
+
type?: string;
|
|
2917
|
+
};
|
|
2918
|
+
export declare type DomainDnseditor200 = {
|
|
2919
|
+
success?: number;
|
|
2920
|
+
};
|
|
2921
|
+
export declare type DomainDnseditorBodyRecordsItem = {
|
|
2922
|
+
/** It describes dns point value for each type of record */
|
|
2923
|
+
content?: string;
|
|
2924
|
+
/** Flag of each DNS record it has */
|
|
2925
|
+
flag?: string;
|
|
2926
|
+
/** name type of dns record */
|
|
2927
|
+
name?: string;
|
|
2928
|
+
/** Port of SRV DNS record */
|
|
2929
|
+
port?: string;
|
|
2930
|
+
/** Priority of each DNS record, Default priority would be set to one */
|
|
2931
|
+
priority?: string;
|
|
2932
|
+
/** Tag of each DNS record */
|
|
2933
|
+
tag?: string;
|
|
2934
|
+
/** Target of SRV DNS record example.domain.com */
|
|
2935
|
+
target?: string;
|
|
2936
|
+
/** manage domain DNS records (A, MX, CNAME, TXT and SRV Records) for individual services */
|
|
2937
|
+
ttl?: string;
|
|
2938
|
+
/** 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 */
|
|
2939
|
+
type?: string;
|
|
2940
|
+
/** Weight of each DNS record it holds */
|
|
2941
|
+
weight?: string;
|
|
2942
|
+
};
|
|
2943
|
+
export declare type DomainDnseditorBody = {
|
|
2944
|
+
records?: DomainDnseditorBodyRecordsItem[];
|
|
2945
|
+
};
|
|
2844
2946
|
export declare type DomainCertUninstall200 = {
|
|
2845
2947
|
[key: string]: unknown;
|
|
2846
2948
|
};
|