(executionId: string)
| 228 | // --- Cosmos primitives ------------------------------------------------- |
| 229 | |
| 230 | const readExec = (executionId: string) => |
| 231 | Effect |
| 232 | .gen(function*() { |
| 233 | const resp = yield* Effect.promise(() => container.item(execId, executionId).read<ExecDoc>()) |
| 234 | yield* annotateCosmosResponse({ requestCharge: resp.requestCharge, statusCode: resp.statusCode }) |
| 235 | return Option.fromNullishOr(resp.resource).pipe( |
| 236 | Option.map((r) => ({ ...r, _etag: resp.etag })) |
| 237 | ) |
| 238 | }) |
| 239 | .pipe(annotate("readExec", executionId)) |
| 240 | |
| 241 | const replaceExec = (doc: ExecDoc) => |
| 242 | Effect |
no test coverage detected
searching dependent graphs…