feat: expose unified exchange activity APIs and exports
This commit is contained in:
@@ -6,6 +6,12 @@ import type {
|
||||
} from './generated/schemas';
|
||||
|
||||
export function recordLabel(record: OrganizationSourceRecordList): string {
|
||||
if (record.source_group === 'stock_exchange_activity') {
|
||||
const type: 'exchange_instrument' = record.record_type;
|
||||
const duration: string | null | undefined = record.payload.duration?.value;
|
||||
const yieldValue: string | null | undefined = record.payload.yield?.value;
|
||||
return type + record.payload.exchange + (duration || '') + (yieldValue || '');
|
||||
}
|
||||
if (record.source_group === 'budget_process_registry') {
|
||||
const type: 'budget_registry_organization' = record.record_type;
|
||||
return type + record.payload.registry.code;
|
||||
|
||||
Reference in New Issue
Block a user