@egdesk/next-api-plugin 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generate-helpers.js +52 -0
- package/package.json +1 -1
- package/src/generate-helpers.ts +52 -0
package/dist/generate-helpers.js
CHANGED
|
@@ -554,6 +554,58 @@ export async function queryBankProductTable(options: {
|
|
|
554
554
|
return callFinanceHubTool('financehub_query_bank_product_table', options);
|
|
555
555
|
}
|
|
556
556
|
|
|
557
|
+
/**
|
|
558
|
+
* Create or update a bank/card account (no credentials).
|
|
559
|
+
*/
|
|
560
|
+
export async function upsertFinanceHubAccount(account: {
|
|
561
|
+
bankId: string;
|
|
562
|
+
accountNumber: string;
|
|
563
|
+
accountName?: string;
|
|
564
|
+
customerName?: string;
|
|
565
|
+
balance?: number;
|
|
566
|
+
availableBalance?: number;
|
|
567
|
+
currency?: string;
|
|
568
|
+
accountType?: string;
|
|
569
|
+
openDate?: string;
|
|
570
|
+
metadata?: Record<string, unknown>;
|
|
571
|
+
}) {
|
|
572
|
+
return callFinanceHubTool('financehub_upsert_account', account);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Import bank or card transactions (deduplicated). Max 1000 per call.
|
|
577
|
+
*/
|
|
578
|
+
export async function importFinanceHubTransactions(options: {
|
|
579
|
+
bankId: string;
|
|
580
|
+
accountData: {
|
|
581
|
+
accountNumber: string;
|
|
582
|
+
accountName?: string;
|
|
583
|
+
customerName?: string;
|
|
584
|
+
balance?: number;
|
|
585
|
+
availableBalance?: number;
|
|
586
|
+
openDate?: string;
|
|
587
|
+
};
|
|
588
|
+
transactions: Array<Record<string, unknown>>;
|
|
589
|
+
syncMetadata: {
|
|
590
|
+
queryPeriodStart: string;
|
|
591
|
+
queryPeriodEnd: string;
|
|
592
|
+
filePath?: string;
|
|
593
|
+
};
|
|
594
|
+
isCard?: boolean;
|
|
595
|
+
}) {
|
|
596
|
+
return callFinanceHubTool('financehub_import_transactions', options);
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Upsert rows into a bank-product table (loans, receivables, etc.). Max 500 per call.
|
|
601
|
+
*/
|
|
602
|
+
export async function upsertFinanceHubBankProductRows(options: {
|
|
603
|
+
tableSlug: string;
|
|
604
|
+
rows: Array<Record<string, unknown>>;
|
|
605
|
+
}) {
|
|
606
|
+
return callFinanceHubTool('financehub_upsert_bank_product_rows', options);
|
|
607
|
+
}
|
|
608
|
+
|
|
557
609
|
// ==========================================
|
|
558
610
|
// INTERNAL KNOWLEDGE / BUSINESS IDENTITY / COMPANY RESEARCH (MCP)
|
|
559
611
|
// ==========================================
|
package/package.json
CHANGED
package/src/generate-helpers.ts
CHANGED
|
@@ -521,6 +521,58 @@ export async function queryBankProductTable(options: {
|
|
|
521
521
|
return callFinanceHubTool('financehub_query_bank_product_table', options);
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
+
/**
|
|
525
|
+
* Create or update a bank/card account (no credentials).
|
|
526
|
+
*/
|
|
527
|
+
export async function upsertFinanceHubAccount(account: {
|
|
528
|
+
bankId: string;
|
|
529
|
+
accountNumber: string;
|
|
530
|
+
accountName?: string;
|
|
531
|
+
customerName?: string;
|
|
532
|
+
balance?: number;
|
|
533
|
+
availableBalance?: number;
|
|
534
|
+
currency?: string;
|
|
535
|
+
accountType?: string;
|
|
536
|
+
openDate?: string;
|
|
537
|
+
metadata?: Record<string, unknown>;
|
|
538
|
+
}) {
|
|
539
|
+
return callFinanceHubTool('financehub_upsert_account', account);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Import bank or card transactions (deduplicated). Max 1000 per call.
|
|
544
|
+
*/
|
|
545
|
+
export async function importFinanceHubTransactions(options: {
|
|
546
|
+
bankId: string;
|
|
547
|
+
accountData: {
|
|
548
|
+
accountNumber: string;
|
|
549
|
+
accountName?: string;
|
|
550
|
+
customerName?: string;
|
|
551
|
+
balance?: number;
|
|
552
|
+
availableBalance?: number;
|
|
553
|
+
openDate?: string;
|
|
554
|
+
};
|
|
555
|
+
transactions: Array<Record<string, unknown>>;
|
|
556
|
+
syncMetadata: {
|
|
557
|
+
queryPeriodStart: string;
|
|
558
|
+
queryPeriodEnd: string;
|
|
559
|
+
filePath?: string;
|
|
560
|
+
};
|
|
561
|
+
isCard?: boolean;
|
|
562
|
+
}) {
|
|
563
|
+
return callFinanceHubTool('financehub_import_transactions', options);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Upsert rows into a bank-product table (loans, receivables, etc.). Max 500 per call.
|
|
568
|
+
*/
|
|
569
|
+
export async function upsertFinanceHubBankProductRows(options: {
|
|
570
|
+
tableSlug: string;
|
|
571
|
+
rows: Array<Record<string, unknown>>;
|
|
572
|
+
}) {
|
|
573
|
+
return callFinanceHubTool('financehub_upsert_bank_product_rows', options);
|
|
574
|
+
}
|
|
575
|
+
|
|
524
576
|
// ==========================================
|
|
525
577
|
// INTERNAL KNOWLEDGE / BUSINESS IDENTITY / COMPANY RESEARCH (MCP)
|
|
526
578
|
// ==========================================
|