@microsoft/msgraph-sdk-privacy 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 (77) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/index.d.ts +11 -0
  4. package/index.d.ts.map +1 -0
  5. package/index.js +20 -0
  6. package/package.json +48 -0
  7. package/privacy/index.d.ts +64 -0
  8. package/privacy/index.d.ts.map +1 -0
  9. package/privacy/index.js +59 -0
  10. package/privacy/subjectRightsRequests/count/index.d.ts +42 -0
  11. package/privacy/subjectRightsRequests/count/index.d.ts.map +1 -0
  12. package/privacy/subjectRightsRequests/count/index.js +35 -0
  13. package/privacy/subjectRightsRequests/index.d.ts +103 -0
  14. package/privacy/subjectRightsRequests/index.d.ts.map +1 -0
  15. package/privacy/subjectRightsRequests/index.js +71 -0
  16. package/privacy/subjectRightsRequests/item/approvers/count/index.d.ts +42 -0
  17. package/privacy/subjectRightsRequests/item/approvers/count/index.d.ts.map +1 -0
  18. package/privacy/subjectRightsRequests/item/approvers/count/index.js +35 -0
  19. package/privacy/subjectRightsRequests/item/approvers/index.d.ts +85 -0
  20. package/privacy/subjectRightsRequests/item/approvers/index.d.ts.map +1 -0
  21. package/privacy/subjectRightsRequests/item/approvers/index.js +59 -0
  22. package/privacy/subjectRightsRequests/item/approvers/item/index.d.ts +59 -0
  23. package/privacy/subjectRightsRequests/item/approvers/item/index.d.ts.map +1 -0
  24. package/privacy/subjectRightsRequests/item/approvers/item/index.js +52 -0
  25. package/privacy/subjectRightsRequests/item/approvers/item/mailboxSettings/index.d.ts +59 -0
  26. package/privacy/subjectRightsRequests/item/approvers/item/mailboxSettings/index.d.ts.map +1 -0
  27. package/privacy/subjectRightsRequests/item/approvers/item/mailboxSettings/index.js +48 -0
  28. package/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/count/index.d.ts +42 -0
  29. package/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/count/index.d.ts.map +1 -0
  30. package/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/count/index.js +35 -0
  31. package/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.d.ts +77 -0
  32. package/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.d.ts.map +1 -0
  33. package/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.js +52 -0
  34. package/privacy/subjectRightsRequests/item/collaborators/count/index.d.ts +42 -0
  35. package/privacy/subjectRightsRequests/item/collaborators/count/index.d.ts.map +1 -0
  36. package/privacy/subjectRightsRequests/item/collaborators/count/index.js +35 -0
  37. package/privacy/subjectRightsRequests/item/collaborators/index.d.ts +85 -0
  38. package/privacy/subjectRightsRequests/item/collaborators/index.d.ts.map +1 -0
  39. package/privacy/subjectRightsRequests/item/collaborators/index.js +59 -0
  40. package/privacy/subjectRightsRequests/item/collaborators/item/index.d.ts +59 -0
  41. package/privacy/subjectRightsRequests/item/collaborators/item/index.d.ts.map +1 -0
  42. package/privacy/subjectRightsRequests/item/collaborators/item/index.js +52 -0
  43. package/privacy/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.d.ts +59 -0
  44. package/privacy/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.d.ts.map +1 -0
  45. package/privacy/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.js +48 -0
  46. package/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/count/index.d.ts +42 -0
  47. package/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/count/index.d.ts.map +1 -0
  48. package/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/count/index.js +35 -0
  49. package/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.d.ts +77 -0
  50. package/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.d.ts.map +1 -0
  51. package/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.js +52 -0
  52. package/privacy/subjectRightsRequests/item/getFinalAttachment/index.d.ts +29 -0
  53. package/privacy/subjectRightsRequests/item/getFinalAttachment/index.d.ts.map +1 -0
  54. package/privacy/subjectRightsRequests/item/getFinalAttachment/index.js +27 -0
  55. package/privacy/subjectRightsRequests/item/getFinalReport/index.d.ts +29 -0
  56. package/privacy/subjectRightsRequests/item/getFinalReport/index.d.ts.map +1 -0
  57. package/privacy/subjectRightsRequests/item/getFinalReport/index.js +27 -0
  58. package/privacy/subjectRightsRequests/item/index.d.ts +114 -0
  59. package/privacy/subjectRightsRequests/item/index.d.ts.map +1 -0
  60. package/privacy/subjectRightsRequests/item/index.js +94 -0
  61. package/privacy/subjectRightsRequests/item/notes/count/index.d.ts +42 -0
  62. package/privacy/subjectRightsRequests/item/notes/count/index.d.ts.map +1 -0
  63. package/privacy/subjectRightsRequests/item/notes/count/index.js +35 -0
  64. package/privacy/subjectRightsRequests/item/notes/index.d.ts +103 -0
  65. package/privacy/subjectRightsRequests/item/notes/index.d.ts.map +1 -0
  66. package/privacy/subjectRightsRequests/item/notes/index.js +70 -0
  67. package/privacy/subjectRightsRequests/item/notes/item/index.d.ts +72 -0
  68. package/privacy/subjectRightsRequests/item/notes/item/index.d.ts.map +1 -0
  69. package/privacy/subjectRightsRequests/item/notes/item/index.js +56 -0
  70. package/privacy/subjectRightsRequests/item/team/index.d.ts +43 -0
  71. package/privacy/subjectRightsRequests/item/team/index.d.ts.map +1 -0
  72. package/privacy/subjectRightsRequests/item/team/index.js +36 -0
  73. package/privacyServiceClient.d.ts +25 -0
  74. package/privacyServiceClient.d.ts.map +1 -0
  75. package/privacyServiceClient.js +49 -0
  76. package/tsconfig.json +15 -0
  77. 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-privacy`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const msgraphSdkJavascriptPrivacy = require('@microsoft/msgraph-sdk-privacy');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
package/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import type { PrivacyRequestBuilder } from "./privacy";
2
+ declare module "@microsoft/msgraph-sdk" {
3
+ interface GraphServiceClient {
4
+ /**
5
+ * Provides operations to manage the privacy singleton.
6
+ */
7
+ get privacy(): PrivacyRequestBuilder;
8
+ }
9
+ }
10
+ export * from "./privacyServiceClient";
11
+ //# 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":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAGvD,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAU,kBAAkB;QAC1B;;WAEG;QACH,IAAI,OAAO,IAAI,qBAAqB,CAAC;KACtC;CACF;AAED,cAAc,wBAAwB,CAAC"}
package/index.js ADDED
@@ -0,0 +1,20 @@
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
+ const msgraph_sdk_1 = require("@microsoft/msgraph-sdk");
18
+ const privacyServiceClient_1 = require("./privacyServiceClient");
19
+ (0, msgraph_sdk_1.extendGraphServiceClient)(privacyServiceClient_1.PrivacyServiceClientNavigationMetadata);
20
+ __exportStar(require("./privacyServiceClient"), exports);
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@microsoft/msgraph-sdk-privacy",
3
+ "version": "1.0.0-preview.10",
4
+ "description": "Privacy fluent API for Microsoft Graph",
5
+ "keywords": [
6
+ "Microsoft",
7
+ "Graph",
8
+ "msgraph",
9
+ "API",
10
+ "SDK",
11
+ "privacy"
12
+ ],
13
+ "author": "Microsoft <graphsdkpub+javascript@microsoft.com>",
14
+ "license": "MIT",
15
+ "main": "index.js",
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/microsoftgraph/msgraph-sdk-typescript.git"
22
+ },
23
+ "scripts": {
24
+ "build": "tsc -p tsconfig.json",
25
+ "lint": "eslint . --ext .ts",
26
+ "lint:fix": "eslint . --ext .ts --fix",
27
+ "clean": "rimraf -g **/*.d.ts && rimraf -g **/*.d.ts.map && rimraf -g **/*.js.map && rimraf -g **/*.js && rimraf tsconfig.tsbuildinfo"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/microsoftgraph/msgraph-sdk-typescript/issues"
31
+ },
32
+ "homepage": "https://github.com/microsoftgraph/msgraph-sdk-typescript#readme",
33
+ "types": "index.d.ts",
34
+ "dependencies": {
35
+ "@microsoft/kiota-abstractions": "^1.0.0-preview.38",
36
+ "@microsoft/kiota-serialization-form": "^1.0.0-preview.27",
37
+ "@microsoft/kiota-serialization-json": "^1.0.0-preview.38",
38
+ "@microsoft/kiota-serialization-multipart": "^1.0.0-preview.17",
39
+ "@microsoft/kiota-serialization-text": "^1.0.0-preview.35",
40
+ "@microsoft/msgraph-sdk": "^1.0.0-preview.10",
41
+ "guid-typescript": "^1.0.9",
42
+ "tslib": "^2.6.2"
43
+ },
44
+ "devDependencies": {
45
+ "typescript": "^5.3.3"
46
+ },
47
+ "gitHead": "15d9675ebafd32092472a638aa8d5d9276e283b1"
48
+ }
@@ -0,0 +1,64 @@
1
+ import { type Privacy } from '@microsoft/msgraph-sdk/models/';
2
+ import { type SubjectRightsRequestsRequestBuilder } from './subjectRightsRequests/';
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 privacy singleton.
6
+ */
7
+ export interface PrivacyRequestBuilder extends BaseRequestBuilder<PrivacyRequestBuilder> {
8
+ /**
9
+ * Provides operations to manage the subjectRightsRequests property of the microsoft.graph.privacy entity.
10
+ */
11
+ get subjectRightsRequests(): SubjectRightsRequestsRequestBuilder;
12
+ /**
13
+ * Get privacy
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ * @returns a Promise of Privacy
16
+ */
17
+ get(requestConfiguration?: RequestConfiguration<PrivacyRequestBuilderGetQueryParameters> | undefined): Promise<Privacy | undefined>;
18
+ /**
19
+ * Update privacy
20
+ * @param body The request body
21
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
+ * @returns a Promise of Privacy
23
+ */
24
+ patch(body: Privacy, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Privacy | undefined>;
25
+ /**
26
+ * Get privacy
27
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
28
+ * @returns a RequestInformation
29
+ */
30
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<PrivacyRequestBuilderGetQueryParameters> | undefined): RequestInformation;
31
+ /**
32
+ * Update privacy
33
+ * @param body The request body
34
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35
+ * @returns a RequestInformation
36
+ */
37
+ toPatchRequestInformation(body: Privacy, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
38
+ }
39
+ /**
40
+ * Get privacy
41
+ */
42
+ export interface PrivacyRequestBuilderGetQueryParameters {
43
+ /**
44
+ * Expand related entities
45
+ */
46
+ expand?: string[];
47
+ /**
48
+ * Select properties to be returned
49
+ */
50
+ select?: string[];
51
+ }
52
+ /**
53
+ * Metadata for all the navigation properties in the request builder.
54
+ */
55
+ export declare const PrivacyRequestBuilderNavigationMetadata: Record<Exclude<keyof PrivacyRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
56
+ /**
57
+ * Metadata for all the requests in the request builder.
58
+ */
59
+ export declare const PrivacyRequestBuilderRequestsMetadata: RequestsMetadata;
60
+ /**
61
+ * Uri template for the request builder.
62
+ */
63
+ export declare const PrivacyRequestBuilderUriTemplate = "{+baseurl}/privacy{?%24select,%24expand}";
64
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyD,KAAK,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAErH,OAAO,EAA8J,KAAK,mCAAmC,EAAE,MAAM,0BAA0B,CAAC;AAChP,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,qBAAsB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;IACpF;;OAEG;IACH,IAAI,qBAAqB,IAAI,mCAAmC,CAAC;IACjE;;;;OAIG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,uCAAuC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACtI;;;;;OAKG;IACF,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACtH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,uCAAuC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAChJ;;;;;OAKG;IACF,yBAAyB,CAAC,IAAI,EAAE,OAAO,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACnI;AACD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACpD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAQD;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,qBAAqB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAMxJ,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAuBnD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,gCAAgC,6CAA6C,CAAC"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrivacyRequestBuilderUriTemplate = exports.PrivacyRequestBuilderRequestsMetadata = exports.PrivacyRequestBuilderNavigationMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const models_1 = require("@microsoft/msgraph-sdk/models/");
8
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
+ const subjectRightsRequests_1 = require("./subjectRightsRequests/");
10
+ /**
11
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
12
+ */
13
+ const PrivacyRequestBuilderGetQueryParametersMapper = {
14
+ "expand": "%24expand",
15
+ "select": "%24select",
16
+ };
17
+ /**
18
+ * Metadata for all the navigation properties in the request builder.
19
+ */
20
+ exports.PrivacyRequestBuilderNavigationMetadata = {
21
+ subjectRightsRequests: {
22
+ uriTemplate: subjectRightsRequests_1.SubjectRightsRequestsRequestBuilderUriTemplate,
23
+ requestsMetadata: subjectRightsRequests_1.SubjectRightsRequestsRequestBuilderRequestsMetadata,
24
+ navigationMetadata: subjectRightsRequests_1.SubjectRightsRequestsRequestBuilderNavigationMetadata,
25
+ },
26
+ };
27
+ /**
28
+ * Metadata for all the requests in the request builder.
29
+ */
30
+ exports.PrivacyRequestBuilderRequestsMetadata = {
31
+ get: {
32
+ responseBodyContentType: "application/json",
33
+ errorMappings: {
34
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
35
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
36
+ },
37
+ adapterMethodName: "sendAsync",
38
+ responseBodyFactory: models_1.createPrivacyFromDiscriminatorValue,
39
+ queryParametersMapper: PrivacyRequestBuilderGetQueryParametersMapper,
40
+ },
41
+ patch: {
42
+ responseBodyContentType: "application/json",
43
+ errorMappings: {
44
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
45
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
46
+ },
47
+ adapterMethodName: "sendAsync",
48
+ responseBodyFactory: models_1.createPrivacyFromDiscriminatorValue,
49
+ requestBodyContentType: "application/json",
50
+ requestBodySerializer: models_1.serializePrivacy,
51
+ requestInformationContentSetMethod: "setContentFromParsable",
52
+ },
53
+ };
54
+ /**
55
+ * Uri template for the request builder.
56
+ */
57
+ exports.PrivacyRequestBuilderUriTemplate = "{+baseurl}/privacy{?%24select,%24expand}";
58
+ /* tslint:enable */
59
+ /* eslint-enable */
@@ -0,0 +1,42 @@
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
+ * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
13
+ /**
14
+ * Get the number of the resource
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns a RequestInformation
17
+ * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate
18
+ */
19
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
20
+ }
21
+ /**
22
+ * Get the number of the resource
23
+ */
24
+ export interface CountRequestBuilderGetQueryParameters {
25
+ /**
26
+ * Filter items by property values
27
+ */
28
+ filter?: string;
29
+ /**
30
+ * Search items by search phrases
31
+ */
32
+ search?: string;
33
+ }
34
+ /**
35
+ * Metadata for all the requests in the request builder.
36
+ */
37
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
38
+ /**
39
+ * Uri template for the request builder.
40
+ */
41
+ export declare const CountRequestBuilderUriTemplate = "{+baseurl}/privacy/subjectRightsRequests/$count{?%24search,%24filter}";
42
+ //# 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;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnI;;;;;OAKG;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,0EAA0E,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}/privacy/subjectRightsRequests/$count{?%24search,%24filter}";
34
+ /* tslint:enable */
35
+ /* eslint-enable */
@@ -0,0 +1,103 @@
1
+ import { type SubjectRightsRequest, type SubjectRightsRequestCollectionResponse } from '@microsoft/msgraph-sdk/models/';
2
+ import { type CountRequestBuilder } from './count/';
3
+ import { type SubjectRightsRequestItemRequestBuilder } 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 subjectRightsRequests property of the microsoft.graph.privacy entity.
7
+ */
8
+ export interface SubjectRightsRequestsRequestBuilder extends BaseRequestBuilder<SubjectRightsRequestsRequestBuilder> {
9
+ /**
10
+ * Provides operations to count the resources in the collection.
11
+ * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate
12
+ */
13
+ get count(): CountRequestBuilder;
14
+ /**
15
+ * Provides operations to manage the subjectRightsRequests property of the microsoft.graph.privacy entity.
16
+ * @param subjectRightsRequestId The unique identifier of subjectRightsRequest
17
+ * @returns a SubjectRightsRequestItemRequestBuilder
18
+ * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate
19
+ */
20
+ bySubjectRightsRequestId(subjectRightsRequestId: string): SubjectRightsRequestItemRequestBuilder;
21
+ /**
22
+ * Get a list of subjectRightsRequest objects and their properties.
23
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
24
+ * @returns a Promise of SubjectRightsRequestCollectionResponse
25
+ * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate
26
+ * @see {@link https://learn.microsoft.com/graph/api/subjectrightsrequest-list?view=graph-rest-1.0|Find more info here}
27
+ */
28
+ get(requestConfiguration?: RequestConfiguration<SubjectRightsRequestsRequestBuilderGetQueryParameters> | undefined): Promise<SubjectRightsRequestCollectionResponse | undefined>;
29
+ /**
30
+ * Create a new subjectRightsRequest object.
31
+ * @param body The request body
32
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
33
+ * @returns a Promise of SubjectRightsRequest
34
+ * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate
35
+ * @see {@link https://learn.microsoft.com/graph/api/subjectrightsrequest-post?view=graph-rest-1.0|Find more info here}
36
+ */
37
+ post(body: SubjectRightsRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SubjectRightsRequest | undefined>;
38
+ /**
39
+ * Get a list of subjectRightsRequest objects and their properties.
40
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
41
+ * @returns a RequestInformation
42
+ * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate
43
+ */
44
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<SubjectRightsRequestsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
45
+ /**
46
+ * Create a new subjectRightsRequest 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
+ * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate
51
+ */
52
+ toPostRequestInformation(body: SubjectRightsRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
53
+ }
54
+ /**
55
+ * Get a list of subjectRightsRequest objects and their properties.
56
+ */
57
+ export interface SubjectRightsRequestsRequestBuilderGetQueryParameters {
58
+ /**
59
+ * Include count of items
60
+ */
61
+ count?: boolean;
62
+ /**
63
+ * Expand related entities
64
+ */
65
+ expand?: string[];
66
+ /**
67
+ * Filter items by property values
68
+ */
69
+ filter?: string;
70
+ /**
71
+ * Order items by property values
72
+ */
73
+ orderby?: string[];
74
+ /**
75
+ * Search items by search phrases
76
+ */
77
+ search?: string;
78
+ /**
79
+ * Select properties to be returned
80
+ */
81
+ select?: string[];
82
+ /**
83
+ * Skip the first n items
84
+ */
85
+ skip?: number;
86
+ /**
87
+ * Show only the first n items
88
+ */
89
+ top?: number;
90
+ }
91
+ /**
92
+ * Metadata for all the navigation properties in the request builder.
93
+ */
94
+ export declare const SubjectRightsRequestsRequestBuilderNavigationMetadata: Record<Exclude<keyof SubjectRightsRequestsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
95
+ /**
96
+ * Metadata for all the requests in the request builder.
97
+ */
98
+ export declare const SubjectRightsRequestsRequestBuilderRequestsMetadata: RequestsMetadata;
99
+ /**
100
+ * Uri template for the request builder.
101
+ */
102
+ export declare const SubjectRightsRequestsRequestBuilderUriTemplate = "{+baseurl}/privacy/subjectRightsRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
103
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAuJ,KAAK,oBAAoB,EAAE,KAAK,sCAAsC,EAAE,MAAM,gCAAgC,CAAC;AAE7Q,OAAO,EAAuE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzH,OAAO,EAAuK,KAAK,sCAAsC,EAAE,MAAM,SAAS,CAAC;AAC3O,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,mCAAoC,SAAQ,kBAAkB,CAAC,mCAAmC,CAAC;IAChH;;;OAGG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;;;;OAKG;IACF,wBAAwB,CAAC,sBAAsB,EAAE,MAAM,GAAI,sCAAsC,CAAC;IACnG;;;;;;OAMG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qDAAqD,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,sCAAsC,GAAG,SAAS,CAAC,CAAC;IACnL;;;;;;;OAOG;IACF,IAAI,CAAC,IAAI,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC,CAAC;IAC/I;;;;;OAKG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qDAAqD,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAC9J;;;;;;OAMG;IACF,wBAAwB,CAAC,IAAI,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC/I;AACD;;GAEG;AACH,MAAM,WAAW,qDAAqD;IAClE;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAcD;;GAEG;AACH,eAAO,MAAM,qDAAqD,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,mCAAmC,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAWpL,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,mDAAmD,EAAE,gBAuBjE,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,8CAA8C,0HAA0H,CAAC"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubjectRightsRequestsRequestBuilderUriTemplate = exports.SubjectRightsRequestsRequestBuilderRequestsMetadata = exports.SubjectRightsRequestsRequestBuilderNavigationMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const models_1 = require("@microsoft/msgraph-sdk/models/");
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 SubjectRightsRequestsRequestBuilderGetQueryParametersMapper = {
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.SubjectRightsRequestsRequestBuilderNavigationMetadata = {
28
+ bySubjectRightsRequestId: {
29
+ uriTemplate: item_1.SubjectRightsRequestItemRequestBuilderUriTemplate,
30
+ requestsMetadata: item_1.SubjectRightsRequestItemRequestBuilderRequestsMetadata,
31
+ navigationMetadata: item_1.SubjectRightsRequestItemRequestBuilderNavigationMetadata,
32
+ pathParametersMappings: ["subjectRightsRequest%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.SubjectRightsRequestsRequestBuilderRequestsMetadata = {
43
+ get: {
44
+ responseBodyContentType: "application/json",
45
+ errorMappings: {
46
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
47
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
48
+ },
49
+ adapterMethodName: "sendAsync",
50
+ responseBodyFactory: models_1.createSubjectRightsRequestCollectionResponseFromDiscriminatorValue,
51
+ queryParametersMapper: SubjectRightsRequestsRequestBuilderGetQueryParametersMapper,
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: models_1.createSubjectRightsRequestFromDiscriminatorValue,
61
+ requestBodyContentType: "application/json",
62
+ requestBodySerializer: models_1.serializeSubjectRightsRequest,
63
+ requestInformationContentSetMethod: "setContentFromParsable",
64
+ },
65
+ };
66
+ /**
67
+ * Uri template for the request builder.
68
+ */
69
+ exports.SubjectRightsRequestsRequestBuilderUriTemplate = "{+baseurl}/privacy/subjectRightsRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
70
+ /* tslint:enable */
71
+ /* eslint-enable */
@@ -0,0 +1,42 @@
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
+ * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
13
+ /**
14
+ * Get the number of the resource
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns a RequestInformation
17
+ * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate
18
+ */
19
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
20
+ }
21
+ /**
22
+ * Get the number of the resource
23
+ */
24
+ export interface CountRequestBuilderGetQueryParameters {
25
+ /**
26
+ * Filter items by property values
27
+ */
28
+ filter?: string;
29
+ /**
30
+ * Search items by search phrases
31
+ */
32
+ search?: string;
33
+ }
34
+ /**
35
+ * Metadata for all the requests in the request builder.
36
+ */
37
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
38
+ /**
39
+ * Uri template for the request builder.
40
+ */
41
+ export declare const CountRequestBuilderUriTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/$count{?%24search,%24filter}";
42
+ //# 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;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnI;;;;;OAKG;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,gHAAgH,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}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/$count{?%24search,%24filter}";
34
+ /* tslint:enable */
35
+ /* eslint-enable */