Function
toolkitToResponse
(entry: { readonly owner: Owner; readonly data: ToolkitRecord })
Source from the content-addressed store, hash-verified
| 194 | const isPersonalDynamicToolId = (toolId: string): boolean => toolId.split(".")[1] === "user"; |
| 195 | |
| 196 | const toolkitToResponse = (entry: { readonly owner: Owner; readonly data: ToolkitRecord }) => ({ |
| 197 | id: entry.data.id, |
| 198 | owner: entry.owner, |
| 199 | slug: entry.data.slug, |
| 200 | name: entry.data.name, |
| 201 | createdAt: entry.data.createdAt, |
| 202 | updatedAt: entry.data.updatedAt, |
| 203 | }); |
| 204 | |
| 205 | const policyToResponse = (policy: ToolkitPolicyRecord) => ({ |
| 206 | id: policy.id, |
Tested by
no test coverage detected