You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -88,27 +90,22 @@ export function listApplicationVulnerabilities(
88
90
* Initiates a refresh of application vulnerabilities.
89
91
* @param {number} appId - The numeric ID of the application.
90
92
* @param {number} serverId - The numeric ID of the server.
91
-
* @returns {Promise<{status: boolean, operation_id: number}>} A Promise that resolves to an object containing the status and operation ID of the refresh operation.
93
+
* @returns {Promise<OperationStatus>} A Promise that resolves to an object containing the status and operation ID of the refresh operation.
Copy file name to clipboardExpand all lines: src/services/application/index.ts
+24-44
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ import type { OperationStatus } from "../operation/types";
9
9
* @param {string} application App to be installed (e.g., "wordpress", "joomla").
10
10
* @param {string} appLabel Name of the app.
11
11
* @param {string} projectName (Optional) Name of the project to tag the newly created app with.
12
-
* @returns {Promise< number >} A promise resolving with the operation id.
12
+
* @returns {Promise<OperationStatus>} A promise resolving with the operation id.
13
13
* @example
14
14
* ```
15
15
*
@@ -39,7 +39,7 @@ export async function addApp(
39
39
* @param {number} serverId Numeric id of the server.
40
40
* @param {number} appId Numeric id of the application.
41
41
* @param {string} appLabel Name of the app.
42
-
* @returns {Promise<{ appId: number, operationId: number }>} A promise resolving with the cloned app's id and operation id.
42
+
* @returns {Promise<OperationStatus>} A promise resolving with the cloned app's id and operation id.
43
43
* @example
44
44
* ```
45
45
* {
@@ -67,7 +67,7 @@ export async function cloneApp(
67
67
* @param {number} serverId Numeric id of the source server.
68
68
* @param {number} appId Numeric id of the application.
69
69
* @param {number} destinationServerId Numeric id of the destination server.
70
-
* @returns {Promise<{ sourceOperationId: number, destinationOperationId: number, appId: number }>} A promise resolving with the source and destination operation ids along with the cloned app's id.
70
+
* @returns {Promise<OperationStatus>} A promise resolving with the source and destination operation ids along with the cloned app's id.
71
71
* @example
72
72
* ```
73
73
* {
@@ -77,34 +77,26 @@ export async function cloneApp(
* @param {number} serverId Numeric id of the source server.
135
123
* @param {number} appId Numeric id of the staging application.
136
124
* @param {number} destinationServerId Numeric id of the destination server.
137
-
* @returns {Promise<{ sourceOperationId: number, destinationOperationId: number, appId: number }>} A promise resolving with the operation ids and the cloned staging app's id.
125
+
* @returns {Promise<OperationStatus>} A promise resolving with the operation ids and the cloned staging app's id.
138
126
* @example
139
127
* ```
140
128
* {
@@ -144,46 +132,38 @@ export function cloneStagingApp(
@@ -371,27 +367,23 @@ export function BotProtectionBadBotsWhitelisting(
371
367
*
372
368
* @param {number} serverId - The numeric id of the server.
373
369
* @param {number} appId - The numeric id of the application.
374
-
* @returns {Promise<{ status: boolean, operation_id: number }>} A promise that resolves to an object containing the status and operation id of the cache purge operation.
370
+
* @returns {Promise<OperationStatus>} A promise that resolves to an object containing the status and operation id of the cache purge operation.
0 commit comments