(
environmentId: string,
workId: string,
sessionToken: string,
)
| 247 | }, |
| 248 | |
| 249 | async acknowledgeWork( |
| 250 | environmentId: string, |
| 251 | workId: string, |
| 252 | sessionToken: string, |
| 253 | ): Promise<void> { |
| 254 | validateBridgeId(environmentId, 'environmentId') |
| 255 | validateBridgeId(workId, 'workId') |
| 256 | |
| 257 | debug(`[bridge:api] POST .../work/${workId}/ack`) |
| 258 | |
| 259 | const response = await axios.post( |
| 260 | `${deps.baseUrl}/v1/environments/${environmentId}/work/${workId}/ack`, |
| 261 | {}, |
| 262 | { |
| 263 | headers: getHeaders(sessionToken), |
| 264 | timeout: 10_000, |
| 265 | validateStatus: s => s < 500, |
| 266 | }, |
| 267 | ) |
| 268 | |
| 269 | handleErrorStatus(response.status, response.data, 'Acknowledge') |
| 270 | debug(`[bridge:api] POST .../work/${workId}/ack -> ${response.status}`) |
| 271 | }, |
| 272 | |
| 273 | async stopWork( |
| 274 | environmentId: string, |
nothing calls this directly
no test coverage detected