@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,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarkUnreadRequestBuilderUriTemplate = exports.MarkUnreadRequestBuilderRequestsMetadata = exports.serializeMarkUnreadPostResponse = exports.serializeMarkUnreadPostRequestBody = exports.deserializeIntoMarkUnreadPostResponse = exports.deserializeIntoMarkUnreadPostRequestBody = exports.createMarkUnreadPostResponseFromDiscriminatorValue = exports.createMarkUnreadPostRequestBodyFromDiscriminatorValue = 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 markUnreadPostRequestBody
|
|
12
|
+
*/
|
|
13
|
+
function createMarkUnreadPostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
14
|
+
return deserializeIntoMarkUnreadPostRequestBody;
|
|
15
|
+
}
|
|
16
|
+
exports.createMarkUnreadPostRequestBodyFromDiscriminatorValue = createMarkUnreadPostRequestBodyFromDiscriminatorValue;
|
|
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 markUnreadPostResponse
|
|
21
|
+
*/
|
|
22
|
+
function createMarkUnreadPostResponseFromDiscriminatorValue(parseNode) {
|
|
23
|
+
return deserializeIntoMarkUnreadPostResponse;
|
|
24
|
+
}
|
|
25
|
+
exports.createMarkUnreadPostResponseFromDiscriminatorValue = createMarkUnreadPostResponseFromDiscriminatorValue;
|
|
26
|
+
/**
|
|
27
|
+
* The deserialization information for the current model
|
|
28
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
29
|
+
*/
|
|
30
|
+
function deserializeIntoMarkUnreadPostRequestBody(markUnreadPostRequestBody = {}) {
|
|
31
|
+
return {
|
|
32
|
+
"backingStoreEnabled": n => { markUnreadPostRequestBody.backingStoreEnabled = true; },
|
|
33
|
+
"messageIds": n => { markUnreadPostRequestBody.messageIds = n.getCollectionOfPrimitiveValues(); },
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.deserializeIntoMarkUnreadPostRequestBody = deserializeIntoMarkUnreadPostRequestBody;
|
|
37
|
+
/**
|
|
38
|
+
* The deserialization information for the current model
|
|
39
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
40
|
+
*/
|
|
41
|
+
function deserializeIntoMarkUnreadPostResponse(markUnreadPostResponse = {}) {
|
|
42
|
+
return {
|
|
43
|
+
"backingStoreEnabled": n => { markUnreadPostResponse.backingStoreEnabled = true; },
|
|
44
|
+
"value": n => { markUnreadPostResponse.value = n.getBooleanValue(); },
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.deserializeIntoMarkUnreadPostResponse = deserializeIntoMarkUnreadPostResponse;
|
|
48
|
+
/**
|
|
49
|
+
* Serializes information the current object
|
|
50
|
+
* @param writer Serialization writer to use to serialize this model
|
|
51
|
+
*/
|
|
52
|
+
function serializeMarkUnreadPostRequestBody(writer, markUnreadPostRequestBody = {}) {
|
|
53
|
+
writer.writeCollectionOfPrimitiveValues("messageIds", markUnreadPostRequestBody.messageIds);
|
|
54
|
+
writer.writeAdditionalData(markUnreadPostRequestBody.additionalData);
|
|
55
|
+
}
|
|
56
|
+
exports.serializeMarkUnreadPostRequestBody = serializeMarkUnreadPostRequestBody;
|
|
57
|
+
/**
|
|
58
|
+
* Serializes information the current object
|
|
59
|
+
* @param writer Serialization writer to use to serialize this model
|
|
60
|
+
*/
|
|
61
|
+
function serializeMarkUnreadPostResponse(writer, markUnreadPostResponse = {}) {
|
|
62
|
+
writer.writeBooleanValue("value", markUnreadPostResponse.value);
|
|
63
|
+
writer.writeAdditionalData(markUnreadPostResponse.additionalData);
|
|
64
|
+
}
|
|
65
|
+
exports.serializeMarkUnreadPostResponse = serializeMarkUnreadPostResponse;
|
|
66
|
+
/**
|
|
67
|
+
* Metadata for all the requests in the request builder.
|
|
68
|
+
*/
|
|
69
|
+
exports.MarkUnreadRequestBuilderRequestsMetadata = {
|
|
70
|
+
post: {
|
|
71
|
+
responseBodyContentType: "application/json",
|
|
72
|
+
errorMappings: {
|
|
73
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
74
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
75
|
+
},
|
|
76
|
+
adapterMethodName: "sendAsync",
|
|
77
|
+
responseBodyFactory: createMarkUnreadPostResponseFromDiscriminatorValue,
|
|
78
|
+
requestBodyContentType: "application/json",
|
|
79
|
+
requestBodySerializer: serializeMarkUnreadPostRequestBody,
|
|
80
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Uri template for the request builder.
|
|
85
|
+
*/
|
|
86
|
+
exports.MarkUnreadRequestBuilderUriTemplate = "{+baseurl}/admin/serviceAnnouncement/messages/markUnread";
|
|
87
|
+
/* tslint:enable */
|
|
88
|
+
/* 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 unarchivePostRequestBody
|
|
6
|
+
*/
|
|
7
|
+
export declare function createUnarchivePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoUnarchivePostRequestBody;
|
|
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 unarchivePostResponse
|
|
12
|
+
*/
|
|
13
|
+
export declare function createUnarchivePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoUnarchivePostResponse;
|
|
14
|
+
/**
|
|
15
|
+
* The deserialization information for the current model
|
|
16
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
17
|
+
*/
|
|
18
|
+
export declare function deserializeIntoUnarchivePostRequestBody(unarchivePostRequestBody?: UnarchivePostRequestBody | 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 deserializeIntoUnarchivePostResponse(unarchivePostResponse?: UnarchivePostResponse | undefined): Record<string, (node: ParseNode) => void>;
|
|
24
|
+
/**
|
|
25
|
+
* Serializes information the current object
|
|
26
|
+
* @param writer Serialization writer to use to serialize this model
|
|
27
|
+
*/
|
|
28
|
+
export declare function serializeUnarchivePostRequestBody(writer: SerializationWriter, unarchivePostRequestBody?: UnarchivePostRequestBody | undefined): void;
|
|
29
|
+
/**
|
|
30
|
+
* Serializes information the current object
|
|
31
|
+
* @param writer Serialization writer to use to serialize this model
|
|
32
|
+
*/
|
|
33
|
+
export declare function serializeUnarchivePostResponse(writer: SerializationWriter, unarchivePostResponse?: UnarchivePostResponse | undefined): void;
|
|
34
|
+
export interface UnarchivePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
35
|
+
/**
|
|
36
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
37
|
+
*/
|
|
38
|
+
additionalData?: Record<string, unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* Stores model information.
|
|
41
|
+
*/
|
|
42
|
+
backingStoreEnabled?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The messageIds property
|
|
45
|
+
*/
|
|
46
|
+
messageIds?: string[];
|
|
47
|
+
}
|
|
48
|
+
export interface UnarchivePostResponse extends AdditionalDataHolder, BackedModel, Parsable {
|
|
49
|
+
/**
|
|
50
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
51
|
+
*/
|
|
52
|
+
additionalData?: Record<string, unknown>;
|
|
53
|
+
/**
|
|
54
|
+
* Stores model information.
|
|
55
|
+
*/
|
|
56
|
+
backingStoreEnabled?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The value property
|
|
59
|
+
*/
|
|
60
|
+
value?: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Provides operations to call the unarchive method.
|
|
64
|
+
*/
|
|
65
|
+
export interface UnarchiveRequestBuilder extends BaseRequestBuilder<UnarchiveRequestBuilder> {
|
|
66
|
+
/**
|
|
67
|
+
* Unarchive a list of serviceUpdateMessages for the signed in user.
|
|
68
|
+
* @param body The request body
|
|
69
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
70
|
+
* @returns a Promise of UnarchivePostResponse
|
|
71
|
+
* @see {@link https://learn.microsoft.com/graph/api/serviceupdatemessage-unarchive?view=graph-rest-1.0|Find more info here}
|
|
72
|
+
*/
|
|
73
|
+
post(body: UnarchivePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UnarchivePostResponse | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Unarchive a list of serviceUpdateMessages for the signed in user.
|
|
76
|
+
* @param body The request body
|
|
77
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
78
|
+
* @returns a RequestInformation
|
|
79
|
+
*/
|
|
80
|
+
toPostRequestInformation(body: UnarchivePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Metadata for all the requests in the request builder.
|
|
84
|
+
*/
|
|
85
|
+
export declare const UnarchiveRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
86
|
+
/**
|
|
87
|
+
* Uri template for the request builder.
|
|
88
|
+
*/
|
|
89
|
+
export declare const UnarchiveRequestBuilderUriTemplate = "{+baseurl}/admin/serviceAnnouncement/messages/unarchive";
|
|
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,oDAAoD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,kDAEpG;AACD;;;;GAIG;AACH,wBAAgB,iDAAiD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,+CAEjG;AACD;;;GAGG;AACH,wBAAgB,uCAAuC,CAAC,wBAAwB,GAAE,wBAAwB,GAAG,SAA0C,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAKnM;AACD;;;GAGG;AACH,wBAAgB,oCAAoC,CAAC,qBAAqB,GAAE,qBAAqB,GAAG,SAAuC,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAKvL;AACD;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,mBAAmB,EAAE,wBAAwB,GAAE,wBAAwB,GAAG,SAA0C,GAAI,IAAI,CAGrL;AACD;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,mBAAmB,EAAE,qBAAqB,GAAE,qBAAqB,GAAG,SAAuC,GAAI,IAAI,CAGzK;AACD,MAAM,WAAW,wBAAyB,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACzF;;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,qBAAsB,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACtF;;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,uBAAwB,SAAQ,kBAAkB,CAAC,uBAAuB,CAAC;IACxF;;;;;;OAMG;IACF,IAAI,CAAC,IAAI,EAAE,wBAAwB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAAC;IACpJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,wBAAwB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACnJ;AACD;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,gBAarD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,kCAAkC,4DAA4D,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnarchiveRequestBuilderUriTemplate = exports.UnarchiveRequestBuilderRequestsMetadata = exports.serializeUnarchivePostResponse = exports.serializeUnarchivePostRequestBody = exports.deserializeIntoUnarchivePostResponse = exports.deserializeIntoUnarchivePostRequestBody = exports.createUnarchivePostResponseFromDiscriminatorValue = exports.createUnarchivePostRequestBodyFromDiscriminatorValue = 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 unarchivePostRequestBody
|
|
12
|
+
*/
|
|
13
|
+
function createUnarchivePostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
14
|
+
return deserializeIntoUnarchivePostRequestBody;
|
|
15
|
+
}
|
|
16
|
+
exports.createUnarchivePostRequestBodyFromDiscriminatorValue = createUnarchivePostRequestBodyFromDiscriminatorValue;
|
|
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 unarchivePostResponse
|
|
21
|
+
*/
|
|
22
|
+
function createUnarchivePostResponseFromDiscriminatorValue(parseNode) {
|
|
23
|
+
return deserializeIntoUnarchivePostResponse;
|
|
24
|
+
}
|
|
25
|
+
exports.createUnarchivePostResponseFromDiscriminatorValue = createUnarchivePostResponseFromDiscriminatorValue;
|
|
26
|
+
/**
|
|
27
|
+
* The deserialization information for the current model
|
|
28
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
29
|
+
*/
|
|
30
|
+
function deserializeIntoUnarchivePostRequestBody(unarchivePostRequestBody = {}) {
|
|
31
|
+
return {
|
|
32
|
+
"backingStoreEnabled": n => { unarchivePostRequestBody.backingStoreEnabled = true; },
|
|
33
|
+
"messageIds": n => { unarchivePostRequestBody.messageIds = n.getCollectionOfPrimitiveValues(); },
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.deserializeIntoUnarchivePostRequestBody = deserializeIntoUnarchivePostRequestBody;
|
|
37
|
+
/**
|
|
38
|
+
* The deserialization information for the current model
|
|
39
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
40
|
+
*/
|
|
41
|
+
function deserializeIntoUnarchivePostResponse(unarchivePostResponse = {}) {
|
|
42
|
+
return {
|
|
43
|
+
"backingStoreEnabled": n => { unarchivePostResponse.backingStoreEnabled = true; },
|
|
44
|
+
"value": n => { unarchivePostResponse.value = n.getBooleanValue(); },
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.deserializeIntoUnarchivePostResponse = deserializeIntoUnarchivePostResponse;
|
|
48
|
+
/**
|
|
49
|
+
* Serializes information the current object
|
|
50
|
+
* @param writer Serialization writer to use to serialize this model
|
|
51
|
+
*/
|
|
52
|
+
function serializeUnarchivePostRequestBody(writer, unarchivePostRequestBody = {}) {
|
|
53
|
+
writer.writeCollectionOfPrimitiveValues("messageIds", unarchivePostRequestBody.messageIds);
|
|
54
|
+
writer.writeAdditionalData(unarchivePostRequestBody.additionalData);
|
|
55
|
+
}
|
|
56
|
+
exports.serializeUnarchivePostRequestBody = serializeUnarchivePostRequestBody;
|
|
57
|
+
/**
|
|
58
|
+
* Serializes information the current object
|
|
59
|
+
* @param writer Serialization writer to use to serialize this model
|
|
60
|
+
*/
|
|
61
|
+
function serializeUnarchivePostResponse(writer, unarchivePostResponse = {}) {
|
|
62
|
+
writer.writeBooleanValue("value", unarchivePostResponse.value);
|
|
63
|
+
writer.writeAdditionalData(unarchivePostResponse.additionalData);
|
|
64
|
+
}
|
|
65
|
+
exports.serializeUnarchivePostResponse = serializeUnarchivePostResponse;
|
|
66
|
+
/**
|
|
67
|
+
* Metadata for all the requests in the request builder.
|
|
68
|
+
*/
|
|
69
|
+
exports.UnarchiveRequestBuilderRequestsMetadata = {
|
|
70
|
+
post: {
|
|
71
|
+
responseBodyContentType: "application/json",
|
|
72
|
+
errorMappings: {
|
|
73
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
74
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
75
|
+
},
|
|
76
|
+
adapterMethodName: "sendAsync",
|
|
77
|
+
responseBodyFactory: createUnarchivePostResponseFromDiscriminatorValue,
|
|
78
|
+
requestBodyContentType: "application/json",
|
|
79
|
+
requestBodySerializer: serializeUnarchivePostRequestBody,
|
|
80
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Uri template for the request builder.
|
|
85
|
+
*/
|
|
86
|
+
exports.UnarchiveRequestBuilderUriTemplate = "{+baseurl}/admin/serviceAnnouncement/messages/unarchive";
|
|
87
|
+
/* tslint:enable */
|
|
88
|
+
/* 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 unfavoritePostRequestBody
|
|
6
|
+
*/
|
|
7
|
+
export declare function createUnfavoritePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoUnfavoritePostRequestBody;
|
|
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 unfavoritePostResponse
|
|
12
|
+
*/
|
|
13
|
+
export declare function createUnfavoritePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoUnfavoritePostResponse;
|
|
14
|
+
/**
|
|
15
|
+
* The deserialization information for the current model
|
|
16
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
17
|
+
*/
|
|
18
|
+
export declare function deserializeIntoUnfavoritePostRequestBody(unfavoritePostRequestBody?: UnfavoritePostRequestBody | 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 deserializeIntoUnfavoritePostResponse(unfavoritePostResponse?: UnfavoritePostResponse | undefined): Record<string, (node: ParseNode) => void>;
|
|
24
|
+
/**
|
|
25
|
+
* Serializes information the current object
|
|
26
|
+
* @param writer Serialization writer to use to serialize this model
|
|
27
|
+
*/
|
|
28
|
+
export declare function serializeUnfavoritePostRequestBody(writer: SerializationWriter, unfavoritePostRequestBody?: UnfavoritePostRequestBody | undefined): void;
|
|
29
|
+
/**
|
|
30
|
+
* Serializes information the current object
|
|
31
|
+
* @param writer Serialization writer to use to serialize this model
|
|
32
|
+
*/
|
|
33
|
+
export declare function serializeUnfavoritePostResponse(writer: SerializationWriter, unfavoritePostResponse?: UnfavoritePostResponse | undefined): void;
|
|
34
|
+
export interface UnfavoritePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
35
|
+
/**
|
|
36
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
37
|
+
*/
|
|
38
|
+
additionalData?: Record<string, unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* Stores model information.
|
|
41
|
+
*/
|
|
42
|
+
backingStoreEnabled?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The messageIds property
|
|
45
|
+
*/
|
|
46
|
+
messageIds?: string[];
|
|
47
|
+
}
|
|
48
|
+
export interface UnfavoritePostResponse extends AdditionalDataHolder, BackedModel, Parsable {
|
|
49
|
+
/**
|
|
50
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
51
|
+
*/
|
|
52
|
+
additionalData?: Record<string, unknown>;
|
|
53
|
+
/**
|
|
54
|
+
* Stores model information.
|
|
55
|
+
*/
|
|
56
|
+
backingStoreEnabled?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The value property
|
|
59
|
+
*/
|
|
60
|
+
value?: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Provides operations to call the unfavorite method.
|
|
64
|
+
*/
|
|
65
|
+
export interface UnfavoriteRequestBuilder extends BaseRequestBuilder<UnfavoriteRequestBuilder> {
|
|
66
|
+
/**
|
|
67
|
+
* Remove the favorite status of serviceUpdateMessages for the signed in user.
|
|
68
|
+
* @param body The request body
|
|
69
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
70
|
+
* @returns a Promise of UnfavoritePostResponse
|
|
71
|
+
* @see {@link https://learn.microsoft.com/graph/api/serviceupdatemessage-unfavorite?view=graph-rest-1.0|Find more info here}
|
|
72
|
+
*/
|
|
73
|
+
post(body: UnfavoritePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UnfavoritePostResponse | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Remove the favorite status of serviceUpdateMessages for the signed in user.
|
|
76
|
+
* @param body The request body
|
|
77
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
78
|
+
* @returns a RequestInformation
|
|
79
|
+
*/
|
|
80
|
+
toPostRequestInformation(body: UnfavoritePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Metadata for all the requests in the request builder.
|
|
84
|
+
*/
|
|
85
|
+
export declare const UnfavoriteRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
86
|
+
/**
|
|
87
|
+
* Uri template for the request builder.
|
|
88
|
+
*/
|
|
89
|
+
export declare const UnfavoriteRequestBuilderUriTemplate = "{+baseurl}/admin/serviceAnnouncement/messages/unfavorite";
|
|
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,qDAAqD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,mDAErG;AACD;;;;GAIG;AACH,wBAAgB,kDAAkD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,gDAElG;AACD;;;GAGG;AACH,wBAAgB,wCAAwC,CAAC,yBAAyB,GAAE,yBAAyB,GAAG,SAA2C,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAKvM;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,MAAM,EAAE,mBAAmB,EAAE,yBAAyB,GAAE,yBAAyB,GAAG,SAA2C,GAAI,IAAI,CAGzL;AACD;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,mBAAmB,EAAE,sBAAsB,GAAE,sBAAsB,GAAG,SAAwC,GAAI,IAAI,CAG7K;AACD,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IAC1F;;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,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,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AACD;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB,CAAC,wBAAwB,CAAC;IAC1F;;;;;;OAMG;IACF,IAAI,CAAC,IAAI,EAAE,yBAAyB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;IACtJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,yBAAyB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACpJ;AACD;;GAEG;AACH,eAAO,MAAM,wCAAwC,EAAE,gBAatD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,mCAAmC,6DAA6D,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnfavoriteRequestBuilderUriTemplate = exports.UnfavoriteRequestBuilderRequestsMetadata = exports.serializeUnfavoritePostResponse = exports.serializeUnfavoritePostRequestBody = exports.deserializeIntoUnfavoritePostResponse = exports.deserializeIntoUnfavoritePostRequestBody = exports.createUnfavoritePostResponseFromDiscriminatorValue = exports.createUnfavoritePostRequestBodyFromDiscriminatorValue = 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 unfavoritePostRequestBody
|
|
12
|
+
*/
|
|
13
|
+
function createUnfavoritePostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
14
|
+
return deserializeIntoUnfavoritePostRequestBody;
|
|
15
|
+
}
|
|
16
|
+
exports.createUnfavoritePostRequestBodyFromDiscriminatorValue = createUnfavoritePostRequestBodyFromDiscriminatorValue;
|
|
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 unfavoritePostResponse
|
|
21
|
+
*/
|
|
22
|
+
function createUnfavoritePostResponseFromDiscriminatorValue(parseNode) {
|
|
23
|
+
return deserializeIntoUnfavoritePostResponse;
|
|
24
|
+
}
|
|
25
|
+
exports.createUnfavoritePostResponseFromDiscriminatorValue = createUnfavoritePostResponseFromDiscriminatorValue;
|
|
26
|
+
/**
|
|
27
|
+
* The deserialization information for the current model
|
|
28
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
29
|
+
*/
|
|
30
|
+
function deserializeIntoUnfavoritePostRequestBody(unfavoritePostRequestBody = {}) {
|
|
31
|
+
return {
|
|
32
|
+
"backingStoreEnabled": n => { unfavoritePostRequestBody.backingStoreEnabled = true; },
|
|
33
|
+
"messageIds": n => { unfavoritePostRequestBody.messageIds = n.getCollectionOfPrimitiveValues(); },
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.deserializeIntoUnfavoritePostRequestBody = deserializeIntoUnfavoritePostRequestBody;
|
|
37
|
+
/**
|
|
38
|
+
* The deserialization information for the current model
|
|
39
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
40
|
+
*/
|
|
41
|
+
function deserializeIntoUnfavoritePostResponse(unfavoritePostResponse = {}) {
|
|
42
|
+
return {
|
|
43
|
+
"backingStoreEnabled": n => { unfavoritePostResponse.backingStoreEnabled = true; },
|
|
44
|
+
"value": n => { unfavoritePostResponse.value = n.getBooleanValue(); },
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.deserializeIntoUnfavoritePostResponse = deserializeIntoUnfavoritePostResponse;
|
|
48
|
+
/**
|
|
49
|
+
* Serializes information the current object
|
|
50
|
+
* @param writer Serialization writer to use to serialize this model
|
|
51
|
+
*/
|
|
52
|
+
function serializeUnfavoritePostRequestBody(writer, unfavoritePostRequestBody = {}) {
|
|
53
|
+
writer.writeCollectionOfPrimitiveValues("messageIds", unfavoritePostRequestBody.messageIds);
|
|
54
|
+
writer.writeAdditionalData(unfavoritePostRequestBody.additionalData);
|
|
55
|
+
}
|
|
56
|
+
exports.serializeUnfavoritePostRequestBody = serializeUnfavoritePostRequestBody;
|
|
57
|
+
/**
|
|
58
|
+
* Serializes information the current object
|
|
59
|
+
* @param writer Serialization writer to use to serialize this model
|
|
60
|
+
*/
|
|
61
|
+
function serializeUnfavoritePostResponse(writer, unfavoritePostResponse = {}) {
|
|
62
|
+
writer.writeBooleanValue("value", unfavoritePostResponse.value);
|
|
63
|
+
writer.writeAdditionalData(unfavoritePostResponse.additionalData);
|
|
64
|
+
}
|
|
65
|
+
exports.serializeUnfavoritePostResponse = serializeUnfavoritePostResponse;
|
|
66
|
+
/**
|
|
67
|
+
* Metadata for all the requests in the request builder.
|
|
68
|
+
*/
|
|
69
|
+
exports.UnfavoriteRequestBuilderRequestsMetadata = {
|
|
70
|
+
post: {
|
|
71
|
+
responseBodyContentType: "application/json",
|
|
72
|
+
errorMappings: {
|
|
73
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
74
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
75
|
+
},
|
|
76
|
+
adapterMethodName: "sendAsync",
|
|
77
|
+
responseBodyFactory: createUnfavoritePostResponseFromDiscriminatorValue,
|
|
78
|
+
requestBodyContentType: "application/json",
|
|
79
|
+
requestBodySerializer: serializeUnfavoritePostRequestBody,
|
|
80
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Uri template for the request builder.
|
|
85
|
+
*/
|
|
86
|
+
exports.UnfavoriteRequestBuilderUriTemplate = "{+baseurl}/admin/serviceAnnouncement/messages/unfavorite";
|
|
87
|
+
/* tslint:enable */
|
|
88
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type Sharepoint } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type SettingsRequestBuilder } from './settings/';
|
|
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 sharepoint property of the microsoft.graph.admin entity.
|
|
6
|
+
*/
|
|
7
|
+
export interface SharepointRequestBuilder extends BaseRequestBuilder<SharepointRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* Provides operations to manage the settings property of the microsoft.graph.sharepoint entity.
|
|
10
|
+
*/
|
|
11
|
+
get settings(): SettingsRequestBuilder;
|
|
12
|
+
/**
|
|
13
|
+
* Delete navigation property sharepoint 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
|
+
* Get sharepoint from admin
|
|
19
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
20
|
+
* @returns a Promise of Sharepoint
|
|
21
|
+
*/
|
|
22
|
+
get(requestConfiguration?: RequestConfiguration<SharepointRequestBuilderGetQueryParameters> | undefined): Promise<Sharepoint | undefined>;
|
|
23
|
+
/**
|
|
24
|
+
* Update the navigation property sharepoint in admin
|
|
25
|
+
* @param body The request body
|
|
26
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
27
|
+
* @returns a Promise of Sharepoint
|
|
28
|
+
*/
|
|
29
|
+
patch(body: Sharepoint, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Sharepoint | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Delete navigation property sharepoint for admin
|
|
32
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
33
|
+
* @returns a RequestInformation
|
|
34
|
+
*/
|
|
35
|
+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
36
|
+
/**
|
|
37
|
+
* Get sharepoint from admin
|
|
38
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
39
|
+
* @returns a RequestInformation
|
|
40
|
+
*/
|
|
41
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<SharepointRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
42
|
+
/**
|
|
43
|
+
* Update the navigation property sharepoint in admin
|
|
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
|
+
toPatchRequestInformation(body: Sharepoint, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get sharepoint from admin
|
|
52
|
+
*/
|
|
53
|
+
export interface SharepointRequestBuilderGetQueryParameters {
|
|
54
|
+
/**
|
|
55
|
+
* Expand related entities
|
|
56
|
+
*/
|
|
57
|
+
expand?: string[];
|
|
58
|
+
/**
|
|
59
|
+
* Select properties to be returned
|
|
60
|
+
*/
|
|
61
|
+
select?: string[];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Metadata for all the navigation properties in the request builder.
|
|
65
|
+
*/
|
|
66
|
+
export declare const SharepointRequestBuilderNavigationMetadata: Record<Exclude<keyof SharepointRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
67
|
+
/**
|
|
68
|
+
* Metadata for all the requests in the request builder.
|
|
69
|
+
*/
|
|
70
|
+
export declare const SharepointRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
71
|
+
/**
|
|
72
|
+
* Uri template for the request builder.
|
|
73
|
+
*/
|
|
74
|
+
export declare const SharepointRequestBuilderUriTemplate = "{+baseurl}/admin/sharepoint{?%24select,%24expand}";
|
|
75
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAA+D,KAAK,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE9H,OAAO,EAA6E,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrI,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,wBAAyB,SAAQ,kBAAkB,CAAC,wBAAwB,CAAC;IAC1F;;OAEG;IACH,IAAI,QAAQ,IAAI,sBAAsB,CAAC;IACvC;;;OAGG;IACF,MAAM,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzF;;;;OAIG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,0CAA0C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IAC5I;;;;;OAKG;IACF,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IAC5H;;;;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,0CAA0C,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IACnJ;;;;;OAKG;IACF,yBAAyB,CAAC,IAAI,EAAE,UAAU,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACtI;AACD;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACvD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAQD;;GAEG;AACH,eAAO,MAAM,0CAA0C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,wBAAwB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAK9J,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,wCAAwC,EAAE,gBA+BtD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,mCAAmC,sDAAsD,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SharepointRequestBuilderUriTemplate = exports.SharepointRequestBuilderRequestsMetadata = exports.SharepointRequestBuilderNavigationMetadata = 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 settings_1 = require("./settings/");
|
|
10
|
+
/**
|
|
11
|
+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
|
|
12
|
+
*/
|
|
13
|
+
const SharepointRequestBuilderGetQueryParametersMapper = {
|
|
14
|
+
"expand": "%24expand",
|
|
15
|
+
"select": "%24select",
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Metadata for all the navigation properties in the request builder.
|
|
19
|
+
*/
|
|
20
|
+
exports.SharepointRequestBuilderNavigationMetadata = {
|
|
21
|
+
settings: {
|
|
22
|
+
uriTemplate: settings_1.SettingsRequestBuilderUriTemplate,
|
|
23
|
+
requestsMetadata: settings_1.SettingsRequestBuilderRequestsMetadata,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Metadata for all the requests in the request builder.
|
|
28
|
+
*/
|
|
29
|
+
exports.SharepointRequestBuilderRequestsMetadata = {
|
|
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.createSharepointFromDiscriminatorValue,
|
|
46
|
+
queryParametersMapper: SharepointRequestBuilderGetQueryParametersMapper,
|
|
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.createSharepointFromDiscriminatorValue,
|
|
56
|
+
requestBodyContentType: "application/json",
|
|
57
|
+
requestBodySerializer: models_1.serializeSharepoint,
|
|
58
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Uri template for the request builder.
|
|
63
|
+
*/
|
|
64
|
+
exports.SharepointRequestBuilderUriTemplate = "{+baseurl}/admin/sharepoint{?%24select,%24expand}";
|
|
65
|
+
/* tslint:enable */
|
|
66
|
+
/* eslint-enable */
|