(taskId: string, body: TriggerTaskRequestBody, options?: TriggerOptions)
| 111 | } |
| 112 | |
| 113 | triggerTask(taskId: string, body: TriggerTaskRequestBody, options?: TriggerOptions) { |
| 114 | const encodedTaskId = encodeURIComponent(taskId); |
| 115 | |
| 116 | return zodfetch( |
| 117 | TriggerTaskResponse, |
| 118 | `${this.baseUrl}/api/v1/tasks/${encodedTaskId}/trigger`, |
| 119 | { |
| 120 | method: "POST", |
| 121 | headers: this.#getHeaders(options?.spanParentAsLink ?? false), |
| 122 | body: JSON.stringify(body), |
| 123 | }, |
| 124 | zodFetchOptions |
| 125 | ); |
| 126 | } |
| 127 | |
| 128 | batchTriggerTask(taskId: string, body: BatchTriggerTaskRequestBody, options?: TriggerOptions) { |
| 129 | const encodedTaskId = encodeURIComponent(taskId); |
no test coverage detected