UNPKG

@microsoft/msgraph-beta-sdk-users

Version:
76 lines 4.26 kB
/* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore import { createAttendeeBaseFromDiscriminatorValue, createMeetingLocationSuggestionsResultFromDiscriminatorValue, createTimeConstraintFromDiscriminatorValue, serializeAttendeeBase, serializeTimeConstraint } from '@microsoft/msgraph-beta-sdk/models/index.js'; // @ts-ignore import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js'; /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {FindMeetingLocationsPostRequestBody} */ // @ts-ignore export function createFindMeetingLocationsPostRequestBodyFromDiscriminatorValue(parseNode) { return deserializeIntoFindMeetingLocationsPostRequestBody; } /** * The deserialization information for the current model * @param FindMeetingLocationsPostRequestBody The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoFindMeetingLocationsPostRequestBody(findMeetingLocationsPostRequestBody = {}) { return { "allowFreeOnly": n => { findMeetingLocationsPostRequestBody.allowFreeOnly = n.getBooleanValue(); }, "attendees": n => { findMeetingLocationsPostRequestBody.attendees = n.getCollectionOfObjectValues(createAttendeeBaseFromDiscriminatorValue); }, "backingStoreEnabled": n => { findMeetingLocationsPostRequestBody.backingStoreEnabled = true; }, "maxCandidates": n => { findMeetingLocationsPostRequestBody.maxCandidates = n.getNumberValue(); }, "meetingDuration": n => { findMeetingLocationsPostRequestBody.meetingDuration = n.getDurationValue(); }, "query": n => { findMeetingLocationsPostRequestBody.query = n.getStringValue(); }, "timeConstraint": n => { findMeetingLocationsPostRequestBody.timeConstraint = n.getObjectValue(createTimeConstraintFromDiscriminatorValue); }, }; } /** * Serializes information the current object * @param FindMeetingLocationsPostRequestBody The instance to serialize from. * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param writer Serialization writer to use to serialize this model */ // @ts-ignore export function serializeFindMeetingLocationsPostRequestBody(writer, findMeetingLocationsPostRequestBody = {}, isSerializingDerivedType = false) { if (!findMeetingLocationsPostRequestBody || isSerializingDerivedType) { return; } writer.writeBooleanValue("allowFreeOnly", findMeetingLocationsPostRequestBody.allowFreeOnly); writer.writeCollectionOfObjectValues("attendees", findMeetingLocationsPostRequestBody.attendees, serializeAttendeeBase); writer.writeNumberValue("maxCandidates", findMeetingLocationsPostRequestBody.maxCandidates); writer.writeDurationValue("meetingDuration", findMeetingLocationsPostRequestBody.meetingDuration); writer.writeStringValue("query", findMeetingLocationsPostRequestBody.query); writer.writeObjectValue("timeConstraint", findMeetingLocationsPostRequestBody.timeConstraint, serializeTimeConstraint); writer.writeAdditionalData(findMeetingLocationsPostRequestBody.additionalData); } /** * Uri template for the request builder. */ export const FindMeetingLocationsRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/findMeetingLocations"; /** * Metadata for all the requests in the request builder. */ export const FindMeetingLocationsRequestBuilderRequestsMetadata = { post: { uriTemplate: FindMeetingLocationsRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "send", responseBodyFactory: createMeetingLocationSuggestionsResultFromDiscriminatorValue, requestBodyContentType: "application/json", requestBodySerializer: serializeFindMeetingLocationsPostRequestBody, requestInformationContentSetMethod: "setContentFromParsable", }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map