mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
24 lines
500 B
TypeScript
24 lines
500 B
TypeScript
import { Knex } from 'knex';
|
|
|
|
export abstract class Importable {
|
|
/**
|
|
*
|
|
* @param {number} tenantId
|
|
* @param {any} createDTO
|
|
* @param {Knex.Transaction} trx
|
|
*/
|
|
public importable(tenantId: number, createDTO: any, trx?: Knex.Transaction) {
|
|
throw new Error(
|
|
'The `importable` function is not defined in service importable.'
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Concurrency controlling of the importing process.
|
|
* @returns {number}
|
|
*/
|
|
public get concurrency() {
|
|
return 10;
|
|
}
|
|
}
|