Skip to content

Commit b234a5d

Browse files
committed
fixup storage
1 parent d93cf1f commit b234a5d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/platform/notebooks/deepnote/types.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { CancellationToken, Event, NotebookDocument, Uri } from 'vscode';
22
import { IDisposable, Resource } from '../../common/types';
33
import { EnvironmentVariables } from '../../common/variables/types';
4-
import { LegacyIntegrationConfig } from './integrationTypes';
54
import { 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

Comments
 (0)