@microsoft/msgraph-sdk-connections 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 (74) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/connections/count/index.d.ts +40 -0
  4. package/connections/count/index.d.ts.map +1 -0
  5. package/connections/count/index.js +35 -0
  6. package/connections/index.d.ts +95 -0
  7. package/connections/index.d.ts.map +1 -0
  8. package/connections/index.js +71 -0
  9. package/connections/item/groups/count/index.d.ts +40 -0
  10. package/connections/item/groups/count/index.d.ts.map +1 -0
  11. package/connections/item/groups/count/index.js +35 -0
  12. package/connections/item/groups/index.d.ts +96 -0
  13. package/connections/item/groups/index.d.ts.map +1 -0
  14. package/connections/item/groups/index.js +71 -0
  15. package/connections/item/groups/item/index.d.ts +78 -0
  16. package/connections/item/groups/item/index.d.ts.map +1 -0
  17. package/connections/item/groups/item/index.js +67 -0
  18. package/connections/item/groups/item/members/count/index.d.ts +40 -0
  19. package/connections/item/groups/item/members/count/index.d.ts.map +1 -0
  20. package/connections/item/groups/item/members/count/index.js +35 -0
  21. package/connections/item/groups/item/members/index.d.ts +96 -0
  22. package/connections/item/groups/item/members/index.d.ts.map +1 -0
  23. package/connections/item/groups/item/members/index.js +70 -0
  24. package/connections/item/groups/item/members/item/index.d.ts +67 -0
  25. package/connections/item/groups/item/members/item/index.d.ts.map +1 -0
  26. package/connections/item/groups/item/members/item/index.js +56 -0
  27. package/connections/item/index.d.ts +90 -0
  28. package/connections/item/index.d.ts.map +1 -0
  29. package/connections/item/index.js +84 -0
  30. package/connections/item/items/count/index.d.ts +40 -0
  31. package/connections/item/items/count/index.d.ts.map +1 -0
  32. package/connections/item/items/count/index.js +35 -0
  33. package/connections/item/items/index.d.ts +95 -0
  34. package/connections/item/items/index.d.ts.map +1 -0
  35. package/connections/item/items/index.js +71 -0
  36. package/connections/item/items/item/activities/count/index.d.ts +40 -0
  37. package/connections/item/items/item/activities/count/index.d.ts.map +1 -0
  38. package/connections/item/items/item/activities/count/index.js +35 -0
  39. package/connections/item/items/item/activities/index.d.ts +95 -0
  40. package/connections/item/items/item/activities/index.d.ts.map +1 -0
  41. package/connections/item/items/item/activities/index.js +71 -0
  42. package/connections/item/items/item/activities/item/index.d.ts +75 -0
  43. package/connections/item/items/item/activities/item/index.d.ts.map +1 -0
  44. package/connections/item/items/item/activities/item/index.js +66 -0
  45. package/connections/item/items/item/activities/item/performedBy/index.d.ts +41 -0
  46. package/connections/item/items/item/activities/item/performedBy/index.d.ts.map +1 -0
  47. package/connections/item/items/item/activities/item/performedBy/index.js +36 -0
  48. package/connections/item/items/item/index.d.ts +82 -0
  49. package/connections/item/items/item/index.d.ts.map +1 -0
  50. package/connections/item/items/item/index.js +72 -0
  51. package/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/index.d.ts +83 -0
  52. package/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/index.d.ts.map +1 -0
  53. package/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/index.js +87 -0
  54. package/connections/item/operations/count/index.d.ts +40 -0
  55. package/connections/item/operations/count/index.d.ts.map +1 -0
  56. package/connections/item/operations/count/index.js +35 -0
  57. package/connections/item/operations/index.d.ts +95 -0
  58. package/connections/item/operations/index.d.ts.map +1 -0
  59. package/connections/item/operations/index.js +70 -0
  60. package/connections/item/operations/item/index.d.ts +67 -0
  61. package/connections/item/operations/item/index.d.ts.map +1 -0
  62. package/connections/item/operations/item/index.js +56 -0
  63. package/connections/item/schema/index.d.ts +57 -0
  64. package/connections/item/schema/index.d.ts.map +1 -0
  65. package/connections/item/schema/index.js +48 -0
  66. package/connectionsServiceClient.d.ts +25 -0
  67. package/connectionsServiceClient.d.ts.map +1 -0
  68. package/connectionsServiceClient.js +49 -0
  69. package/index.d.ts +11 -0
  70. package/index.d.ts.map +1 -0
  71. package/index.js +20 -0
  72. package/package.json +48 -0
  73. package/tsconfig.json +15 -0
  74. package/tsconfig.tsbuildinfo +1 -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-connections`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const msgraphSdkJavascriptConnections = require('@microsoft/msgraph-sdk-connections');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -0,0 +1,40 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Provides operations to count the resources in the collection.
4
+ */
5
+ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
6
+ /**
7
+ * Get the number of the resource
8
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
+ * @returns a Promise of Integer
10
+ */
11
+ get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
12
+ /**
13
+ * Get the number of the resource
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ * @returns a RequestInformation
16
+ */
17
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
18
+ }
19
+ /**
20
+ * Get the number of the resource
21
+ */
22
+ export interface CountRequestBuilderGetQueryParameters {
23
+ /**
24
+ * Filter items by property values
25
+ */
26
+ filter?: string;
27
+ /**
28
+ * Search items by search phrases
29
+ */
30
+ search?: string;
31
+ }
32
+ /**
33
+ * Metadata for all the requests in the request builder.
34
+ */
35
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
36
+ /**
37
+ * Uri template for the request builder.
38
+ */
39
+ export declare const CountRequestBuilderUriTemplate = "{+baseurl}/connections/$count{?%24search,%24filter}";
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;OAIG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnI;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAQD;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,8BAA8B,wDAAwD,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CountRequestBuilderUriTemplate = exports.CountRequestBuilderRequestsMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ /**
9
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
10
+ */
11
+ const CountRequestBuilderGetQueryParametersMapper = {
12
+ "filter": "%24filter",
13
+ "search": "%24search",
14
+ };
15
+ /**
16
+ * Metadata for all the requests in the request builder.
17
+ */
18
+ exports.CountRequestBuilderRequestsMetadata = {
19
+ get: {
20
+ responseBodyContentType: "text/plain;q=0.9",
21
+ errorMappings: {
22
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
23
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
24
+ },
25
+ adapterMethodName: "sendPrimitiveAsync",
26
+ responseBodyFactory: "number",
27
+ queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
28
+ },
29
+ };
30
+ /**
31
+ * Uri template for the request builder.
32
+ */
33
+ exports.CountRequestBuilderUriTemplate = "{+baseurl}/connections/$count{?%24search,%24filter}";
34
+ /* tslint:enable */
35
+ /* eslint-enable */
@@ -0,0 +1,95 @@
1
+ import { type ExternalConnection, type ExternalConnectionCollectionResponse } from '@microsoft/msgraph-sdk/models/externalConnectors/';
2
+ import { type CountRequestBuilder } from './count/';
3
+ import { type ExternalConnectionItemRequestBuilder } from './item/';
4
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
5
+ /**
6
+ * Provides operations to manage the collection of externalConnection entities.
7
+ */
8
+ export interface ConnectionsRequestBuilder extends BaseRequestBuilder<ConnectionsRequestBuilder> {
9
+ /**
10
+ * Provides operations to count the resources in the collection.
11
+ */
12
+ get count(): CountRequestBuilder;
13
+ /**
14
+ * Provides operations to manage the collection of externalConnection entities.
15
+ * @param externalConnectionId The unique identifier of externalConnection
16
+ * @returns a ExternalConnectionItemRequestBuilder
17
+ */
18
+ byExternalConnectionId(externalConnectionId: string): ExternalConnectionItemRequestBuilder;
19
+ /**
20
+ * Get entities from connections
21
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
+ * @returns a Promise of ExternalConnectionCollectionResponse
23
+ */
24
+ get(requestConfiguration?: RequestConfiguration<ConnectionsRequestBuilderGetQueryParameters> | undefined): Promise<ExternalConnectionCollectionResponse | undefined>;
25
+ /**
26
+ * Add new entity to connections
27
+ * @param body The request body
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns a Promise of ExternalConnection
30
+ */
31
+ post(body: ExternalConnection, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ExternalConnection | undefined>;
32
+ /**
33
+ * Get entities from connections
34
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35
+ * @returns a RequestInformation
36
+ */
37
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ConnectionsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
38
+ /**
39
+ * Add new entity to connections
40
+ * @param body The request body
41
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42
+ * @returns a RequestInformation
43
+ */
44
+ toPostRequestInformation(body: ExternalConnection, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
45
+ }
46
+ /**
47
+ * Get entities from connections
48
+ */
49
+ export interface ConnectionsRequestBuilderGetQueryParameters {
50
+ /**
51
+ * Include count of items
52
+ */
53
+ count?: boolean;
54
+ /**
55
+ * Expand related entities
56
+ */
57
+ expand?: string[];
58
+ /**
59
+ * Filter items by property values
60
+ */
61
+ filter?: string;
62
+ /**
63
+ * Order items by property values
64
+ */
65
+ orderby?: string[];
66
+ /**
67
+ * Search items by search phrases
68
+ */
69
+ search?: string;
70
+ /**
71
+ * Select properties to be returned
72
+ */
73
+ select?: string[];
74
+ /**
75
+ * Skip the first n items
76
+ */
77
+ skip?: number;
78
+ /**
79
+ * Show only the first n items
80
+ */
81
+ top?: number;
82
+ }
83
+ /**
84
+ * Metadata for all the navigation properties in the request builder.
85
+ */
86
+ export declare const ConnectionsRequestBuilderNavigationMetadata: Record<Exclude<keyof ConnectionsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
87
+ /**
88
+ * Metadata for all the requests in the request builder.
89
+ */
90
+ export declare const ConnectionsRequestBuilderRequestsMetadata: RequestsMetadata;
91
+ /**
92
+ * Uri template for the request builder.
93
+ */
94
+ export declare const ConnectionsRequestBuilderUriTemplate = "{+baseurl}/connections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
95
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiJ,KAAK,kBAAkB,EAAE,KAAK,oCAAoC,EAAE,MAAM,mDAAmD,CAAC;AAEtR,OAAO,EAAuE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzH,OAAO,EAAiK,KAAK,oCAAoC,EAAE,MAAM,SAAS,CAAC;AACnO,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,kBA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CAAC,OAAO,CAAC,MAAM,yBAAyB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAWhK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,gBAuBvD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,oCAAoC,wGAAwG,CAAC"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConnectionsRequestBuilderUriTemplate = exports.ConnectionsRequestBuilderRequestsMetadata = exports.ConnectionsRequestBuilderNavigationMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const externalConnectors_1 = require("@microsoft/msgraph-sdk/models/externalConnectors/");
8
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
+ const count_1 = require("./count/");
10
+ const item_1 = require("./item/");
11
+ /**
12
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
13
+ */
14
+ const ConnectionsRequestBuilderGetQueryParametersMapper = {
15
+ "count": "%24count",
16
+ "expand": "%24expand",
17
+ "filter": "%24filter",
18
+ "orderby": "%24orderby",
19
+ "search": "%24search",
20
+ "select": "%24select",
21
+ "skip": "%24skip",
22
+ "top": "%24top",
23
+ };
24
+ /**
25
+ * Metadata for all the navigation properties in the request builder.
26
+ */
27
+ exports.ConnectionsRequestBuilderNavigationMetadata = {
28
+ byExternalConnectionId: {
29
+ uriTemplate: item_1.ExternalConnectionItemRequestBuilderUriTemplate,
30
+ requestsMetadata: item_1.ExternalConnectionItemRequestBuilderRequestsMetadata,
31
+ navigationMetadata: item_1.ExternalConnectionItemRequestBuilderNavigationMetadata,
32
+ pathParametersMappings: ["externalConnection%2Did"],
33
+ },
34
+ count: {
35
+ uriTemplate: count_1.CountRequestBuilderUriTemplate,
36
+ requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
37
+ },
38
+ };
39
+ /**
40
+ * Metadata for all the requests in the request builder.
41
+ */
42
+ exports.ConnectionsRequestBuilderRequestsMetadata = {
43
+ get: {
44
+ responseBodyContentType: "application/json",
45
+ errorMappings: {
46
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
47
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
48
+ },
49
+ adapterMethodName: "sendAsync",
50
+ responseBodyFactory: externalConnectors_1.createExternalConnectionCollectionResponseFromDiscriminatorValue,
51
+ queryParametersMapper: ConnectionsRequestBuilderGetQueryParametersMapper,
52
+ },
53
+ post: {
54
+ responseBodyContentType: "application/json",
55
+ errorMappings: {
56
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
57
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
58
+ },
59
+ adapterMethodName: "sendAsync",
60
+ responseBodyFactory: externalConnectors_1.createExternalConnectionFromDiscriminatorValue,
61
+ requestBodyContentType: "application/json",
62
+ requestBodySerializer: externalConnectors_1.serializeExternalConnection,
63
+ requestInformationContentSetMethod: "setContentFromParsable",
64
+ },
65
+ };
66
+ /**
67
+ * Uri template for the request builder.
68
+ */
69
+ exports.ConnectionsRequestBuilderUriTemplate = "{+baseurl}/connections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
70
+ /* tslint:enable */
71
+ /* eslint-enable */
@@ -0,0 +1,40 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Provides operations to count the resources in the collection.
4
+ */
5
+ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
6
+ /**
7
+ * Get the number of the resource
8
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
+ * @returns a Promise of Integer
10
+ */
11
+ get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
12
+ /**
13
+ * Get the number of the resource
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ * @returns a RequestInformation
16
+ */
17
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
18
+ }
19
+ /**
20
+ * Get the number of the resource
21
+ */
22
+ export interface CountRequestBuilderGetQueryParameters {
23
+ /**
24
+ * Filter items by property values
25
+ */
26
+ filter?: string;
27
+ /**
28
+ * Search items by search phrases
29
+ */
30
+ search?: string;
31
+ }
32
+ /**
33
+ * Metadata for all the requests in the request builder.
34
+ */
35
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
36
+ /**
37
+ * Uri template for the request builder.
38
+ */
39
+ export declare const CountRequestBuilderUriTemplate = "{+baseurl}/connections/{externalConnection%2Did}/groups/$count{?%24search,%24filter}";
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;OAIG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnI;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAQD;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,8BAA8B,yFAAyF,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CountRequestBuilderUriTemplate = exports.CountRequestBuilderRequestsMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ /**
9
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
10
+ */
11
+ const CountRequestBuilderGetQueryParametersMapper = {
12
+ "filter": "%24filter",
13
+ "search": "%24search",
14
+ };
15
+ /**
16
+ * Metadata for all the requests in the request builder.
17
+ */
18
+ exports.CountRequestBuilderRequestsMetadata = {
19
+ get: {
20
+ responseBodyContentType: "text/plain;q=0.9",
21
+ errorMappings: {
22
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
23
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
24
+ },
25
+ adapterMethodName: "sendPrimitiveAsync",
26
+ responseBodyFactory: "number",
27
+ queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
28
+ },
29
+ };
30
+ /**
31
+ * Uri template for the request builder.
32
+ */
33
+ exports.CountRequestBuilderUriTemplate = "{+baseurl}/connections/{externalConnection%2Did}/groups/$count{?%24search,%24filter}";
34
+ /* tslint:enable */
35
+ /* eslint-enable */
@@ -0,0 +1,96 @@
1
+ import { type ExternalGroup, type ExternalGroupCollectionResponse } from '@microsoft/msgraph-sdk/models/externalConnectors/';
2
+ import { type CountRequestBuilder } from './count/';
3
+ import { type ExternalGroupItemRequestBuilder } from './item/';
4
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
5
+ /**
6
+ * Provides operations to manage the groups property of the microsoft.graph.externalConnectors.externalConnection entity.
7
+ */
8
+ export interface GroupsRequestBuilder extends BaseRequestBuilder<GroupsRequestBuilder> {
9
+ /**
10
+ * Provides operations to count the resources in the collection.
11
+ */
12
+ get count(): CountRequestBuilder;
13
+ /**
14
+ * Provides operations to manage the groups property of the microsoft.graph.externalConnectors.externalConnection entity.
15
+ * @param externalGroupId The unique identifier of externalGroup
16
+ * @returns a ExternalGroupItemRequestBuilder
17
+ */
18
+ byExternalGroupId(externalGroupId: string): ExternalGroupItemRequestBuilder;
19
+ /**
20
+ * Get an externalGroup object.
21
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
+ * @returns a Promise of ExternalGroupCollectionResponse
23
+ */
24
+ get(requestConfiguration?: RequestConfiguration<GroupsRequestBuilderGetQueryParameters> | undefined): Promise<ExternalGroupCollectionResponse | undefined>;
25
+ /**
26
+ * Create a new externalGroup object.
27
+ * @param body The request body
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns a Promise of ExternalGroup
30
+ * @see {@link https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-post-groups?view=graph-rest-1.0|Find more info here}
31
+ */
32
+ post(body: ExternalGroup, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ExternalGroup | undefined>;
33
+ /**
34
+ * Get an externalGroup object.
35
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
36
+ * @returns a RequestInformation
37
+ */
38
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<GroupsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
39
+ /**
40
+ * Create a new externalGroup object.
41
+ * @param body The request body
42
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
43
+ * @returns a RequestInformation
44
+ */
45
+ toPostRequestInformation(body: ExternalGroup, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
46
+ }
47
+ /**
48
+ * Get an externalGroup object.
49
+ */
50
+ export interface GroupsRequestBuilderGetQueryParameters {
51
+ /**
52
+ * Include count of items
53
+ */
54
+ count?: boolean;
55
+ /**
56
+ * Expand related entities
57
+ */
58
+ expand?: string[];
59
+ /**
60
+ * Filter items by property values
61
+ */
62
+ filter?: string;
63
+ /**
64
+ * Order items by property values
65
+ */
66
+ orderby?: string[];
67
+ /**
68
+ * Search items by search phrases
69
+ */
70
+ search?: string;
71
+ /**
72
+ * Select properties to be returned
73
+ */
74
+ select?: string[];
75
+ /**
76
+ * Skip the first n items
77
+ */
78
+ skip?: number;
79
+ /**
80
+ * Show only the first n items
81
+ */
82
+ top?: number;
83
+ }
84
+ /**
85
+ * Metadata for all the navigation properties in the request builder.
86
+ */
87
+ export declare const GroupsRequestBuilderNavigationMetadata: Record<Exclude<keyof GroupsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
88
+ /**
89
+ * Metadata for all the requests in the request builder.
90
+ */
91
+ export declare const GroupsRequestBuilderRequestsMetadata: RequestsMetadata;
92
+ /**
93
+ * Uri template for the request builder.
94
+ */
95
+ export declare const GroupsRequestBuilderUriTemplate = "{+baseurl}/connections/{externalConnection%2Did}/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
96
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkI,KAAK,aAAa,EAAE,KAAK,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AAE7P,OAAO,EAAuE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzH,OAAO,EAAkJ,KAAK,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAC/M,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAA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C,OAAO,CAAC,MAAM,oBAAoB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAWtJ,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,oCAAoC,EAAE,gBAuBlD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,+BAA+B,yIAAyI,CAAC"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GroupsRequestBuilderUriTemplate = exports.GroupsRequestBuilderRequestsMetadata = exports.GroupsRequestBuilderNavigationMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const externalConnectors_1 = require("@microsoft/msgraph-sdk/models/externalConnectors/");
8
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
+ const count_1 = require("./count/");
10
+ const item_1 = require("./item/");
11
+ /**
12
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
13
+ */
14
+ const GroupsRequestBuilderGetQueryParametersMapper = {
15
+ "count": "%24count",
16
+ "expand": "%24expand",
17
+ "filter": "%24filter",
18
+ "orderby": "%24orderby",
19
+ "search": "%24search",
20
+ "select": "%24select",
21
+ "skip": "%24skip",
22
+ "top": "%24top",
23
+ };
24
+ /**
25
+ * Metadata for all the navigation properties in the request builder.
26
+ */
27
+ exports.GroupsRequestBuilderNavigationMetadata = {
28
+ byExternalGroupId: {
29
+ uriTemplate: item_1.ExternalGroupItemRequestBuilderUriTemplate,
30
+ requestsMetadata: item_1.ExternalGroupItemRequestBuilderRequestsMetadata,
31
+ navigationMetadata: item_1.ExternalGroupItemRequestBuilderNavigationMetadata,
32
+ pathParametersMappings: ["externalGroup%2Did"],
33
+ },
34
+ count: {
35
+ uriTemplate: count_1.CountRequestBuilderUriTemplate,
36
+ requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
37
+ },
38
+ };
39
+ /**
40
+ * Metadata for all the requests in the request builder.
41
+ */
42
+ exports.GroupsRequestBuilderRequestsMetadata = {
43
+ get: {
44
+ responseBodyContentType: "application/json",
45
+ errorMappings: {
46
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
47
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
48
+ },
49
+ adapterMethodName: "sendAsync",
50
+ responseBodyFactory: externalConnectors_1.createExternalGroupCollectionResponseFromDiscriminatorValue,
51
+ queryParametersMapper: GroupsRequestBuilderGetQueryParametersMapper,
52
+ },
53
+ post: {
54
+ responseBodyContentType: "application/json",
55
+ errorMappings: {
56
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
57
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
58
+ },
59
+ adapterMethodName: "sendAsync",
60
+ responseBodyFactory: externalConnectors_1.createExternalGroupFromDiscriminatorValue,
61
+ requestBodyContentType: "application/json",
62
+ requestBodySerializer: externalConnectors_1.serializeExternalGroup,
63
+ requestInformationContentSetMethod: "setContentFromParsable",
64
+ },
65
+ };
66
+ /**
67
+ * Uri template for the request builder.
68
+ */
69
+ exports.GroupsRequestBuilderUriTemplate = "{+baseurl}/connections/{externalConnection%2Did}/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
70
+ /* tslint:enable */
71
+ /* eslint-enable */
@@ -0,0 +1,78 @@
1
+ import { type ExternalGroup } from '@microsoft/msgraph-sdk/models/externalConnectors/';
2
+ import { type MembersRequestBuilder } from './members/';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Provides operations to manage the groups property of the microsoft.graph.externalConnectors.externalConnection entity.
6
+ */
7
+ export interface ExternalGroupItemRequestBuilder extends BaseRequestBuilder<ExternalGroupItemRequestBuilder> {
8
+ /**
9
+ * Provides operations to manage the members property of the microsoft.graph.externalConnectors.externalGroup entity.
10
+ */
11
+ get members(): MembersRequestBuilder;
12
+ /**
13
+ * Delete an externalGroup object.
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ * @see {@link https://learn.microsoft.com/graph/api/externalconnectors-externalgroup-delete?view=graph-rest-1.0|Find more info here}
16
+ */
17
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
18
+ /**
19
+ * Get an externalGroup object.
20
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
21
+ * @returns a Promise of ExternalGroup
22
+ * @see {@link https://learn.microsoft.com/graph/api/externalconnectors-externalgroup-get?view=graph-rest-1.0|Find more info here}
23
+ */
24
+ get(requestConfiguration?: RequestConfiguration<ExternalGroupItemRequestBuilderGetQueryParameters> | undefined): Promise<ExternalGroup | undefined>;
25
+ /**
26
+ * Update the properties of an externalGroup object.
27
+ * @param body The request body
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns a Promise of ExternalGroup
30
+ * @see {@link https://learn.microsoft.com/graph/api/externalconnectors-externalgroup-update?view=graph-rest-1.0|Find more info here}
31
+ */
32
+ patch(body: ExternalGroup, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ExternalGroup | undefined>;
33
+ /**
34
+ * Delete an externalGroup object.
35
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
36
+ * @returns a RequestInformation
37
+ */
38
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
39
+ /**
40
+ * Get an externalGroup object.
41
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42
+ * @returns a RequestInformation
43
+ */
44
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ExternalGroupItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
45
+ /**
46
+ * Update the properties of an externalGroup object.
47
+ * @param body The request body
48
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
49
+ * @returns a RequestInformation
50
+ */
51
+ toPatchRequestInformation(body: ExternalGroup, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
52
+ }
53
+ /**
54
+ * Get an externalGroup object.
55
+ */
56
+ export interface ExternalGroupItemRequestBuilderGetQueryParameters {
57
+ /**
58
+ * Expand related entities
59
+ */
60
+ expand?: string[];
61
+ /**
62
+ * Select properties to be returned
63
+ */
64
+ select?: string[];
65
+ }
66
+ /**
67
+ * Metadata for all the navigation properties in the request builder.
68
+ */
69
+ export declare const ExternalGroupItemRequestBuilderNavigationMetadata: Record<Exclude<keyof ExternalGroupItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
70
+ /**
71
+ * Metadata for all the requests in the request builder.
72
+ */
73
+ export declare const ExternalGroupItemRequestBuilderRequestsMetadata: RequestsMetadata;
74
+ /**
75
+ * Uri template for the request builder.
76
+ */
77
+ export declare const ExternalGroupItemRequestBuilderUriTemplate = "{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}{?%24select,%24expand}";
78
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqE,KAAK,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAE1J,OAAO,EAAoH,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAC1K,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,kBAAkB,CAAC,+BAA+B,CAAC;IACxG;;OAEG;IACH,IAAI,OAAO,IAAI,qBAAqB,CAAC;IACrC;;;;OAIG;IACF,MAAM,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,I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