@fin.cx/opendata
Version:
A comprehensive TypeScript library for accessing business data and real-time financial information. Features include German company data management with MongoDB integration, JSONL bulk processing, automated Handelsregister interactions, and real-time stoc
82 lines (61 loc) • 1.84 kB
text/typescript
import * as plugins from '../plugins.js';
import type { TJurisdiction, TLawSource, TRawLawFormat } from './interfaces.law.js';
.smartdata.Manager()
export class LawRecord extends plugins.smartdata.SmartDataDbDoc<LawRecord, LawRecord> {
public static getByLookupKey = async (lookupKeyArg: string) => {
const lawRecords = await LawRecord.getInstances({
lookupKey: lookupKeyArg,
});
return lawRecords[0];
};
.smartdata.unI()
id!: string;
.smartdata.unI()
.smartdata.svDb()
lookupKey!: string;
.smartdata.index()
.smartdata.svDb()
jurisdiction!: TJurisdiction;
.smartdata.index()
.smartdata.svDb()
source!: TLawSource;
.smartdata.searchable()
.smartdata.svDb()
identifier!: string;
.smartdata.searchable()
.smartdata.svDb()
title!: string;
.smartdata.searchable()
.smartdata.svDb()
shortTitle: string = '';
.smartdata.searchable()
.smartdata.svDb()
citation: string = '';
.smartdata.index()
.smartdata.svDb()
type: string = '';
.smartdata.index()
.smartdata.svDb()
language: string = '';
.smartdata.svDb()
sourceUrl!: string;
.smartdata.svDb()
rawFormat!: TRawLawFormat;
.smartdata.svDb()
rawBody!: string;
.smartdata.searchable()
.smartdata.svDb()
text!: string;
.smartdata.index()
.smartdata.svDb()
dateIssued: string = '';
.smartdata.index()
.smartdata.svDb()
lastModified: string = '';
.smartdata.svDb()
sourceMeta: Record<string, string> = {};
.smartdata.svDb()
fetchedAt: Date = new Date();
.smartdata.svDb()
syncedAt: Date = new Date();
}