| 44 | } |
| 45 | |
| 46 | export interface IntegrationDraft { |
| 47 | list(): readonly IntegrationRef[] |
| 48 | get(id: string): IntegrationRef | undefined |
| 49 | update(id: string, update: (integration: IntegrationRef) => void): void |
| 50 | remove(id: string): void |
| 51 | readonly method: { |
| 52 | list(integrationID: string): readonly IntegrationMethod[] |
| 53 | update(input: IntegrationMethodRegistration): void |
| 54 | remove(integrationID: string, method: IntegrationMethod): void |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | export interface IntegrationHooks extends Hooks<{ transform: IntegrationDraft }> { |
| 59 | readonly connection: { |