(options: RepositoryOptions = {})
| 223 | repositoryStore.delete(id); |
| 224 | }, |
| 225 | async list(options: RepositoryOptions = {}) { |
| 226 | const list = Array.from(repositoryStore.values()); |
| 227 | if (options.organizationId) { |
| 228 | return list.filter((record) => record.organizationId === options.organizationId); |
| 229 | } |
| 230 | return list; |
| 231 | }, |
| 232 | async saveCompiledDefinition(id, definition, options: RepositoryOptions = {}) { |
| 233 | const existing = repositoryStore.get(id); |
| 234 | if (!existing) { |