"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UsersRequestBuilderRequestsMetadata = exports.UsersRequestBuilderNavigationMetadata = exports.UsersRequestBuilderUriTemplate = 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/");
/**
 * Uri template for the request builder.
 */
exports.UsersRequestBuilderUriTemplate = "{+baseurl}/users{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24top}";
/**
 * 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: {
        requestsMetadata: item_1.UserItemRequestBuilderRequestsMetadata,
        navigationMetadata: item_1.UserItemRequestBuilderNavigationMetadata,
        pathParametersMappings: ["user%2Did"],
    },
    count: {
        requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
    },
    delta: {
        requestsMetadata: delta_1.DeltaRequestBuilderRequestsMetadata,
    },
    getByIds: {
        requestsMetadata: getByIds_1.GetByIdsRequestBuilderRequestsMetadata,
    },
    getManagedAppBlockedUsers: {
        requestsMetadata: getManagedAppBlockedUsers_1.GetManagedAppBlockedUsersRequestBuilderRequestsMetadata,
    },
    getUserOwnedObjects: {
        requestsMetadata: getUserOwnedObjects_1.GetUserOwnedObjectsRequestBuilderRequestsMetadata,
    },
    validatePassword: {
        requestsMetadata: validatePassword_1.ValidatePasswordRequestBuilderRequestsMetadata,
    },
    validateProperties: {
        requestsMetadata: validateProperties_1.ValidatePropertiesRequestBuilderRequestsMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.UsersRequestBuilderRequestsMetadata = {
    get: {
        uriTemplate: exports.UsersRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createUserCollectionResponseFromDiscriminatorValue,
        queryParametersMapper: UsersRequestBuilderGetQueryParametersMapper,
    },
    post: {
        uriTemplate: exports.UsersRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createUserFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializeUser,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
