"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.settings = exports.smtp = exports.google = exports.oidc = void 0;
const backend_core_1 = require("@devlego/backend-core");
const types_1 = require("@devlego/types");
const oidc = (conf) => {
    return {
        type: types_1.ConfigType.OIDC,
        config: {
            configs: [
                Object.assign({ configUrl: "http://someconfigurl", clientID: "clientId", clientSecret: "clientSecret", logo: "Microsoft", name: "Active Directory", uuid: backend_core_1.utils.newid(), activated: true }, conf),
            ],
        },
    };
};
exports.oidc = oidc;
const google = (conf) => {
    return {
        type: types_1.ConfigType.GOOGLE,
        config: Object.assign({ clientID: "clientId", clientSecret: "clientSecret", activated: true }, conf),
    };
};
exports.google = google;
const smtp = (conf) => {
    return {
        type: types_1.ConfigType.SMTP,
        config: Object.assign({ port: 12345, host: "smtptesthost.com", from: "testfrom@test.com", subject: "Hello!", secure: false }, conf),
    };
};
exports.smtp = smtp;
const settings = (conf) => {
    return {
        type: types_1.ConfigType.SETTINGS,
        config: Object.assign({ platformUrl: "http://mycustomdomain.com", logoUrl: "http://mylogourl,com", company: "mycompany" }, conf),
    };
};
exports.settings = settings;
