mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
25 lines
520 B
TypeScript
25 lines
520 B
TypeScript
import * as R from 'ramda';
|
|
import { FinancialSheetStructure } from './FinancialSheetStructure';
|
|
|
|
export const FinancialSchema = (Base) =>
|
|
class extends R.compose(FinancialSheetStructure)(Base) {
|
|
/**
|
|
*
|
|
* @returns
|
|
*/
|
|
getSchema() {
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param {string|number} id
|
|
* @returns
|
|
*/
|
|
getSchemaNodeById = (id: string | number) => {
|
|
const schema = this.getSchema();
|
|
|
|
return this.findNodeDeep(schema, (node) => node.id === id);
|
|
};
|
|
};
|