@newfold/huapi-js 1.432.0 → 1.468.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 +17 -2
- package/src/index.js +16 -1
- package/src/index.msw.d.ts +1 -5
- package/src/index.msw.js +5 -2
- package/src/index.schemas.d.ts +9 -14
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.468.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import type { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
|
|
10
10
|
import type { UseQueryOptions, UseMutationOptions, UseQueryResult, QueryKey } from '@tanstack/react-query';
|
|
11
|
-
import type { CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseList200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteList200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, AddonsSitelockSso200, AddonsCloudflare200, AddonsInfo200, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, AddonCloudflare200, AddonCloudflareBody, ListCrons200, AddCron200, AddCron400, AddCronBody, UpdateCron200, UpdateCronBody, Cron200, CronBody, DbAdd200, DbAddBody, Db200, DbBody, DbList200, DbUserList200, Domains200, DomainsParams, HostingFtpList200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpUpdate200, HostingFtpUpdateBody, HostingFtp200, HostingFtpBody, HostingInfo200, HostingInfoDiskUsage200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingNameservers200, HostingShellToggle200, HostingShellToggleBody, HostingShellInfo200, HostingSites200, HostingSiteAdd200, HostingSiteAddBody, HostingSshInfo200, SshKeyFetch200, SshKeyFetchParams, SshKeyImport200, SshKeyImportBody, SshKeyList200, SshKey200, SshKeyBody, SshKeyGenerate200, SshKeyGenerateBody, Sso200, SsoParams, SitesList200, SitesInfo200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, Site200, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesHasBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, JetpackBackupStatus200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainUrl200, SitesDomainUrlBody, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEndurancePageCache200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, ResetSite200, SitesSecurityCheckCore200, SitesSecurityResetCoreFiles200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecuritySitelock200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SiteSettingsAutoupdatePlugins200, SitesSettingsAutoupdates200, SitesSettingsAutoupdatesCore200, SitesSettingsAutoupdatesCoreBody, SitesSettingsAutoupdatesTheme200, SitesSettingsAutoupdatesThemeBody, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSso200, SitesSsoParams, SiteStatus200, SiteUsers200, SitesVersion200, HostingSitesV2200, SshKeyListV2200 } from './index.schemas';
|
|
11
|
+
import type { CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseList200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteList200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, AddonsSitelockSso200, AddonsCloudflare200, AddonsInfo200, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, AddonCloudflare200, AddonCloudflareBody, ListCrons200, AddCron200, AddCron400, AddCronBody, UpdateCron200, UpdateCronBody, Cron200, CronBody, DbAdd200, DbAddBody, Db200, DbBody, DbList200, DbUserList200, Domains200, DomainsParams, HostingFtpList200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpUpdate200, HostingFtpUpdateBody, HostingFtp200, HostingFtpBody, HostingInfo200, HostingInfoDiskUsage200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingNameservers200, HostingShellToggle200, HostingShellToggleBody, HostingShellInfo200, HostingSites200, HostingSiteAdd200, HostingSiteAddBody, HostingSshInfo200, SshKeyFetch200, SshKeyFetchParams, SshKeyImport200, SshKeyImportBody, SshKeyList200, SshKey200, SshKeyBody, SshKeyGenerate200, SshKeyGenerateBody, Sso200, SsoParams, SitesList200, SitesInfo200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, Site200, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesHasBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, JetpackBackupStatus200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainUrl200, SitesDomainUrlBody, SitePendingDomainDelete200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEndurancePageCache200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, ResetSite200, SitesSecurityCheckCore200, SitesSecurityResetCoreFiles200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecuritySitelock200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SiteSettingsAutoupdatePlugins200, SitesSettingsAutoupdates200, SitesSettingsAutoupdatesCore200, SitesSettingsAutoupdatesCoreBody, SitesSettingsAutoupdatesTheme200, SitesSettingsAutoupdatesThemeBody, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSso200, SitesSsoParams, SiteStatus200, SiteUsers200, SitesVersion200, HostingSitesV2200, SshKeyListV2200 } from './index.schemas';
|
|
12
12
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
13
13
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
14
14
|
/**
|
|
@@ -1136,6 +1136,21 @@ export declare const useSitesDomainUrl: <TError = AxiosError<unknown, any>, TCon
|
|
|
1136
1136
|
siteId: number;
|
|
1137
1137
|
data: SitesDomainUrlBody;
|
|
1138
1138
|
}, TContext>;
|
|
1139
|
+
/**
|
|
1140
|
+
* Delete pending domain
|
|
1141
|
+
* @summary Delete pending domain
|
|
1142
|
+
*/
|
|
1143
|
+
export declare const sitePendingDomainDelete: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePendingDomainDelete200>>;
|
|
1144
|
+
export declare type SitePendingDomainDeleteMutationResult = NonNullable<Awaited<ReturnType<typeof sitePendingDomainDelete>>>;
|
|
1145
|
+
export declare type SitePendingDomainDeleteMutationError = AxiosError<unknown>;
|
|
1146
|
+
export declare const useSitePendingDomainDelete: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1147
|
+
mutation?: UseMutationOptions<AxiosResponse<SitePendingDomainDelete200, any>, TError, {
|
|
1148
|
+
siteId: number;
|
|
1149
|
+
}, TContext> | undefined;
|
|
1150
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1151
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitePendingDomainDelete200, any>, TError, {
|
|
1152
|
+
siteId: number;
|
|
1153
|
+
}, TContext>;
|
|
1139
1154
|
/**
|
|
1140
1155
|
* cache purge site and url
|
|
1141
1156
|
* @summary cache purge url
|
package/src/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.468.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import { useQuery, useMutation } from '@tanstack/react-query';
|
|
@@ -1171,6 +1171,21 @@ export const useSitesDomainUrl = (options) => {
|
|
|
1171
1171
|
};
|
|
1172
1172
|
return useMutation(mutationFn, mutationOptions);
|
|
1173
1173
|
};
|
|
1174
|
+
/**
|
|
1175
|
+
* Delete pending domain
|
|
1176
|
+
* @summary Delete pending domain
|
|
1177
|
+
*/
|
|
1178
|
+
export const sitePendingDomainDelete = (siteId, options) => {
|
|
1179
|
+
return axios.delete(`/v1/sites/${siteId}/pending-domain`, options);
|
|
1180
|
+
};
|
|
1181
|
+
export const useSitePendingDomainDelete = (options) => {
|
|
1182
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1183
|
+
const mutationFn = (props) => {
|
|
1184
|
+
const { siteId } = props !== null && props !== void 0 ? props : {};
|
|
1185
|
+
return sitePendingDomainDelete(siteId, axiosOptions);
|
|
1186
|
+
};
|
|
1187
|
+
return useMutation(mutationFn, mutationOptions);
|
|
1188
|
+
};
|
|
1174
1189
|
/**
|
|
1175
1190
|
* cache purge site and url
|
|
1176
1191
|
* @summary cache purge url
|
package/src/index.msw.d.ts
CHANGED
|
@@ -354,13 +354,8 @@ export declare const getSitesInfoMock: () => {
|
|
|
354
354
|
status: string;
|
|
355
355
|
url: string;
|
|
356
356
|
version: string;
|
|
357
|
-
versionLatest: string | undefined;
|
|
358
357
|
php_version: string | null | undefined;
|
|
359
|
-
updatable: boolean | undefined;
|
|
360
358
|
pending_url: string | undefined;
|
|
361
|
-
meta: {
|
|
362
|
-
pending_url: string | undefined;
|
|
363
|
-
} | undefined;
|
|
364
359
|
};
|
|
365
360
|
export declare const getSiteUpdateMock: () => {
|
|
366
361
|
success: boolean;
|
|
@@ -434,6 +429,7 @@ export declare const getSitesDomainMock: () => {
|
|
|
434
429
|
export declare const getSitesDomainUrlMock: () => {
|
|
435
430
|
success: boolean | undefined;
|
|
436
431
|
};
|
|
432
|
+
export declare const getSitePendingDomainDeleteMock: () => {};
|
|
437
433
|
export declare const getSitesPerformanceCachepurgeMock: () => {
|
|
438
434
|
success: boolean | undefined;
|
|
439
435
|
};
|
package/src/index.msw.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.468.0
|
|
7
7
|
*/
|
|
8
8
|
import { rest } from 'msw';
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
@@ -66,7 +66,7 @@ export const getSshKeyMock = () => ({ deleted: faker.helpers.arrayElement([faker
|
|
|
66
66
|
export const getSshKeyGenerateMock = () => ({ key_name: faker.helpers.arrayElement([faker.random.word(), undefined]), private_key_path: faker.helpers.arrayElement([faker.random.word(), undefined]), public_key_path: faker.helpers.arrayElement([faker.random.word(), undefined]) });
|
|
67
67
|
export const getSsoMock = () => ({ url: faker.random.word() });
|
|
68
68
|
export const getSitesListMock = () => ({ items: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ id: faker.helpers.arrayElement([faker.random.word(), undefined]), name: faker.helpers.arrayElement([faker.random.word(), undefined]), url: faker.helpers.arrayElement([faker.random.word(), undefined]), docroot: faker.helpers.arrayElement([faker.random.word(), undefined]), status: faker.helpers.arrayElement([faker.random.word(), undefined]) })), undefined]) });
|
|
69
|
-
export const getSitesInfoMock = () => ({ id: faker.random.word(), docroot: faker.random.word(), uuid: faker.random.word(), date_added: faker.random.word(), date_modified: faker.random.word(), name: faker.random.word(), type: faker.random.word(), subtype: faker.random.word(), status: faker.random.word(), url: faker.random.word(), version: faker.random.word(),
|
|
69
|
+
export const getSitesInfoMock = () => ({ id: faker.random.word(), docroot: faker.random.word(), uuid: faker.random.word(), date_added: faker.random.word(), date_modified: faker.random.word(), name: faker.random.word(), type: faker.random.word(), subtype: faker.random.word(), status: faker.random.word(), url: faker.random.word(), version: faker.random.word(), php_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.random.word(), null]), undefined]), pending_url: faker.helpers.arrayElement([faker.random.word(), undefined]) });
|
|
70
70
|
export const getSiteUpdateMock = () => ({ success: faker.datatype.boolean() });
|
|
71
71
|
export const getSiteMock = () => ({ success: faker.datatype.boolean() });
|
|
72
72
|
export const getSitesAutoupdatesInfoMock = () => ({ plugins: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), core: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), themes: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) });
|
|
@@ -79,6 +79,7 @@ export const getJetpackBackupStatusMock = () => ({ has_active_plugin: faker.help
|
|
|
79
79
|
export const getSitesDnsMock = () => ({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), source: faker.helpers.arrayElement([faker.random.word(), undefined]), records: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ name: faker.helpers.arrayElement([faker.random.word(), undefined]), value: faker.helpers.arrayElement([faker.random.word(), undefined]), type: faker.helpers.arrayElement([faker.random.word(), undefined]) })), undefined]) });
|
|
80
80
|
export const getSitesDomainMock = () => ({ connected: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), a_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), nameserver_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), detected: faker.helpers.arrayElement([{ a: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.random.word())), undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.random.word())), undefined]) }, undefined]), wanted: faker.helpers.arrayElement([{ a: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.random.word())), undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.random.word())), undefined]) }, undefined]) });
|
|
81
81
|
export const getSitesDomainUrlMock = () => ({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) });
|
|
82
|
+
export const getSitePendingDomainDeleteMock = () => ({});
|
|
82
83
|
export const getSitesPerformanceCachepurgeMock = () => ({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) });
|
|
83
84
|
export const getSitesPerformanceEnduranceCacheLevelStatusMock = () => ({ endurance_cache_level: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) });
|
|
84
85
|
export const getSitesPerformanceEnduranceCacheLevelMock = () => ({ options: faker.helpers.arrayElement([{}, undefined]) });
|
|
@@ -256,6 +257,8 @@ export const getHostingUAPIMSW = () => [
|
|
|
256
257
|
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json(getSitesDomainMock()));
|
|
257
258
|
}), rest.post('*/v1/sites/:siteId/domain', (_req, res, ctx) => {
|
|
258
259
|
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json(getSitesDomainUrlMock()));
|
|
260
|
+
}), rest.delete('*/v1/sites/:siteId/pending-domain', (_req, res, ctx) => {
|
|
261
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json(getSitePendingDomainDeleteMock()));
|
|
259
262
|
}), rest.post('*/v1/sites/:siteId/performance/cachepurge', (_req, res, ctx) => {
|
|
260
263
|
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json(getSitesPerformanceCachepurgeMock()));
|
|
261
264
|
}), rest.get('*/v1/sites/:siteId/performance/endurance_cache_level', (_req, res, ctx) => {
|
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.468.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV2200RowsItem = {
|
|
9
9
|
name?: string;
|
|
@@ -60,7 +60,7 @@ export declare type SiteUsers200 = {
|
|
|
60
60
|
export declare type SiteStatus200 = {
|
|
61
61
|
url?: string;
|
|
62
62
|
pending_url?: string;
|
|
63
|
-
cloudflare_ready?: boolean;
|
|
63
|
+
cloudflare_ready?: boolean | null;
|
|
64
64
|
};
|
|
65
65
|
export declare type SitesSso200 = {
|
|
66
66
|
sso?: string;
|
|
@@ -231,6 +231,9 @@ export declare type SitesPerformanceCachepurgeBody = {
|
|
|
231
231
|
/** Pass either 0 or 1 */
|
|
232
232
|
epc?: number;
|
|
233
233
|
};
|
|
234
|
+
export declare type SitePendingDomainDelete200 = {
|
|
235
|
+
[key: string]: any;
|
|
236
|
+
};
|
|
234
237
|
export declare type SitesDomainUrl200 = {
|
|
235
238
|
success?: boolean;
|
|
236
239
|
};
|
|
@@ -334,9 +337,6 @@ export declare type SiteUpdateBody = {
|
|
|
334
337
|
/** filesystem path that follows the domain in the url */
|
|
335
338
|
path?: string;
|
|
336
339
|
};
|
|
337
|
-
export declare type SitesInfo200Meta = {
|
|
338
|
-
pending_url?: string;
|
|
339
|
-
} | null;
|
|
340
340
|
export declare type SitesInfo200 = {
|
|
341
341
|
id: string;
|
|
342
342
|
docroot: string;
|
|
@@ -349,12 +349,9 @@ export declare type SitesInfo200 = {
|
|
|
349
349
|
status: string;
|
|
350
350
|
url: string;
|
|
351
351
|
version: string;
|
|
352
|
-
versionLatest?: string;
|
|
353
352
|
/** The Php Version. If unable to determine, it will be NULL */
|
|
354
353
|
php_version?: string | null;
|
|
355
|
-
updatable?: boolean;
|
|
356
354
|
pending_url?: string;
|
|
357
|
-
meta?: SitesInfo200Meta;
|
|
358
355
|
};
|
|
359
356
|
export declare type SitesList200ItemsItem = {
|
|
360
357
|
id?: string;
|
|
@@ -758,17 +755,15 @@ export declare type Cron200 = {
|
|
|
758
755
|
success?: boolean;
|
|
759
756
|
};
|
|
760
757
|
export declare type CronBody = {
|
|
761
|
-
/** unique key for cron that is being updated
|
|
758
|
+
/** unique key for cron that is being updated */
|
|
762
759
|
key: number;
|
|
763
760
|
};
|
|
764
761
|
export declare type UpdateCron200 = {
|
|
765
762
|
key?: number;
|
|
766
763
|
};
|
|
767
764
|
export declare type UpdateCronBody = {
|
|
768
|
-
/** unique key for cron that is being updated
|
|
769
|
-
key
|
|
770
|
-
/** line number for cron that is being updated (one of key or line is required) */
|
|
771
|
-
line?: number;
|
|
765
|
+
/** unique key for cron that is being updated */
|
|
766
|
+
key: number;
|
|
772
767
|
/** command to run as a cron, needs to be a valid string */
|
|
773
768
|
command: string;
|
|
774
769
|
/** The day of the month on which the cron job runs. An integer between 1 and 31. * - Every day. *\/2 - Every other day. 1,15 - On the 1st and 15th of the month. */
|
|
@@ -781,7 +776,7 @@ export declare type UpdateCronBody = {
|
|
|
781
776
|
month: string;
|
|
782
777
|
/** The day of the week on which the cron job runs, 0-6. 0 - Sunday. 1 - Monday. 2 - Tuesday. 3 - Wednesday. 4 - Thursday. 5 - Friday. 6 - Saturday. * - Every day. */
|
|
783
778
|
weekday: string;
|
|
784
|
-
/** Type of
|
|
779
|
+
/** Type of command (command, variable, comment, blank, unparsed) */
|
|
785
780
|
type?: string;
|
|
786
781
|
};
|
|
787
782
|
export declare type AddCron400 = {
|