"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChatItemRequestBuilderRequestsMetadata = exports.ChatItemRequestBuilderNavigationMetadata = exports.ChatItemRequestBuilderUriTemplate = 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 hideForUser_1 = require("./hideForUser/");
const installedApps_1 = require("./installedApps/");
const lastMessagePreview_1 = require("./lastMessagePreview/");
const markChatReadForUser_1 = require("./markChatReadForUser/");
const markChatUnreadForUser_1 = require("./markChatUnreadForUser/");
const members_1 = require("./members/");
const messages_1 = require("./messages/");
const operations_1 = require("./operations/");
const permissionGrants_1 = require("./permissionGrants/");
const pinnedMessages_1 = require("./pinnedMessages/");
const removeAllAccessForUser_1 = require("./removeAllAccessForUser/");
const sendActivityNotification_1 = require("./sendActivityNotification/");
const tabs_1 = require("./tabs/");
const unhideForUser_1 = require("./unhideForUser/");
/**
 * Uri template for the request builder.
 */
exports.ChatItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}{?%24expand,%24select}";
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const ChatItemRequestBuilderGetQueryParametersMapper = {
    "expand": "%24expand",
    "select": "%24select",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
exports.ChatItemRequestBuilderNavigationMetadata = {
    hideForUser: {
        requestsMetadata: hideForUser_1.HideForUserRequestBuilderRequestsMetadata,
    },
    installedApps: {
        requestsMetadata: installedApps_1.InstalledAppsRequestBuilderRequestsMetadata,
        navigationMetadata: installedApps_1.InstalledAppsRequestBuilderNavigationMetadata,
    },
    lastMessagePreview: {
        requestsMetadata: lastMessagePreview_1.LastMessagePreviewRequestBuilderRequestsMetadata,
    },
    markChatReadForUser: {
        requestsMetadata: markChatReadForUser_1.MarkChatReadForUserRequestBuilderRequestsMetadata,
    },
    markChatUnreadForUser: {
        requestsMetadata: markChatUnreadForUser_1.MarkChatUnreadForUserRequestBuilderRequestsMetadata,
    },
    members: {
        requestsMetadata: members_1.MembersRequestBuilderRequestsMetadata,
        navigationMetadata: members_1.MembersRequestBuilderNavigationMetadata,
    },
    messages: {
        requestsMetadata: messages_1.MessagesRequestBuilderRequestsMetadata,
        navigationMetadata: messages_1.MessagesRequestBuilderNavigationMetadata,
    },
    operations: {
        requestsMetadata: operations_1.OperationsRequestBuilderRequestsMetadata,
        navigationMetadata: operations_1.OperationsRequestBuilderNavigationMetadata,
    },
    permissionGrants: {
        requestsMetadata: permissionGrants_1.PermissionGrantsRequestBuilderRequestsMetadata,
        navigationMetadata: permissionGrants_1.PermissionGrantsRequestBuilderNavigationMetadata,
    },
    pinnedMessages: {
        requestsMetadata: pinnedMessages_1.PinnedMessagesRequestBuilderRequestsMetadata,
        navigationMetadata: pinnedMessages_1.PinnedMessagesRequestBuilderNavigationMetadata,
    },
    removeAllAccessForUser: {
        requestsMetadata: removeAllAccessForUser_1.RemoveAllAccessForUserRequestBuilderRequestsMetadata,
    },
    sendActivityNotification: {
        requestsMetadata: sendActivityNotification_1.SendActivityNotificationRequestBuilderRequestsMetadata,
    },
    tabs: {
        requestsMetadata: tabs_1.TabsRequestBuilderRequestsMetadata,
        navigationMetadata: tabs_1.TabsRequestBuilderNavigationMetadata,
    },
    unhideForUser: {
        requestsMetadata: unhideForUser_1.UnhideForUserRequestBuilderRequestsMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.ChatItemRequestBuilderRequestsMetadata = {
    delete: {
        uriTemplate: exports.ChatItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContent",
    },
    get: {
        uriTemplate: exports.ChatItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createChatFromDiscriminatorValue,
        queryParametersMapper: ChatItemRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        uriTemplate: exports.ChatItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createChatFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializeChat,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
