"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContactFolderItemRequestBuilderUriTemplate = exports.ContactFolderItemRequestBuilderRequestsMetadata = exports.ContactFolderItemRequestBuilderNavigationMetadata = 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 childFolders_1 = require("./childFolders/");
const contacts_1 = require("./contacts/");
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const ContactFolderItemRequestBuilderGetQueryParametersMapper = {
    "expand": "%24expand",
    "select": "%24select",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
exports.ContactFolderItemRequestBuilderNavigationMetadata = {
    childFolders: {
        uriTemplate: childFolders_1.ChildFoldersRequestBuilderUriTemplate,
        requestsMetadata: childFolders_1.ChildFoldersRequestBuilderRequestsMetadata,
        navigationMetadata: childFolders_1.ChildFoldersRequestBuilderNavigationMetadata,
    },
    contacts: {
        uriTemplate: contacts_1.ContactsRequestBuilderUriTemplate,
        requestsMetadata: contacts_1.ContactsRequestBuilderRequestsMetadata,
        navigationMetadata: contacts_1.ContactsRequestBuilderNavigationMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.ContactFolderItemRequestBuilderRequestsMetadata = {
    delete: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContentAsync",
    },
    get: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: models_1.createContactFolderFromDiscriminatorValue,
        queryParametersMapper: ContactFolderItemRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: models_1.createContactFolderFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializeContactFolder,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/**
 * Uri template for the request builder.
 */
exports.ContactFolderItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}{?%24select,%24expand}";
/* tslint:enable */
/* eslint-enable */
