Skip to content

Commit 1befb93

Browse files
committed
fix: styles
1 parent 26044c7 commit 1befb93

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/common/atlas/apiClient.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ import { paths, operations } from "./openapi.js";
66

77
const ATLAS_API_VERSION = "2025-03-12";
88

9+
export interface ApiClientCredentials {
10+
clientId: string;
11+
clientSecret: string;
12+
}
13+
914
export interface ApiClientOptions {
10-
credentials?: {
11-
clientId: string;
12-
clientSecret: string;
13-
};
15+
credentials?: ApiClientCredentials;
1416
baseUrl?: string;
1517
userAgent?: string;
1618
}

src/session.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
import { NodeDriverServiceProvider } from "@mongosh/service-provider-node-driver";
2-
import { ApiClient } from "./common/atlas/apiClient.js";
2+
import { ApiClient, ApiClientCredentials } from "./common/atlas/apiClient.js";
33
import config from "./config.js";
44

55
export class Session {
66
serviceProvider?: NodeDriverServiceProvider;
77
apiClient: ApiClient;
88

99
constructor() {
10-
let credentials: {
11-
clientId: string;
12-
clientSecret: string;
13-
} | undefined = undefined;
10+
let credentials: ApiClientCredentials | undefined = undefined;
1411
if (config.apiClientId && config.apiClientSecret) {
1512
credentials = {
1613
clientId: config.apiClientId,

0 commit comments

Comments
 (0)