(connection: ToolkitConnectionRecord)
| 259 | }); |
| 260 | |
| 261 | const connectionToResponse = (connection: ToolkitConnectionRecord) => ({ |
| 262 | id: connection.id, |
| 263 | toolkitId: connection.toolkitId, |
| 264 | pattern: connection.pattern, |
| 265 | position: connection.position, |
| 266 | createdAt: connection.createdAt, |
| 267 | updatedAt: connection.updatedAt, |
| 268 | }); |
| 269 | |
| 270 | const makeToolkitStorage = (pluginStorage: PluginStorageFacade): ToolkitStorage => ({ |
| 271 | toolkits: pluginStorage.collection(toolkitsCollection), |