@microsoft/msgraph-sdk-admin 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.
- package/LICENSE +21 -0
- package/README.md +11 -0
- package/admin/edge/index.d.ts +75 -0
- package/admin/edge/index.d.ts.map +1 -0
- package/admin/edge/index.js +67 -0
- package/admin/edge/internetExplorerMode/index.d.ts +75 -0
- package/admin/edge/internetExplorerMode/index.d.ts.map +1 -0
- package/admin/edge/internetExplorerMode/index.js +67 -0
- package/admin/edge/internetExplorerMode/siteLists/count/index.d.ts +40 -0
- package/admin/edge/internetExplorerMode/siteLists/count/index.d.ts.map +1 -0
- package/admin/edge/internetExplorerMode/siteLists/count/index.js +35 -0
- package/admin/edge/internetExplorerMode/siteLists/index.d.ts +97 -0
- package/admin/edge/internetExplorerMode/siteLists/index.d.ts.map +1 -0
- package/admin/edge/internetExplorerMode/siteLists/index.js +71 -0
- package/admin/edge/internetExplorerMode/siteLists/item/index.d.ts +88 -0
- package/admin/edge/internetExplorerMode/siteLists/item/index.d.ts.map +1 -0
- package/admin/edge/internetExplorerMode/siteLists/item/index.js +78 -0
- package/admin/edge/internetExplorerMode/siteLists/item/publish/index.d.ts +69 -0
- package/admin/edge/internetExplorerMode/siteLists/item/publish/index.d.ts.map +1 -0
- package/admin/edge/internetExplorerMode/siteLists/item/publish/index.js +64 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/count/index.d.ts +40 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/count/index.d.ts.map +1 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/count/index.js +35 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/index.d.ts +97 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/index.d.ts.map +1 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/index.js +70 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/item/index.d.ts +69 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/item/index.d.ts.map +1 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/item/index.js +56 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sites/count/index.d.ts +40 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sites/count/index.d.ts.map +1 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sites/count/index.js +35 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sites/index.d.ts +97 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sites/index.d.ts.map +1 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sites/index.js +70 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sites/item/index.d.ts +69 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sites/item/index.d.ts.map +1 -0
- package/admin/edge/internetExplorerMode/siteLists/item/sites/item/index.js +56 -0
- package/admin/index.d.ts +79 -0
- package/admin/index.d.ts.map +1 -0
- package/admin/index.js +77 -0
- package/admin/people/index.d.ts +56 -0
- package/admin/people/index.d.ts.map +1 -0
- package/admin/people/index.js +52 -0
- package/admin/people/profileCardProperties/count/index.d.ts +40 -0
- package/admin/people/profileCardProperties/count/index.d.ts.map +1 -0
- package/admin/people/profileCardProperties/count/index.js +35 -0
- package/admin/people/profileCardProperties/index.d.ts +97 -0
- package/admin/people/profileCardProperties/index.d.ts.map +1 -0
- package/admin/people/profileCardProperties/index.js +70 -0
- package/admin/people/profileCardProperties/item/index.d.ts +69 -0
- package/admin/people/profileCardProperties/item/index.d.ts.map +1 -0
- package/admin/people/profileCardProperties/item/index.js +56 -0
- package/admin/people/pronouns/index.d.ts +57 -0
- package/admin/people/pronouns/index.d.ts.map +1 -0
- package/admin/people/pronouns/index.js +48 -0
- package/admin/serviceAnnouncement/healthOverviews/count/index.d.ts +40 -0
- package/admin/serviceAnnouncement/healthOverviews/count/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/healthOverviews/count/index.js +35 -0
- package/admin/serviceAnnouncement/healthOverviews/index.d.ts +96 -0
- package/admin/serviceAnnouncement/healthOverviews/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/healthOverviews/index.js +71 -0
- package/admin/serviceAnnouncement/healthOverviews/item/index.d.ts +76 -0
- package/admin/serviceAnnouncement/healthOverviews/item/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/healthOverviews/item/index.js +67 -0
- package/admin/serviceAnnouncement/healthOverviews/item/issues/count/index.d.ts +40 -0
- package/admin/serviceAnnouncement/healthOverviews/item/issues/count/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/healthOverviews/item/issues/count/index.js +35 -0
- package/admin/serviceAnnouncement/healthOverviews/item/issues/index.d.ts +95 -0
- package/admin/serviceAnnouncement/healthOverviews/item/issues/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/healthOverviews/item/issues/index.js +71 -0
- package/admin/serviceAnnouncement/healthOverviews/item/issues/item/incidentReport/index.d.ts +27 -0
- package/admin/serviceAnnouncement/healthOverviews/item/issues/item/incidentReport/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/healthOverviews/item/issues/item/incidentReport/index.js +27 -0
- package/admin/serviceAnnouncement/healthOverviews/item/issues/item/index.d.ts +75 -0
- package/admin/serviceAnnouncement/healthOverviews/item/issues/item/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/healthOverviews/item/issues/item/index.js +66 -0
- package/admin/serviceAnnouncement/index.d.ts +85 -0
- package/admin/serviceAnnouncement/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/index.js +79 -0
- package/admin/serviceAnnouncement/issues/count/index.d.ts +40 -0
- package/admin/serviceAnnouncement/issues/count/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/issues/count/index.js +35 -0
- package/admin/serviceAnnouncement/issues/index.d.ts +96 -0
- package/admin/serviceAnnouncement/issues/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/issues/index.js +71 -0
- package/admin/serviceAnnouncement/issues/item/incidentReport/index.d.ts +27 -0
- package/admin/serviceAnnouncement/issues/item/incidentReport/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/issues/item/incidentReport/index.js +27 -0
- package/admin/serviceAnnouncement/issues/item/index.d.ts +76 -0
- package/admin/serviceAnnouncement/issues/item/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/issues/item/index.js +66 -0
- package/admin/serviceAnnouncement/messages/archive/index.d.ts +90 -0
- package/admin/serviceAnnouncement/messages/archive/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/archive/index.js +88 -0
- package/admin/serviceAnnouncement/messages/count/index.d.ts +40 -0
- package/admin/serviceAnnouncement/messages/count/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/count/index.js +35 -0
- package/admin/serviceAnnouncement/messages/favorite/index.d.ts +90 -0
- package/admin/serviceAnnouncement/messages/favorite/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/favorite/index.js +88 -0
- package/admin/serviceAnnouncement/messages/index.d.ts +126 -0
- package/admin/serviceAnnouncement/messages/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/index.js +101 -0
- package/admin/serviceAnnouncement/messages/item/attachments/count/index.d.ts +40 -0
- package/admin/serviceAnnouncement/messages/item/attachments/count/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/item/attachments/count/index.js +35 -0
- package/admin/serviceAnnouncement/messages/item/attachments/index.d.ts +96 -0
- package/admin/serviceAnnouncement/messages/item/attachments/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/item/attachments/index.js +71 -0
- package/admin/serviceAnnouncement/messages/item/attachments/item/content/index.d.ts +43 -0
- package/admin/serviceAnnouncement/messages/item/attachments/item/content/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/item/attachments/item/content/index.js +39 -0
- package/admin/serviceAnnouncement/messages/item/attachments/item/index.d.ts +76 -0
- package/admin/serviceAnnouncement/messages/item/attachments/item/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/item/attachments/item/index.js +66 -0
- package/admin/serviceAnnouncement/messages/item/attachmentsArchive/index.d.ts +42 -0
- package/admin/serviceAnnouncement/messages/item/attachmentsArchive/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/item/attachmentsArchive/index.js +38 -0
- package/admin/serviceAnnouncement/messages/item/index.d.ts +81 -0
- package/admin/serviceAnnouncement/messages/item/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/item/index.js +72 -0
- package/admin/serviceAnnouncement/messages/markRead/index.d.ts +90 -0
- package/admin/serviceAnnouncement/messages/markRead/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/markRead/index.js +88 -0
- package/admin/serviceAnnouncement/messages/markUnread/index.d.ts +90 -0
- package/admin/serviceAnnouncement/messages/markUnread/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/markUnread/index.js +88 -0
- package/admin/serviceAnnouncement/messages/unarchive/index.d.ts +90 -0
- package/admin/serviceAnnouncement/messages/unarchive/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/unarchive/index.js +88 -0
- package/admin/serviceAnnouncement/messages/unfavorite/index.d.ts +90 -0
- package/admin/serviceAnnouncement/messages/unfavorite/index.d.ts.map +1 -0
- package/admin/serviceAnnouncement/messages/unfavorite/index.js +88 -0
- package/admin/sharepoint/index.d.ts +75 -0
- package/admin/sharepoint/index.d.ts.map +1 -0
- package/admin/sharepoint/index.js +66 -0
- package/admin/sharepoint/settings/index.d.ts +68 -0
- package/admin/sharepoint/settings/index.d.ts.map +1 -0
- package/admin/sharepoint/settings/index.js +56 -0
- package/adminServiceClient.d.ts +25 -0
- package/adminServiceClient.d.ts.map +1 -0
- package/adminServiceClient.js +49 -0
- package/index.d.ts +11 -0
- package/index.d.ts.map +1 -0
- package/index.js +20 -0
- package/package.json +48 -0
- package/tsconfig.json +15 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { type ServiceHealthIssue } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type IncidentReportRequestBuilder } from './incidentReport/';
|
|
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 issues property of the microsoft.graph.serviceAnnouncement entity.
|
|
6
|
+
*/
|
|
7
|
+
export interface ServiceHealthIssueItemRequestBuilder extends BaseRequestBuilder<ServiceHealthIssueItemRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* Provides operations to call the incidentReport method.
|
|
10
|
+
*/
|
|
11
|
+
get incidentReport(): IncidentReportRequestBuilder;
|
|
12
|
+
/**
|
|
13
|
+
* Delete navigation property issues for admin
|
|
14
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
15
|
+
*/
|
|
16
|
+
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant.
|
|
19
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
20
|
+
* @returns a Promise of ServiceHealthIssue
|
|
21
|
+
* @see {@link https://learn.microsoft.com/graph/api/servicehealthissue-get?view=graph-rest-1.0|Find more info here}
|
|
22
|
+
*/
|
|
23
|
+
get(requestConfiguration?: RequestConfiguration<ServiceHealthIssueItemRequestBuilderGetQueryParameters> | undefined): Promise<ServiceHealthIssue | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Update the navigation property issues in admin
|
|
26
|
+
* @param body The request body
|
|
27
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
28
|
+
* @returns a Promise of ServiceHealthIssue
|
|
29
|
+
*/
|
|
30
|
+
patch(body: ServiceHealthIssue, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ServiceHealthIssue | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* Delete navigation property issues for admin
|
|
33
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
34
|
+
* @returns a RequestInformation
|
|
35
|
+
*/
|
|
36
|
+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
37
|
+
/**
|
|
38
|
+
* Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant.
|
|
39
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
40
|
+
* @returns a RequestInformation
|
|
41
|
+
*/
|
|
42
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ServiceHealthIssueItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
43
|
+
/**
|
|
44
|
+
* Update the navigation property issues in admin
|
|
45
|
+
* @param body The request body
|
|
46
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
47
|
+
* @returns a RequestInformation
|
|
48
|
+
*/
|
|
49
|
+
toPatchRequestInformation(body: ServiceHealthIssue, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant.
|
|
53
|
+
*/
|
|
54
|
+
export interface ServiceHealthIssueItemRequestBuilderGetQueryParameters {
|
|
55
|
+
/**
|
|
56
|
+
* Expand related entities
|
|
57
|
+
*/
|
|
58
|
+
expand?: string[];
|
|
59
|
+
/**
|
|
60
|
+
* Select properties to be returned
|
|
61
|
+
*/
|
|
62
|
+
select?: string[];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Metadata for all the navigation properties in the request builder.
|
|
66
|
+
*/
|
|
67
|
+
export declare const ServiceHealthIssueItemRequestBuilderNavigationMetadata: Record<Exclude<keyof ServiceHealthIssueItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
68
|
+
/**
|
|
69
|
+
* Metadata for all the requests in the request builder.
|
|
70
|
+
*/
|
|
71
|
+
export declare const ServiceHealthIssueItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
72
|
+
/**
|
|
73
|
+
* Uri template for the request builder.
|
|
74
|
+
*/
|
|
75
|
+
export declare const ServiceHealthIssueItemRequestBuilderUriTemplate = "{+baseurl}/admin/serviceAnnouncement/issues/{serviceHealthIssue%2Did}{?%24select,%24expand}";
|
|
76
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAA+E,KAAK,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEtJ,OAAO,EAAyF,KAAK,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAC7J,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,oCAAqC,SAAQ,kBAAkB,CAAC,oCAAoC,CAAC;IAClH;;OAEG;IACH,IAAI,cAAc,IAAI,4BAA4B,CAAC;IACnD;;;OAGG;IACF,MAAM,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzF;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,sDAAsD,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IAChK;;;;;OAKG;IACF,KAAK,CAAC,IAAI,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IAC5I;;;;OAIG;IACF,0BAA0B,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAClH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,sDAAsD,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAC/J;;;;;OAKG;IACF,yBAAyB,CAAC,IAAI,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC9I;AACD;;GAEG;AACH,MAAM,WAAW,sDAAsD;IACnE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAQD;;GAEG;AACH,eAAO,MAAM,sDAAsD,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,oCAAoC,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAKtL,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,oDAAoD,EAAE,gBA+BlE,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,+CAA+C,gGAAgG,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceHealthIssueItemRequestBuilderUriTemplate = exports.ServiceHealthIssueItemRequestBuilderRequestsMetadata = exports.ServiceHealthIssueItemRequestBuilderNavigationMetadata = 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 incidentReport_1 = require("./incidentReport/");
|
|
10
|
+
/**
|
|
11
|
+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
|
|
12
|
+
*/
|
|
13
|
+
const ServiceHealthIssueItemRequestBuilderGetQueryParametersMapper = {
|
|
14
|
+
"expand": "%24expand",
|
|
15
|
+
"select": "%24select",
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Metadata for all the navigation properties in the request builder.
|
|
19
|
+
*/
|
|
20
|
+
exports.ServiceHealthIssueItemRequestBuilderNavigationMetadata = {
|
|
21
|
+
incidentReport: {
|
|
22
|
+
uriTemplate: incidentReport_1.IncidentReportRequestBuilderUriTemplate,
|
|
23
|
+
requestsMetadata: incidentReport_1.IncidentReportRequestBuilderRequestsMetadata,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Metadata for all the requests in the request builder.
|
|
28
|
+
*/
|
|
29
|
+
exports.ServiceHealthIssueItemRequestBuilderRequestsMetadata = {
|
|
30
|
+
delete: {
|
|
31
|
+
responseBodyContentType: "application/json",
|
|
32
|
+
errorMappings: {
|
|
33
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
34
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
35
|
+
},
|
|
36
|
+
adapterMethodName: "sendNoResponseContentAsync",
|
|
37
|
+
},
|
|
38
|
+
get: {
|
|
39
|
+
responseBodyContentType: "application/json",
|
|
40
|
+
errorMappings: {
|
|
41
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
42
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
43
|
+
},
|
|
44
|
+
adapterMethodName: "sendAsync",
|
|
45
|
+
responseBodyFactory: models_1.createServiceHealthIssueFromDiscriminatorValue,
|
|
46
|
+
queryParametersMapper: ServiceHealthIssueItemRequestBuilderGetQueryParametersMapper,
|
|
47
|
+
},
|
|
48
|
+
patch: {
|
|
49
|
+
responseBodyContentType: "application/json",
|
|
50
|
+
errorMappings: {
|
|
51
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
52
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
53
|
+
},
|
|
54
|
+
adapterMethodName: "sendAsync",
|
|
55
|
+
responseBodyFactory: models_1.createServiceHealthIssueFromDiscriminatorValue,
|
|
56
|
+
requestBodyContentType: "application/json",
|
|
57
|
+
requestBodySerializer: models_1.serializeServiceHealthIssue,
|
|
58
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Uri template for the request builder.
|
|
63
|
+
*/
|
|
64
|
+
exports.ServiceHealthIssueItemRequestBuilderUriTemplate = "{+baseurl}/admin/serviceAnnouncement/issues/{serviceHealthIssue%2Did}{?%24select,%24expand}";
|
|
65
|
+
/* tslint:enable */
|
|
66
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
export interface ArchivePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
3
|
+
/**
|
|
4
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
5
|
+
*/
|
|
6
|
+
additionalData?: Record<string, unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* Stores model information.
|
|
9
|
+
*/
|
|
10
|
+
backingStoreEnabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The messageIds property
|
|
13
|
+
*/
|
|
14
|
+
messageIds?: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface ArchivePostResponse extends AdditionalDataHolder, BackedModel, Parsable {
|
|
17
|
+
/**
|
|
18
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
19
|
+
*/
|
|
20
|
+
additionalData?: Record<string, unknown>;
|
|
21
|
+
/**
|
|
22
|
+
* Stores model information.
|
|
23
|
+
*/
|
|
24
|
+
backingStoreEnabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The value property
|
|
27
|
+
*/
|
|
28
|
+
value?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Provides operations to call the archive method.
|
|
32
|
+
*/
|
|
33
|
+
export interface ArchiveRequestBuilder extends BaseRequestBuilder<ArchiveRequestBuilder> {
|
|
34
|
+
/**
|
|
35
|
+
* Archive a list of serviceUpdateMessages for the signed in user.
|
|
36
|
+
* @param body The request body
|
|
37
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
38
|
+
* @returns a Promise of ArchivePostResponse
|
|
39
|
+
* @see {@link https://learn.microsoft.com/graph/api/serviceupdatemessage-archive?view=graph-rest-1.0|Find more info here}
|
|
40
|
+
*/
|
|
41
|
+
post(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ArchivePostResponse | undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* Archive a list of serviceUpdateMessages for the signed in user.
|
|
44
|
+
* @param body The request body
|
|
45
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
46
|
+
* @returns a RequestInformation
|
|
47
|
+
*/
|
|
48
|
+
toPostRequestInformation(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
52
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
53
|
+
* @returns a archivePostRequestBody
|
|
54
|
+
*/
|
|
55
|
+
export declare function createArchivePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoArchivePostRequestBody;
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
58
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
59
|
+
* @returns a archivePostResponse
|
|
60
|
+
*/
|
|
61
|
+
export declare function createArchivePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoArchivePostResponse;
|
|
62
|
+
/**
|
|
63
|
+
* The deserialization information for the current model
|
|
64
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
65
|
+
*/
|
|
66
|
+
export declare function deserializeIntoArchivePostRequestBody(archivePostRequestBody?: ArchivePostRequestBody | undefined): Record<string, (node: ParseNode) => void>;
|
|
67
|
+
/**
|
|
68
|
+
* The deserialization information for the current model
|
|
69
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
70
|
+
*/
|
|
71
|
+
export declare function deserializeIntoArchivePostResponse(archivePostResponse?: ArchivePostResponse | undefined): Record<string, (node: ParseNode) => void>;
|
|
72
|
+
/**
|
|
73
|
+
* Serializes information the current object
|
|
74
|
+
* @param writer Serialization writer to use to serialize this model
|
|
75
|
+
*/
|
|
76
|
+
export declare function serializeArchivePostRequestBody(writer: SerializationWriter, archivePostRequestBody?: ArchivePostRequestBody | undefined): void;
|
|
77
|
+
/**
|
|
78
|
+
* Serializes information the current object
|
|
79
|
+
* @param writer Serialization writer to use to serialize this model
|
|
80
|
+
*/
|
|
81
|
+
export declare function serializeArchivePostResponse(writer: SerializationWriter, archivePostResponse?: ArchivePostResponse | undefined): void;
|
|
82
|
+
/**
|
|
83
|
+
* Metadata for all the requests in the request builder.
|
|
84
|
+
*/
|
|
85
|
+
export declare const ArchiveRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
86
|
+
/**
|
|
87
|
+
* Uri template for the request builder.
|
|
88
|
+
*/
|
|
89
|
+
export declare const ArchiveRequestBuilderUriTemplate = "{+baseurl}/admin/serviceAnnouncement/messages/archive";
|
|
90
|
+
//# 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,oBAAoB,EAAE,KAAK,WAAW,EAAqB,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAElS,MAAM,WAAW,sBAAuB,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACvF;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AACD,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACpF;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AACD;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;IACpF;;;;;;OAMG;IACF,IAAI,CAAC,IAAI,EAAE,sBAAsB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;IAChJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,sBAAsB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;;;GAIG;AACH,wBAAgB,kDAAkD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,gDAElG;AACD;;;;GAIG;AACH,wBAAgB,+CAA+C,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,6CAE/F;AACD;;;GAGG;AACH,wBAAgB,qCAAqC,CAAC,sBAAsB,GAAE,sBAAsB,GAAG,SAAwC,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAK3L;AACD;;;GAGG;AACH,wBAAgB,kCAAkC,CAAC,mBAAmB,GAAE,mBAAmB,GAAG,SAAqC,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAK/K;AACD;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,mBAAmB,EAAE,sBAAsB,GAAE,sBAAsB,GAAG,SAAwC,GAAI,IAAI,CAG7K;AACD;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,mBAAmB,EAAE,mBAAmB,GAAE,mBAAmB,GAAG,SAAqC,GAAI,IAAI,CAGjK;AACD;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAanD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,gCAAgC,0DAA0D,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArchiveRequestBuilderUriTemplate = exports.ArchiveRequestBuilderRequestsMetadata = exports.serializeArchivePostResponse = exports.serializeArchivePostRequestBody = exports.deserializeIntoArchivePostResponse = exports.deserializeIntoArchivePostRequestBody = exports.createArchivePostResponseFromDiscriminatorValue = exports.createArchivePostRequestBodyFromDiscriminatorValue = 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
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
10
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
11
|
+
* @returns a archivePostRequestBody
|
|
12
|
+
*/
|
|
13
|
+
function createArchivePostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
14
|
+
return deserializeIntoArchivePostRequestBody;
|
|
15
|
+
}
|
|
16
|
+
exports.createArchivePostRequestBodyFromDiscriminatorValue = createArchivePostRequestBodyFromDiscriminatorValue;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
19
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
20
|
+
* @returns a archivePostResponse
|
|
21
|
+
*/
|
|
22
|
+
function createArchivePostResponseFromDiscriminatorValue(parseNode) {
|
|
23
|
+
return deserializeIntoArchivePostResponse;
|
|
24
|
+
}
|
|
25
|
+
exports.createArchivePostResponseFromDiscriminatorValue = createArchivePostResponseFromDiscriminatorValue;
|
|
26
|
+
/**
|
|
27
|
+
* The deserialization information for the current model
|
|
28
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
29
|
+
*/
|
|
30
|
+
function deserializeIntoArchivePostRequestBody(archivePostRequestBody = {}) {
|
|
31
|
+
return {
|
|
32
|
+
"backingStoreEnabled": n => { archivePostRequestBody.backingStoreEnabled = true; },
|
|
33
|
+
"messageIds": n => { archivePostRequestBody.messageIds = n.getCollectionOfPrimitiveValues(); },
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.deserializeIntoArchivePostRequestBody = deserializeIntoArchivePostRequestBody;
|
|
37
|
+
/**
|
|
38
|
+
* The deserialization information for the current model
|
|
39
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
40
|
+
*/
|
|
41
|
+
function deserializeIntoArchivePostResponse(archivePostResponse = {}) {
|
|
42
|
+
return {
|
|
43
|
+
"backingStoreEnabled": n => { archivePostResponse.backingStoreEnabled = true; },
|
|
44
|
+
"value": n => { archivePostResponse.value = n.getBooleanValue(); },
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.deserializeIntoArchivePostResponse = deserializeIntoArchivePostResponse;
|
|
48
|
+
/**
|
|
49
|
+
* Serializes information the current object
|
|
50
|
+
* @param writer Serialization writer to use to serialize this model
|
|
51
|
+
*/
|
|
52
|
+
function serializeArchivePostRequestBody(writer, archivePostRequestBody = {}) {
|
|
53
|
+
writer.writeCollectionOfPrimitiveValues("messageIds", archivePostRequestBody.messageIds);
|
|
54
|
+
writer.writeAdditionalData(archivePostRequestBody.additionalData);
|
|
55
|
+
}
|
|
56
|
+
exports.serializeArchivePostRequestBody = serializeArchivePostRequestBody;
|
|
57
|
+
/**
|
|
58
|
+
* Serializes information the current object
|
|
59
|
+
* @param writer Serialization writer to use to serialize this model
|
|
60
|
+
*/
|
|
61
|
+
function serializeArchivePostResponse(writer, archivePostResponse = {}) {
|
|
62
|
+
writer.writeBooleanValue("value", archivePostResponse.value);
|
|
63
|
+
writer.writeAdditionalData(archivePostResponse.additionalData);
|
|
64
|
+
}
|
|
65
|
+
exports.serializeArchivePostResponse = serializeArchivePostResponse;
|
|
66
|
+
/**
|
|
67
|
+
* Metadata for all the requests in the request builder.
|
|
68
|
+
*/
|
|
69
|
+
exports.ArchiveRequestBuilderRequestsMetadata = {
|
|
70
|
+
post: {
|
|
71
|
+
responseBodyContentType: "application/json",
|
|
72
|
+
errorMappings: {
|
|
73
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
74
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
75
|
+
},
|
|
76
|
+
adapterMethodName: "sendAsync",
|
|
77
|
+
responseBodyFactory: createArchivePostResponseFromDiscriminatorValue,
|
|
78
|
+
requestBodyContentType: "application/json",
|
|
79
|
+
requestBodySerializer: serializeArchivePostRequestBody,
|
|
80
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Uri template for the request builder.
|
|
85
|
+
*/
|
|
86
|
+
exports.ArchiveRequestBuilderUriTemplate = "{+baseurl}/admin/serviceAnnouncement/messages/archive";
|
|
87
|
+
/* tslint:enable */
|
|
88
|
+
/* 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}/admin/serviceAnnouncement/messages/$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,+EAA+E,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}/admin/serviceAnnouncement/messages/$count{?%24search,%24filter}";
|
|
34
|
+
/* tslint:enable */
|
|
35
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
4
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
5
|
+
* @returns a favoritePostRequestBody
|
|
6
|
+
*/
|
|
7
|
+
export declare function createFavoritePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoFavoritePostRequestBody;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
10
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
11
|
+
* @returns a favoritePostResponse
|
|
12
|
+
*/
|
|
13
|
+
export declare function createFavoritePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoFavoritePostResponse;
|
|
14
|
+
/**
|
|
15
|
+
* The deserialization information for the current model
|
|
16
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
17
|
+
*/
|
|
18
|
+
export declare function deserializeIntoFavoritePostRequestBody(favoritePostRequestBody?: FavoritePostRequestBody | undefined): Record<string, (node: ParseNode) => void>;
|
|
19
|
+
/**
|
|
20
|
+
* The deserialization information for the current model
|
|
21
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
22
|
+
*/
|
|
23
|
+
export declare function deserializeIntoFavoritePostResponse(favoritePostResponse?: FavoritePostResponse | undefined): Record<string, (node: ParseNode) => void>;
|
|
24
|
+
export interface FavoritePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
25
|
+
/**
|
|
26
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
27
|
+
*/
|
|
28
|
+
additionalData?: Record<string, unknown>;
|
|
29
|
+
/**
|
|
30
|
+
* Stores model information.
|
|
31
|
+
*/
|
|
32
|
+
backingStoreEnabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* The messageIds property
|
|
35
|
+
*/
|
|
36
|
+
messageIds?: string[];
|
|
37
|
+
}
|
|
38
|
+
export interface FavoritePostResponse extends AdditionalDataHolder, BackedModel, Parsable {
|
|
39
|
+
/**
|
|
40
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
41
|
+
*/
|
|
42
|
+
additionalData?: Record<string, unknown>;
|
|
43
|
+
/**
|
|
44
|
+
* Stores model information.
|
|
45
|
+
*/
|
|
46
|
+
backingStoreEnabled?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The value property
|
|
49
|
+
*/
|
|
50
|
+
value?: boolean;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Provides operations to call the favorite method.
|
|
54
|
+
*/
|
|
55
|
+
export interface FavoriteRequestBuilder extends BaseRequestBuilder<FavoriteRequestBuilder> {
|
|
56
|
+
/**
|
|
57
|
+
* Change the status of a list of serviceUpdateMessages to favorite for the signed in user.
|
|
58
|
+
* @param body The request body
|
|
59
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
60
|
+
* @returns a Promise of FavoritePostResponse
|
|
61
|
+
* @see {@link https://learn.microsoft.com/graph/api/serviceupdatemessage-favorite?view=graph-rest-1.0|Find more info here}
|
|
62
|
+
*/
|
|
63
|
+
post(body: FavoritePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<FavoritePostResponse | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* Change the status of a list of serviceUpdateMessages to favorite for the signed in user.
|
|
66
|
+
* @param body The request body
|
|
67
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
68
|
+
* @returns a RequestInformation
|
|
69
|
+
*/
|
|
70
|
+
toPostRequestInformation(body: FavoritePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Serializes information the current object
|
|
74
|
+
* @param writer Serialization writer to use to serialize this model
|
|
75
|
+
*/
|
|
76
|
+
export declare function serializeFavoritePostRequestBody(writer: SerializationWriter, favoritePostRequestBody?: FavoritePostRequestBody | undefined): void;
|
|
77
|
+
/**
|
|
78
|
+
* Serializes information the current object
|
|
79
|
+
* @param writer Serialization writer to use to serialize this model
|
|
80
|
+
*/
|
|
81
|
+
export declare function serializeFavoritePostResponse(writer: SerializationWriter, favoritePostResponse?: FavoritePostResponse | undefined): void;
|
|
82
|
+
/**
|
|
83
|
+
* Metadata for all the requests in the request builder.
|
|
84
|
+
*/
|
|
85
|
+
export declare const FavoriteRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
86
|
+
/**
|
|
87
|
+
* Uri template for the request builder.
|
|
88
|
+
*/
|
|
89
|
+
export declare const FavoriteRequestBuilderUriTemplate = "{+baseurl}/admin/serviceAnnouncement/messages/favorite";
|
|
90
|
+
//# 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,oBAAoB,EAAE,KAAK,WAAW,EAAqB,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAElS;;;;GAIG;AACH,wBAAgB,mDAAmD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,iDAEnG;AACD;;;;GAIG;AACH,wBAAgB,gDAAgD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,8CAEhG;AACD;;;GAGG;AACH,wBAAgB,sCAAsC,CAAC,uBAAuB,GAAE,uBAAuB,GAAG,SAAyC,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAK/L;AACD;;;GAGG;AACH,wBAAgB,mCAAmC,CAAC,oBAAoB,GAAE,oBAAoB,GAAG,SAAsC,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAKnL;AACD,MAAM,WAAW,uBAAwB,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACxF;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AACD,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACrF;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AACD;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB,CAAC,sBAAsB,CAAC;IACtF;;;;;;OAMG;IACF,IAAI,CAAC,IAAI,EAAE,uBAAuB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC,CAAC;IAClJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,uBAAuB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAClJ;AACD;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,mBAAmB,EAAE,uBAAuB,GAAE,uBAAuB,GAAG,SAAyC,GAAI,IAAI,CAGjL;AACD;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,mBAAmB,EAAE,oBAAoB,GAAE,oBAAoB,GAAG,SAAsC,GAAI,IAAI,CAGrK;AACD;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAE,gBAapD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,iCAAiC,2DAA2D,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FavoriteRequestBuilderUriTemplate = exports.FavoriteRequestBuilderRequestsMetadata = exports.serializeFavoritePostResponse = exports.serializeFavoritePostRequestBody = exports.deserializeIntoFavoritePostResponse = exports.deserializeIntoFavoritePostRequestBody = exports.createFavoritePostResponseFromDiscriminatorValue = exports.createFavoritePostRequestBodyFromDiscriminatorValue = 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
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
10
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
11
|
+
* @returns a favoritePostRequestBody
|
|
12
|
+
*/
|
|
13
|
+
function createFavoritePostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
14
|
+
return deserializeIntoFavoritePostRequestBody;
|
|
15
|
+
}
|
|
16
|
+
exports.createFavoritePostRequestBodyFromDiscriminatorValue = createFavoritePostRequestBodyFromDiscriminatorValue;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
19
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
20
|
+
* @returns a favoritePostResponse
|
|
21
|
+
*/
|
|
22
|
+
function createFavoritePostResponseFromDiscriminatorValue(parseNode) {
|
|
23
|
+
return deserializeIntoFavoritePostResponse;
|
|
24
|
+
}
|
|
25
|
+
exports.createFavoritePostResponseFromDiscriminatorValue = createFavoritePostResponseFromDiscriminatorValue;
|
|
26
|
+
/**
|
|
27
|
+
* The deserialization information for the current model
|
|
28
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
29
|
+
*/
|
|
30
|
+
function deserializeIntoFavoritePostRequestBody(favoritePostRequestBody = {}) {
|
|
31
|
+
return {
|
|
32
|
+
"backingStoreEnabled": n => { favoritePostRequestBody.backingStoreEnabled = true; },
|
|
33
|
+
"messageIds": n => { favoritePostRequestBody.messageIds = n.getCollectionOfPrimitiveValues(); },
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.deserializeIntoFavoritePostRequestBody = deserializeIntoFavoritePostRequestBody;
|
|
37
|
+
/**
|
|
38
|
+
* The deserialization information for the current model
|
|
39
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
40
|
+
*/
|
|
41
|
+
function deserializeIntoFavoritePostResponse(favoritePostResponse = {}) {
|
|
42
|
+
return {
|
|
43
|
+
"backingStoreEnabled": n => { favoritePostResponse.backingStoreEnabled = true; },
|
|
44
|
+
"value": n => { favoritePostResponse.value = n.getBooleanValue(); },
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.deserializeIntoFavoritePostResponse = deserializeIntoFavoritePostResponse;
|
|
48
|
+
/**
|
|
49
|
+
* Serializes information the current object
|
|
50
|
+
* @param writer Serialization writer to use to serialize this model
|
|
51
|
+
*/
|
|
52
|
+
function serializeFavoritePostRequestBody(writer, favoritePostRequestBody = {}) {
|
|
53
|
+
writer.writeCollectionOfPrimitiveValues("messageIds", favoritePostRequestBody.messageIds);
|
|
54
|
+
writer.writeAdditionalData(favoritePostRequestBody.additionalData);
|
|
55
|
+
}
|
|
56
|
+
exports.serializeFavoritePostRequestBody = serializeFavoritePostRequestBody;
|
|
57
|
+
/**
|
|
58
|
+
* Serializes information the current object
|
|
59
|
+
* @param writer Serialization writer to use to serialize this model
|
|
60
|
+
*/
|
|
61
|
+
function serializeFavoritePostResponse(writer, favoritePostResponse = {}) {
|
|
62
|
+
writer.writeBooleanValue("value", favoritePostResponse.value);
|
|
63
|
+
writer.writeAdditionalData(favoritePostResponse.additionalData);
|
|
64
|
+
}
|
|
65
|
+
exports.serializeFavoritePostResponse = serializeFavoritePostResponse;
|
|
66
|
+
/**
|
|
67
|
+
* Metadata for all the requests in the request builder.
|
|
68
|
+
*/
|
|
69
|
+
exports.FavoriteRequestBuilderRequestsMetadata = {
|
|
70
|
+
post: {
|
|
71
|
+
responseBodyContentType: "application/json",
|
|
72
|
+
errorMappings: {
|
|
73
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
74
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
75
|
+
},
|
|
76
|
+
adapterMethodName: "sendAsync",
|
|
77
|
+
responseBodyFactory: createFavoritePostResponseFromDiscriminatorValue,
|
|
78
|
+
requestBodyContentType: "application/json",
|
|
79
|
+
requestBodySerializer: serializeFavoritePostRequestBody,
|
|
80
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Uri template for the request builder.
|
|
85
|
+
*/
|
|
86
|
+
exports.FavoriteRequestBuilderUriTemplate = "{+baseurl}/admin/serviceAnnouncement/messages/favorite";
|
|
87
|
+
/* tslint:enable */
|
|
88
|
+
/* eslint-enable */
|