Versie 0.2.0
This commit is contained in:
commit
e77d8fd373
495 files changed
+81026
No files matched your search
@@ -0,0 +1,87 @@
|
||||
// Generated, do not edit. sha256:f8b7d4cfde53f5e36967f7e1ae667dea2e048f4cbedb5088c2d2e8af98709896
|
||||
import { CONFIG } from '../../shared/config.js';
|
||||
import { t } from '../i18n/index.js';
|
||||
|
||||
const DOORLATEN = new Set(['then', 'toJSON', 'constructor', 'hasOwnProperty', 'nodeType', 'length',
|
||||
'inspect', 'valueOf', 'toString']);
|
||||
|
||||
function bewaakteRij(rij) {
|
||||
return new Proxy(rij, {
|
||||
get(doel, naam) {
|
||||
if (typeof naam === 'symbol' || naam in doel || DOORLATEN.has(naam)) return Reflect.get(doel, naam);
|
||||
throw new Error(
|
||||
`Onbekende kolom '${String(naam)}' op een rij met: ${Object.keys(doel).join(', ')}. ` +
|
||||
`Waarschijnlijk een naam van vóór de baseline.`);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
function bewaak(waarde) {
|
||||
if (waarde instanceof Map) return new Map([...waarde].map(([k, v]) => [k, bewaak(v)]));
|
||||
if (Array.isArray(waarde)) return waarde.map(bewaak);
|
||||
if (waarde && typeof waarde === 'object') return bewaakteRij(waarde);
|
||||
return waarde;
|
||||
}
|
||||
|
||||
export function decodeer(waarde) {
|
||||
if (Array.isArray(waarde)) return waarde.map(decodeer);
|
||||
if (waarde && typeof waarde === 'object') {
|
||||
if (waarde.__t === 'Map') return new Map(waarde.v.map(([k, v]) => [k, decodeer(v)]));
|
||||
if (waarde.__t === 'Set') return new Set(waarde.v.map(decodeer));
|
||||
return Object.fromEntries(Object.entries(waarde).map(([k, v]) => [k, decodeer(v)]));
|
||||
}
|
||||
return waarde;
|
||||
}
|
||||
|
||||
let guardAan = CONFIG.ROW_GUARD;
|
||||
export function setRowGuard(aan) { guardAan = !!aan; }
|
||||
export function rowGuardAan() { return guardAan; }
|
||||
|
||||
const DISPATCH_VENSTER_MS = 500;
|
||||
const laatstGedispatcht = new Map();
|
||||
|
||||
export function dispatchChanges(namen) {
|
||||
if (!Array.isArray(namen) || !namen.length) return [];
|
||||
const nu = Date.now();
|
||||
const uit = [];
|
||||
for (const naam of namen) {
|
||||
if (typeof naam !== 'string' || !naam) continue;
|
||||
const vorige = laatstGedispatcht.get(naam);
|
||||
if (vorige != null && nu - vorige < DISPATCH_VENSTER_MS) continue;
|
||||
laatstGedispatcht.set(naam, nu);
|
||||
uit.push(naam);
|
||||
document.dispatchEvent(new CustomEvent(naam));
|
||||
}
|
||||
return uit;
|
||||
}
|
||||
|
||||
export function serverFoutTekst(json) {
|
||||
if (!json) return '';
|
||||
if (json.key) {
|
||||
try { return t(json.key, json.params); } catch { }
|
||||
}
|
||||
return json.error || '';
|
||||
}
|
||||
|
||||
export async function rpc(module, functie, ...args) {
|
||||
let res;
|
||||
try {
|
||||
res = await fetch(`/api/data/${module}/${functie}`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ args }),
|
||||
});
|
||||
} catch (e) {
|
||||
throw new Error(`No connection to the server (${module}/${functie}): ${e.message}`);
|
||||
}
|
||||
if (res.status === 401) {
|
||||
location.replace(CONFIG.AUTH.LOGIN_PATH);
|
||||
throw new Error(t('common.sessionExpired'));
|
||||
}
|
||||
const json = await res.json().catch(() => null);
|
||||
if (!res.ok) throw Object.assign(new Error(serverFoutTekst(json) || `HTTP ${res.status} bij ${module}/${functie}`), { key: json?.key ?? null });
|
||||
|
||||
if (json && json.changes) dispatchChanges(json.changes);
|
||||
const result = decodeer(json ? json.result : null);
|
||||
return guardAan ? bewaak(result) : result;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// Generated, do not edit. sha256:1b478fd1c705f49efb007e47d687e8d3c3e16944ad6127dd9fb3f6aff7cd2f9e
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const mergeAccounts = (...args) => rpc('accounts-merge', 'mergeAccounts', ...args);
|
||||
export const mergeCheck = (...args) => rpc('accounts-merge', 'mergeCheck', ...args);
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated, do not edit. sha256:a76e42b4b17445ed23c0a5b34d484c1fa3c93c95b182f816b35b9e874d53a6c1
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const createAccount = (...args) => rpc('accounts', 'createAccount', ...args);
|
||||
export const deactivateAccount = (...args) => rpc('accounts', 'deactivateAccount', ...args);
|
||||
export const deactivateCheck = (...args) => rpc('accounts', 'deactivateCheck', ...args);
|
||||
export const deleteAccount = (...args) => rpc('accounts', 'deleteAccount', ...args);
|
||||
export const listAccounts = (...args) => rpc('accounts', 'listAccounts', ...args);
|
||||
export const listSelectableAccounts = (...args) => rpc('accounts', 'listSelectableAccounts', ...args);
|
||||
export const reactivateAccount = (...args) => rpc('accounts', 'reactivateAccount', ...args);
|
||||
export const updateAccount = (...args) => rpc('accounts', 'updateAccount', ...args);
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated, do not edit. sha256:80b585a42433b6d90a3e5c2a9924d92c130d30f48331c7ff7a52c9498a9688c3
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const aiSessions = (...args) => rpc('ai-audit', 'aiSessions', ...args);
|
||||
export const listAiToolCalls = (...args) => rpc('ai-audit', 'listAiToolCalls', ...args);
|
||||
export const countAiToolCalls = (...args) => rpc('ai-audit', 'countAiToolCalls', ...args);
|
||||
export const lastAiToolCallAt = (...args) => rpc('ai-audit', 'lastAiToolCallAt', ...args);
|
||||
export const aiToolCallMessages = (...args) => rpc('ai-audit', 'aiToolCallMessages', ...args);
|
||||
export const countAiToolCallsSince = (...args) => rpc('ai-audit', 'countAiToolCallsSince', ...args);
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated, do not edit. sha256:c54529dca3707ad988dd577ff2218f700b511b00652dc60ab704cd18c7e5d14b
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const aiProposalsStatus = (...args) => rpc('ai-proposals', 'aiProposalsStatus', ...args);
|
||||
export const listPendingAiProposals = (...args) => rpc('ai-proposals', 'listPendingAiProposals', ...args);
|
||||
export const getAiProposal = (...args) => rpc('ai-proposals', 'getAiProposal', ...args);
|
||||
export const acceptAiProposal = (...args) => rpc('ai-proposals', 'acceptAiProposal', ...args);
|
||||
export const acceptAiProposals = (...args) => rpc('ai-proposals', 'acceptAiProposals', ...args);
|
||||
export const rejectAiProposal = (...args) => rpc('ai-proposals', 'rejectAiProposal', ...args);
|
||||
export const rejectAiProposals = (...args) => rpc('ai-proposals', 'rejectAiProposals', ...args);
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated, do not edit. sha256:0774745d5baf5d1ac279b3fd841bf393edb924718cb10edb23e5f72d43b20b77
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const apiCallsByProvider = (...args) => rpc('api-metrics', 'apiCallsByProvider', ...args);
|
||||
export const apiMetricsByCapability = (...args) => rpc('api-metrics', 'apiMetricsByCapability', ...args);
|
||||
export const apiMetricsGlobal = (...args) => rpc('api-metrics', 'apiMetricsGlobal', ...args);
|
||||
export const apiMetricsSeries = (...args) => rpc('api-metrics', 'apiMetricsSeries', ...args);
|
||||
export const apiMetricsTotals = (...args) => rpc('api-metrics', 'apiMetricsTotals', ...args);
|
||||
export const recordApiCall = (...args) => rpc('api-metrics', 'recordApiCall', ...args);
|
||||
@@ -0,0 +1,5 @@
|
||||
// Generated, do not edit. sha256:9c2f2feef6a443ca4b9b2a030dfe347691b73b07fee08484ac2bb9a1afdbc90c
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const getAssetNote = (...args) => rpc('asset-notes', 'getAssetNote', ...args);
|
||||
export const setAssetNote = (...args) => rpc('asset-notes', 'setAssetNote', ...args);
|
||||
@@ -0,0 +1,8 @@
|
||||
// Generated, do not edit. sha256:b6febc102fa1a8f3cb1bd92d3bd9c51308fdd07a2b8841c36c26aee2e0d2a986
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const createAsset = (...args) => rpc('assets', 'createAsset', ...args);
|
||||
export const deleteAsset = (...args) => rpc('assets', 'deleteAsset', ...args);
|
||||
export const listAssets = (...args) => rpc('assets', 'listAssets', ...args);
|
||||
export const listBookableAssets = (...args) => rpc('assets', 'listBookableAssets', ...args);
|
||||
export const updateAsset = (...args) => rpc('assets', 'updateAsset', ...args);
|
||||
@@ -0,0 +1,4 @@
|
||||
// Generated, do not edit. sha256:7a9b757076981126008fa611b32466b0c4ea84c9740dc8db3223b7668aa909c2
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const changesSince = (...args) => rpc('bus', 'changesSince', ...args);
|
||||
@@ -0,0 +1,5 @@
|
||||
// Generated, do not edit. sha256:b4a6d5eaaa00e5f6844a5d032a45b92244fec713cce2d7b6906b9bbf12a9a0ec
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const claimNextCommand = (...args) => rpc('commands', 'claimNextCommand', ...args);
|
||||
export const resolveCommand = (...args) => rpc('commands', 'resolveCommand', ...args);
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated, do not edit. sha256:fcdff1a53c7e1919f381d8176d33f6f88b3620b864306002867bca5768bececc
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const activeConnection = (...args) => rpc('connections', 'activeConnection', ...args);
|
||||
export const deleteConnection = (...args) => rpc('connections', 'deleteConnection', ...args);
|
||||
export const listConnections = (...args) => rpc('connections', 'listConnections', ...args);
|
||||
export const recordConnectionStatus = (...args) => rpc('connections', 'recordConnectionStatus', ...args);
|
||||
export const saveConnection = (...args) => rpc('connections', 'saveConnection', ...args);
|
||||
export const setActiveConnection = (...args) => rpc('connections', 'setActiveConnection', ...args);
|
||||
@@ -0,0 +1,24 @@
|
||||
// Generated, do not edit. sha256:defb7eb8725729bc4363e332e3b27f668e5593fc5ad9d4cdb73dde97b1c913b3
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const activateProfile = (...args) => rpc('dashboard', 'activateProfile', ...args);
|
||||
export const activeProfile = (...args) => rpc('dashboard', 'activeProfile', ...args);
|
||||
export const createProfile = (...args) => rpc('dashboard', 'createProfile', ...args);
|
||||
export const deleteProfile = (...args) => rpc('dashboard', 'deleteProfile', ...args);
|
||||
export const listProfiles = (...args) => rpc('dashboard', 'listProfiles', ...args);
|
||||
export const listWidgets = (...args) => rpc('dashboard', 'listWidgets', ...args);
|
||||
export const renameProfile = (...args) => rpc('dashboard', 'renameProfile', ...args);
|
||||
export const saveWidgets = (...args) => rpc('dashboard', 'saveWidgets', ...args);
|
||||
|
||||
export function widgetParams(rij) {
|
||||
if (!rij) return null;
|
||||
let rest = null;
|
||||
if (rij.settings != null && rij.settings !== '') {
|
||||
try {
|
||||
const v = JSON.parse(rij.settings);
|
||||
if (v && typeof v === 'object' && !Array.isArray(v)) rest = v;
|
||||
} catch { }
|
||||
}
|
||||
if (rij.assetId == null && !rest) return null;
|
||||
return { ...(rest || {}), ...(rij.assetId == null ? {} : { assetId: rij.assetId }) };
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated, do not edit. sha256:7ddb93aead45334f8213e5120543e2ce9c2fdbc49c3493dc936e72a7e07fb3b7
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const assetPositions = (...args) => rpc('events', 'assetPositions', ...args);
|
||||
export const createEvent = (...args) => rpc('events', 'createEvent', ...args);
|
||||
export const deleteEvent = (...args) => rpc('events', 'deleteEvent', ...args);
|
||||
export const eventsNetByAccount = (...args) => rpc('events', 'eventsNetByAccount', ...args);
|
||||
export const eventsWithoutImportRef = (...args) => rpc('events', 'eventsWithoutImportRef', ...args);
|
||||
export const findEventByRef = (...args) => rpc('events', 'findEventByRef', ...args);
|
||||
export const firstTaxEventDate = (...args) => rpc('events', 'firstTaxEventDate', ...args);
|
||||
export const listAssetTrades = (...args) => rpc('events', 'listAssetTrades', ...args);
|
||||
export const listEvents = (...args) => rpc('events', 'listEvents', ...args);
|
||||
export const listFlowLegs = (...args) => rpc('events', 'listFlowLegs', ...args);
|
||||
export const listTradeEvents = (...args) => rpc('events', 'listTradeEvents', ...args);
|
||||
export const listTrades = (...args) => rpc('events', 'listTrades', ...args);
|
||||
export const listTransfers = (...args) => rpc('events', 'listTransfers', ...args);
|
||||
export const updateEvent = (...args) => rpc('events', 'updateEvent', ...args);
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated, do not edit. sha256:3d2479ecc3a9b127fd96f6f5e0ff246e37273a0096ff4f6b4225e400506ea204
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const acceptHygieneFinding = (...args) => rpc('hygiene', 'acceptHygieneFinding', ...args);
|
||||
export const fillDerivablePriceOrigins = (...args) => rpc('hygiene', 'fillDerivablePriceOrigins', ...args);
|
||||
export const hygieneFingerprint = (...args) => rpc('hygiene', 'hygieneFingerprint', ...args);
|
||||
export const hygieneKinds = (...args) => rpc('hygiene', 'hygieneKinds', ...args);
|
||||
export const hygieneReport = (...args) => rpc('hygiene', 'hygieneReport', ...args);
|
||||
export const listHygieneAcceptances = (...args) => rpc('hygiene', 'listHygieneAcceptances', ...args);
|
||||
export const unacceptHygieneFinding = (...args) => rpc('hygiene', 'unacceptHygieneFinding', ...args);
|
||||
@@ -0,0 +1,6 @@
|
||||
// Generated, do not edit. sha256:9e3f0b7599208ec0351dd06de329a368ee8b0aec5e374f17900cb84afb65c3ca
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const lastIntegrationFailures = (...args) => rpc('integration-log', 'lastIntegrationFailures', ...args);
|
||||
export const listIntegrationCalls = (...args) => rpc('integration-log', 'listIntegrationCalls', ...args);
|
||||
export const serviceState = (...args) => rpc('integration-log', 'serviceState', ...args);
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated, do not edit. sha256:abab16d475f5e1157c1883f4362f2317dbe5f56059e56c4a310f27132a6f26ee
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const bookDueCredit = (...args) => rpc('interest-credits', 'bookDueCredit', ...args);
|
||||
export const dismissDueCredit = (...args) => rpc('interest-credits', 'dismissDueCredit', ...args);
|
||||
export const dueCreditsAll = (...args) => rpc('interest-credits', 'dueCreditsAll', ...args);
|
||||
export const dueCreditsForAccount = (...args) => rpc('interest-credits', 'dueCreditsForAccount', ...args);
|
||||
export const realizedInterestSub = (...args) => rpc('interest-credits', 'realizedInterestSub', ...args);
|
||||
export const scheduleForecast = (...args) => rpc('interest-credits', 'scheduleForecast', ...args);
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated, do not edit. sha256:49d76c7bdfff8e21aacf25ba4615ebc3e4c44908244991363de89f4b5302883d
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const createSchedule = (...args) => rpc('interest-schedules', 'createSchedule', ...args);
|
||||
export const deleteSchedule = (...args) => rpc('interest-schedules', 'deleteSchedule', ...args);
|
||||
export const listAllSchedules = (...args) => rpc('interest-schedules', 'listAllSchedules', ...args);
|
||||
export const createPeriod = (...args) => rpc('interest-schedules', 'createPeriod', ...args);
|
||||
export const deletePeriod = (...args) => rpc('interest-schedules', 'deletePeriod', ...args);
|
||||
export const listInterest = (...args) => rpc('interest-schedules', 'listInterest', ...args);
|
||||
export const listPeriods = (...args) => rpc('interest-schedules', 'listPeriods', ...args);
|
||||
export const listInterestForAccount = (...args) => rpc('interest-schedules', 'listInterestForAccount', ...args);
|
||||
export const listSchedulesForAccount = (...args) => rpc('interest-schedules', 'listSchedulesForAccount', ...args);
|
||||
export const scheduleLabel = (...args) => rpc('interest-schedules', 'scheduleLabel', ...args);
|
||||
export const updateSchedule = (...args) => rpc('interest-schedules', 'updateSchedule', ...args);
|
||||
export const updatePeriod = (...args) => rpc('interest-schedules', 'updatePeriod', ...args);
|
||||
@@ -0,0 +1,6 @@
|
||||
// Generated, do not edit. sha256:957d597a4bfb509e38384b0a56f933177ad98da3654a8091e1d096d93809f347
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const createLabel = (...args) => rpc('labels', 'createLabel', ...args);
|
||||
export const deleteLabel = (...args) => rpc('labels', 'deleteLabel', ...args);
|
||||
export const listLabels = (...args) => rpc('labels', 'listLabels', ...args);
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated, do not edit. sha256:a456f8dc9c28fdd063403c4c2eef8d6e41c477c6c093ce7ffcb31be14c5e6235
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const licenseShop = (...args) => rpc('license-buyer', 'licenseShop', ...args);
|
||||
export const buyerLicenses = (...args) => rpc('license-buyer', 'buyerLicenses', ...args);
|
||||
export const forgetBuyer = (...args) => rpc('license-buyer', 'forgetBuyer', ...args);
|
||||
export const saleInfo = (...args) => rpc('license-buyer', 'saleInfo', ...args);
|
||||
export const placeOrder = (...args) => rpc('license-buyer', 'placeOrder', ...args);
|
||||
export const orderStatus = (...args) => rpc('license-buyer', 'orderStatus', ...args);
|
||||
@@ -0,0 +1,4 @@
|
||||
// Generated, do not edit. sha256:ab6b0bca1cf0d6f7ad3bf3740b3ce12c351a567f2d0e027243b33a65ff31aa10
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const installLicense = (...args) => rpc('license-install', 'installLicense', ...args);
|
||||
@@ -0,0 +1,4 @@
|
||||
// Generated, do not edit. sha256:d90a48e296cc770018512015bf31cae94c3aae0aec94589114777077dee41473
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const licenseStatus = (...args) => rpc('license-status', 'licenseStatus', ...args);
|
||||
@@ -0,0 +1,8 @@
|
||||
// Generated, do not edit. sha256:c8ee3ea7594922b4374e1a96cd8ac1eb601542bf346bd3e985122a2cbe72d1f9
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const intradaySeries = (...args) => rpc('market', 'intradaySeries', ...args);
|
||||
export const priceAtMoment = (...args) => rpc('market', 'priceAtMoment', ...args);
|
||||
export const serviceSpot = (...args) => rpc('market', 'serviceSpot', ...args);
|
||||
export const serviceCoverage = (...args) => rpc('market', 'serviceCoverage', ...args);
|
||||
export const serviceDayHistory = (...args) => rpc('market', 'serviceDayHistory', ...args);
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated, do not edit. sha256:32f05b529e2424e1bc6f485748255e6c9c0bc3181418d5b3715c4e68840342e4
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const createMetalProduct = (...args) => rpc('metals', 'createMetalProduct', ...args);
|
||||
export const deleteMetalProduct = (...args) => rpc('metals', 'deleteMetalProduct', ...args);
|
||||
export const hasMetalAssets = (...args) => rpc('metals', 'hasMetalAssets', ...args);
|
||||
export const listMetalAssets = (...args) => rpc('metals', 'listMetalAssets', ...args);
|
||||
export const listMetalProducts = (...args) => rpc('metals', 'listMetalProducts', ...args);
|
||||
export const listMetalProductsForAsset = (...args) => rpc('metals', 'listMetalProductsForAsset', ...args);
|
||||
export const metalHoldings = (...args) => rpc('metals', 'metalHoldings', ...args);
|
||||
export const updateMetalProduct = (...args) => rpc('metals', 'updateMetalProduct', ...args);
|
||||
@@ -0,0 +1,8 @@
|
||||
// Generated, do not edit. sha256:05a6b3f4ff4f47c46307c9ac80ccc27088deb87eaaf1db6f2988deb654616faa
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const dismissNotification = (...args) => rpc('notifications', 'dismissNotification', ...args);
|
||||
export const listActiveNotifications = (...args) => rpc('notifications', 'listActiveNotifications', ...args);
|
||||
export const notificationDetail = (...args) => rpc('notifications', 'notificationDetail', ...args);
|
||||
export const currentNotifications = (...args) => rpc('notifications', 'currentNotifications', ...args);
|
||||
export const refreshNotifications = (...args) => rpc('notifications', 'refreshNotifications', ...args);
|
||||
@@ -0,0 +1,5 @@
|
||||
// Generated, do not edit. sha256:191f1aef7a5233f2e6d621a68c738dece7c6834a3df68adccdd082cdcc7521b7
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const completeSetup = (...args) => rpc('onboarding', 'completeSetup', ...args);
|
||||
export const setupStatus = (...args) => rpc('onboarding', 'setupStatus', ...args);
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated, do not edit. sha256:aadd4a27f8975ab5f4228e6f75932f3b6c20c61c52e3836e29c9ace64bade8ce
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const accountHoldings = (...args) => rpc('positions', 'accountHoldings', ...args);
|
||||
export const accountPositions =(...args) => rpc('positions', 'accountPositions', ...args);
|
||||
export const assetPositionsByAccount = (...args) => rpc('positions', 'assetPositionsByAccount', ...args);
|
||||
export const firstPositionDate = (...args) => rpc('positions', 'firstPositionDate', ...args);
|
||||
export const lightningBalanceDiffs = (...args) => rpc('positions', 'lightningBalanceDiffs', ...args);
|
||||
export const positionAt = (...args) => rpc('positions', 'positionAt', ...args);
|
||||
export const positionsByAsset = (...args) => rpc('positions', 'positionsByAsset', ...args);
|
||||
export const recordLightningBalance = (...args) => rpc('positions', 'recordLightningBalance', ...args);
|
||||
export const unexplainedByPair = (...args) => rpc('positions', 'unexplainedByPair', ...args);
|
||||
export const unexplainedChange = (...args) => rpc('positions', 'unexplainedChange', ...args);
|
||||
@@ -0,0 +1,35 @@
|
||||
// Generated, do not edit. sha256:b4ad8c5f7165b15620e02825794b0dddb66d0170a5147e3133d866b2a23f0721
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const deletePref = (...args) => rpc('preferences', 'deletePref', ...args);
|
||||
export const getPref = (...args) => rpc('preferences', 'getPref', ...args);
|
||||
export const getSettings = (...args) => rpc('preferences', 'getSettings', ...args);
|
||||
export const setPref = (...args) => rpc('preferences', 'setPref', ...args);
|
||||
export const updateSettings = (...args) => rpc('preferences', 'updateSettings', ...args);
|
||||
|
||||
export async function tableViewCfg(scope, defaultSort = null, fixedGroup = null) {
|
||||
const k = `table.${scope}`;
|
||||
if (fixedGroup) {
|
||||
const sticky = await getPref(k, 'sticky', {});
|
||||
return {
|
||||
sticky,
|
||||
onStickyChange: v => setPref(k, 'sticky', v).catch(() => { }),
|
||||
sort: defaultSort, defaultSort, group: fixedGroup, groupChoice: false,
|
||||
};
|
||||
}
|
||||
const view = await getPref(k, 'view',
|
||||
{ sort: defaultSort, group: null, group2: null, group3: null, groupFilter: {}, groupCollapsed: {} });
|
||||
const sticky = await getPref(k, 'sticky', {});
|
||||
return {
|
||||
sticky,
|
||||
onStickyChange: v => setPref(k, 'sticky', v).catch(() => { }),
|
||||
sort: view.sort,
|
||||
group: view.group,
|
||||
group2: view.group2 ?? null,
|
||||
group3: view.group3 ?? null,
|
||||
groupFilter: view.groupFilter ?? {},
|
||||
groupCollapsed: view.groupCollapsed ?? {},
|
||||
defaultSort,
|
||||
onStateChange: v => setPref(k, 'view', v).catch(() => { }),
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// Generated, do not edit. sha256:9c96669397f06ce2f157ce7eee34dbe23fdd2da353c005dbfe8d12b9dd299240
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const addManualPricePoint = (...args) => rpc('price-history', 'addManualPricePoint', ...args);
|
||||
export const getPriceAt = (...args) => rpc('price-history', 'getPriceAt', ...args);
|
||||
export const getPricePoint = (...args) => rpc('price-history', 'getPricePoint', ...args);
|
||||
export const listAllPriceHistory = (...args) => rpc('price-history', 'listAllPriceHistory', ...args);
|
||||
export const listPriceGaps = (...args) => rpc('price-history', 'listPriceGaps', ...args);
|
||||
export const ignorePriceGap = (...args) => rpc('price-history', 'ignorePriceGap', ...args);
|
||||
export const listIgnoredPriceGaps = (...args) => rpc('price-history', 'listIgnoredPriceGaps', ...args);
|
||||
export const unignorePriceGap = (...args) => rpc('price-history', 'unignorePriceGap', ...args);
|
||||
export const latestPricePoint = (...args) => rpc('price-history', 'latestPricePoint', ...args);
|
||||
export const latestSpotPoint = (...args) => rpc('price-history', 'latestSpotPoint', ...args);
|
||||
export const listPriceHistory = (...args) => rpc('price-history', 'listPriceHistory', ...args);
|
||||
export const priceHistoryCount = (...args) => rpc('price-history', 'priceHistoryCount', ...args);
|
||||
export const recordCurrentSpot = (...args) => rpc('price-history', 'recordCurrentSpot', ...args);
|
||||
export const upsertPriceHistory = (...args) => rpc('price-history', 'upsertPriceHistory', ...args);
|
||||
export const recordNoPriceDays = (...args) => rpc('price-history', 'recordNoPriceDays', ...args);
|
||||
export const listNoPriceDays = (...args) => rpc('price-history', 'listNoPriceDays', ...args);
|
||||
export const listPriceAbsences = (...args) => rpc('price-history', 'listPriceAbsences', ...args);
|
||||
export const deletePriceAbsences = (...args) => rpc('price-history', 'deletePriceAbsences', ...args);
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated, do not edit. sha256:97443fa6467b58882d3c847667f7ec5feefc100a996ce271a6573e15a4cf3910
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const clearPriceSourceCell = (...args) => rpc('price-source', 'clearPriceSourceCell', ...args);
|
||||
export const confirmPriceSourceCell = (...args) => rpc('price-source', 'confirmPriceSourceCell', ...args);
|
||||
export const listPriceSource = (...args) => rpc('price-source', 'listPriceSource', ...args);
|
||||
export const ownPriceSourceChain = (...args) => rpc('price-source', 'ownPriceSourceChain', ...args);
|
||||
export const priceSourceChain = (...args) => rpc('price-source', 'priceSourceChain', ...args);
|
||||
export const setPriceSourceRank = (...args) => rpc('price-source', 'setPriceSourceRank', ...args);
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated, do not edit. sha256:5e4ef4bc2a2565b1c329aabff8462d3a4406176dfc8e63fc7080facce90cb72f
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const deleteAllPendingProposals = (...args) => rpc('proposals', 'deleteAllPendingProposals', ...args);
|
||||
export const deleteProposal = (...args) => rpc('proposals', 'deleteProposal', ...args);
|
||||
export const ignoreAllPendingProposals = (...args) => rpc('proposals', 'ignoreAllPendingProposals', ...args);
|
||||
export const ignoreProposal = (...args) => rpc('proposals', 'ignoreProposal', ...args);
|
||||
export const listHandledProposals = (...args) => rpc('proposals', 'listHandledProposals', ...args);
|
||||
export const listPendingProposals = (...args) => rpc('proposals', 'listPendingProposals', ...args);
|
||||
export const resolveProposalAsInterest = (...args) => rpc('proposals', 'resolveProposalAsInterest', ...args);
|
||||
export const resolveProposalAsInternal =(...args) => rpc('proposals', 'resolveProposalAsInternal', ...args);
|
||||
export const resolveProposalAsTrade = (...args) => rpc('proposals', 'resolveProposalAsTrade', ...args);
|
||||
export const resolveProposalAsTransfer = (...args) => rpc('proposals', 'resolveProposalAsTransfer', ...args);
|
||||
export const revertProposal = (...args) => rpc('proposals', 'revertProposal', ...args);
|
||||
export const syncTxProposals = (...args) => rpc('proposals', 'syncTxProposals', ...args);
|
||||
@@ -0,0 +1,22 @@
|
||||
// Generated, do not edit. sha256:72e387af4ed3d4acd30a530057d9d83c411b2f51d88b3b96f79d51dce9ab149c
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const clearProviderHmac = (...args) => rpc('providers', 'clearProviderHmac', ...args);
|
||||
export const createProvider = (...args) => rpc('providers', 'createProvider', ...args);
|
||||
export const createProviderEndpoint = (...args) => rpc('providers', 'createProviderEndpoint', ...args);
|
||||
export const createProviderOutput = (...args) => rpc('providers', 'createProviderOutput', ...args);
|
||||
export const createProviderSymbol = (...args) => rpc('providers', 'createProviderSymbol', ...args);
|
||||
export const deleteProvider = (...args) => rpc('providers', 'deleteProvider', ...args);
|
||||
export const deleteProviderEndpoint = (...args) => rpc('providers', 'deleteProviderEndpoint', ...args);
|
||||
export const deleteProviderOutput = (...args) => rpc('providers', 'deleteProviderOutput', ...args);
|
||||
export const deleteProviderSymbol = (...args) => rpc('providers', 'deleteProviderSymbol', ...args);
|
||||
export const getProvider = (...args) => rpc('providers', 'getProvider', ...args);
|
||||
export const listProviders = (...args) => rpc('providers', 'listProviders', ...args);
|
||||
export const providerCapabilityMap = (...args) => rpc('providers', 'providerCapabilityMap', ...args);
|
||||
export const setProviderActive = (...args) => rpc('providers', 'setProviderActive', ...args);
|
||||
export const setProviderCallLimit = (...args) => rpc('providers', 'setProviderCallLimit', ...args);
|
||||
export const setProviderHmac = (...args) => rpc('providers', 'setProviderHmac', ...args);
|
||||
export const updateProvider = (...args) => rpc('providers', 'updateProvider', ...args);
|
||||
export const updateProviderEndpoint = (...args) => rpc('providers', 'updateProviderEndpoint', ...args);
|
||||
export const updateProviderOutput = (...args) => rpc('providers', 'updateProviderOutput', ...args);
|
||||
export const updateProviderSymbol = (...args) => rpc('providers', 'updateProviderSymbol', ...args);
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated, do not edit. sha256:d4dd5293de13bcb4d450a08d8edd7724a2cb3ee1a5ec520a57a9d5a196dc7d80
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const bookReservation = (...args) => rpc('reservations', 'bookReservation', ...args);
|
||||
export const createReservation = (...args) => rpc('reservations', 'createReservation', ...args);
|
||||
export const deleteReservation = (...args) => rpc('reservations', 'deleteReservation', ...args);
|
||||
export const listDueReservations = (...args) => rpc('reservations', 'listDueReservations', ...args);
|
||||
export const listReservations = (...args) => rpc('reservations', 'listReservations', ...args);
|
||||
export const listReservationsForAccount = (...args) => rpc('reservations', 'listReservationsForAccount', ...args);
|
||||
export const updateReservation = (...args) => rpc('reservations', 'updateReservation', ...args);
|
||||
@@ -0,0 +1,6 @@
|
||||
// Generated, do not edit. sha256:2f7e0226173eb1df58f29ec0390b99a4181cee3c0805900be698ecb645960d1a
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const createScanLog = (...args) => rpc('scan-logs', 'createScanLog', ...args);
|
||||
export const latestScanLog = (...args) => rpc('scan-logs', 'latestScanLog', ...args);
|
||||
export const listScanLogs = (...args) => rpc('scan-logs', 'listScanLogs', ...args);
|
||||
@@ -0,0 +1,7 @@
|
||||
// Generated, do not edit. sha256:53e150ac657ad243c1234b99306c5a7b09f6eb4fcb4a6de8c2d3d374da23ed45
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const supportInfo = (...args) => rpc('support', 'supportInfo', ...args);
|
||||
export const supportMessages = (...args) => rpc('support', 'supportMessages', ...args);
|
||||
export const sendSupport = (...args) => rpc('support', 'sendSupport', ...args);
|
||||
export const supportAttachment = (...args) => rpc('support', 'supportAttachment', ...args);
|
||||
@@ -0,0 +1,7 @@
|
||||
// Generated, do not edit. sha256:c0d23ea37ddc6695c69eb1b6531c8b951887f5c30452dd318610fcfcb868477c
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const clearTable = (...args) => rpc('table-viewer', 'clearTable', ...args);
|
||||
export const deleteTableRow = (...args) => rpc('table-viewer', 'deleteTableRow', ...args);
|
||||
export const listTableRaw = (...args) => rpc('table-viewer', 'listTableRaw', ...args);
|
||||
export const tableColumns = (...args) => rpc('table-viewer', 'tableColumns', ...args);
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated, do not edit. sha256:2be827f5b7855361ec06bd60ca60c5d976f355c3f8bb57e1356ee04e368af34b
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const eventCandidatesForTx = (...args) => rpc('tx-links', 'eventCandidatesForTx', ...args);
|
||||
export const eventLinkMap = (...args) => rpc('tx-links', 'eventLinkMap', ...args);
|
||||
export const linkTxEvent = (...args) => rpc('tx-links', 'linkTxEvent', ...args);
|
||||
export const linksForEvent = (...args) => rpc('tx-links', 'linksForEvent', ...args);
|
||||
export const linksForTx = (...args) => rpc('tx-links', 'linksForTx', ...args);
|
||||
export const onchainAsset = (...args) => rpc('tx-links', 'onchainAsset', ...args);
|
||||
export const syncAddressLinks = (...args) => rpc('tx-links', 'syncAddressLinks', ...args);
|
||||
export const txCandidatesForEvent = (...args) => rpc('tx-links', 'txCandidatesForEvent', ...args);
|
||||
export const unlinkTxEvent = (...args) => rpc('tx-links', 'unlinkTxEvent', ...args);
|
||||
export const walletTxEventMap = (...args) => rpc('tx-links', 'walletTxEventMap', ...args);
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated, do not edit. sha256:b8cbf600ab36d03c83b239c9ff1dd49bbb558bd66a0c9ffc89f3e59150f41929
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const acceptValuationGap = (...args) => rpc('valuations', 'acceptValuationGap', ...args);
|
||||
export const createValuation = (...args) => rpc('valuations', 'createValuation', ...args);
|
||||
export const deleteValuation = (...args) => rpc('valuations', 'deleteValuation', ...args);
|
||||
export const listOpenValuationDiffs = (...args) => rpc('valuations', 'listOpenValuationDiffs', ...args);
|
||||
export const listValuations = (...args) => rpc('valuations', 'listValuations', ...args);
|
||||
export const updateValuation = (...args) => rpc('valuations', 'updateValuation', ...args);
|
||||
export const valuationDiff = (...args) => rpc('valuations', 'valuationDiff', ...args);
|
||||
export const valuationGap = (...args) => rpc('valuations', 'valuationGap', ...args);
|
||||
export const valuationDiffs = (...args) => rpc('valuations', 'valuationDiffs', ...args);
|
||||
export const latestAnchors = (...args) => rpc('valuations', 'latestAnchors', ...args);
|
||||
@@ -0,0 +1,7 @@
|
||||
// Generated, do not edit. sha256:4729896ea697d903a66a55b2e3c47015d5d91f3d507871983d51e85d1dfe5bc2
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const accountOnchainBalance = (...args) => rpc('wallet-addresses', 'accountOnchainBalance', ...args);
|
||||
export const listWalletAddresses = (...args) => rpc('wallet-addresses', 'listWalletAddresses', ...args);
|
||||
export const sourceBalance = (...args) => rpc('wallet-addresses', 'sourceBalance', ...args);
|
||||
export const upsertWalletAddresses = (...args) => rpc('wallet-addresses', 'upsertWalletAddresses', ...args);
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated, do not edit. sha256:10c2762ed4edc728c9bb085ae65408b05698da3cb759b6e0d83ec573a6f31da5
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const createWalletSource = (...args) => rpc('wallet-sources', 'createWalletSource', ...args);
|
||||
export const deleteWalletSource = (...args) => rpc('wallet-sources', 'deleteWalletSource', ...args);
|
||||
export const listAllWalletSources = (...args) => rpc('wallet-sources', 'listAllWalletSources', ...args);
|
||||
export const listWalletSources = (...args) => rpc('wallet-sources', 'listWalletSources', ...args);
|
||||
export const recordSourceBalance = (...args) => rpc('wallet-sources', 'recordSourceBalance', ...args);
|
||||
export const updateWalletSource = (...args) => rpc('wallet-sources', 'updateWalletSource', ...args);
|
||||
@@ -0,0 +1,7 @@
|
||||
// Generated, do not edit. sha256:0e229496c38eb1f378e94fa6b93fdbc8268a8edc7a91fbc647e628f80ad40ad5
|
||||
import { rpc } from './_rpc.js';
|
||||
|
||||
export const labelChannelTxs = (...args) => rpc('wallet-txs', 'labelChannelTxs', ...args);
|
||||
export const listSourceTxs = (...args) => rpc('wallet-txs', 'listSourceTxs', ...args);
|
||||
export const setTxLabels = (...args) => rpc('wallet-txs', 'setTxLabels', ...args);
|
||||
export const upsertWalletTxs = (...args) => rpc('wallet-txs', 'upsertWalletTxs', ...args);
|
||||
Reference in new issue
Block a user