@microsoft/sp-http-msgraph 1.16.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/aec2bbfd-a968-4d5b-a279-12e570f378e6.manifest.json +109 -0
- package/dist/chunk.sp-http-msgraphclientv3_none_705afc540d5848b08292.js +1 -0
- package/dist/chunk.vendors~sp-http-msgraphclient_none_26c80ec0f11f4791fe84.js +1 -0
- package/dist/index-internal-beta.d.ts +185 -0
- package/dist/index-internal-public.d.ts +185 -0
- package/dist/index-internal.d.ts +185 -0
- package/dist/sp-http-msgraph_default_0a87d76b1ae84c3f49ae.js +1 -0
- package/dist/sp-http-msgraph_en-us_0a87d76b1ae84c3f49ae.js +1 -0
- package/dist/sp-http-msgraph_qps-ploc_0a87d76b1ae84c3f49ae.js +1 -0
- package/dist/sp-http-msgraph_qps-ploca_0a87d76b1ae84c3f49ae.js +1 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/lib-commonjs/MSGraphClient.js +106 -0
- package/lib-commonjs/MSGraphClientFactory.js +78 -0
- package/lib-commonjs/MSGraphClientV3.js +125 -0
- package/lib-commonjs/SPHttpMsGraphStrings.resx +11 -0
- package/lib-commonjs/index.js +20 -0
- package/lib-commonjs/sp-http-msgraph.manifest.json +14 -0
- package/package.json +22 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft Graph communication layer for the SharePoint Framework
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* This package defines the base communication layer between Microsoft Graph and
|
|
6
|
+
* the SharePoint Framework.
|
|
7
|
+
*
|
|
8
|
+
* @packagedocumentation
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { Client } from '@ms/ms-graph-v3-bundle';
|
|
12
|
+
import type { ClientOptions } from '@ms/ms-graph-v3-bundle';
|
|
13
|
+
import type { GraphRequest as GraphRequest_2 } from '@ms/ms-graph-v3-bundle';
|
|
14
|
+
import type { GraphRequestCallback } from '@microsoft/microsoft-graph-clientv1';
|
|
15
|
+
import type { Options } from '@microsoft/microsoft-graph-clientv1';
|
|
16
|
+
import type { Options as Options_2 } from '@ms/ms-graph-v3-bundle';
|
|
17
|
+
import { ServiceKey } from '@microsoft/sp-core-library';
|
|
18
|
+
import { ServiceScope } from '@microsoft/sp-core-library';
|
|
19
|
+
import type { URLComponents } from '@microsoft/microsoft-graph-clientv1';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Typings for the GraphRequest Object
|
|
23
|
+
* For more information: {@link https://github.com/microsoftgraph/msgraph-sdk-javascript}
|
|
24
|
+
*
|
|
25
|
+
* @privateRemarks
|
|
26
|
+
* The original typings include references to polyfills.
|
|
27
|
+
* Exporting the microsoft-graph-client defined class may add unnecessary code to the build.
|
|
28
|
+
* Thefore, we export this interface as `GraphRequest` with the desired API described.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export declare interface GraphRequest {
|
|
33
|
+
config: Options;
|
|
34
|
+
urlComponents: URLComponents;
|
|
35
|
+
_headers: {
|
|
36
|
+
[key: string]: string | number;
|
|
37
|
+
};
|
|
38
|
+
_responseType: string;
|
|
39
|
+
constructor(config: Options, path: string): GraphRequest;
|
|
40
|
+
header(headerKey: string, headerValue: string): this;
|
|
41
|
+
headers(headers: {
|
|
42
|
+
[key: string]: string | number;
|
|
43
|
+
}): this;
|
|
44
|
+
parsePath(rawPath: string): void;
|
|
45
|
+
buildFullUrl(): string;
|
|
46
|
+
version(v: string): GraphRequest;
|
|
47
|
+
select(properties: string | string[]): GraphRequest;
|
|
48
|
+
expand(properties: string | string[]): GraphRequest;
|
|
49
|
+
orderby(properties: string | string[]): GraphRequest;
|
|
50
|
+
filter(filterStr: string): GraphRequest;
|
|
51
|
+
top(n: number): GraphRequest;
|
|
52
|
+
skip(n: number): GraphRequest;
|
|
53
|
+
skipToken(token: string): GraphRequest;
|
|
54
|
+
count(count: boolean): GraphRequest;
|
|
55
|
+
responseType(responseType: string): GraphRequest;
|
|
56
|
+
delete(callback?: GraphRequestCallback): Promise<any>;
|
|
57
|
+
patch(content: any, callback?: GraphRequestCallback): Promise<any>;
|
|
58
|
+
post(content: any, callback?: GraphRequestCallback): Promise<any>;
|
|
59
|
+
put(content: any, callback?: GraphRequestCallback): Promise<any>;
|
|
60
|
+
create(content: any, callback?: GraphRequestCallback): Promise<any>;
|
|
61
|
+
update(content: any, callback?: GraphRequestCallback): Promise<any>;
|
|
62
|
+
del(callback?: GraphRequestCallback): Promise<any>;
|
|
63
|
+
get(callback?: GraphRequestCallback): Promise<any>;
|
|
64
|
+
getStream(callback: GraphRequestCallback): void;
|
|
65
|
+
putStream(stream: any, callback: GraphRequestCallback): void;
|
|
66
|
+
query(queryDictionaryOrString: string | {
|
|
67
|
+
[key: string]: string | number;
|
|
68
|
+
}): GraphRequest;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* MSGraphClient is used to perform REST calls against Microsoft Graph.
|
|
73
|
+
*
|
|
74
|
+
* @remarks The Microsoft Graph JavaScript client library is a lightweight wrapper around the
|
|
75
|
+
* Microsoft Graph API. This class allows developers to start making REST calls to MSGraph without
|
|
76
|
+
* needing to initialize the the MSGraph client library. If a custom configuration is desired,
|
|
77
|
+
* the MSGraphClient api function needs to be provided with that custom configuration for
|
|
78
|
+
* every request.
|
|
79
|
+
*
|
|
80
|
+
* For more information: {@link https://github.com/microsoftgraph/msgraph-sdk-javascript}
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class MSGraphClient {
|
|
85
|
+
private static _instance;
|
|
86
|
+
private static _window;
|
|
87
|
+
private static _originalConfig;
|
|
88
|
+
private static _graphBaseUrl;
|
|
89
|
+
/* Excluded from this release type: __constructor */
|
|
90
|
+
/**
|
|
91
|
+
* All calls to Microsoft Graph are chained together starting with the api function.
|
|
92
|
+
*
|
|
93
|
+
* @remarks Path supports the following formats:
|
|
94
|
+
* * me
|
|
95
|
+
* * /me
|
|
96
|
+
* * https://graph.microsoft.com/v1.0/me
|
|
97
|
+
* * https://graph.microsoft.com/beta/me
|
|
98
|
+
* * me/events?$filter=startswith(subject, 'ship')
|
|
99
|
+
*
|
|
100
|
+
* The authProvider and baseUrl option should not be used, as they have already been
|
|
101
|
+
* provided by the framework. See the official documentation here:
|
|
102
|
+
* https://github.com/microsoftgraph/msgraph-sdk-javascript
|
|
103
|
+
*
|
|
104
|
+
* @param path - The path for the request to MSGraph.
|
|
105
|
+
* @param config - Sets the configuration for this request.
|
|
106
|
+
*/
|
|
107
|
+
api(path: string, config?: Options): GraphRequest;
|
|
108
|
+
private _createGraphClientInstance;
|
|
109
|
+
private _getOAuthToken;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Returns a preinitialized version of the MSGraphClient.
|
|
114
|
+
* For more information: {@link https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-msgraph}
|
|
115
|
+
*
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export declare class MSGraphClientFactory {
|
|
119
|
+
/**
|
|
120
|
+
* The service key for MSGraphClientFactory.
|
|
121
|
+
*/
|
|
122
|
+
static readonly serviceKey: ServiceKey<MSGraphClientFactory>;
|
|
123
|
+
private _serviceScope;
|
|
124
|
+
/* Excluded from this release type: __constructor */
|
|
125
|
+
/* Excluded from this release type: getClient */
|
|
126
|
+
/**
|
|
127
|
+
* Returns an instance of version 3 the MSGraphClient V3 that communicates with the current tenant's configurable
|
|
128
|
+
* Service Principal.
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
getClient(version: '3'): Promise<MSGraphClientV3>;
|
|
132
|
+
/**
|
|
133
|
+
* Returns an instance of the MSGraphClient that communicates with the current tenant's configurable Service Pricipal.
|
|
134
|
+
* Allows to specify custom middleware options.
|
|
135
|
+
*
|
|
136
|
+
* @param version - The version of the Graph API to use. 3.
|
|
137
|
+
* @param options - Client options for the Graph API.
|
|
138
|
+
*/
|
|
139
|
+
getClientWithMiddleware(version: '3', options: ClientOptions): Promise<MSGraphClientV3>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* MSGraphClient is used to perform REST calls against Microsoft Graph.
|
|
144
|
+
*
|
|
145
|
+
* @remarks The Microsoft Graph JavaScript client library is a lightweight wrapper around the
|
|
146
|
+
* Microsoft Graph API. This class allows developers to start making REST calls to MSGraph without
|
|
147
|
+
* needing to initialize the the MSGraph client library. If a custom configuration is desired,
|
|
148
|
+
* the MSGraphClient api function needs to be provided with that custom configuration for
|
|
149
|
+
* every request.
|
|
150
|
+
*
|
|
151
|
+
* For more information: {@link https://github.com/microsoftgraph/msgraph-sdk-javascript}
|
|
152
|
+
*
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
export declare class MSGraphClientV3 {
|
|
156
|
+
private static _instance;
|
|
157
|
+
private static _graphBaseUrl;
|
|
158
|
+
/* Excluded from this release type: __constructor */
|
|
159
|
+
/**
|
|
160
|
+
* All calls to Microsoft Graph are chained together starting with the api function.
|
|
161
|
+
*
|
|
162
|
+
* @remarks Path supports the following formats:
|
|
163
|
+
* * me
|
|
164
|
+
* * /me
|
|
165
|
+
* * https://graph.microsoft.com/v1.0/me
|
|
166
|
+
* * https://graph.microsoft.com/beta/me
|
|
167
|
+
* * me/events?$filter=startswith(subject, 'ship')
|
|
168
|
+
*
|
|
169
|
+
* The authProvider and baseUrl option should not be used, as they have already been
|
|
170
|
+
* provided by the framework. See the official documentation here:
|
|
171
|
+
* https://github.com/microsoftgraph/msgraph-sdk-javascript
|
|
172
|
+
*
|
|
173
|
+
* @param path - The path for the request to MSGraph.
|
|
174
|
+
*/
|
|
175
|
+
api(path: string): GraphRequest_2;
|
|
176
|
+
/**
|
|
177
|
+
* Gets the instance of the instantiated Client object from Microsoft Graph SDK.
|
|
178
|
+
*/
|
|
179
|
+
get client(): Client;
|
|
180
|
+
private _createGraphClientInstance;
|
|
181
|
+
private _createGraphClientInstanceWithMiddleware;
|
|
182
|
+
private _getOAuthToken;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export { }
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft Graph communication layer for the SharePoint Framework
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* This package defines the base communication layer between Microsoft Graph and
|
|
6
|
+
* the SharePoint Framework.
|
|
7
|
+
*
|
|
8
|
+
* @packagedocumentation
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { Client } from '@ms/ms-graph-v3-bundle';
|
|
12
|
+
import type { ClientOptions } from '@ms/ms-graph-v3-bundle';
|
|
13
|
+
import type { GraphRequest as GraphRequest_2 } from '@ms/ms-graph-v3-bundle';
|
|
14
|
+
import type { GraphRequestCallback } from '@microsoft/microsoft-graph-clientv1';
|
|
15
|
+
import type { Options } from '@microsoft/microsoft-graph-clientv1';
|
|
16
|
+
import type { Options as Options_2 } from '@ms/ms-graph-v3-bundle';
|
|
17
|
+
import { ServiceKey } from '@microsoft/sp-core-library';
|
|
18
|
+
import { ServiceScope } from '@microsoft/sp-core-library';
|
|
19
|
+
import type { URLComponents } from '@microsoft/microsoft-graph-clientv1';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Typings for the GraphRequest Object
|
|
23
|
+
* For more information: {@link https://github.com/microsoftgraph/msgraph-sdk-javascript}
|
|
24
|
+
*
|
|
25
|
+
* @privateRemarks
|
|
26
|
+
* The original typings include references to polyfills.
|
|
27
|
+
* Exporting the microsoft-graph-client defined class may add unnecessary code to the build.
|
|
28
|
+
* Thefore, we export this interface as `GraphRequest` with the desired API described.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export declare interface GraphRequest {
|
|
33
|
+
config: Options;
|
|
34
|
+
urlComponents: URLComponents;
|
|
35
|
+
_headers: {
|
|
36
|
+
[key: string]: string | number;
|
|
37
|
+
};
|
|
38
|
+
_responseType: string;
|
|
39
|
+
constructor(config: Options, path: string): GraphRequest;
|
|
40
|
+
header(headerKey: string, headerValue: string): this;
|
|
41
|
+
headers(headers: {
|
|
42
|
+
[key: string]: string | number;
|
|
43
|
+
}): this;
|
|
44
|
+
parsePath(rawPath: string): void;
|
|
45
|
+
buildFullUrl(): string;
|
|
46
|
+
version(v: string): GraphRequest;
|
|
47
|
+
select(properties: string | string[]): GraphRequest;
|
|
48
|
+
expand(properties: string | string[]): GraphRequest;
|
|
49
|
+
orderby(properties: string | string[]): GraphRequest;
|
|
50
|
+
filter(filterStr: string): GraphRequest;
|
|
51
|
+
top(n: number): GraphRequest;
|
|
52
|
+
skip(n: number): GraphRequest;
|
|
53
|
+
skipToken(token: string): GraphRequest;
|
|
54
|
+
count(count: boolean): GraphRequest;
|
|
55
|
+
responseType(responseType: string): GraphRequest;
|
|
56
|
+
delete(callback?: GraphRequestCallback): Promise<any>;
|
|
57
|
+
patch(content: any, callback?: GraphRequestCallback): Promise<any>;
|
|
58
|
+
post(content: any, callback?: GraphRequestCallback): Promise<any>;
|
|
59
|
+
put(content: any, callback?: GraphRequestCallback): Promise<any>;
|
|
60
|
+
create(content: any, callback?: GraphRequestCallback): Promise<any>;
|
|
61
|
+
update(content: any, callback?: GraphRequestCallback): Promise<any>;
|
|
62
|
+
del(callback?: GraphRequestCallback): Promise<any>;
|
|
63
|
+
get(callback?: GraphRequestCallback): Promise<any>;
|
|
64
|
+
getStream(callback: GraphRequestCallback): void;
|
|
65
|
+
putStream(stream: any, callback: GraphRequestCallback): void;
|
|
66
|
+
query(queryDictionaryOrString: string | {
|
|
67
|
+
[key: string]: string | number;
|
|
68
|
+
}): GraphRequest;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* MSGraphClient is used to perform REST calls against Microsoft Graph.
|
|
73
|
+
*
|
|
74
|
+
* @remarks The Microsoft Graph JavaScript client library is a lightweight wrapper around the
|
|
75
|
+
* Microsoft Graph API. This class allows developers to start making REST calls to MSGraph without
|
|
76
|
+
* needing to initialize the the MSGraph client library. If a custom configuration is desired,
|
|
77
|
+
* the MSGraphClient api function needs to be provided with that custom configuration for
|
|
78
|
+
* every request.
|
|
79
|
+
*
|
|
80
|
+
* For more information: {@link https://github.com/microsoftgraph/msgraph-sdk-javascript}
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class MSGraphClient {
|
|
85
|
+
private static _instance;
|
|
86
|
+
private static _window;
|
|
87
|
+
private static _originalConfig;
|
|
88
|
+
private static _graphBaseUrl;
|
|
89
|
+
/* Excluded from this release type: __constructor */
|
|
90
|
+
/**
|
|
91
|
+
* All calls to Microsoft Graph are chained together starting with the api function.
|
|
92
|
+
*
|
|
93
|
+
* @remarks Path supports the following formats:
|
|
94
|
+
* * me
|
|
95
|
+
* * /me
|
|
96
|
+
* * https://graph.microsoft.com/v1.0/me
|
|
97
|
+
* * https://graph.microsoft.com/beta/me
|
|
98
|
+
* * me/events?$filter=startswith(subject, 'ship')
|
|
99
|
+
*
|
|
100
|
+
* The authProvider and baseUrl option should not be used, as they have already been
|
|
101
|
+
* provided by the framework. See the official documentation here:
|
|
102
|
+
* https://github.com/microsoftgraph/msgraph-sdk-javascript
|
|
103
|
+
*
|
|
104
|
+
* @param path - The path for the request to MSGraph.
|
|
105
|
+
* @param config - Sets the configuration for this request.
|
|
106
|
+
*/
|
|
107
|
+
api(path: string, config?: Options): GraphRequest;
|
|
108
|
+
private _createGraphClientInstance;
|
|
109
|
+
private _getOAuthToken;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Returns a preinitialized version of the MSGraphClient.
|
|
114
|
+
* For more information: {@link https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-msgraph}
|
|
115
|
+
*
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export declare class MSGraphClientFactory {
|
|
119
|
+
/**
|
|
120
|
+
* The service key for MSGraphClientFactory.
|
|
121
|
+
*/
|
|
122
|
+
static readonly serviceKey: ServiceKey<MSGraphClientFactory>;
|
|
123
|
+
private _serviceScope;
|
|
124
|
+
/* Excluded from this release type: __constructor */
|
|
125
|
+
/* Excluded from this release type: getClient */
|
|
126
|
+
/**
|
|
127
|
+
* Returns an instance of version 3 the MSGraphClient V3 that communicates with the current tenant's configurable
|
|
128
|
+
* Service Principal.
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
getClient(version: '3'): Promise<MSGraphClientV3>;
|
|
132
|
+
/**
|
|
133
|
+
* Returns an instance of the MSGraphClient that communicates with the current tenant's configurable Service Pricipal.
|
|
134
|
+
* Allows to specify custom middleware options.
|
|
135
|
+
*
|
|
136
|
+
* @param version - The version of the Graph API to use. 3.
|
|
137
|
+
* @param options - Client options for the Graph API.
|
|
138
|
+
*/
|
|
139
|
+
getClientWithMiddleware(version: '3', options: ClientOptions): Promise<MSGraphClientV3>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* MSGraphClient is used to perform REST calls against Microsoft Graph.
|
|
144
|
+
*
|
|
145
|
+
* @remarks The Microsoft Graph JavaScript client library is a lightweight wrapper around the
|
|
146
|
+
* Microsoft Graph API. This class allows developers to start making REST calls to MSGraph without
|
|
147
|
+
* needing to initialize the the MSGraph client library. If a custom configuration is desired,
|
|
148
|
+
* the MSGraphClient api function needs to be provided with that custom configuration for
|
|
149
|
+
* every request.
|
|
150
|
+
*
|
|
151
|
+
* For more information: {@link https://github.com/microsoftgraph/msgraph-sdk-javascript}
|
|
152
|
+
*
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
export declare class MSGraphClientV3 {
|
|
156
|
+
private static _instance;
|
|
157
|
+
private static _graphBaseUrl;
|
|
158
|
+
/* Excluded from this release type: __constructor */
|
|
159
|
+
/**
|
|
160
|
+
* All calls to Microsoft Graph are chained together starting with the api function.
|
|
161
|
+
*
|
|
162
|
+
* @remarks Path supports the following formats:
|
|
163
|
+
* * me
|
|
164
|
+
* * /me
|
|
165
|
+
* * https://graph.microsoft.com/v1.0/me
|
|
166
|
+
* * https://graph.microsoft.com/beta/me
|
|
167
|
+
* * me/events?$filter=startswith(subject, 'ship')
|
|
168
|
+
*
|
|
169
|
+
* The authProvider and baseUrl option should not be used, as they have already been
|
|
170
|
+
* provided by the framework. See the official documentation here:
|
|
171
|
+
* https://github.com/microsoftgraph/msgraph-sdk-javascript
|
|
172
|
+
*
|
|
173
|
+
* @param path - The path for the request to MSGraph.
|
|
174
|
+
*/
|
|
175
|
+
api(path: string): GraphRequest_2;
|
|
176
|
+
/**
|
|
177
|
+
* Gets the instance of the instantiated Client object from Microsoft Graph SDK.
|
|
178
|
+
*/
|
|
179
|
+
get client(): Client;
|
|
180
|
+
private _createGraphClientInstance;
|
|
181
|
+
private _createGraphClientInstanceWithMiddleware;
|
|
182
|
+
private _getOAuthToken;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
define("aec2bbfd-a968-4d5b-a279-12e570f378e6_1.16.0",["tslib","@microsoft/sp-http-base","@microsoft/sp-loader","@microsoft/sp-core-library","@microsoft/sp-diagnostics"],function(n,a,i,r,o){return function(e){function t(t){for(var n,i,r=t[0],o=t[1],s=0,c=[];s<r.length;s++)i=r[s],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&c.push(a[i][0]),a[i]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);for(d&&d(t);c.length;)c.shift()()}var n={},a={0:0};function i(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.e=function(t){for(var n=[],o=function(e){return{1:[{i:"32b9363b-09ff-4959-929a-cab2663fb223",v:"3.0.2",m:"obDv"}]}[e]||[]}(t),s=0;s<o.length;s++)e[o[s].m]||function(t){n.push(r.SPComponentLoader.loadComponentById(t.i,t.v).then(function(n){e[t.m]=function(e){e.exports=n}}))}(o[s]);var c=a[t];if(0!==c)if(c)n.push(c[2]);else{var d=new Promise(function(e,n){c=a[t]=[e,n]});n.push(c[2]=d);var l,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"chunk."+({1:"sp-http-msgraphclientv3",2:"vendors~sp-http-msgraphclient"}[e]||e)+"_"+"none"+"_"+{1:"705afc540d5848b08292",2:"26c80ec0f11f4791fe84"}[e]+".js"}(t),0!==u.src.indexOf(window.location.origin+"/")&&(u.crossOrigin="anonymous");var f=new Error;l=function(e){u.onerror=u.onload=null,clearTimeout(p);var n=a[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),r=e&&e.target&&e.target.src;f.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",f.name="ChunkLoadError",f.type=i,f.request=r,n[1](f)}a[t]=void 0}};var p=setTimeout(function(){l({type:"timeout",target:u})},12e4);u.onerror=u.onload=l,document.head.appendChild(u)}return Promise.all(n)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var r=i("I6O9");i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonpaec2bbfd_a968_4d5b_a279_12e570f378e6_1_16_0=window.webpackJsonpaec2bbfd_a968_4d5b_a279_12e570f378e6_1_16_0||[],s=o.push.bind(o);o.push=t,o=o.slice();for(var c=0;c<o.length;c++)t(o[c]);var d=s;return function(){var e,t=document.getElementsByTagName("script"),n="undefined"!=typeof spScriptNamePattern?spScriptNamePattern:/sp-http-msgraph_default_0a87d76b1ae84c3f49ae\.js/i;if(t&&t.length)for(var a=0;a<t.length;a++)if(t[a]){var r=t[a].getAttribute("src");if(r&&r.match(n)){e=r.substring(0,r.lastIndexOf("/")+1);break}}if(!e)for(var o in window.__setWebpackPublicPathLoaderSrcRegistry__)if(o&&o.match(n)){e=o.substring(0,o.lastIndexOf("/")+1);break}i.p=e}(),i(i.s="mwqp")}({"17wl":function(e,t){e.exports=n},"2SXB":function(e,t){e.exports=a},"9vkt":function(e){e.exports=JSON.parse('{"e":"graphClientInitializationError"}')},I6O9:function(e,t){e.exports=i},UWqr:function(e,t){e.exports=r},mwqp:function(e,t,n){"use strict";n.r(t),n.d(t,"MSGraphClient",function(){return c}),n.d(t,"MSGraphClientFactory",function(){return d});var a=n("17wl"),i=n("UWqr"),r=n("ut3N"),o=n("2SXB"),s=n("9vkt"),c=function(){function e(t){var n=this;t.whenFinished(function(){e._graphBaseUrl=t.consume(o._GraphHttpClientContext.serviceKey).getGraphEndpointUrl(),e._instance||(e._instance=n._createGraphClientInstance(o._AadTokenProviders.configurable))})}return e.prototype.api=function(t,n){return i.Validate.isNonemptyString(t,"path"),e._instance.config=Object(a.__assign)(Object(a.__assign)({},e._originalConfig),n||{}),e._instance.api(t)},e.prototype._createGraphClientInstance=function(t){var n,a=this;if(!e._window.MicrosoftGraph||!e._window.MicrosoftGraph.Client)throw new Error(s.e);n=e._window.MicrosoftGraph.Client,e._window.MicrosoftGraph=void 0;var i=n.init({authProvider:function(e){a._getOAuthToken(t).then(function(t){e(void 0,t)}).catch(function(t){e(t,"")})},baseUrl:e._graphBaseUrl});return e._originalConfig=i.config,i},e.prototype._getOAuthToken=function(t){var n=new r._QosMonitor("MSGraphClient.FetchGraphToken");return t.getToken(e._graphBaseUrl).then(function(e){return n.writeSuccess(),e}).catch(function(e){throw n.writeUnexpectedFailure("FetchGraphToken",e),e})},e._window=window,e}(),d=function(){function e(e){this._serviceScope=e}return e.prototype.getClient=function(e,t){var a=this;if(e&&"1"!==e){if("3"!==e||i._SPKillSwitch.isActivated("24401914-15d6-4c3c-aeea-4aace46d5586"))throw Error("Not yet implemented.");var o=new r._QosMonitor("MSGraphClientFactory.GetClientV3");return n.e(1).then(n.bind(null,"l/HE")).then(function(e){return o.writeSuccess({version:3,options:!!t}),new e.default(a._serviceScope,t,void 0)})}return c._instance?Promise.resolve(new c(this._serviceScope)):n.e(2).then(n.t.bind(null,"9EC8",7)).then(function(){return new c(a._serviceScope)})},e.prototype.getClientWithMiddleware=function(e,t){var a=this,i=new r._QosMonitor("MSGraphClientFactory.GetClientV3WithMiddleware");return n.e(1).then(n.bind(null,"l/HE")).then(function(e){return i.writeSuccess({version:3}),new e.default(a._serviceScope,void 0,t)})},e.serviceKey=i.ServiceKey.create("sp-http:MSGraphClientFactory",e),e}()},ut3N:function(e,t){e.exports=o}})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
define("aec2bbfd-a968-4d5b-a279-12e570f378e6_1.16.0",["tslib","@microsoft/sp-http-base","@microsoft/sp-loader","@microsoft/sp-core-library","@microsoft/sp-diagnostics"],function(n,a,i,r,o){return function(e){function t(t){for(var n,i,r=t[0],o=t[1],s=0,c=[];s<r.length;s++)i=r[s],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&c.push(a[i][0]),a[i]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);for(d&&d(t);c.length;)c.shift()()}var n={},a={0:0};function i(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.e=function(t){for(var n=[],o=function(e){return{1:[{i:"32b9363b-09ff-4959-929a-cab2663fb223",v:"3.0.2",m:"obDv"}]}[e]||[]}(t),s=0;s<o.length;s++)e[o[s].m]||function(t){n.push(r.SPComponentLoader.loadComponentById(t.i,t.v).then(function(n){e[t.m]=function(e){e.exports=n}}))}(o[s]);var c=a[t];if(0!==c)if(c)n.push(c[2]);else{var d=new Promise(function(e,n){c=a[t]=[e,n]});n.push(c[2]=d);var l,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"chunk."+({1:"sp-http-msgraphclientv3",2:"vendors~sp-http-msgraphclient"}[e]||e)+"_"+"none"+"_"+{1:"705afc540d5848b08292",2:"26c80ec0f11f4791fe84"}[e]+".js"}(t),0!==u.src.indexOf(window.location.origin+"/")&&(u.crossOrigin="anonymous");var f=new Error;l=function(e){u.onerror=u.onload=null,clearTimeout(p);var n=a[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),r=e&&e.target&&e.target.src;f.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",f.name="ChunkLoadError",f.type=i,f.request=r,n[1](f)}a[t]=void 0}};var p=setTimeout(function(){l({type:"timeout",target:u})},12e4);u.onerror=u.onload=l,document.head.appendChild(u)}return Promise.all(n)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var r=i("I6O9");i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonpaec2bbfd_a968_4d5b_a279_12e570f378e6_1_16_0=window.webpackJsonpaec2bbfd_a968_4d5b_a279_12e570f378e6_1_16_0||[],s=o.push.bind(o);o.push=t,o=o.slice();for(var c=0;c<o.length;c++)t(o[c]);var d=s;return function(){var e,t=document.getElementsByTagName("script"),n="undefined"!=typeof spScriptNamePattern?spScriptNamePattern:/sp-http-msgraph_en-us_0a87d76b1ae84c3f49ae\.js/i;if(t&&t.length)for(var a=0;a<t.length;a++)if(t[a]){var r=t[a].getAttribute("src");if(r&&r.match(n)){e=r.substring(0,r.lastIndexOf("/")+1);break}}if(!e)for(var o in window.__setWebpackPublicPathLoaderSrcRegistry__)if(o&&o.match(n)){e=o.substring(0,o.lastIndexOf("/")+1);break}i.p=e}(),i(i.s="mwqp")}({"17wl":function(e,t){e.exports=n},"2SXB":function(e,t){e.exports=a},"9vkt":function(e){e.exports=JSON.parse('{"e":"Sorry, we couldn\\u0027t make a connection to Microsoft Graph."}')},I6O9:function(e,t){e.exports=i},UWqr:function(e,t){e.exports=r},mwqp:function(e,t,n){"use strict";n.r(t),n.d(t,"MSGraphClient",function(){return c}),n.d(t,"MSGraphClientFactory",function(){return d});var a=n("17wl"),i=n("UWqr"),r=n("ut3N"),o=n("2SXB"),s=n("9vkt"),c=function(){function e(t){var n=this;t.whenFinished(function(){e._graphBaseUrl=t.consume(o._GraphHttpClientContext.serviceKey).getGraphEndpointUrl(),e._instance||(e._instance=n._createGraphClientInstance(o._AadTokenProviders.configurable))})}return e.prototype.api=function(t,n){return i.Validate.isNonemptyString(t,"path"),e._instance.config=Object(a.__assign)(Object(a.__assign)({},e._originalConfig),n||{}),e._instance.api(t)},e.prototype._createGraphClientInstance=function(t){var n,a=this;if(!e._window.MicrosoftGraph||!e._window.MicrosoftGraph.Client)throw new Error(s.e);n=e._window.MicrosoftGraph.Client,e._window.MicrosoftGraph=void 0;var i=n.init({authProvider:function(e){a._getOAuthToken(t).then(function(t){e(void 0,t)}).catch(function(t){e(t,"")})},baseUrl:e._graphBaseUrl});return e._originalConfig=i.config,i},e.prototype._getOAuthToken=function(t){var n=new r._QosMonitor("MSGraphClient.FetchGraphToken");return t.getToken(e._graphBaseUrl).then(function(e){return n.writeSuccess(),e}).catch(function(e){throw n.writeUnexpectedFailure("FetchGraphToken",e),e})},e._window=window,e}(),d=function(){function e(e){this._serviceScope=e}return e.prototype.getClient=function(e,t){var a=this;if(e&&"1"!==e){if("3"!==e||i._SPKillSwitch.isActivated("24401914-15d6-4c3c-aeea-4aace46d5586"))throw Error("Not yet implemented.");var o=new r._QosMonitor("MSGraphClientFactory.GetClientV3");return n.e(1).then(n.bind(null,"l/HE")).then(function(e){return o.writeSuccess({version:3,options:!!t}),new e.default(a._serviceScope,t,void 0)})}return c._instance?Promise.resolve(new c(this._serviceScope)):n.e(2).then(n.t.bind(null,"9EC8",7)).then(function(){return new c(a._serviceScope)})},e.prototype.getClientWithMiddleware=function(e,t){var a=this,i=new r._QosMonitor("MSGraphClientFactory.GetClientV3WithMiddleware");return n.e(1).then(n.bind(null,"l/HE")).then(function(e){return i.writeSuccess({version:3}),new e.default(a._serviceScope,void 0,t)})},e.serviceKey=i.ServiceKey.create("sp-http:MSGraphClientFactory",e),e}()},ut3N:function(e,t){e.exports=o}})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
define("aec2bbfd-a968-4d5b-a279-12e570f378e6_1.16.0",["tslib","@microsoft/sp-http-base","@microsoft/sp-loader","@microsoft/sp-core-library","@microsoft/sp-diagnostics"],function(n,a,i,r,o){return function(e){function t(t){for(var n,i,r=t[0],o=t[1],s=0,c=[];s<r.length;s++)i=r[s],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&c.push(a[i][0]),a[i]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);for(d&&d(t);c.length;)c.shift()()}var n={},a={0:0};function i(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.e=function(t){for(var n=[],o=function(e){return{1:[{i:"32b9363b-09ff-4959-929a-cab2663fb223",v:"3.0.2",m:"obDv"}]}[e]||[]}(t),s=0;s<o.length;s++)e[o[s].m]||function(t){n.push(r.SPComponentLoader.loadComponentById(t.i,t.v).then(function(n){e[t.m]=function(e){e.exports=n}}))}(o[s]);var c=a[t];if(0!==c)if(c)n.push(c[2]);else{var d=new Promise(function(e,n){c=a[t]=[e,n]});n.push(c[2]=d);var l,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"chunk."+({1:"sp-http-msgraphclientv3",2:"vendors~sp-http-msgraphclient"}[e]||e)+"_"+"none"+"_"+{1:"705afc540d5848b08292",2:"26c80ec0f11f4791fe84"}[e]+".js"}(t),0!==u.src.indexOf(window.location.origin+"/")&&(u.crossOrigin="anonymous");var f=new Error;l=function(e){u.onerror=u.onload=null,clearTimeout(p);var n=a[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),r=e&&e.target&&e.target.src;f.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",f.name="ChunkLoadError",f.type=i,f.request=r,n[1](f)}a[t]=void 0}};var p=setTimeout(function(){l({type:"timeout",target:u})},12e4);u.onerror=u.onload=l,document.head.appendChild(u)}return Promise.all(n)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var r=i("I6O9");i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonpaec2bbfd_a968_4d5b_a279_12e570f378e6_1_16_0=window.webpackJsonpaec2bbfd_a968_4d5b_a279_12e570f378e6_1_16_0||[],s=o.push.bind(o);o.push=t,o=o.slice();for(var c=0;c<o.length;c++)t(o[c]);var d=s;return function(){var e,t=document.getElementsByTagName("script"),n="undefined"!=typeof spScriptNamePattern?spScriptNamePattern:/sp-http-msgraph_qps-ploc_0a87d76b1ae84c3f49ae\.js/i;if(t&&t.length)for(var a=0;a<t.length;a++)if(t[a]){var r=t[a].getAttribute("src");if(r&&r.match(n)){e=r.substring(0,r.lastIndexOf("/")+1);break}}if(!e)for(var o in window.__setWebpackPublicPathLoaderSrcRegistry__)if(o&&o.match(n)){e=o.substring(0,o.lastIndexOf("/")+1);break}i.p=e}(),i(i.s="mwqp")}({"17wl":function(e,t){e.exports=n},"2SXB":function(e,t){e.exports=a},"9vkt":function(e){e.exports=JSON.parse('{"e":"[!!--##Śōŕŕŷ, ŵē ćōũĺďń\\u0027ţ màķē à ćōńńēćţĩōń ţō Mĩćŕōśōƒţ Ĝŕàƥĥ.##--!!]"}')},I6O9:function(e,t){e.exports=i},UWqr:function(e,t){e.exports=r},mwqp:function(e,t,n){"use strict";n.r(t),n.d(t,"MSGraphClient",function(){return c}),n.d(t,"MSGraphClientFactory",function(){return d});var a=n("17wl"),i=n("UWqr"),r=n("ut3N"),o=n("2SXB"),s=n("9vkt"),c=function(){function e(t){var n=this;t.whenFinished(function(){e._graphBaseUrl=t.consume(o._GraphHttpClientContext.serviceKey).getGraphEndpointUrl(),e._instance||(e._instance=n._createGraphClientInstance(o._AadTokenProviders.configurable))})}return e.prototype.api=function(t,n){return i.Validate.isNonemptyString(t,"path"),e._instance.config=Object(a.__assign)(Object(a.__assign)({},e._originalConfig),n||{}),e._instance.api(t)},e.prototype._createGraphClientInstance=function(t){var n,a=this;if(!e._window.MicrosoftGraph||!e._window.MicrosoftGraph.Client)throw new Error(s.e);n=e._window.MicrosoftGraph.Client,e._window.MicrosoftGraph=void 0;var i=n.init({authProvider:function(e){a._getOAuthToken(t).then(function(t){e(void 0,t)}).catch(function(t){e(t,"")})},baseUrl:e._graphBaseUrl});return e._originalConfig=i.config,i},e.prototype._getOAuthToken=function(t){var n=new r._QosMonitor("MSGraphClient.FetchGraphToken");return t.getToken(e._graphBaseUrl).then(function(e){return n.writeSuccess(),e}).catch(function(e){throw n.writeUnexpectedFailure("FetchGraphToken",e),e})},e._window=window,e}(),d=function(){function e(e){this._serviceScope=e}return e.prototype.getClient=function(e,t){var a=this;if(e&&"1"!==e){if("3"!==e||i._SPKillSwitch.isActivated("24401914-15d6-4c3c-aeea-4aace46d5586"))throw Error("Not yet implemented.");var o=new r._QosMonitor("MSGraphClientFactory.GetClientV3");return n.e(1).then(n.bind(null,"l/HE")).then(function(e){return o.writeSuccess({version:3,options:!!t}),new e.default(a._serviceScope,t,void 0)})}return c._instance?Promise.resolve(new c(this._serviceScope)):n.e(2).then(n.t.bind(null,"9EC8",7)).then(function(){return new c(a._serviceScope)})},e.prototype.getClientWithMiddleware=function(e,t){var a=this,i=new r._QosMonitor("MSGraphClientFactory.GetClientV3WithMiddleware");return n.e(1).then(n.bind(null,"l/HE")).then(function(e){return i.writeSuccess({version:3}),new e.default(a._serviceScope,void 0,t)})},e.serviceKey=i.ServiceKey.create("sp-http:MSGraphClientFactory",e),e}()},ut3N:function(e,t){e.exports=o}})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
define("aec2bbfd-a968-4d5b-a279-12e570f378e6_1.16.0",["tslib","@microsoft/sp-http-base","@microsoft/sp-loader","@microsoft/sp-core-library","@microsoft/sp-diagnostics"],function(n,a,i,r,o){return function(e){function t(t){for(var n,i,r=t[0],o=t[1],s=0,c=[];s<r.length;s++)i=r[s],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&c.push(a[i][0]),a[i]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);for(d&&d(t);c.length;)c.shift()()}var n={},a={0:0};function i(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.e=function(t){for(var n=[],o=function(e){return{1:[{i:"32b9363b-09ff-4959-929a-cab2663fb223",v:"3.0.2",m:"obDv"}]}[e]||[]}(t),s=0;s<o.length;s++)e[o[s].m]||function(t){n.push(r.SPComponentLoader.loadComponentById(t.i,t.v).then(function(n){e[t.m]=function(e){e.exports=n}}))}(o[s]);var c=a[t];if(0!==c)if(c)n.push(c[2]);else{var d=new Promise(function(e,n){c=a[t]=[e,n]});n.push(c[2]=d);var l,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"chunk."+({1:"sp-http-msgraphclientv3",2:"vendors~sp-http-msgraphclient"}[e]||e)+"_"+"none"+"_"+{1:"705afc540d5848b08292",2:"26c80ec0f11f4791fe84"}[e]+".js"}(t),0!==u.src.indexOf(window.location.origin+"/")&&(u.crossOrigin="anonymous");var f=new Error;l=function(e){u.onerror=u.onload=null,clearTimeout(p);var n=a[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),r=e&&e.target&&e.target.src;f.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",f.name="ChunkLoadError",f.type=i,f.request=r,n[1](f)}a[t]=void 0}};var p=setTimeout(function(){l({type:"timeout",target:u})},12e4);u.onerror=u.onload=l,document.head.appendChild(u)}return Promise.all(n)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var r=i("I6O9");i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonpaec2bbfd_a968_4d5b_a279_12e570f378e6_1_16_0=window.webpackJsonpaec2bbfd_a968_4d5b_a279_12e570f378e6_1_16_0||[],s=o.push.bind(o);o.push=t,o=o.slice();for(var c=0;c<o.length;c++)t(o[c]);var d=s;return function(){var e,t=document.getElementsByTagName("script"),n="undefined"!=typeof spScriptNamePattern?spScriptNamePattern:/sp-http-msgraph_qps-ploca_0a87d76b1ae84c3f49ae\.js/i;if(t&&t.length)for(var a=0;a<t.length;a++)if(t[a]){var r=t[a].getAttribute("src");if(r&&r.match(n)){e=r.substring(0,r.lastIndexOf("/")+1);break}}if(!e)for(var o in window.__setWebpackPublicPathLoaderSrcRegistry__)if(o&&o.match(n)){e=o.substring(0,o.lastIndexOf("/")+1);break}i.p=e}(),i(i.s="mwqp")}({"17wl":function(e,t){e.exports=n},"2SXB":function(e,t){e.exports=a},"9vkt":function(e){e.exports=JSON.parse('{"e":"Śōŕŕŷ, ŵē ćōũĺďń\\u0027ţ màķē à ćōńńēćţĩōń ţō Mĩćŕōśōƒţ Ĝŕàƥĥ."}')},I6O9:function(e,t){e.exports=i},UWqr:function(e,t){e.exports=r},mwqp:function(e,t,n){"use strict";n.r(t),n.d(t,"MSGraphClient",function(){return c}),n.d(t,"MSGraphClientFactory",function(){return d});var a=n("17wl"),i=n("UWqr"),r=n("ut3N"),o=n("2SXB"),s=n("9vkt"),c=function(){function e(t){var n=this;t.whenFinished(function(){e._graphBaseUrl=t.consume(o._GraphHttpClientContext.serviceKey).getGraphEndpointUrl(),e._instance||(e._instance=n._createGraphClientInstance(o._AadTokenProviders.configurable))})}return e.prototype.api=function(t,n){return i.Validate.isNonemptyString(t,"path"),e._instance.config=Object(a.__assign)(Object(a.__assign)({},e._originalConfig),n||{}),e._instance.api(t)},e.prototype._createGraphClientInstance=function(t){var n,a=this;if(!e._window.MicrosoftGraph||!e._window.MicrosoftGraph.Client)throw new Error(s.e);n=e._window.MicrosoftGraph.Client,e._window.MicrosoftGraph=void 0;var i=n.init({authProvider:function(e){a._getOAuthToken(t).then(function(t){e(void 0,t)}).catch(function(t){e(t,"")})},baseUrl:e._graphBaseUrl});return e._originalConfig=i.config,i},e.prototype._getOAuthToken=function(t){var n=new r._QosMonitor("MSGraphClient.FetchGraphToken");return t.getToken(e._graphBaseUrl).then(function(e){return n.writeSuccess(),e}).catch(function(e){throw n.writeUnexpectedFailure("FetchGraphToken",e),e})},e._window=window,e}(),d=function(){function e(e){this._serviceScope=e}return e.prototype.getClient=function(e,t){var a=this;if(e&&"1"!==e){if("3"!==e||i._SPKillSwitch.isActivated("24401914-15d6-4c3c-aeea-4aace46d5586"))throw Error("Not yet implemented.");var o=new r._QosMonitor("MSGraphClientFactory.GetClientV3");return n.e(1).then(n.bind(null,"l/HE")).then(function(e){return o.writeSuccess({version:3,options:!!t}),new e.default(a._serviceScope,t,void 0)})}return c._instance?Promise.resolve(new c(this._serviceScope)):n.e(2).then(n.t.bind(null,"9EC8",7)).then(function(){return new c(a._serviceScope)})},e.prototype.getClientWithMiddleware=function(e,t){var a=this,i=new r._QosMonitor("MSGraphClientFactory.GetClientV3WithMiddleware");return n.e(1).then(n.bind(null,"l/HE")).then(function(e){return i.writeSuccess({version:3}),new e.default(a._serviceScope,void 0,t)})},e.serviceKey=i.ServiceKey.create("sp-http:MSGraphClientFactory",e),e}()},ut3N:function(e,t){e.exports=o}})});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.31.2"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var sp_core_library_1 = require("@microsoft/sp-core-library");
|
|
5
|
+
var sp_diagnostics_1 = require("@microsoft/sp-diagnostics");
|
|
6
|
+
var sp_http_base_1 = require("@microsoft/sp-http-base");
|
|
7
|
+
var strings = tslib_1.__importStar(require("./SPHttpMsGraphStrings.resx"));
|
|
8
|
+
/**
|
|
9
|
+
* MSGraphClient is used to perform REST calls against Microsoft Graph.
|
|
10
|
+
*
|
|
11
|
+
* @remarks The Microsoft Graph JavaScript client library is a lightweight wrapper around the
|
|
12
|
+
* Microsoft Graph API. This class allows developers to start making REST calls to MSGraph without
|
|
13
|
+
* needing to initialize the the MSGraph client library. If a custom configuration is desired,
|
|
14
|
+
* the MSGraphClient api function needs to be provided with that custom configuration for
|
|
15
|
+
* every request.
|
|
16
|
+
*
|
|
17
|
+
* For more information: {@link https://github.com/microsoftgraph/msgraph-sdk-javascript}
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
var MSGraphClient = /** @class */ (function () {
|
|
22
|
+
/**
|
|
23
|
+
* @param serviceScope - Provides services for the MSGraphClient to consume.
|
|
24
|
+
*
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
function MSGraphClient(serviceScope) {
|
|
28
|
+
var _this = this;
|
|
29
|
+
serviceScope.whenFinished(function () {
|
|
30
|
+
MSGraphClient._graphBaseUrl = serviceScope
|
|
31
|
+
.consume(sp_http_base_1._GraphHttpClientContext.serviceKey)
|
|
32
|
+
.getGraphEndpointUrl();
|
|
33
|
+
if (!MSGraphClient._instance) {
|
|
34
|
+
MSGraphClient._instance = _this._createGraphClientInstance(sp_http_base_1._AadTokenProviders.configurable);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* All calls to Microsoft Graph are chained together starting with the api function.
|
|
40
|
+
*
|
|
41
|
+
* @remarks Path supports the following formats:
|
|
42
|
+
* * me
|
|
43
|
+
* * /me
|
|
44
|
+
* * https://graph.microsoft.com/v1.0/me
|
|
45
|
+
* * https://graph.microsoft.com/beta/me
|
|
46
|
+
* * me/events?$filter=startswith(subject, 'ship')
|
|
47
|
+
*
|
|
48
|
+
* The authProvider and baseUrl option should not be used, as they have already been
|
|
49
|
+
* provided by the framework. See the official documentation here:
|
|
50
|
+
* https://github.com/microsoftgraph/msgraph-sdk-javascript
|
|
51
|
+
*
|
|
52
|
+
* @param path - The path for the request to MSGraph.
|
|
53
|
+
* @param config - Sets the configuration for this request.
|
|
54
|
+
*/
|
|
55
|
+
MSGraphClient.prototype.api = function (path, config) {
|
|
56
|
+
sp_core_library_1.Validate.isNonemptyString(path, 'path');
|
|
57
|
+
MSGraphClient._instance.config = tslib_1.__assign(tslib_1.__assign({}, MSGraphClient._originalConfig), (config || {}));
|
|
58
|
+
return MSGraphClient._instance.api(path);
|
|
59
|
+
};
|
|
60
|
+
MSGraphClient.prototype._createGraphClientInstance = function (tokenProvider) {
|
|
61
|
+
var _this = this;
|
|
62
|
+
var graphClientModule;
|
|
63
|
+
if (!(MSGraphClient._window.MicrosoftGraph && MSGraphClient._window.MicrosoftGraph.Client)) {
|
|
64
|
+
throw new Error(strings.graphClientInitializationError);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
// Workaround needed to interact with the Client object.
|
|
68
|
+
// See https://github.com/microsoftgraph/msgraph-sdk-javascript/issues/47 for more details
|
|
69
|
+
graphClientModule = MSGraphClient._window.MicrosoftGraph.Client;
|
|
70
|
+
// Removing window variable reference to MSGraphJsSdk object
|
|
71
|
+
MSGraphClient._window.MicrosoftGraph = undefined;
|
|
72
|
+
}
|
|
73
|
+
var graphClient = graphClientModule.init({
|
|
74
|
+
authProvider: function (done) {
|
|
75
|
+
_this._getOAuthToken(tokenProvider)
|
|
76
|
+
.then(function (token) {
|
|
77
|
+
done(undefined /** error object */, token);
|
|
78
|
+
})
|
|
79
|
+
.catch(function (e) {
|
|
80
|
+
// The IGraphRequest functions will return a rejected promise if it fails to get an OAuth2Token.
|
|
81
|
+
done(e, '');
|
|
82
|
+
});
|
|
83
|
+
},
|
|
84
|
+
baseUrl: MSGraphClient._graphBaseUrl
|
|
85
|
+
});
|
|
86
|
+
MSGraphClient._originalConfig = graphClient.config;
|
|
87
|
+
return graphClient;
|
|
88
|
+
};
|
|
89
|
+
MSGraphClient.prototype._getOAuthToken = function (tokenProvider) {
|
|
90
|
+
var qosMonitor = new sp_diagnostics_1._QosMonitor('MSGraphClient.FetchGraphToken');
|
|
91
|
+
return tokenProvider
|
|
92
|
+
.getToken(MSGraphClient._graphBaseUrl)
|
|
93
|
+
.then(function (response) {
|
|
94
|
+
qosMonitor.writeSuccess();
|
|
95
|
+
return response;
|
|
96
|
+
})
|
|
97
|
+
.catch(function (error) {
|
|
98
|
+
qosMonitor.writeUnexpectedFailure('FetchGraphToken', error);
|
|
99
|
+
throw error;
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
MSGraphClient._window = window;
|
|
103
|
+
return MSGraphClient;
|
|
104
|
+
}());
|
|
105
|
+
exports.default = MSGraphClient;
|
|
106
|
+
//# sourceMappingURL=MSGraphClient.js.map
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var sp_core_library_1 = require("@microsoft/sp-core-library");
|
|
5
|
+
var sp_diagnostics_1 = require("@microsoft/sp-diagnostics");
|
|
6
|
+
var MSGraphClient_1 = tslib_1.__importDefault(require("./MSGraphClient"));
|
|
7
|
+
/**
|
|
8
|
+
* Returns a preinitialized version of the MSGraphClient.
|
|
9
|
+
* For more information: {@link https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-msgraph}
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
var MSGraphClientFactory = /** @class */ (function () {
|
|
14
|
+
/**
|
|
15
|
+
* @param serviceScope - Provides services for the MSGraphClient to consume.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
function MSGraphClientFactory(serviceScope) {
|
|
20
|
+
this._serviceScope = serviceScope;
|
|
21
|
+
}
|
|
22
|
+
MSGraphClientFactory.prototype.getClient = function (version, options) {
|
|
23
|
+
var _this = this;
|
|
24
|
+
if (!version || version === '1') {
|
|
25
|
+
// returns a v1 version of MSGraphClient
|
|
26
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
27
|
+
if (!MSGraphClient_1.default._instance) {
|
|
28
|
+
return Promise.resolve().then(function () { return tslib_1.__importStar(require(
|
|
29
|
+
/* webpackChunkName: 'sp-http-msgraphclient' */ '@microsoft/microsoft-graph-clientv1/lib/graph-js-sdk-web')); }).then(function () {
|
|
30
|
+
return new MSGraphClient_1.default(_this._serviceScope);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
return Promise.resolve(new MSGraphClient_1.default(this._serviceScope));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
else if (version === '3' &&
|
|
38
|
+
!sp_core_library_1._SPKillSwitch.isActivated('24401914-15d6-4c3c-aeea-4aace46d5586' /* '01/06/2022', 'use new MSGraphVersion' */)) {
|
|
39
|
+
var qosMonitor_1 = new sp_diagnostics_1._QosMonitor('MSGraphClientFactory.GetClientV3');
|
|
40
|
+
// returns a v3 version of MSGraphClient
|
|
41
|
+
// Should only import once no matter how many times it is called
|
|
42
|
+
return Promise.resolve().then(function () { return tslib_1.__importStar(require(/* webpackChunkName: 'sp-http-msgraphclientv3' */ './MSGraphClientV3')); }).then(function (msGraphClientV3) {
|
|
43
|
+
// We create a new object every time rather than referencing an existing object in case the service scope changes
|
|
44
|
+
qosMonitor_1.writeSuccess({ version: 3, options: !!options });
|
|
45
|
+
return new msGraphClientV3.default(_this._serviceScope, options, undefined);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
var errorMessage = 'Not yet implemented.';
|
|
50
|
+
throw Error(errorMessage);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Returns an instance of the MSGraphClient that communicates with the current tenant's configurable Service Pricipal.
|
|
55
|
+
* Allows to specify custom middleware options.
|
|
56
|
+
*
|
|
57
|
+
* @param version - The version of the Graph API to use. 3.
|
|
58
|
+
* @param options - Client options for the Graph API.
|
|
59
|
+
*/
|
|
60
|
+
MSGraphClientFactory.prototype.getClientWithMiddleware = function (version, options) {
|
|
61
|
+
var _this = this;
|
|
62
|
+
var qosMonitor = new sp_diagnostics_1._QosMonitor('MSGraphClientFactory.GetClientV3WithMiddleware');
|
|
63
|
+
// returns a v3 version of MSGraphClient
|
|
64
|
+
// Should only import once no matter how many times it is called
|
|
65
|
+
return Promise.resolve().then(function () { return tslib_1.__importStar(require(/* webpackChunkName: 'sp-http-msgraphclientv3' */ './MSGraphClientV3')); }).then(function (msGraphClientV3) {
|
|
66
|
+
// We create a new object every time rather than referencing an existing object in case the service scope changes
|
|
67
|
+
qosMonitor.writeSuccess({ version: 3 });
|
|
68
|
+
return new msGraphClientV3.default(_this._serviceScope, undefined, options);
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* The service key for MSGraphClientFactory.
|
|
73
|
+
*/
|
|
74
|
+
MSGraphClientFactory.serviceKey = sp_core_library_1.ServiceKey.create('sp-http:MSGraphClientFactory', MSGraphClientFactory);
|
|
75
|
+
return MSGraphClientFactory;
|
|
76
|
+
}());
|
|
77
|
+
exports.default = MSGraphClientFactory;
|
|
78
|
+
//# sourceMappingURL=MSGraphClientFactory.js.map
|