|
| 1 | +export function drush(command: string): Buffer; |
| 2 | + |
| 3 | +/** |
| 4 | + * Finds node ID via drush and returns it. |
| 5 | + * @param {Array<{page: Page, node_title: String}>} array Page object and |
| 6 | + * node title |
| 7 | + * @returns {Promise<string>} The result. |
| 8 | + */ |
| 9 | +export function getNodeIdByTitle([page, node_title]): Promise<string>; |
| 10 | + |
| 11 | +/** |
| 12 | + * Removes content prefixed with given keyword. |
| 13 | + * @param {String} keyword Keyword to find content by. |
| 14 | + */ |
| 15 | +export function cleanUpContent(keyword): Promise<void>; |
| 16 | + |
| 17 | +/** |
| 18 | + * Finds node ID via drush and visits node edit page. |
| 19 | + * @param {Array<{page: Page, node_title: String}>} array Page object and |
| 20 | + * node title |
| 21 | + * @return {Response} The response. |
| 22 | + */ |
| 23 | +export async function visitNodeEditPage([page, node_title]): Promise<Response>; |
| 24 | + |
| 25 | +/** |
| 26 | + * Finds node ID via drush and visits node layout page. |
| 27 | + * @param {Array<{page: Page, node_title: String}>} array Page object and |
| 28 | + * node title |
| 29 | + * @return {Response} The response. |
| 30 | + */ |
| 31 | +export async function visitNodeLayoutPage([page, node_title]): Promise<Response>; |
| 32 | + |
| 33 | +/** |
| 34 | + * Finds node ID via drush and visits node layout preview page in the frontend. |
| 35 | + * @param {Array<{page: Page, node_title: String}>} array Page object and |
| 36 | + * node title |
| 37 | + * @return {Response} The response. |
| 38 | + */ |
| 39 | +export async function visitNodeLayoutPreviewPage([page, node_title]): Promise<Response>; |
| 40 | + |
| 41 | + |
| 42 | +/** |
| 43 | + * Visits node path found by title via drush. |
| 44 | + * @param {Array<{page: Page, node_title: String}>} array Page object and |
| 45 | + * node title |
| 46 | + * @return {Response} The response. |
| 47 | + */ |
| 48 | +export async function visitNodeByTitle([page, node_title]): Promise<Response>; |
| 49 | + |
| 50 | + |
| 51 | +/** |
| 52 | + * Visits node api with path alias found by title via drush. |
| 53 | + * @param {Object[]} array Page object and node title |
| 54 | + * @return {Response} The response. |
| 55 | + */ |
| 56 | +export async function visitNodeAPIByTitle([page, node_title]): Promise<Response>; |
| 57 | + |
| 58 | +/** |
| 59 | + * Clones node with given title to a new node with new title. |
| 60 | + * @param {Array<{page: Page, node_title: String, new_node_title: String}>} |
| 61 | + * array Page object and node title |
| 62 | + * @return Promise{Buffer} The response. |
| 63 | + */ |
| 64 | +export async function cloneNodeByTitle([page, node_type, node_title, new_node_title]): Promise<Buffer>; |
| 65 | + |
| 66 | +/** |
| 67 | + * Checks if there are any errors in the watchdog starting from a certain timestamp. |
| 68 | + * |
| 69 | + * @param timestamp Timestamp from when to look for errors. |
| 70 | + * @param fail_on_notice Boolean to change severity level of watchdog errors. |
| 71 | + * @returns {Promise<string>} The json result. |
| 72 | + */ |
| 73 | +export async function checkWatchdogErrors(timestamp, fail_on_notice = false): Promise<number>; |
0 commit comments