Function
toolkitToResponse
(entry: { readonly owner: Owner; readonly data: ToolkitRecord })
Source from the content-addressed store, hash-verified
| 240 | const isPersonalDynamicToolId = (toolId: string): boolean => toolId.split(".")[1] === "user"; |
| 241 | |
| 242 | const toolkitToResponse = (entry: { readonly owner: Owner; readonly data: ToolkitRecord }) => ({ |
| 243 | id: entry.data.id, |
| 244 | owner: entry.owner, |
| 245 | slug: entry.data.slug, |
| 246 | name: entry.data.name, |
| 247 | createdAt: entry.data.createdAt, |
| 248 | updatedAt: entry.data.updatedAt, |
| 249 | }); |
| 250 | |
| 251 | const policyToResponse = (policy: ToolkitPolicyRecord) => ({ |
| 252 | id: policy.id, |
Tested by
no test coverage detected