11import { CancellationToken , Event , NotebookDocument , Uri } from 'vscode' ;
22import { IDisposable , Resource } from '../../common/types' ;
33import { EnvironmentVariables } from '../../common/variables/types' ;
4- import { LegacyIntegrationConfig } from './integrationTypes' ;
54import { DeepnoteProject } from '../../deepnote/deepnoteTypes' ;
5+ import { DatabaseIntegrationConfig } from '@deepnote/database-integrations' ;
66
77/**
88 * Settings for select input blocks
@@ -31,7 +31,7 @@ export interface IIntegrationStorage extends IDisposable {
3131 */
3232 readonly onDidChangeIntegrations : Event < void > ;
3333
34- getAll ( ) : Promise < LegacyIntegrationConfig [ ] > ;
34+ getAll ( ) : Promise < DatabaseIntegrationConfig [ ] > ;
3535
3636 /**
3737 * Retrieves the global (non-project-scoped) integration configuration by integration ID.
@@ -49,14 +49,17 @@ export interface IIntegrationStorage extends IDisposable {
4949 * - The `IntegrationConfig` object if a global configuration exists for the given ID
5050 * - `undefined` if no global configuration exists for the given integration ID
5151 */
52- getIntegrationConfig ( integrationId : string ) : Promise < LegacyIntegrationConfig | undefined > ;
52+ getIntegrationConfig ( integrationId : string ) : Promise < DatabaseIntegrationConfig | undefined > ;
5353
5454 /**
5555 * Get integration configuration for a specific project and integration
5656 */
57- getProjectIntegrationConfig ( projectId : string , integrationId : string ) : Promise < LegacyIntegrationConfig | undefined > ;
57+ getProjectIntegrationConfig (
58+ projectId : string ,
59+ integrationId : string
60+ ) : Promise < DatabaseIntegrationConfig | undefined > ;
5861
59- save ( config : LegacyIntegrationConfig ) : Promise < void > ;
62+ save ( config : DatabaseIntegrationConfig ) : Promise < void > ;
6063 delete ( integrationId : string ) : Promise < void > ;
6164 exists ( integrationId : string ) : Promise < boolean > ;
6265 clear ( ) : Promise < void > ;
0 commit comments