1 | /**
|
2 | * -------------------------------------------------------------------------------------------
|
3 | * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
|
4 | * See License in the project root for license information.
|
5 | * -------------------------------------------------------------------------------------------
|
6 | */
|
7 | import { AuthenticationProvider } from "./IAuthenticationProvider";
|
8 | import { FetchOptions } from "./IFetchOptions";
|
9 | import { Middleware } from "./middleware/IMiddleware";
|
10 | /**
|
11 | * @interface
|
12 | * Options for initializing the Graph Client
|
13 | * @property {Function} [authProvider] - The authentication provider instance
|
14 | * @property {string} [baseUrl] - Base url that needs to be appended to every request
|
15 | * @property {boolean} [debugLogging] - The boolean to enable/disable debug logging
|
16 | * @property {string} [defaultVersion] - The default version that needs to be used while making graph api request
|
17 | * @property {FetchOptions} [fetchOptions] - The options for fetch request
|
18 | * @property {Middleware| Middleware[]} [middleware] - The first middleware of the middleware chain or an array of the Middleware handlers
|
19 | */
|
20 | export interface ClientOptions {
|
21 | authProvider?: AuthenticationProvider;
|
22 | baseUrl?: string;
|
23 | debugLogging?: boolean;
|
24 | defaultVersion?: string;
|
25 | fetchOptions?: FetchOptions;
|
26 | middleware?: Middleware | Middleware[];
|
27 | }
|