@firela/api-types 0.0.0-canary.1917579c → 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.d.mts +1385 -86
- package/dist/index.d.ts +1385 -86
- package/dist/index.js +60 -2
- package/dist/index.mjs +60 -2
- package/package.json +2 -3
- package/src/generated/schemas.gen.ts +1310 -104
- package/src/generated/services.gen.ts +597 -3
- package/src/generated/types.gen.ts +1511 -78
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,62 @@ 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
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Suggest transaction tags
|
|
754
|
+
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
755
|
+
* @param data The data for the request.
|
|
756
|
+
* @param data.region Region code for tenant context
|
|
757
|
+
* @param data.q Prefix match, case-insensitive (max 50 chars)
|
|
758
|
+
* @param data.sort usage (default) or name
|
|
759
|
+
* @param data.limit Max suggestions (1-100, default 10)
|
|
760
|
+
* @returns TagSuggestionsResponseDto Tag suggestions
|
|
761
|
+
* @throws ApiError
|
|
762
|
+
*/
|
|
763
|
+
static transactionControllerSuggestTags(data) {
|
|
764
|
+
return request(OpenAPI, {
|
|
765
|
+
method: "GET",
|
|
766
|
+
url: "/api/v1/{region}/bean/transactions/tags",
|
|
767
|
+
path: {
|
|
768
|
+
region: data.region
|
|
769
|
+
},
|
|
770
|
+
query: {
|
|
771
|
+
q: data.q,
|
|
772
|
+
sort: data.sort,
|
|
773
|
+
limit: data.limit
|
|
774
|
+
},
|
|
775
|
+
errors: {
|
|
776
|
+
400: "Validation failed",
|
|
777
|
+
401: "Authentication required"
|
|
778
|
+
}
|
|
779
|
+
});
|
|
780
|
+
}
|
|
723
781
|
/**
|
|
724
782
|
* Get transaction detail
|
|
725
783
|
* Returns transaction details including all postings
|
|
@@ -1028,7 +1086,7 @@ var ProviderSyncService = class {
|
|
|
1028
1086
|
*
|
|
1029
1087
|
* @param data The data for the request.
|
|
1030
1088
|
* @param data.providerName Provider name
|
|
1031
|
-
* @param data.region Region code
|
|
1089
|
+
* @param data.region Region code for tenant context
|
|
1032
1090
|
* @param data.requestBody
|
|
1033
1091
|
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
1034
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,62 @@ 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
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Suggest transaction tags
|
|
722
|
+
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
723
|
+
* @param data The data for the request.
|
|
724
|
+
* @param data.region Region code for tenant context
|
|
725
|
+
* @param data.q Prefix match, case-insensitive (max 50 chars)
|
|
726
|
+
* @param data.sort usage (default) or name
|
|
727
|
+
* @param data.limit Max suggestions (1-100, default 10)
|
|
728
|
+
* @returns TagSuggestionsResponseDto Tag suggestions
|
|
729
|
+
* @throws ApiError
|
|
730
|
+
*/
|
|
731
|
+
static transactionControllerSuggestTags(data) {
|
|
732
|
+
return request(OpenAPI, {
|
|
733
|
+
method: "GET",
|
|
734
|
+
url: "/api/v1/{region}/bean/transactions/tags",
|
|
735
|
+
path: {
|
|
736
|
+
region: data.region
|
|
737
|
+
},
|
|
738
|
+
query: {
|
|
739
|
+
q: data.q,
|
|
740
|
+
sort: data.sort,
|
|
741
|
+
limit: data.limit
|
|
742
|
+
},
|
|
743
|
+
errors: {
|
|
744
|
+
400: "Validation failed",
|
|
745
|
+
401: "Authentication required"
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
}
|
|
691
749
|
/**
|
|
692
750
|
* Get transaction detail
|
|
693
751
|
* Returns transaction details including all postings
|
|
@@ -996,7 +1054,7 @@ var ProviderSyncService = class {
|
|
|
996
1054
|
*
|
|
997
1055
|
* @param data The data for the request.
|
|
998
1056
|
* @param data.providerName Provider name
|
|
999
|
-
* @param data.region Region code
|
|
1057
|
+
* @param data.region Region code for tenant context
|
|
1000
1058
|
* @param data.requestBody
|
|
1001
1059
|
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
1002
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.
|
|
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",
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
"src"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"
|
|
28
|
-
"generate": "npm run sync && openapi-ts",
|
|
27
|
+
"generate": "openapi-ts",
|
|
29
28
|
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
30
29
|
"lint": "spectral lint openapi.yaml",
|
|
31
30
|
"prepublishOnly": "npm run generate && npm run build"
|