@firela/api-types 0.0.0-canary.688167dd → 0.0.0-canary.69a6df79
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/index.d.mts +581 -153
- package/dist/index.d.ts +581 -153
- package/dist/index.js +7 -5
- package/dist/index.mjs +7 -5
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +697 -28
- package/src/generated/services.gen.ts +83 -9
- package/src/generated/types.gen.ts +3385 -161
package/dist/index.js
CHANGED
|
@@ -556,7 +556,7 @@ var BeanAccountsService = class {
|
|
|
556
556
|
}
|
|
557
557
|
/**
|
|
558
558
|
* Delete account
|
|
559
|
-
* Deletes an account (only if no transactions)
|
|
559
|
+
* Deletes an account (only if no active transactions; voided/superseded residual postings are cleaned up)
|
|
560
560
|
* @param data The data for the request.
|
|
561
561
|
* @param data.id Account UUID
|
|
562
562
|
* @param data.region Region code for tenant context
|
|
@@ -573,7 +573,7 @@ var BeanAccountsService = class {
|
|
|
573
573
|
},
|
|
574
574
|
errors: {
|
|
575
575
|
404: "Account not found",
|
|
576
|
-
409: "Account has transactions and cannot be deleted"
|
|
576
|
+
409: "Account has active transactions and cannot be deleted"
|
|
577
577
|
}
|
|
578
578
|
});
|
|
579
579
|
}
|
|
@@ -693,10 +693,11 @@ var BeanTransactionsService = class {
|
|
|
693
693
|
* @param data.offset Number of items to skip (default: 0)
|
|
694
694
|
* @param data.dateFrom Filter by start date (inclusive), format: YYYY-MM-DD
|
|
695
695
|
* @param data.dateTo Filter by end date (inclusive), format: YYYY-MM-DD
|
|
696
|
-
* @param data.status Filter by transaction status
|
|
696
|
+
* @param data.status Filter by transaction status: single value, comma-separated multi-value (e.g. VOIDED,SUPERSEDED), or ALL to include audit rows. Defaults to ACTIVE-only (ADR-0128; previously unfiltered — breaking change).
|
|
697
697
|
* @param data.search Search in narration and payee fields (max 200 chars)
|
|
698
698
|
* @param data.accountId Filter by account ID (transactions with postings to this account)
|
|
699
|
-
* @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an
|
|
699
|
+
* @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an account whose derived Group segment equals this value. Must be accompanied by flow (ADR-0126).
|
|
700
|
+
* @param data.flow Required when category is present (400 otherwise) and vice versa (ADR-0126). Restricts the category account set to the flow root (income → Income:, expense → Expenses:) and drives the per-leg sign normalization of row viewpointAmount and the summary. OpenAPI cannot express conditional requiredness — the pairing is enforced at runtime.
|
|
700
701
|
* @returns TransactionListResponseDto Transaction list
|
|
701
702
|
* @throws ApiError
|
|
702
703
|
*/
|
|
@@ -715,7 +716,8 @@ var BeanTransactionsService = class {
|
|
|
715
716
|
status: data.status,
|
|
716
717
|
search: data.search,
|
|
717
718
|
accountId: data.accountId,
|
|
718
|
-
category: data.category
|
|
719
|
+
category: data.category,
|
|
720
|
+
flow: data.flow
|
|
719
721
|
},
|
|
720
722
|
errors: {
|
|
721
723
|
400: "Validation failed",
|
package/dist/index.mjs
CHANGED
|
@@ -524,7 +524,7 @@ var BeanAccountsService = class {
|
|
|
524
524
|
}
|
|
525
525
|
/**
|
|
526
526
|
* Delete account
|
|
527
|
-
* Deletes an account (only if no transactions)
|
|
527
|
+
* Deletes an account (only if no active transactions; voided/superseded residual postings are cleaned up)
|
|
528
528
|
* @param data The data for the request.
|
|
529
529
|
* @param data.id Account UUID
|
|
530
530
|
* @param data.region Region code for tenant context
|
|
@@ -541,7 +541,7 @@ var BeanAccountsService = class {
|
|
|
541
541
|
},
|
|
542
542
|
errors: {
|
|
543
543
|
404: "Account not found",
|
|
544
|
-
409: "Account has transactions and cannot be deleted"
|
|
544
|
+
409: "Account has active transactions and cannot be deleted"
|
|
545
545
|
}
|
|
546
546
|
});
|
|
547
547
|
}
|
|
@@ -661,10 +661,11 @@ var BeanTransactionsService = class {
|
|
|
661
661
|
* @param data.offset Number of items to skip (default: 0)
|
|
662
662
|
* @param data.dateFrom Filter by start date (inclusive), format: YYYY-MM-DD
|
|
663
663
|
* @param data.dateTo Filter by end date (inclusive), format: YYYY-MM-DD
|
|
664
|
-
* @param data.status Filter by transaction status
|
|
664
|
+
* @param data.status Filter by transaction status: single value, comma-separated multi-value (e.g. VOIDED,SUPERSEDED), or ALL to include audit rows. Defaults to ACTIVE-only (ADR-0128; previously unfiltered — breaking change).
|
|
665
665
|
* @param data.search Search in narration and payee fields (max 200 chars)
|
|
666
666
|
* @param data.accountId Filter by account ID (transactions with postings to this account)
|
|
667
|
-
* @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an
|
|
667
|
+
* @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an account whose derived Group segment equals this value. Must be accompanied by flow (ADR-0126).
|
|
668
|
+
* @param data.flow Required when category is present (400 otherwise) and vice versa (ADR-0126). Restricts the category account set to the flow root (income → Income:, expense → Expenses:) and drives the per-leg sign normalization of row viewpointAmount and the summary. OpenAPI cannot express conditional requiredness — the pairing is enforced at runtime.
|
|
668
669
|
* @returns TransactionListResponseDto Transaction list
|
|
669
670
|
* @throws ApiError
|
|
670
671
|
*/
|
|
@@ -683,7 +684,8 @@ var BeanTransactionsService = class {
|
|
|
683
684
|
status: data.status,
|
|
684
685
|
search: data.search,
|
|
685
686
|
accountId: data.accountId,
|
|
686
|
-
category: data.category
|
|
687
|
+
category: data.category,
|
|
688
|
+
flow: data.flow
|
|
687
689
|
},
|
|
688
690
|
errors: {
|
|
689
691
|
400: "Validation failed",
|