"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UsersRequestBuilderUriTemplate = exports.UsersRequestBuilderRequestsMetadata = exports.UsersRequestBuilderNavigationMetadata = 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 count_1 = require("./count/");
const delta_1 = require("./delta/");
const getByIds_1 = require("./getByIds/");
const getManagedAppBlockedUsers_1 = require("./getManagedAppBlockedUsers/");
const getUserOwnedObjects_1 = require("./getUserOwnedObjects/");
const item_1 = require("./item/");
const validatePassword_1 = require("./validatePassword/");
const validateProperties_1 = require("./validateProperties/");
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const UsersRequestBuilderGetQueryParametersMapper = {
    "count": "%24count",
    "expand": "%24expand",
    "filter": "%24filter",
    "orderby": "%24orderby",
    "search": "%24search",
    "select": "%24select",
    "top": "%24top",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
exports.UsersRequestBuilderNavigationMetadata = {
    byUserId: {
        uriTemplate: item_1.UserItemRequestBuilderUriTemplate,
        requestsMetadata: item_1.UserItemRequestBuilderRequestsMetadata,
        navigationMetadata: item_1.UserItemRequestBuilderNavigationMetadata,
        pathParametersMappings: ["user%2Did"],
    },
    count: {
        uriTemplate: count_1.CountRequestBuilderUriTemplate,
        requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
    },
    delta: {
        uriTemplate: delta_1.DeltaRequestBuilderUriTemplate,
        requestsMetadata: delta_1.DeltaRequestBuilderRequestsMetadata,
    },
    getByIds: {
        uriTemplate: getByIds_1.GetByIdsRequestBuilderUriTemplate,
        requestsMetadata: getByIds_1.GetByIdsRequestBuilderRequestsMetadata,
    },
    getManagedAppBlockedUsers: {
        uriTemplate: getManagedAppBlockedUsers_1.GetManagedAppBlockedUsersRequestBuilderUriTemplate,
        requestsMetadata: getManagedAppBlockedUsers_1.GetManagedAppBlockedUsersRequestBuilderRequestsMetadata,
    },
    getUserOwnedObjects: {
        uriTemplate: getUserOwnedObjects_1.GetUserOwnedObjectsRequestBuilderUriTemplate,
        requestsMetadata: getUserOwnedObjects_1.GetUserOwnedObjectsRequestBuilderRequestsMetadata,
    },
    validatePassword: {
        uriTemplate: validatePassword_1.ValidatePasswordRequestBuilderUriTemplate,
        requestsMetadata: validatePassword_1.ValidatePasswordRequestBuilderRequestsMetadata,
    },
    validateProperties: {
        uriTemplate: validateProperties_1.ValidatePropertiesRequestBuilderUriTemplate,
        requestsMetadata: validateProperties_1.ValidatePropertiesRequestBuilderRequestsMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.UsersRequestBuilderRequestsMetadata = {
    get: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: models_1.createUserCollectionResponseFromDiscriminatorValue,
        queryParametersMapper: UsersRequestBuilderGetQueryParametersMapper,
    },
    post: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: models_1.createUserFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializeUser,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/**
 * Uri template for the request builder.
 */
exports.UsersRequestBuilderUriTemplate = "{+baseurl}/users{?%24top,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
/* tslint:enable */
/* eslint-enable */
