"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveOrganizationSettings = exports.organizationSettingsDefaults = exports.organizationSettings = exports.resolveUserProfile = exports.userProfileDefaults = exports.resolveUserIds = exports.userIdDefaults = exports.credentials = exports.users = void 0;
require("./env-bootstrap");
const credentials_1 = require("./credentials");
const user_ids_defaults_1 = require("./user-ids.defaults");
const user_profiles_1 = require("./user-profiles");
/**
 * Собирает полный набор констант роли (ID + профиль).
 * @param role — ключ роли в test-data
 */
function buildUserConstants(role) {
    return {
        ...(0, user_ids_defaults_1.resolveUserIds)(role),
        ...(0, user_profiles_1.resolveUserProfile)(role),
    };
}
/**
 * Единая точка доступа к данным тестовых пользователей:
 * - `admin` / `client` / … — credentials (email/password);
 * - `AdminConst` / `ClientConst` / … — постоянные ID и профиль организации.
 *
 * Предпочтительный путь в тестах: фикстура `userConstants` / `getUserConstants(role)`.
 */
exports.users = {
    admin: credentials_1.credentials.admin,
    client: credentials_1.credentials.client,
    bank: credentials_1.credentials.bank,
    agent: credentials_1.credentials.agent,
    debtor: credentials_1.credentials.debtor,
    AdminConst: buildUserConstants('admin'),
    ClientConst: buildUserConstants('client'),
    AgentConst: buildUserConstants('agent'),
    BankConst: buildUserConstants('bank'),
    DebtorConst: buildUserConstants('debtor'),
};
var credentials_2 = require("./credentials");
Object.defineProperty(exports, "credentials", { enumerable: true, get: function () { return credentials_2.credentials; } });
var user_ids_defaults_2 = require("./user-ids.defaults");
Object.defineProperty(exports, "userIdDefaults", { enumerable: true, get: function () { return user_ids_defaults_2.userIdDefaults; } });
Object.defineProperty(exports, "resolveUserIds", { enumerable: true, get: function () { return user_ids_defaults_2.resolveUserIds; } });
var user_profiles_2 = require("./user-profiles");
Object.defineProperty(exports, "userProfileDefaults", { enumerable: true, get: function () { return user_profiles_2.userProfileDefaults; } });
Object.defineProperty(exports, "resolveUserProfile", { enumerable: true, get: function () { return user_profiles_2.resolveUserProfile; } });
var organization_settings_1 = require("./organization-settings");
Object.defineProperty(exports, "organizationSettings", { enumerable: true, get: function () { return organization_settings_1.organizationSettings; } });
Object.defineProperty(exports, "organizationSettingsDefaults", { enumerable: true, get: function () { return organization_settings_1.organizationSettingsDefaults; } });
Object.defineProperty(exports, "resolveOrganizationSettings", { enumerable: true, get: function () { return organization_settings_1.resolveOrganizationSettings; } });
