"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MessageItemRequestBuilderRequestsMetadata = exports.MessageItemRequestBuilderNavigationMetadata = exports.MessageItemRequestBuilderUriTemplate = void 0;
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
const models_1 = require("@microsoft/msgraph-beta-sdk/models/");
const oDataErrors_1 = require("@microsoft/msgraph-beta-sdk/models/oDataErrors/");
const attachments_1 = require("./attachments/");
const copy_1 = require("./copy/");
const createForward_1 = require("./createForward/");
const createReply_1 = require("./createReply/");
const createReplyAll_1 = require("./createReplyAll/");
const extensions_1 = require("./extensions/");
const forward_1 = require("./forward/");
const markAsJunk_1 = require("./markAsJunk/");
const markAsNotJunk_1 = require("./markAsNotJunk/");
const mentions_1 = require("./mentions/");
const move_1 = require("./move/");
const reply_1 = require("./reply/");
const replyAll_1 = require("./replyAll/");
const send_1 = require("./send/");
const unsubscribe_1 = require("./unsubscribe/");
const value_1 = require("./value/");
/**
 * Uri template for the request builder.
 */
exports.MessageItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}{?%24expand,%24select}";
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const MessageItemRequestBuilderGetQueryParametersMapper = {
    "expand": "%24expand",
    "select": "%24select",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
exports.MessageItemRequestBuilderNavigationMetadata = {
    attachments: {
        requestsMetadata: attachments_1.AttachmentsRequestBuilderRequestsMetadata,
        navigationMetadata: attachments_1.AttachmentsRequestBuilderNavigationMetadata,
    },
    content: {
        requestsMetadata: value_1.ContentRequestBuilderRequestsMetadata,
    },
    copy: {
        requestsMetadata: copy_1.CopyRequestBuilderRequestsMetadata,
    },
    createForward: {
        requestsMetadata: createForward_1.CreateForwardRequestBuilderRequestsMetadata,
    },
    createReply: {
        requestsMetadata: createReply_1.CreateReplyRequestBuilderRequestsMetadata,
    },
    createReplyAll: {
        requestsMetadata: createReplyAll_1.CreateReplyAllRequestBuilderRequestsMetadata,
    },
    extensions: {
        requestsMetadata: extensions_1.ExtensionsRequestBuilderRequestsMetadata,
        navigationMetadata: extensions_1.ExtensionsRequestBuilderNavigationMetadata,
    },
    forward: {
        requestsMetadata: forward_1.ForwardRequestBuilderRequestsMetadata,
    },
    markAsJunk: {
        requestsMetadata: markAsJunk_1.MarkAsJunkRequestBuilderRequestsMetadata,
    },
    markAsNotJunk: {
        requestsMetadata: markAsNotJunk_1.MarkAsNotJunkRequestBuilderRequestsMetadata,
    },
    mentions: {
        requestsMetadata: mentions_1.MentionsRequestBuilderRequestsMetadata,
        navigationMetadata: mentions_1.MentionsRequestBuilderNavigationMetadata,
    },
    move: {
        requestsMetadata: move_1.MoveRequestBuilderRequestsMetadata,
    },
    reply: {
        requestsMetadata: reply_1.ReplyRequestBuilderRequestsMetadata,
    },
    replyAll: {
        requestsMetadata: replyAll_1.ReplyAllRequestBuilderRequestsMetadata,
    },
    send: {
        requestsMetadata: send_1.SendRequestBuilderRequestsMetadata,
    },
    unsubscribe: {
        requestsMetadata: unsubscribe_1.UnsubscribeRequestBuilderRequestsMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.MessageItemRequestBuilderRequestsMetadata = {
    delete: {
        uriTemplate: exports.MessageItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContent",
    },
    get: {
        uriTemplate: exports.MessageItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createMessageFromDiscriminatorValue,
        queryParametersMapper: MessageItemRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        uriTemplate: exports.MessageItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createMessageFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializeMessage,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
