Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
fakturoid-ts
Advanced tools
NodeJs library for Fakturoid.cz. Please see API for more documentation. New account just for testing API and using separate user (created via "Nastavení > Uživatelé a oprávnění") for production usage is highly recommended.
import Fakturoid from 'fakturoid-ts';
import {Invoice} from "fakturoid-ts/lib/Types";
const client = new Fakturoid("slug", "email", "token");
const invoices: Invoice[] = await client.getInvoices();
const Fakturoid = require('fakturoid-ts').default;
const client = new Fakturoid("slug", "email", "token");
const invoices = await client.getInvoices();
getAccount()
getBankAccounts()
getUser(id: string)
getUsers(filter?: Partial<UserFilter>)
getInvoices(filter?: Partial<InvoiceFilter>)
getRegularInvoices(filter?: Partial<InvoiceFilter>)
getProformaInvoices(filter?: Partial<InvoiceFilter>)
getInvoice(id: string)
getInvoicePdf(id: string)
searchInvoices(filter?: Partial<Search>)
updateInvoice(id: string, data: Partial<Invoice>)
fireInvoice(id: string, data: Partial<InvoiceFireFilter>)
createInvoice(invoice: Partial<Invoice>)
deleteInvoice(id: string)
getExpenses(filter?: Partial<ExpenseFilter>)
getExpense(id: string)
searchExpenses(filter?: Partial<Search>)
updateExpense(id: string, data: Partial<Expense>)
fireExpense(id: string, data: Partial<ExpenseFireFilter>)
createExpense(invoice: Partial<Expense>)
deleteExpense(id: string)
getSubjects(filter?: Partial<SubjectFilter>)
getSubject(id: string)
createSubject(subject: Partial<Subject>)
updateSubject(id: string, data: Partial<Subject>)
deleteSubject(id: string)
searchSubjects(filter?: Partial<Search>)
getGenerators(filter?: Partial<GeneratorFilter>)
getTemplateGenerators(filter?: Partial<GeneratorFilter>)
getRecurringGenerators(filter?: Partial<GeneratorFilter>)
getGenerator(id: string)
updateGenerator(id: string, data: Partial<Generator>)
createGenerator(generator: Partial<Generator>)
deleteGenerator(id: string)
createMessage(invoiceId: number, message: Partial<Message>)
getInvoiceNumberFormats()
getReports(year: number)
getPaidReports(year: number)
getVatReports(year: number)
getEvents(filter?: Partial<EventFilter>)
getPaidEvents(filter?: Partial<EventFilter>)
getInventoryItems(filter?: Partial<InventoryItemFilter>)
getArchivedInventoryItems(filter?: Partial<InventoryItemFilter>)
getInventoryItem(id: string)
searchInventoryItems(filter?: Partial<Search>)
archiveInventoryItem(id: string)
unarchiveInventoryItem(id: string)
updateInventoryItem(id: string, data: Partial<InventoryItem>)
createInventoryItem(generator: Partial<InventoryItem>)
deleteInventoryItem(id: string)
getInventoryMoves(filter?: Partial<InventoryMoveFilter>)
getInventoryMove(inventoryItemId: string, id: string)
updateInventoryMove(inventoryItemId: string, id: string, data: Partial<InventoryMove>)
createInventoryMove( inventoryItemId: string, inventoryMove: Partial<InventoryMove>)
deleteInventoryMove(inventoryItemId: string, id: string)
getTodos(filter?: Partial<TodoFilter>)
const client = new Fakturoid(SLUG, EMAIL, TOKEN);
const invoices: Invoice[] = await client.getInvoices({
until: new Date(2023,2,22),
});
const invoices: Invoice[] = await client.getInvoices({
page: 2,
});
const writer = fs.createWriteStream('file.pdf');
const stream = await client.getInvoicePdf(invoice.id)
stream.pipe(writer);
await client.updateInvoice(invoice.id, {
"number": "2023-01-01"
})
await client.fireInvoice(invoice.id, {
event: InvoiceFireEvent.mark_as_sent
})
const [subject]: Subject = await client.getSubjects();
const invoice: Partial<Invoice> = {
subject_id: subject.id,
lines: [{
name: "Hard work",
quantity: 1,
unit_price: 40000,
}],
}
await client.createInvoice(invoice);
await client.deleteInvoice(invoice.id);
FAQs
The NodeJS interface to online accounting service Fakturoid.
The npm package fakturoid-ts receives a total of 24 weekly downloads. As such, fakturoid-ts popularity was classified as not popular.
We found that fakturoid-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.