@firela/api-types 0.0.0-canary.14a6ef5a → 0.0.0-canary.19fa1e7e

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.js CHANGED
@@ -670,6 +670,7 @@ var BeanTransactionsService = class {
670
670
  * @param data.status Filter by transaction status
671
671
  * @param data.search Search in narration and payee fields (max 200 chars)
672
672
  * @param data.accountId Filter by account ID (transactions with postings to this account)
673
+ * @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an Expenses/Income account whose derived Group segment equals this value
673
674
  * @returns TransactionListResponseDto Transaction list
674
675
  * @throws ApiError
675
676
  */
@@ -687,7 +688,8 @@ var BeanTransactionsService = class {
687
688
  dateTo: data.dateTo,
688
689
  status: data.status,
689
690
  search: data.search,
690
- accountId: data.accountId
691
+ accountId: data.accountId,
692
+ category: data.category
691
693
  },
692
694
  errors: {
693
695
  400: "Validation failed",
@@ -720,6 +722,33 @@ var BeanTransactionsService = class {
720
722
  }
721
723
  });
722
724
  }
725
+ /**
726
+ * Correct (supersede) a transaction
727
+ * Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
728
+ * @param data The data for the request.
729
+ * @param data.id Original transaction ID to correct
730
+ * @param data.region Region code for tenant context
731
+ * @param data.requestBody
732
+ * @returns TransactionDetailDto Corrected transaction created
733
+ * @throws ApiError
734
+ */
735
+ static transactionControllerCorrect(data) {
736
+ return request(OpenAPI, {
737
+ method: "POST",
738
+ url: "/api/v1/{region}/bean/transactions/{id}/correct",
739
+ path: {
740
+ id: data.id,
741
+ region: data.region
742
+ },
743
+ body: data.requestBody,
744
+ mediaType: "application/json",
745
+ errors: {
746
+ 404: "Original transaction not found",
747
+ 409: "Original no longer ACTIVE (concurrent modification)",
748
+ 422: "Pipeline validation failed (does not balance, invalid accounts)"
749
+ }
750
+ });
751
+ }
723
752
  /**
724
753
  * Suggest transaction tags
725
754
  * Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
@@ -1057,7 +1086,7 @@ var ProviderSyncService = class {
1057
1086
  *
1058
1087
  * @param data The data for the request.
1059
1088
  * @param data.providerName Provider name
1060
- * @param data.region Region code
1089
+ * @param data.region Region code for tenant context
1061
1090
  * @param data.requestBody
1062
1091
  * @returns ProviderSyncResponseDto Sync completed successfully
1063
1092
  * @throws ApiError
package/dist/index.mjs CHANGED
@@ -638,6 +638,7 @@ var BeanTransactionsService = class {
638
638
  * @param data.status Filter by transaction status
639
639
  * @param data.search Search in narration and payee fields (max 200 chars)
640
640
  * @param data.accountId Filter by account ID (transactions with postings to this account)
641
+ * @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an Expenses/Income account whose derived Group segment equals this value
641
642
  * @returns TransactionListResponseDto Transaction list
642
643
  * @throws ApiError
643
644
  */
@@ -655,7 +656,8 @@ var BeanTransactionsService = class {
655
656
  dateTo: data.dateTo,
656
657
  status: data.status,
657
658
  search: data.search,
658
- accountId: data.accountId
659
+ accountId: data.accountId,
660
+ category: data.category
659
661
  },
660
662
  errors: {
661
663
  400: "Validation failed",
@@ -688,6 +690,33 @@ var BeanTransactionsService = class {
688
690
  }
689
691
  });
690
692
  }
693
+ /**
694
+ * Correct (supersede) a transaction
695
+ * Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
696
+ * @param data The data for the request.
697
+ * @param data.id Original transaction ID to correct
698
+ * @param data.region Region code for tenant context
699
+ * @param data.requestBody
700
+ * @returns TransactionDetailDto Corrected transaction created
701
+ * @throws ApiError
702
+ */
703
+ static transactionControllerCorrect(data) {
704
+ return request(OpenAPI, {
705
+ method: "POST",
706
+ url: "/api/v1/{region}/bean/transactions/{id}/correct",
707
+ path: {
708
+ id: data.id,
709
+ region: data.region
710
+ },
711
+ body: data.requestBody,
712
+ mediaType: "application/json",
713
+ errors: {
714
+ 404: "Original transaction not found",
715
+ 409: "Original no longer ACTIVE (concurrent modification)",
716
+ 422: "Pipeline validation failed (does not balance, invalid accounts)"
717
+ }
718
+ });
719
+ }
691
720
  /**
692
721
  * Suggest transaction tags
693
722
  * Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
@@ -1025,7 +1054,7 @@ var ProviderSyncService = class {
1025
1054
  *
1026
1055
  * @param data The data for the request.
1027
1056
  * @param data.providerName Provider name
1028
- * @param data.region Region code
1057
+ * @param data.region Region code for tenant context
1029
1058
  * @param data.requestBody
1030
1059
  * @returns ProviderSyncResponseDto Sync completed successfully
1031
1060
  * @throws ApiError
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firela/api-types",
3
- "version": "0.0.0-canary.14a6ef5a",
3
+ "version": "0.0.0-canary.19fa1e7e",
4
4
  "description": "TypeScript types generated from IGN OpenAPI specification",
5
5
  "license": "MIT",
6
6
  "author": "FireLa Team",