@microsoft/msgraph-sdk-communications 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/communications/callRecords/count/index.d.ts +40 -0
- package/communications/callRecords/count/index.d.ts.map +1 -0
- package/communications/callRecords/count/index.js +35 -0
- package/communications/callRecords/index.d.ts +111 -0
- package/communications/callRecords/index.d.ts.map +1 -0
- package/communications/callRecords/index.js +81 -0
- package/communications/callRecords/item/index.d.ts +76 -0
- package/communications/callRecords/item/index.d.ts.map +1 -0
- package/communications/callRecords/item/index.js +67 -0
- package/communications/callRecords/item/sessions/count/index.d.ts +40 -0
- package/communications/callRecords/item/sessions/count/index.d.ts.map +1 -0
- package/communications/callRecords/item/sessions/count/index.js +35 -0
- package/communications/callRecords/item/sessions/index.d.ts +96 -0
- package/communications/callRecords/item/sessions/index.d.ts.map +1 -0
- package/communications/callRecords/item/sessions/index.js +71 -0
- package/communications/callRecords/item/sessions/item/index.d.ts +75 -0
- package/communications/callRecords/item/sessions/item/index.d.ts.map +1 -0
- package/communications/callRecords/item/sessions/item/index.js +67 -0
- package/communications/callRecords/item/sessions/item/segments/count/index.d.ts +40 -0
- package/communications/callRecords/item/sessions/item/segments/count/index.d.ts.map +1 -0
- package/communications/callRecords/item/sessions/item/segments/count/index.js +35 -0
- package/communications/callRecords/item/sessions/item/segments/index.d.ts +95 -0
- package/communications/callRecords/item/sessions/item/segments/index.d.ts.map +1 -0
- package/communications/callRecords/item/sessions/item/segments/index.js +70 -0
- package/communications/callRecords/item/sessions/item/segments/item/index.d.ts +66 -0
- package/communications/callRecords/item/sessions/item/segments/item/index.d.ts.map +1 -0
- package/communications/callRecords/item/sessions/item/segments/item/index.js +56 -0
- package/communications/callRecords/microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/index.d.ts +76 -0
- package/communications/callRecords/microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/index.d.ts.map +1 -0
- package/communications/callRecords/microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/index.js +66 -0
- package/communications/callRecords/microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/index.d.ts +76 -0
- package/communications/callRecords/microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/index.d.ts.map +1 -0
- package/communications/callRecords/microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/index.js +66 -0
- package/communications/calls/count/index.d.ts +40 -0
- package/communications/calls/count/index.d.ts.map +1 -0
- package/communications/calls/count/index.js +35 -0
- package/communications/calls/index.d.ts +101 -0
- package/communications/calls/index.d.ts.map +1 -0
- package/communications/calls/index.js +76 -0
- package/communications/calls/item/addLargeGalleryView/index.d.ts +61 -0
- package/communications/calls/item/addLargeGalleryView/index.d.ts.map +1 -0
- package/communications/calls/item/addLargeGalleryView/index.js +60 -0
- package/communications/calls/item/answer/index.d.ts +76 -0
- package/communications/calls/item/answer/index.d.ts.map +1 -0
- package/communications/calls/item/answer/index.js +68 -0
- package/communications/calls/item/audioRoutingGroups/count/index.d.ts +40 -0
- package/communications/calls/item/audioRoutingGroups/count/index.d.ts.map +1 -0
- package/communications/calls/item/audioRoutingGroups/count/index.js +35 -0
- package/communications/calls/item/audioRoutingGroups/index.d.ts +97 -0
- package/communications/calls/item/audioRoutingGroups/index.d.ts.map +1 -0
- package/communications/calls/item/audioRoutingGroups/index.js +70 -0
- package/communications/calls/item/audioRoutingGroups/item/index.d.ts +69 -0
- package/communications/calls/item/audioRoutingGroups/item/index.d.ts.map +1 -0
- package/communications/calls/item/audioRoutingGroups/item/index.js +56 -0
- package/communications/calls/item/cancelMediaProcessing/index.d.ts +61 -0
- package/communications/calls/item/cancelMediaProcessing/index.d.ts.map +1 -0
- package/communications/calls/item/cancelMediaProcessing/index.js +60 -0
- package/communications/calls/item/changeScreenSharingRole/index.d.ts +60 -0
- package/communications/calls/item/changeScreenSharingRole/index.d.ts.map +1 -0
- package/communications/calls/item/changeScreenSharingRole/index.js +59 -0
- package/communications/calls/item/contentSharingSessions/count/index.d.ts +40 -0
- package/communications/calls/item/contentSharingSessions/count/index.d.ts.map +1 -0
- package/communications/calls/item/contentSharingSessions/count/index.js +35 -0
- package/communications/calls/item/contentSharingSessions/index.d.ts +96 -0
- package/communications/calls/item/contentSharingSessions/index.d.ts.map +1 -0
- package/communications/calls/item/contentSharingSessions/index.js +70 -0
- package/communications/calls/item/contentSharingSessions/item/index.d.ts +67 -0
- package/communications/calls/item/contentSharingSessions/item/index.d.ts.map +1 -0
- package/communications/calls/item/contentSharingSessions/item/index.js +56 -0
- package/communications/calls/item/index.d.ts +167 -0
- package/communications/calls/item/index.d.ts.map +1 -0
- package/communications/calls/item/index.js +160 -0
- package/communications/calls/item/keepAlive/index.d.ts +27 -0
- package/communications/calls/item/keepAlive/index.d.ts.map +1 -0
- package/communications/calls/item/keepAlive/index.js +26 -0
- package/communications/calls/item/mute/index.d.ts +61 -0
- package/communications/calls/item/mute/index.d.ts.map +1 -0
- package/communications/calls/item/mute/index.js +60 -0
- package/communications/calls/item/operations/count/index.d.ts +40 -0
- package/communications/calls/item/operations/count/index.d.ts.map +1 -0
- package/communications/calls/item/operations/count/index.js +35 -0
- package/communications/calls/item/operations/index.d.ts +95 -0
- package/communications/calls/item/operations/index.d.ts.map +1 -0
- package/communications/calls/item/operations/index.js +70 -0
- package/communications/calls/item/operations/item/index.d.ts +67 -0
- package/communications/calls/item/operations/item/index.d.ts.map +1 -0
- package/communications/calls/item/operations/item/index.js +56 -0
- package/communications/calls/item/participants/count/index.d.ts +40 -0
- package/communications/calls/item/participants/count/index.d.ts.map +1 -0
- package/communications/calls/item/participants/count/index.js +35 -0
- package/communications/calls/item/participants/index.d.ts +101 -0
- package/communications/calls/item/participants/index.d.ts.map +1 -0
- package/communications/calls/item/participants/index.js +76 -0
- package/communications/calls/item/participants/invite/index.d.ts +65 -0
- package/communications/calls/item/participants/invite/index.d.ts.map +1 -0
- package/communications/calls/item/participants/invite/index.js +62 -0
- package/communications/calls/item/participants/item/index.d.ts +87 -0
- package/communications/calls/item/participants/item/index.d.ts.map +1 -0
- package/communications/calls/item/participants/item/index.js +76 -0
- package/communications/calls/item/participants/item/mute/index.d.ts +61 -0
- package/communications/calls/item/participants/item/mute/index.d.ts.map +1 -0
- package/communications/calls/item/participants/item/mute/index.js +60 -0
- package/communications/calls/item/participants/item/startHoldMusic/index.d.ts +65 -0
- package/communications/calls/item/participants/item/startHoldMusic/index.d.ts.map +1 -0
- package/communications/calls/item/participants/item/startHoldMusic/index.js +62 -0
- package/communications/calls/item/participants/item/stopHoldMusic/index.d.ts +61 -0
- package/communications/calls/item/participants/item/stopHoldMusic/index.d.ts.map +1 -0
- package/communications/calls/item/participants/item/stopHoldMusic/index.js +60 -0
- package/communications/calls/item/playPrompt/index.d.ts +65 -0
- package/communications/calls/item/playPrompt/index.d.ts.map +1 -0
- package/communications/calls/item/playPrompt/index.js +62 -0
- package/communications/calls/item/recordResponse/index.d.ts +89 -0
- package/communications/calls/item/recordResponse/index.d.ts.map +1 -0
- package/communications/calls/item/recordResponse/index.js +74 -0
- package/communications/calls/item/redirect/index.d.ts +68 -0
- package/communications/calls/item/redirect/index.d.ts.map +1 -0
- package/communications/calls/item/redirect/index.js +63 -0
- package/communications/calls/item/reject/index.d.ts +64 -0
- package/communications/calls/item/reject/index.d.ts.map +1 -0
- package/communications/calls/item/reject/index.js +61 -0
- package/communications/calls/item/sendDtmfTones/index.d.ts +68 -0
- package/communications/calls/item/sendDtmfTones/index.d.ts.map +1 -0
- package/communications/calls/item/sendDtmfTones/index.js +65 -0
- package/communications/calls/item/subscribeToTone/index.d.ts +61 -0
- package/communications/calls/item/subscribeToTone/index.d.ts.map +1 -0
- package/communications/calls/item/subscribeToTone/index.js +60 -0
- package/communications/calls/item/transfer/index.d.ts +64 -0
- package/communications/calls/item/transfer/index.d.ts.map +1 -0
- package/communications/calls/item/transfer/index.js +61 -0
- package/communications/calls/item/unmute/index.d.ts +61 -0
- package/communications/calls/item/unmute/index.d.ts.map +1 -0
- package/communications/calls/item/unmute/index.js +60 -0
- package/communications/calls/item/updateRecordingStatus/index.d.ts +65 -0
- package/communications/calls/item/updateRecordingStatus/index.d.ts.map +1 -0
- package/communications/calls/item/updateRecordingStatus/index.js +62 -0
- package/communications/calls/logTeleconferenceDeviceQuality/index.d.ts +60 -0
- package/communications/calls/logTeleconferenceDeviceQuality/index.d.ts.map +1 -0
- package/communications/calls/logTeleconferenceDeviceQuality/index.js +59 -0
- package/communications/getPresencesByUserId/index.d.ts +83 -0
- package/communications/getPresencesByUserId/index.d.ts.map +1 -0
- package/communications/getPresencesByUserId/index.js +86 -0
- package/communications/index.d.ts +84 -0
- package/communications/index.d.ts.map +1 -0
- package/communications/index.js +82 -0
- package/communications/onlineMeetings/count/index.d.ts +40 -0
- package/communications/onlineMeetings/count/index.d.ts.map +1 -0
- package/communications/onlineMeetings/count/index.js +35 -0
- package/communications/onlineMeetings/createOrGet/index.d.ts +81 -0
- package/communications/onlineMeetings/createOrGet/index.d.ts.map +1 -0
- package/communications/onlineMeetings/createOrGet/index.js +70 -0
- package/communications/onlineMeetings/index.d.ts +101 -0
- package/communications/onlineMeetings/index.d.ts.map +1 -0
- package/communications/onlineMeetings/index.js +76 -0
- package/communications/onlineMeetings/item/attendanceReports/count/index.d.ts +40 -0
- package/communications/onlineMeetings/item/attendanceReports/count/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/attendanceReports/count/index.js +35 -0
- package/communications/onlineMeetings/item/attendanceReports/index.d.ts +95 -0
- package/communications/onlineMeetings/item/attendanceReports/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/attendanceReports/index.js +71 -0
- package/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/count/index.d.ts +40 -0
- package/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/count/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/count/index.js +35 -0
- package/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/index.d.ts +96 -0
- package/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/index.js +70 -0
- package/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/item/index.d.ts +66 -0
- package/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/item/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/item/index.js +56 -0
- package/communications/onlineMeetings/item/attendanceReports/item/index.d.ts +75 -0
- package/communications/onlineMeetings/item/attendanceReports/item/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/attendanceReports/item/index.js +67 -0
- package/communications/onlineMeetings/item/attendeeReport/index.d.ts +42 -0
- package/communications/onlineMeetings/item/attendeeReport/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/attendeeReport/index.js +38 -0
- package/communications/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/index.d.ts +57 -0
- package/communications/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/index.js +56 -0
- package/communications/onlineMeetings/item/index.d.ts +95 -0
- package/communications/onlineMeetings/item/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/index.js +89 -0
- package/communications/onlineMeetings/item/recordings/count/index.d.ts +40 -0
- package/communications/onlineMeetings/item/recordings/count/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/recordings/count/index.js +35 -0
- package/communications/onlineMeetings/item/recordings/index.d.ts +95 -0
- package/communications/onlineMeetings/item/recordings/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/recordings/index.js +71 -0
- package/communications/onlineMeetings/item/recordings/item/content/index.d.ts +42 -0
- package/communications/onlineMeetings/item/recordings/item/content/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/recordings/item/content/index.js +39 -0
- package/communications/onlineMeetings/item/recordings/item/index.d.ts +76 -0
- package/communications/onlineMeetings/item/recordings/item/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/recordings/item/index.js +66 -0
- package/communications/onlineMeetings/item/transcripts/count/index.d.ts +40 -0
- package/communications/onlineMeetings/item/transcripts/count/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/transcripts/count/index.js +35 -0
- package/communications/onlineMeetings/item/transcripts/index.d.ts +96 -0
- package/communications/onlineMeetings/item/transcripts/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/transcripts/index.js +71 -0
- package/communications/onlineMeetings/item/transcripts/item/content/index.d.ts +43 -0
- package/communications/onlineMeetings/item/transcripts/item/content/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/transcripts/item/content/index.js +39 -0
- package/communications/onlineMeetings/item/transcripts/item/index.d.ts +81 -0
- package/communications/onlineMeetings/item/transcripts/item/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/transcripts/item/index.js +71 -0
- package/communications/onlineMeetings/item/transcripts/item/metadataContent/index.d.ts +42 -0
- package/communications/onlineMeetings/item/transcripts/item/metadataContent/index.d.ts.map +1 -0
- package/communications/onlineMeetings/item/transcripts/item/metadataContent/index.js +38 -0
- package/communications/presences/count/index.d.ts +40 -0
- package/communications/presences/count/index.d.ts.map +1 -0
- package/communications/presences/count/index.js +35 -0
- package/communications/presences/index.d.ts +95 -0
- package/communications/presences/index.d.ts.map +1 -0
- package/communications/presences/index.js +71 -0
- package/communications/presences/item/clearPresence/index.d.ts +59 -0
- package/communications/presences/item/clearPresence/index.d.ts.map +1 -0
- package/communications/presences/item/clearPresence/index.js +58 -0
- package/communications/presences/item/clearUserPreferredPresence/index.d.ts +27 -0
- package/communications/presences/item/clearUserPreferredPresence/index.d.ts.map +1 -0
- package/communications/presences/item/clearUserPreferredPresence/index.js +26 -0
- package/communications/presences/item/index.d.ts +96 -0
- package/communications/presences/item/index.d.ts.map +1 -0
- package/communications/presences/item/index.js +86 -0
- package/communications/presences/item/setPresence/index.d.ts +71 -0
- package/communications/presences/item/setPresence/index.d.ts.map +1 -0
- package/communications/presences/item/setPresence/index.js +64 -0
- package/communications/presences/item/setStatusMessage/index.d.ts +60 -0
- package/communications/presences/item/setStatusMessage/index.d.ts.map +1 -0
- package/communications/presences/item/setStatusMessage/index.js +59 -0
- package/communications/presences/item/setUserPreferredPresence/index.d.ts +67 -0
- package/communications/presences/item/setUserPreferredPresence/index.d.ts.map +1 -0
- package/communications/presences/item/setUserPreferredPresence/index.js +62 -0
- package/communicationsServiceClient.d.ts +25 -0
- package/communicationsServiceClient.d.ts.map +1 -0
- package/communicationsServiceClient.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,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PresenceItemRequestBuilderUriTemplate = exports.PresenceItemRequestBuilderRequestsMetadata = exports.PresenceItemRequestBuilderNavigationMetadata = 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 clearPresence_1 = require("./clearPresence/");
|
|
10
|
+
const clearUserPreferredPresence_1 = require("./clearUserPreferredPresence/");
|
|
11
|
+
const setPresence_1 = require("./setPresence/");
|
|
12
|
+
const setStatusMessage_1 = require("./setStatusMessage/");
|
|
13
|
+
const setUserPreferredPresence_1 = require("./setUserPreferredPresence/");
|
|
14
|
+
/**
|
|
15
|
+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
|
|
16
|
+
*/
|
|
17
|
+
const PresenceItemRequestBuilderGetQueryParametersMapper = {
|
|
18
|
+
"expand": "%24expand",
|
|
19
|
+
"select": "%24select",
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Metadata for all the navigation properties in the request builder.
|
|
23
|
+
*/
|
|
24
|
+
exports.PresenceItemRequestBuilderNavigationMetadata = {
|
|
25
|
+
clearPresence: {
|
|
26
|
+
uriTemplate: clearPresence_1.ClearPresenceRequestBuilderUriTemplate,
|
|
27
|
+
requestsMetadata: clearPresence_1.ClearPresenceRequestBuilderRequestsMetadata,
|
|
28
|
+
},
|
|
29
|
+
clearUserPreferredPresence: {
|
|
30
|
+
uriTemplate: clearUserPreferredPresence_1.ClearUserPreferredPresenceRequestBuilderUriTemplate,
|
|
31
|
+
requestsMetadata: clearUserPreferredPresence_1.ClearUserPreferredPresenceRequestBuilderRequestsMetadata,
|
|
32
|
+
},
|
|
33
|
+
setPresence: {
|
|
34
|
+
uriTemplate: setPresence_1.SetPresenceRequestBuilderUriTemplate,
|
|
35
|
+
requestsMetadata: setPresence_1.SetPresenceRequestBuilderRequestsMetadata,
|
|
36
|
+
},
|
|
37
|
+
setStatusMessage: {
|
|
38
|
+
uriTemplate: setStatusMessage_1.SetStatusMessageRequestBuilderUriTemplate,
|
|
39
|
+
requestsMetadata: setStatusMessage_1.SetStatusMessageRequestBuilderRequestsMetadata,
|
|
40
|
+
},
|
|
41
|
+
setUserPreferredPresence: {
|
|
42
|
+
uriTemplate: setUserPreferredPresence_1.SetUserPreferredPresenceRequestBuilderUriTemplate,
|
|
43
|
+
requestsMetadata: setUserPreferredPresence_1.SetUserPreferredPresenceRequestBuilderRequestsMetadata,
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Metadata for all the requests in the request builder.
|
|
48
|
+
*/
|
|
49
|
+
exports.PresenceItemRequestBuilderRequestsMetadata = {
|
|
50
|
+
delete: {
|
|
51
|
+
responseBodyContentType: "application/json",
|
|
52
|
+
errorMappings: {
|
|
53
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
54
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
55
|
+
},
|
|
56
|
+
adapterMethodName: "sendNoResponseContentAsync",
|
|
57
|
+
},
|
|
58
|
+
get: {
|
|
59
|
+
responseBodyContentType: "application/json",
|
|
60
|
+
errorMappings: {
|
|
61
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
62
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
63
|
+
},
|
|
64
|
+
adapterMethodName: "sendAsync",
|
|
65
|
+
responseBodyFactory: models_1.createPresenceFromDiscriminatorValue,
|
|
66
|
+
queryParametersMapper: PresenceItemRequestBuilderGetQueryParametersMapper,
|
|
67
|
+
},
|
|
68
|
+
patch: {
|
|
69
|
+
responseBodyContentType: "application/json",
|
|
70
|
+
errorMappings: {
|
|
71
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
72
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
73
|
+
},
|
|
74
|
+
adapterMethodName: "sendAsync",
|
|
75
|
+
responseBodyFactory: models_1.createPresenceFromDiscriminatorValue,
|
|
76
|
+
requestBodyContentType: "application/json",
|
|
77
|
+
requestBodySerializer: models_1.serializePresence,
|
|
78
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Uri template for the request builder.
|
|
83
|
+
*/
|
|
84
|
+
exports.PresenceItemRequestBuilderUriTemplate = "{+baseurl}/communications/presences/{presence%2Did}{?%24select,%24expand}";
|
|
85
|
+
/* tslint:enable */
|
|
86
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Duration, 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 setPresencePostRequestBody
|
|
6
|
+
*/
|
|
7
|
+
export declare function createSetPresencePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoSetPresencePostRequestBody;
|
|
8
|
+
/**
|
|
9
|
+
* The deserialization information for the current model
|
|
10
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
11
|
+
*/
|
|
12
|
+
export declare function deserializeIntoSetPresencePostRequestBody(setPresencePostRequestBody?: SetPresencePostRequestBody | undefined): Record<string, (node: ParseNode) => void>;
|
|
13
|
+
/**
|
|
14
|
+
* Serializes information the current object
|
|
15
|
+
* @param writer Serialization writer to use to serialize this model
|
|
16
|
+
*/
|
|
17
|
+
export declare function serializeSetPresencePostRequestBody(writer: SerializationWriter, setPresencePostRequestBody?: SetPresencePostRequestBody | undefined): void;
|
|
18
|
+
export interface SetPresencePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
19
|
+
/**
|
|
20
|
+
* The activity property
|
|
21
|
+
*/
|
|
22
|
+
activity?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
25
|
+
*/
|
|
26
|
+
additionalData?: Record<string, unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* The availability property
|
|
29
|
+
*/
|
|
30
|
+
availability?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Stores model information.
|
|
33
|
+
*/
|
|
34
|
+
backingStoreEnabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The expirationDuration property
|
|
37
|
+
*/
|
|
38
|
+
expirationDuration?: Duration;
|
|
39
|
+
/**
|
|
40
|
+
* The sessionId property
|
|
41
|
+
*/
|
|
42
|
+
sessionId?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Provides operations to call the setPresence method.
|
|
46
|
+
*/
|
|
47
|
+
export interface SetPresenceRequestBuilder extends BaseRequestBuilder<SetPresenceRequestBuilder> {
|
|
48
|
+
/**
|
|
49
|
+
* Set the state of a user's presence session as an application.
|
|
50
|
+
* @param body The request body
|
|
51
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
52
|
+
* @see {@link https://learn.microsoft.com/graph/api/presence-setpresence?view=graph-rest-1.0|Find more info here}
|
|
53
|
+
*/
|
|
54
|
+
post(body: SetPresencePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Set the state of a user's presence session as an application.
|
|
57
|
+
* @param body The request body
|
|
58
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
59
|
+
* @returns a RequestInformation
|
|
60
|
+
*/
|
|
61
|
+
toPostRequestInformation(body: SetPresencePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Metadata for all the requests in the request builder.
|
|
65
|
+
*/
|
|
66
|
+
export declare const SetPresenceRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
67
|
+
/**
|
|
68
|
+
* Uri template for the request builder.
|
|
69
|
+
*/
|
|
70
|
+
export declare const SetPresenceRequestBuilderUriTemplate = "{+baseurl}/communications/presences/{presence%2Did}/setPresence";
|
|
71
|
+
//# 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,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEjT;;;;GAIG;AACH,wBAAgB,sDAAsD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,oDAEtG;AACD;;;GAGG;AACH,wBAAgB,yCAAyC,CAAC,0BAA0B,GAAE,0BAA0B,GAAG,SAA4C,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAQ3M;AACD;;;GAGG;AACH,wBAAgB,mCAAmC,CAAC,MAAM,EAAE,mBAAmB,EAAE,0BAA0B,GAAE,0BAA0B,GAAG,SAA4C,GAAI,IAAI,CAM7L;AACD,MAAM,WAAW,0BAA2B,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IAC3F;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,kBAAkB,CAAC,EAAE,QAAQ,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AACD;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB,CAAC,yBAAyB,CAAC;IAC5F;;;;;OAKG;IACF,IAAI,CAAC,IAAI,EAAE,0BAA0B,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzH;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,0BAA0B,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACrJ;AACD;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,gBAYvD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,oCAAoC,oEAAoE,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetPresenceRequestBuilderUriTemplate = exports.SetPresenceRequestBuilderRequestsMetadata = exports.serializeSetPresencePostRequestBody = exports.deserializeIntoSetPresencePostRequestBody = exports.createSetPresencePostRequestBodyFromDiscriminatorValue = 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 setPresencePostRequestBody
|
|
12
|
+
*/
|
|
13
|
+
function createSetPresencePostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
14
|
+
return deserializeIntoSetPresencePostRequestBody;
|
|
15
|
+
}
|
|
16
|
+
exports.createSetPresencePostRequestBodyFromDiscriminatorValue = createSetPresencePostRequestBodyFromDiscriminatorValue;
|
|
17
|
+
/**
|
|
18
|
+
* The deserialization information for the current model
|
|
19
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
20
|
+
*/
|
|
21
|
+
function deserializeIntoSetPresencePostRequestBody(setPresencePostRequestBody = {}) {
|
|
22
|
+
return {
|
|
23
|
+
"activity": n => { setPresencePostRequestBody.activity = n.getStringValue(); },
|
|
24
|
+
"availability": n => { setPresencePostRequestBody.availability = n.getStringValue(); },
|
|
25
|
+
"backingStoreEnabled": n => { setPresencePostRequestBody.backingStoreEnabled = true; },
|
|
26
|
+
"expirationDuration": n => { setPresencePostRequestBody.expirationDuration = n.getDurationValue(); },
|
|
27
|
+
"sessionId": n => { setPresencePostRequestBody.sessionId = n.getStringValue(); },
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.deserializeIntoSetPresencePostRequestBody = deserializeIntoSetPresencePostRequestBody;
|
|
31
|
+
/**
|
|
32
|
+
* Serializes information the current object
|
|
33
|
+
* @param writer Serialization writer to use to serialize this model
|
|
34
|
+
*/
|
|
35
|
+
function serializeSetPresencePostRequestBody(writer, setPresencePostRequestBody = {}) {
|
|
36
|
+
writer.writeStringValue("activity", setPresencePostRequestBody.activity);
|
|
37
|
+
writer.writeStringValue("availability", setPresencePostRequestBody.availability);
|
|
38
|
+
writer.writeDurationValue("expirationDuration", setPresencePostRequestBody.expirationDuration);
|
|
39
|
+
writer.writeStringValue("sessionId", setPresencePostRequestBody.sessionId);
|
|
40
|
+
writer.writeAdditionalData(setPresencePostRequestBody.additionalData);
|
|
41
|
+
}
|
|
42
|
+
exports.serializeSetPresencePostRequestBody = serializeSetPresencePostRequestBody;
|
|
43
|
+
/**
|
|
44
|
+
* Metadata for all the requests in the request builder.
|
|
45
|
+
*/
|
|
46
|
+
exports.SetPresenceRequestBuilderRequestsMetadata = {
|
|
47
|
+
post: {
|
|
48
|
+
responseBodyContentType: "application/json",
|
|
49
|
+
errorMappings: {
|
|
50
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
51
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
52
|
+
},
|
|
53
|
+
adapterMethodName: "sendNoResponseContentAsync",
|
|
54
|
+
requestBodyContentType: "application/json",
|
|
55
|
+
requestBodySerializer: serializeSetPresencePostRequestBody,
|
|
56
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Uri template for the request builder.
|
|
61
|
+
*/
|
|
62
|
+
exports.SetPresenceRequestBuilderUriTemplate = "{+baseurl}/communications/presences/{presence%2Did}/setPresence";
|
|
63
|
+
/* tslint:enable */
|
|
64
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type PresenceStatusMessage } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
5
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6
|
+
* @returns a setStatusMessagePostRequestBody
|
|
7
|
+
*/
|
|
8
|
+
export declare function createSetStatusMessagePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoSetStatusMessagePostRequestBody;
|
|
9
|
+
/**
|
|
10
|
+
* The deserialization information for the current model
|
|
11
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
12
|
+
*/
|
|
13
|
+
export declare function deserializeIntoSetStatusMessagePostRequestBody(setStatusMessagePostRequestBody?: SetStatusMessagePostRequestBody | undefined): Record<string, (node: ParseNode) => void>;
|
|
14
|
+
/**
|
|
15
|
+
* Serializes information the current object
|
|
16
|
+
* @param writer Serialization writer to use to serialize this model
|
|
17
|
+
*/
|
|
18
|
+
export declare function serializeSetStatusMessagePostRequestBody(writer: SerializationWriter, setStatusMessagePostRequestBody?: SetStatusMessagePostRequestBody | undefined): void;
|
|
19
|
+
export interface SetStatusMessagePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
20
|
+
/**
|
|
21
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
22
|
+
*/
|
|
23
|
+
additionalData?: Record<string, unknown>;
|
|
24
|
+
/**
|
|
25
|
+
* Stores model information.
|
|
26
|
+
*/
|
|
27
|
+
backingStoreEnabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The statusMessage property
|
|
30
|
+
*/
|
|
31
|
+
statusMessage?: PresenceStatusMessage;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Provides operations to call the setStatusMessage method.
|
|
35
|
+
*/
|
|
36
|
+
export interface SetStatusMessageRequestBuilder extends BaseRequestBuilder<SetStatusMessageRequestBuilder> {
|
|
37
|
+
/**
|
|
38
|
+
* Set a presence status message for a user. An optional expiration date and time can be supplied.
|
|
39
|
+
* @param body The request body
|
|
40
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
41
|
+
* @see {@link https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-1.0|Find more info here}
|
|
42
|
+
*/
|
|
43
|
+
post(body: SetStatusMessagePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Set a presence status message for a user. An optional expiration date and time can be supplied.
|
|
46
|
+
* @param body The request body
|
|
47
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
48
|
+
* @returns a RequestInformation
|
|
49
|
+
*/
|
|
50
|
+
toPostRequestInformation(body: SetStatusMessagePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Metadata for all the requests in the request builder.
|
|
54
|
+
*/
|
|
55
|
+
export declare const SetStatusMessageRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
56
|
+
/**
|
|
57
|
+
* Uri template for the request builder.
|
|
58
|
+
*/
|
|
59
|
+
export declare const SetStatusMessageRequestBuilderUriTemplate = "{+baseurl}/communications/presences/{presence%2Did}/setStatusMessage";
|
|
60
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqF,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE/J,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,2DAA2D,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,yDAE3G;AACD;;;GAGG;AACH,wBAAgB,8CAA8C,CAAC,+BAA+B,GAAE,+BAA+B,GAAG,SAAiD,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAK/N;AACD;;;GAGG;AACH,wBAAgB,wCAAwC,CAAC,MAAM,EAAE,mBAAmB,EAAE,+BAA+B,GAAE,+BAA+B,GAAG,SAAiD,GAAI,IAAI,CAGjN;AACD,MAAM,WAAW,+BAAgC,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IAChG;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACzC;AACD;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,kBAAkB,CAAC,8BAA8B,CAAC;IACtG;;;;;OAKG;IACF,IAAI,CAAC,IAAI,EAAE,+BAA+B,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9H;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,+BAA+B,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC1J;AACD;;GAEG;AACH,eAAO,MAAM,8CAA8C,EAAE,gBAY5D,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,yCAAyC,yEAAyE,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetStatusMessageRequestBuilderUriTemplate = exports.SetStatusMessageRequestBuilderRequestsMetadata = exports.serializeSetStatusMessagePostRequestBody = exports.deserializeIntoSetStatusMessagePostRequestBody = exports.createSetStatusMessagePostRequestBodyFromDiscriminatorValue = 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
|
+
/**
|
|
10
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
11
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
12
|
+
* @returns a setStatusMessagePostRequestBody
|
|
13
|
+
*/
|
|
14
|
+
function createSetStatusMessagePostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
15
|
+
return deserializeIntoSetStatusMessagePostRequestBody;
|
|
16
|
+
}
|
|
17
|
+
exports.createSetStatusMessagePostRequestBodyFromDiscriminatorValue = createSetStatusMessagePostRequestBodyFromDiscriminatorValue;
|
|
18
|
+
/**
|
|
19
|
+
* The deserialization information for the current model
|
|
20
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
21
|
+
*/
|
|
22
|
+
function deserializeIntoSetStatusMessagePostRequestBody(setStatusMessagePostRequestBody = {}) {
|
|
23
|
+
return {
|
|
24
|
+
"backingStoreEnabled": n => { setStatusMessagePostRequestBody.backingStoreEnabled = true; },
|
|
25
|
+
"statusMessage": n => { setStatusMessagePostRequestBody.statusMessage = n.getObjectValue(models_1.createPresenceStatusMessageFromDiscriminatorValue); },
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
exports.deserializeIntoSetStatusMessagePostRequestBody = deserializeIntoSetStatusMessagePostRequestBody;
|
|
29
|
+
/**
|
|
30
|
+
* Serializes information the current object
|
|
31
|
+
* @param writer Serialization writer to use to serialize this model
|
|
32
|
+
*/
|
|
33
|
+
function serializeSetStatusMessagePostRequestBody(writer, setStatusMessagePostRequestBody = {}) {
|
|
34
|
+
writer.writeObjectValue("statusMessage", setStatusMessagePostRequestBody.statusMessage, models_1.serializePresenceStatusMessage);
|
|
35
|
+
writer.writeAdditionalData(setStatusMessagePostRequestBody.additionalData);
|
|
36
|
+
}
|
|
37
|
+
exports.serializeSetStatusMessagePostRequestBody = serializeSetStatusMessagePostRequestBody;
|
|
38
|
+
/**
|
|
39
|
+
* Metadata for all the requests in the request builder.
|
|
40
|
+
*/
|
|
41
|
+
exports.SetStatusMessageRequestBuilderRequestsMetadata = {
|
|
42
|
+
post: {
|
|
43
|
+
responseBodyContentType: "application/json",
|
|
44
|
+
errorMappings: {
|
|
45
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
46
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
47
|
+
},
|
|
48
|
+
adapterMethodName: "sendNoResponseContentAsync",
|
|
49
|
+
requestBodyContentType: "application/json",
|
|
50
|
+
requestBodySerializer: serializeSetStatusMessagePostRequestBody,
|
|
51
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Uri template for the request builder.
|
|
56
|
+
*/
|
|
57
|
+
exports.SetStatusMessageRequestBuilderUriTemplate = "{+baseurl}/communications/presences/{presence%2Did}/setStatusMessage";
|
|
58
|
+
/* tslint:enable */
|
|
59
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Duration, 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 setUserPreferredPresencePostRequestBody
|
|
6
|
+
*/
|
|
7
|
+
export declare function createSetUserPreferredPresencePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoSetUserPreferredPresencePostRequestBody;
|
|
8
|
+
/**
|
|
9
|
+
* The deserialization information for the current model
|
|
10
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
11
|
+
*/
|
|
12
|
+
export declare function deserializeIntoSetUserPreferredPresencePostRequestBody(setUserPreferredPresencePostRequestBody?: SetUserPreferredPresencePostRequestBody | undefined): Record<string, (node: ParseNode) => void>;
|
|
13
|
+
/**
|
|
14
|
+
* Serializes information the current object
|
|
15
|
+
* @param writer Serialization writer to use to serialize this model
|
|
16
|
+
*/
|
|
17
|
+
export declare function serializeSetUserPreferredPresencePostRequestBody(writer: SerializationWriter, setUserPreferredPresencePostRequestBody?: SetUserPreferredPresencePostRequestBody | undefined): void;
|
|
18
|
+
export interface SetUserPreferredPresencePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
19
|
+
/**
|
|
20
|
+
* The activity property
|
|
21
|
+
*/
|
|
22
|
+
activity?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
25
|
+
*/
|
|
26
|
+
additionalData?: Record<string, unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* The availability property
|
|
29
|
+
*/
|
|
30
|
+
availability?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Stores model information.
|
|
33
|
+
*/
|
|
34
|
+
backingStoreEnabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The expirationDuration property
|
|
37
|
+
*/
|
|
38
|
+
expirationDuration?: Duration;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Provides operations to call the setUserPreferredPresence method.
|
|
42
|
+
*/
|
|
43
|
+
export interface SetUserPreferredPresenceRequestBuilder extends BaseRequestBuilder<SetUserPreferredPresenceRequestBuilder> {
|
|
44
|
+
/**
|
|
45
|
+
* Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration.
|
|
46
|
+
* @param body The request body
|
|
47
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
48
|
+
* @see {@link https://learn.microsoft.com/graph/api/presence-setuserpreferredpresence?view=graph-rest-1.0|Find more info here}
|
|
49
|
+
*/
|
|
50
|
+
post(body: SetUserPreferredPresencePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration.
|
|
53
|
+
* @param body The request body
|
|
54
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
55
|
+
* @returns a RequestInformation
|
|
56
|
+
*/
|
|
57
|
+
toPostRequestInformation(body: SetUserPreferredPresencePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Metadata for all the requests in the request builder.
|
|
61
|
+
*/
|
|
62
|
+
export declare const SetUserPreferredPresenceRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
63
|
+
/**
|
|
64
|
+
* Uri template for the request builder.
|
|
65
|
+
*/
|
|
66
|
+
export declare const SetUserPreferredPresenceRequestBuilderUriTemplate = "{+baseurl}/communications/presences/{presence%2Did}/setUserPreferredPresence";
|
|
67
|
+
//# 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,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEjT;;;;GAIG;AACH,wBAAgB,mEAAmE,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,iEAEnH;AACD;;;GAGG;AACH,wBAAgB,sDAAsD,CAAC,uCAAuC,GAAE,uCAAuC,GAAG,SAAyD,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAO/P;AACD;;;GAGG;AACH,wBAAgB,gDAAgD,CAAC,MAAM,EAAE,mBAAmB,EAAE,uCAAuC,GAAE,uCAAuC,GAAG,SAAyD,GAAI,IAAI,CAKjP;AACD,MAAM,WAAW,uCAAwC,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACxG;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,kBAAkB,CAAC,EAAE,QAAQ,CAAC;CACjC;AACD;;GAEG;AACH,MAAM,WAAW,sCAAuC,SAAQ,kBAAkB,CAAC,sCAAsC,CAAC;IACtH;;;;;OAKG;IACF,IAAI,CAAC,IAAI,EAAE,uCAAuC,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtI;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,uCAAuC,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAClK;AACD;;GAEG;AACH,eAAO,MAAM,sDAAsD,EAAE,gBAYpE,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,iDAAiD,iFAAiF,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetUserPreferredPresenceRequestBuilderUriTemplate = exports.SetUserPreferredPresenceRequestBuilderRequestsMetadata = exports.serializeSetUserPreferredPresencePostRequestBody = exports.deserializeIntoSetUserPreferredPresencePostRequestBody = exports.createSetUserPreferredPresencePostRequestBodyFromDiscriminatorValue = 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 setUserPreferredPresencePostRequestBody
|
|
12
|
+
*/
|
|
13
|
+
function createSetUserPreferredPresencePostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
14
|
+
return deserializeIntoSetUserPreferredPresencePostRequestBody;
|
|
15
|
+
}
|
|
16
|
+
exports.createSetUserPreferredPresencePostRequestBodyFromDiscriminatorValue = createSetUserPreferredPresencePostRequestBodyFromDiscriminatorValue;
|
|
17
|
+
/**
|
|
18
|
+
* The deserialization information for the current model
|
|
19
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
20
|
+
*/
|
|
21
|
+
function deserializeIntoSetUserPreferredPresencePostRequestBody(setUserPreferredPresencePostRequestBody = {}) {
|
|
22
|
+
return {
|
|
23
|
+
"activity": n => { setUserPreferredPresencePostRequestBody.activity = n.getStringValue(); },
|
|
24
|
+
"availability": n => { setUserPreferredPresencePostRequestBody.availability = n.getStringValue(); },
|
|
25
|
+
"backingStoreEnabled": n => { setUserPreferredPresencePostRequestBody.backingStoreEnabled = true; },
|
|
26
|
+
"expirationDuration": n => { setUserPreferredPresencePostRequestBody.expirationDuration = n.getDurationValue(); },
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
exports.deserializeIntoSetUserPreferredPresencePostRequestBody = deserializeIntoSetUserPreferredPresencePostRequestBody;
|
|
30
|
+
/**
|
|
31
|
+
* Serializes information the current object
|
|
32
|
+
* @param writer Serialization writer to use to serialize this model
|
|
33
|
+
*/
|
|
34
|
+
function serializeSetUserPreferredPresencePostRequestBody(writer, setUserPreferredPresencePostRequestBody = {}) {
|
|
35
|
+
writer.writeStringValue("activity", setUserPreferredPresencePostRequestBody.activity);
|
|
36
|
+
writer.writeStringValue("availability", setUserPreferredPresencePostRequestBody.availability);
|
|
37
|
+
writer.writeDurationValue("expirationDuration", setUserPreferredPresencePostRequestBody.expirationDuration);
|
|
38
|
+
writer.writeAdditionalData(setUserPreferredPresencePostRequestBody.additionalData);
|
|
39
|
+
}
|
|
40
|
+
exports.serializeSetUserPreferredPresencePostRequestBody = serializeSetUserPreferredPresencePostRequestBody;
|
|
41
|
+
/**
|
|
42
|
+
* Metadata for all the requests in the request builder.
|
|
43
|
+
*/
|
|
44
|
+
exports.SetUserPreferredPresenceRequestBuilderRequestsMetadata = {
|
|
45
|
+
post: {
|
|
46
|
+
responseBodyContentType: "application/json",
|
|
47
|
+
errorMappings: {
|
|
48
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
49
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
50
|
+
},
|
|
51
|
+
adapterMethodName: "sendNoResponseContentAsync",
|
|
52
|
+
requestBodyContentType: "application/json",
|
|
53
|
+
requestBodySerializer: serializeSetUserPreferredPresencePostRequestBody,
|
|
54
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Uri template for the request builder.
|
|
59
|
+
*/
|
|
60
|
+
exports.SetUserPreferredPresenceRequestBuilderUriTemplate = "{+baseurl}/communications/presences/{presence%2Did}/setUserPreferredPresence";
|
|
61
|
+
/* tslint:enable */
|
|
62
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type CommunicationsRequestBuilder } from './communications/';
|
|
2
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* The main entry point of the SDK, exposes the configuration and the fluent API.
|
|
5
|
+
*/
|
|
6
|
+
export interface CommunicationsServiceClient extends BaseRequestBuilder<CommunicationsServiceClient> {
|
|
7
|
+
/**
|
|
8
|
+
* Provides operations to manage the cloudCommunications singleton.
|
|
9
|
+
*/
|
|
10
|
+
get communications(): CommunicationsRequestBuilder;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Instantiates a new CommunicationsServiceClient and sets the default values.
|
|
14
|
+
* @param requestAdapter The request adapter to use to execute the requests.
|
|
15
|
+
*/
|
|
16
|
+
export declare function createCommunicationsServiceClient(requestAdapter: RequestAdapter): CommunicationsServiceClient;
|
|
17
|
+
/**
|
|
18
|
+
* Metadata for all the navigation properties in the request builder.
|
|
19
|
+
*/
|
|
20
|
+
export declare const CommunicationsServiceClientNavigationMetadata: Record<Exclude<keyof CommunicationsServiceClient, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
21
|
+
/**
|
|
22
|
+
* Uri template for the request builder.
|
|
23
|
+
*/
|
|
24
|
+
export declare const CommunicationsServiceClientUriTemplate = "{+baseurl}";
|
|
25
|
+
//# sourceMappingURL=communicationsServiceClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communicationsServiceClient.d.ts","sourceRoot":"","sources":["communicationsServiceClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyI,KAAK,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAC7M,OAAO,EAA8E,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAM3O;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,kBAAkB,CAAC,2BAA2B,CAAC;IAChG;;OAEG;IACH,IAAI,cAAc,IAAI,4BAA4B,CAAC;CACtD;AACD;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,cAAc,EAAE,cAAc,+BAe/E;AACD;;GAEG;AACH,eAAO,MAAM,6CAA6C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,2BAA2B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAMpK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,sCAAsC,eAAe,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommunicationsServiceClientUriTemplate = exports.CommunicationsServiceClientNavigationMetadata = exports.createCommunicationsServiceClient = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const communications_1 = require("./communications/");
|
|
8
|
+
const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
|
|
9
|
+
const kiota_serialization_form_1 = require("@microsoft/kiota-serialization-form");
|
|
10
|
+
const kiota_serialization_json_1 = require("@microsoft/kiota-serialization-json");
|
|
11
|
+
const kiota_serialization_multipart_1 = require("@microsoft/kiota-serialization-multipart");
|
|
12
|
+
const kiota_serialization_text_1 = require("@microsoft/kiota-serialization-text");
|
|
13
|
+
/**
|
|
14
|
+
* Instantiates a new CommunicationsServiceClient and sets the default values.
|
|
15
|
+
* @param requestAdapter The request adapter to use to execute the requests.
|
|
16
|
+
*/
|
|
17
|
+
function createCommunicationsServiceClient(requestAdapter) {
|
|
18
|
+
(0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_json_1.JsonSerializationWriterFactory);
|
|
19
|
+
(0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_text_1.TextSerializationWriterFactory);
|
|
20
|
+
(0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_form_1.FormSerializationWriterFactory);
|
|
21
|
+
(0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_multipart_1.MultipartSerializationWriterFactory);
|
|
22
|
+
(0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_json_1.JsonParseNodeFactory);
|
|
23
|
+
(0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_text_1.TextParseNodeFactory);
|
|
24
|
+
(0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_form_1.FormParseNodeFactory);
|
|
25
|
+
if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === "") {
|
|
26
|
+
requestAdapter.baseUrl = "https://graph.microsoft.com/v1.0";
|
|
27
|
+
}
|
|
28
|
+
const pathParameters = {
|
|
29
|
+
"baseurl": requestAdapter.baseUrl,
|
|
30
|
+
};
|
|
31
|
+
return (0, kiota_abstractions_1.apiClientProxifier)(requestAdapter, pathParameters, exports.CommunicationsServiceClientUriTemplate, exports.CommunicationsServiceClientNavigationMetadata, undefined);
|
|
32
|
+
}
|
|
33
|
+
exports.createCommunicationsServiceClient = createCommunicationsServiceClient;
|
|
34
|
+
/**
|
|
35
|
+
* Metadata for all the navigation properties in the request builder.
|
|
36
|
+
*/
|
|
37
|
+
exports.CommunicationsServiceClientNavigationMetadata = {
|
|
38
|
+
communications: {
|
|
39
|
+
uriTemplate: communications_1.CommunicationsRequestBuilderUriTemplate,
|
|
40
|
+
requestsMetadata: communications_1.CommunicationsRequestBuilderRequestsMetadata,
|
|
41
|
+
navigationMetadata: communications_1.CommunicationsRequestBuilderNavigationMetadata,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Uri template for the request builder.
|
|
46
|
+
*/
|
|
47
|
+
exports.CommunicationsServiceClientUriTemplate = "{+baseurl}";
|
|
48
|
+
/* tslint:enable */
|
|
49
|
+
/* eslint-enable */
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CommunicationsRequestBuilder } from "./communications";
|
|
2
|
+
declare module "@microsoft/msgraph-sdk" {
|
|
3
|
+
interface GraphServiceClient {
|
|
4
|
+
/**
|
|
5
|
+
* Provides operations to manage the communications singleton.
|
|
6
|
+
*/
|
|
7
|
+
get communications(): CommunicationsRequestBuilder;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export * from "./communicationsServiceClient";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAGrE,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAU,kBAAkB;QAC1B;;WAEG;QACH,IAAI,cAAc,IAAI,4BAA4B,CAAC;KACpD;CACF;AAED,cAAc,+BAA+B,CAAC"}
|
package/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
const msgraph_sdk_1 = require("@microsoft/msgraph-sdk");
|
|
18
|
+
const communicationsServiceClient_1 = require("./communicationsServiceClient");
|
|
19
|
+
(0, msgraph_sdk_1.extendGraphServiceClient)(communicationsServiceClient_1.CommunicationsServiceClientNavigationMetadata);
|
|
20
|
+
__exportStar(require("./communicationsServiceClient"), exports);
|