(toolkitId: string, policyId: string, owner: Owner)
| 327 | .pipe(Effect.map((entries) => entries.map((entry) => entry.data).sort(comparePositioned))); |
| 328 | |
| 329 | const requirePolicy = (toolkitId: string, policyId: string, owner: Owner) => |
| 330 | storage.policies |
| 331 | .getForOwner({ owner, key: policyId }) |
| 332 | .pipe( |
| 333 | Effect.flatMap((entry) => |
| 334 | entry && entry.data.toolkitId === toolkitId |
| 335 | ? Effect.succeed(entry) |
| 336 | : fail("Toolkit policy not found."), |
| 337 | ), |
| 338 | ); |
| 339 | |
| 340 | const requireConnection = (toolkitId: string, connectionId: string, owner: Owner) => |
| 341 | storage.connections |
no test coverage detected