You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
3.1 KiB
JavaScript
79 lines
3.1 KiB
JavaScript
export class SSO {
|
|
constructor(rtlSso, rtlCookiePath, logoutRedirectLink, cookieValue) {
|
|
this.rtlSso = rtlSso;
|
|
this.rtlCookiePath = rtlCookiePath;
|
|
this.logoutRedirectLink = logoutRedirectLink;
|
|
this.cookieValue = cookieValue;
|
|
}
|
|
}
|
|
export class Settings {
|
|
constructor(lnServerUrl, swapServerUrl, boltzServerUrl, bitcoindConfigPath, channelBackupPath, logLevel, logFile, userPersona, themeMode, themeColor, unannouncedChannels, fiatConversion, currencyUnit, enableOffers, enablePeerswap) {
|
|
this.lnServerUrl = lnServerUrl;
|
|
this.swapServerUrl = swapServerUrl;
|
|
this.boltzServerUrl = boltzServerUrl;
|
|
this.bitcoindConfigPath = bitcoindConfigPath;
|
|
this.channelBackupPath = channelBackupPath;
|
|
this.logLevel = logLevel;
|
|
this.logFile = logFile;
|
|
this.userPersona = userPersona;
|
|
this.themeMode = themeMode;
|
|
this.themeColor = themeColor;
|
|
this.unannouncedChannels = unannouncedChannels;
|
|
this.fiatConversion = fiatConversion;
|
|
this.currencyUnit = currencyUnit;
|
|
this.enableOffers = enableOffers;
|
|
this.enablePeerswap = enablePeerswap;
|
|
}
|
|
}
|
|
export class Authentication {
|
|
constructor(options, configPath, macaroonPath, macaroonValue, runePath, runeValue, lnApiPassword, swapMacaroonPath, boltzMacaroonPath) {
|
|
this.options = options;
|
|
this.configPath = configPath;
|
|
this.macaroonPath = macaroonPath;
|
|
this.macaroonValue = macaroonValue;
|
|
this.runePath = runePath;
|
|
this.runeValue = runeValue;
|
|
this.lnApiPassword = lnApiPassword;
|
|
this.swapMacaroonPath = swapMacaroonPath;
|
|
this.boltzMacaroonPath = boltzMacaroonPath;
|
|
}
|
|
}
|
|
export class ApplicationConfig {
|
|
constructor(defaultNodeIndex, selectedNodeIndex, dbDirectoryPath, rtlConfFilePath, rtlPass, multiPass, multiPassHashed, allowPasswordUpdate, enable2FA, secret2FA, SSO, nodes) {
|
|
this.defaultNodeIndex = defaultNodeIndex;
|
|
this.selectedNodeIndex = selectedNodeIndex;
|
|
this.dbDirectoryPath = dbDirectoryPath;
|
|
this.rtlConfFilePath = rtlConfFilePath;
|
|
this.rtlPass = rtlPass;
|
|
this.multiPass = multiPass;
|
|
this.multiPassHashed = multiPassHashed;
|
|
this.allowPasswordUpdate = allowPasswordUpdate;
|
|
this.enable2FA = enable2FA;
|
|
this.secret2FA = secret2FA;
|
|
this.SSO = SSO;
|
|
this.nodes = nodes;
|
|
}
|
|
}
|
|
export class SelectedNode {
|
|
constructor(logLevel, logFile, index, lnNode, lnImplementation, lnVersion, Settings, Authentication) {
|
|
this.logLevel = logLevel;
|
|
this.logFile = logFile;
|
|
this.index = index;
|
|
this.lnNode = lnNode;
|
|
this.lnImplementation = lnImplementation;
|
|
this.lnVersion = lnVersion;
|
|
this.Settings = Settings;
|
|
this.Authentication = Authentication;
|
|
}
|
|
}
|
|
export class LogJSONObj {
|
|
constructor(level, msg, data, error, fileName, selectedNode) {
|
|
this.level = level;
|
|
this.msg = msg;
|
|
this.data = data;
|
|
this.error = error;
|
|
this.fileName = fileName;
|
|
this.selectedNode = selectedNode;
|
|
}
|
|
}
|