File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,13 @@ import { paths, operations } from "./openapi.js";
66
77const ATLAS_API_VERSION = "2025-03-12" ;
88
9+ export interface ApiClientCredentials {
10+ clientId : string ;
11+ clientSecret : string ;
12+ }
13+
914export interface ApiClientOptions {
10- credentials ?: {
11- clientId : string ;
12- clientSecret : string ;
13- } ;
15+ credentials ?: ApiClientCredentials ;
1416 baseUrl ?: string ;
1517 userAgent ?: string ;
1618}
Original file line number Diff line number Diff line change 11import { NodeDriverServiceProvider } from "@mongosh/service-provider-node-driver" ;
2- import { ApiClient } from "./common/atlas/apiClient.js" ;
2+ import { ApiClient , ApiClientCredentials } from "./common/atlas/apiClient.js" ;
33import config from "./config.js" ;
44
55export 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 ,
You can’t perform that action at this time.
0 commit comments