@microsoft/msgraph-sdk 1.0.0-preview.10

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.
Files changed (38) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/graphRequestAdapter.d.ts +15 -0
  4. package/graphRequestAdapter.d.ts.map +1 -0
  5. package/graphRequestAdapter.js +21 -0
  6. package/graphServiceClient.d.ts +19 -0
  7. package/graphServiceClient.d.ts.map +1 -0
  8. package/graphServiceClient.js +51 -0
  9. package/index.d.ts +3 -0
  10. package/index.d.ts.map +1 -0
  11. package/index.js +18 -0
  12. package/models/callRecords/index.d.ts +1414 -0
  13. package/models/callRecords/index.d.ts.map +1 -0
  14. package/models/callRecords/index.js +1104 -0
  15. package/models/externalConnectors/index.d.ts +975 -0
  16. package/models/externalConnectors/index.d.ts.map +1 -0
  17. package/models/externalConnectors/index.js +928 -0
  18. package/models/identityGovernance/index.d.ts +1334 -0
  19. package/models/identityGovernance/index.d.ts.map +1 -0
  20. package/models/identityGovernance/index.js +1189 -0
  21. package/models/index.d.ts +86017 -0
  22. package/models/index.d.ts.map +1 -0
  23. package/models/index.js +74768 -0
  24. package/models/oDataErrors/index.d.ts +158 -0
  25. package/models/oDataErrors/index.d.ts.map +1 -0
  26. package/models/oDataErrors/index.js +139 -0
  27. package/models/security/index.d.ts +6556 -0
  28. package/models/security/index.d.ts.map +1 -0
  29. package/models/security/index.js +5717 -0
  30. package/models/termStore/index.d.ts +454 -0
  31. package/models/termStore/index.d.ts.map +1 -0
  32. package/models/termStore/index.js +406 -0
  33. package/package.json +51 -0
  34. package/tsconfig.json +9 -0
  35. package/tsconfig.tsbuildinfo +1 -0
  36. package/version.d.ts +2 -0
  37. package/version.d.ts.map +1 -0
  38. package/version.js +4 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Microsoft Graph
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # `@microsoft/msgraph-sdk`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const msgraphSdkJavascript = require('@microsoft/msgraph-sdk');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -0,0 +1,15 @@
1
+ import { type AuthenticationProvider, type ParseNodeFactory, type SerializationWriterFactory } from "@microsoft/kiota-abstractions";
2
+ import { type HttpClient, type ObservabilityOptions } from "@microsoft/kiota-http-fetchlibrary";
3
+ import { BaseGraphRequestAdapter } from "@microsoft/msgraph-sdk-core";
4
+ export declare class GraphRequestAdapter extends BaseGraphRequestAdapter {
5
+ /**
6
+ * Instantiates a new request adapter.
7
+ * @param authenticationProvider the authentication provider to use.
8
+ * @param parseNodeFactory the parse node factory to deserialize responses.
9
+ * @param serializationWriterFactory the serialization writer factory to use to serialize request bodies.
10
+ * @param httpClient the http client to use to execute requests.
11
+ * @param observabilityOptions the observability options to use.
12
+ */
13
+ constructor(authenticationProvider: AuthenticationProvider, parseNodeFactory?: ParseNodeFactory, serializationWriterFactory?: SerializationWriterFactory, httpClient?: HttpClient, observabilityOptions?: ObservabilityOptions);
14
+ }
15
+ //# sourceMappingURL=graphRequestAdapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphRequestAdapter.d.ts","sourceRoot":"","sources":["graphRequestAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAErB,KAAK,0BAA0B,EAEhC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,UAAU,EACf,KAAK,oBAAoB,EAE1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAItE,qBAAa,mBAAoB,SAAQ,uBAAuB;IAC9D;;;;;;;OAOG;gBAED,sBAAsB,EAAE,sBAAsB,EAC9C,gBAAgB,GAAE,gBAA2D,EAC7E,0BAA0B,GAAE,0BAA+E,EAC3G,UAAU,CAAC,EAAE,UAAU,EACvB,oBAAoB,GAAE,oBAAqD;CAY9E"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphRequestAdapter = void 0;
4
+ const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
5
+ const kiota_http_fetchlibrary_1 = require("@microsoft/kiota-http-fetchlibrary");
6
+ const msgraph_sdk_core_1 = require("@microsoft/msgraph-sdk-core");
7
+ const version_1 = require("./version");
8
+ class GraphRequestAdapter extends msgraph_sdk_core_1.BaseGraphRequestAdapter {
9
+ /**
10
+ * Instantiates a new request adapter.
11
+ * @param authenticationProvider the authentication provider to use.
12
+ * @param parseNodeFactory the parse node factory to deserialize responses.
13
+ * @param serializationWriterFactory the serialization writer factory to use to serialize request bodies.
14
+ * @param httpClient the http client to use to execute requests.
15
+ * @param observabilityOptions the observability options to use.
16
+ */
17
+ constructor(authenticationProvider, parseNodeFactory = kiota_abstractions_1.ParseNodeFactoryRegistry.defaultInstance, serializationWriterFactory = kiota_abstractions_1.SerializationWriterFactoryRegistry.defaultInstance, httpClient, observabilityOptions = new kiota_http_fetchlibrary_1.ObservabilityOptionsImpl()) {
18
+ super("", version_1.version, authenticationProvider, parseNodeFactory, serializationWriterFactory, httpClient, observabilityOptions);
19
+ }
20
+ }
21
+ exports.GraphRequestAdapter = GraphRequestAdapter;
@@ -0,0 +1,19 @@
1
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter, RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * The main entry point of the SDK, exposes the configuration and the fluent API.
4
+ */
5
+ export interface GraphServiceClient extends BaseRequestBuilder<GraphServiceClient> {
6
+ }
7
+ /**
8
+ * Instantiates a new GraphServiceClient and sets the default values.
9
+ * @param requestAdapter The request adapter to use to execute the requests.
10
+ */
11
+ export declare function createGraphServiceClient(requestAdapter: RequestAdapter): GraphServiceClient;
12
+ type NavigationMetadataType = Partial<Record<Exclude<keyof GraphServiceClient, KeysToExcludeForNavigationMetadata>, NavigationMetadata>>;
13
+ export declare function extendGraphServiceClient(clientNavigationMetadata?: NavigationMetadataType, clientRequestsMetadata?: RequestsMetadata): void;
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export declare const GraphServiceClientUriTemplate = "{+baseurl}";
18
+ export {};
19
+ //# sourceMappingURL=graphServiceClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphServiceClient.d.ts","sourceRoot":"","sources":["graphServiceClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAA8E,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,KAAK,cAAc,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAM7P;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB,CAAC,kBAAkB,CAAC;CACjF;AACD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,cAAc,EAAE,cAAc,sBAetE;AACD,KAAK,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAWzI,wBAAgB,wBAAwB,CAAC,wBAAwB,CAAC,EAAE,sBAAsB,EAAE,sBAAsB,CAAC,EAAE,gBAAgB,QASpI;AACD;;GAEG;AACH,eAAO,MAAM,6BAA6B,eAAe,CAAC"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphServiceClientUriTemplate = exports.extendGraphServiceClient = exports.createGraphServiceClient = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
8
+ const kiota_serialization_form_1 = require("@microsoft/kiota-serialization-form");
9
+ const kiota_serialization_json_1 = require("@microsoft/kiota-serialization-json");
10
+ const kiota_serialization_multipart_1 = require("@microsoft/kiota-serialization-multipart");
11
+ const kiota_serialization_text_1 = require("@microsoft/kiota-serialization-text");
12
+ /**
13
+ * Instantiates a new GraphServiceClient and sets the default values.
14
+ * @param requestAdapter The request adapter to use to execute the requests.
15
+ */
16
+ function createGraphServiceClient(requestAdapter) {
17
+ (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_json_1.JsonSerializationWriterFactory);
18
+ (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_text_1.TextSerializationWriterFactory);
19
+ (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_form_1.FormSerializationWriterFactory);
20
+ (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_multipart_1.MultipartSerializationWriterFactory);
21
+ (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_json_1.JsonParseNodeFactory);
22
+ (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_text_1.TextParseNodeFactory);
23
+ (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_form_1.FormParseNodeFactory);
24
+ if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === "") {
25
+ requestAdapter.baseUrl = "https://graph.microsoft.com/v1.0";
26
+ }
27
+ const pathParameters = {
28
+ "baseurl": requestAdapter.baseUrl,
29
+ };
30
+ return (0, kiota_abstractions_1.apiClientProxifier)(requestAdapter, pathParameters, exports.GraphServiceClientUriTemplate, GraphServiceClientNavigationMetadata, GraphServiceClientRequestsMetadata);
31
+ }
32
+ exports.createGraphServiceClient = createGraphServiceClient;
33
+ /**
34
+ * Metadata for all the navigation properties in the request builder.
35
+ */
36
+ let GraphServiceClientNavigationMetadata = {};
37
+ /**
38
+ * Metadata for all the requests in the request builder.
39
+ */
40
+ let GraphServiceClientRequestsMetadata = {};
41
+ function extendGraphServiceClient(clientNavigationMetadata, clientRequestsMetadata) {
42
+ GraphServiceClientNavigationMetadata = Object.assign(Object.assign({}, GraphServiceClientNavigationMetadata), clientNavigationMetadata);
43
+ GraphServiceClientRequestsMetadata = Object.assign(Object.assign({}, GraphServiceClientRequestsMetadata), clientRequestsMetadata);
44
+ }
45
+ exports.extendGraphServiceClient = extendGraphServiceClient;
46
+ /**
47
+ * Uri template for the request builder.
48
+ */
49
+ exports.GraphServiceClientUriTemplate = "{+baseurl}";
50
+ /* tslint:enable */
51
+ /* eslint-enable */
package/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from "./graphServiceClient";
2
+ export * from "./graphRequestAdapter";
3
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC"}
package/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./graphServiceClient"), exports);
18
+ __exportStar(require("./graphRequestAdapter"), exports);