"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChatMessageItemRequestBuilderRequestsMetadata = exports.ChatMessageItemRequestBuilderNavigationMetadata = exports.ChatMessageItemRequestBuilderUriTemplate = 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 hostedContents_1 = require("./hostedContents/");
const setReaction_1 = require("./setReaction/");
const softDelete_1 = require("./softDelete/");
const undoSoftDelete_1 = require("./undoSoftDelete/");
const unsetReaction_1 = require("./unsetReaction/");
/**
 * Uri template for the request builder.
 */
exports.ChatMessageItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24expand,%24select}";
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const ChatMessageItemRequestBuilderGetQueryParametersMapper = {
    "expand": "%24expand",
    "select": "%24select",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
exports.ChatMessageItemRequestBuilderNavigationMetadata = {
    hostedContents: {
        requestsMetadata: hostedContents_1.HostedContentsRequestBuilderRequestsMetadata,
        navigationMetadata: hostedContents_1.HostedContentsRequestBuilderNavigationMetadata,
    },
    setReaction: {
        requestsMetadata: setReaction_1.SetReactionRequestBuilderRequestsMetadata,
    },
    softDelete: {
        requestsMetadata: softDelete_1.SoftDeleteRequestBuilderRequestsMetadata,
    },
    undoSoftDelete: {
        requestsMetadata: undoSoftDelete_1.UndoSoftDeleteRequestBuilderRequestsMetadata,
    },
    unsetReaction: {
        requestsMetadata: unsetReaction_1.UnsetReactionRequestBuilderRequestsMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.ChatMessageItemRequestBuilderRequestsMetadata = {
    delete: {
        uriTemplate: exports.ChatMessageItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContent",
    },
    get: {
        uriTemplate: exports.ChatMessageItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createChatMessageFromDiscriminatorValue,
        queryParametersMapper: ChatMessageItemRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        uriTemplate: exports.ChatMessageItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createChatMessageFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializeChatMessage,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
