@@ -75,26 +75,23 @@ export type GraphEndpoint =
7575 | 'https://graph.microsoft.us'
7676 | 'https://dod-graph.microsoft.us'
7777 | 'https://graph.microsoft.de'
78- | 'https://microsoftgraph.chinacloudapi.cn' ;
79-
80- /**
81- * MICROSOFT_GRAPH_ENDPOINTS is a set of all the valid Graph URL endpoints.
82- */
83- export const MICROSOFT_GRAPH_ENDPOINTS : Set < GraphEndpoint > = new Set < GraphEndpoint > ( ) ;
78+ | 'https://microsoftgraph.chinacloudapi.cn'
79+ | 'https://canary.graph.microsoft.com' ;
8480
8581/**
8682 * MICROSOFT_GRAPH_DEFAULT_ENDPOINT is the default Graph endpoint that is silently set on
8783 * the providers as the baseURL.
8884 */
8985export const MICROSOFT_GRAPH_DEFAULT_ENDPOINT : GraphEndpoint = 'https://graph.microsoft.com' ;
9086
91- ( ( ) => {
92- const endpoints : GraphEndpoint [ ] = [
93- MICROSOFT_GRAPH_DEFAULT_ENDPOINT ,
94- 'https://graph.microsoft.us' ,
95- 'https://dod-graph.microsoft.us' ,
96- 'https://graph.microsoft.de' ,
97- 'https://microsoftgraph.chinacloudapi.cn'
98- ] ;
99- endpoints . forEach ( endpoint => MICROSOFT_GRAPH_ENDPOINTS . add ( endpoint ) ) ;
100- } ) ( ) ;
87+ /**
88+ * MICROSOFT_GRAPH_ENDPOINTS is a set of all the valid Graph URL endpoints.
89+ */
90+ export const MICROSOFT_GRAPH_ENDPOINTS : Set < GraphEndpoint > = new Set < GraphEndpoint > ( [
91+ MICROSOFT_GRAPH_DEFAULT_ENDPOINT ,
92+ 'https://graph.microsoft.us' ,
93+ 'https://dod-graph.microsoft.us' ,
94+ 'https://graph.microsoft.de' ,
95+ 'https://microsoftgraph.chinacloudapi.cn' ,
96+ 'https://canary.graph.microsoft.com'
97+ ] ) ;
0 commit comments