@firela/api-types 0.0.0-canary.6feee68d → 0.0.0-canary.792fa5f1
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 +930 -118
- package/dist/index.d.ts +930 -118
- package/dist/index.js +57 -1
- package/dist/index.mjs +57 -1
- package/package.json +2 -3
- package/src/generated/schemas.gen.ts +831 -17
- package/src/generated/services.gen.ts +337 -2
- package/src/generated/types.gen.ts +1037 -119
package/dist/index.js
CHANGED
|
@@ -720,6 +720,62 @@ var BeanTransactionsService = class {
|
|
|
720
720
|
}
|
|
721
721
|
});
|
|
722
722
|
}
|
|
723
|
+
/**
|
|
724
|
+
* Correct (supersede) a transaction
|
|
725
|
+
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
726
|
+
* @param data The data for the request.
|
|
727
|
+
* @param data.id Original transaction ID to correct
|
|
728
|
+
* @param data.region Region code for tenant context
|
|
729
|
+
* @param data.requestBody
|
|
730
|
+
* @returns TransactionDetailDto Corrected transaction created
|
|
731
|
+
* @throws ApiError
|
|
732
|
+
*/
|
|
733
|
+
static transactionControllerCorrect(data) {
|
|
734
|
+
return request(OpenAPI, {
|
|
735
|
+
method: "POST",
|
|
736
|
+
url: "/api/v1/{region}/bean/transactions/{id}/correct",
|
|
737
|
+
path: {
|
|
738
|
+
id: data.id,
|
|
739
|
+
region: data.region
|
|
740
|
+
},
|
|
741
|
+
body: data.requestBody,
|
|
742
|
+
mediaType: "application/json",
|
|
743
|
+
errors: {
|
|
744
|
+
404: "Original transaction not found",
|
|
745
|
+
409: "Original no longer ACTIVE (concurrent modification)",
|
|
746
|
+
422: "Pipeline validation failed (does not balance, invalid accounts)"
|
|
747
|
+
}
|
|
748
|
+
});
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* Suggest transaction tags
|
|
752
|
+
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
753
|
+
* @param data The data for the request.
|
|
754
|
+
* @param data.region Region code for tenant context
|
|
755
|
+
* @param data.q Prefix match, case-insensitive (max 50 chars)
|
|
756
|
+
* @param data.sort usage (default) or name
|
|
757
|
+
* @param data.limit Max suggestions (1-100, default 10)
|
|
758
|
+
* @returns TagSuggestionsResponseDto Tag suggestions
|
|
759
|
+
* @throws ApiError
|
|
760
|
+
*/
|
|
761
|
+
static transactionControllerSuggestTags(data) {
|
|
762
|
+
return request(OpenAPI, {
|
|
763
|
+
method: "GET",
|
|
764
|
+
url: "/api/v1/{region}/bean/transactions/tags",
|
|
765
|
+
path: {
|
|
766
|
+
region: data.region
|
|
767
|
+
},
|
|
768
|
+
query: {
|
|
769
|
+
q: data.q,
|
|
770
|
+
sort: data.sort,
|
|
771
|
+
limit: data.limit
|
|
772
|
+
},
|
|
773
|
+
errors: {
|
|
774
|
+
400: "Validation failed",
|
|
775
|
+
401: "Authentication required"
|
|
776
|
+
}
|
|
777
|
+
});
|
|
778
|
+
}
|
|
723
779
|
/**
|
|
724
780
|
* Get transaction detail
|
|
725
781
|
* Returns transaction details including all postings
|
|
@@ -1028,7 +1084,7 @@ var ProviderSyncService = class {
|
|
|
1028
1084
|
*
|
|
1029
1085
|
* @param data The data for the request.
|
|
1030
1086
|
* @param data.providerName Provider name
|
|
1031
|
-
* @param data.region Region code
|
|
1087
|
+
* @param data.region Region code for tenant context
|
|
1032
1088
|
* @param data.requestBody
|
|
1033
1089
|
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
1034
1090
|
* @throws ApiError
|
package/dist/index.mjs
CHANGED
|
@@ -688,6 +688,62 @@ var BeanTransactionsService = class {
|
|
|
688
688
|
}
|
|
689
689
|
});
|
|
690
690
|
}
|
|
691
|
+
/**
|
|
692
|
+
* Correct (supersede) a transaction
|
|
693
|
+
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
694
|
+
* @param data The data for the request.
|
|
695
|
+
* @param data.id Original transaction ID to correct
|
|
696
|
+
* @param data.region Region code for tenant context
|
|
697
|
+
* @param data.requestBody
|
|
698
|
+
* @returns TransactionDetailDto Corrected transaction created
|
|
699
|
+
* @throws ApiError
|
|
700
|
+
*/
|
|
701
|
+
static transactionControllerCorrect(data) {
|
|
702
|
+
return request(OpenAPI, {
|
|
703
|
+
method: "POST",
|
|
704
|
+
url: "/api/v1/{region}/bean/transactions/{id}/correct",
|
|
705
|
+
path: {
|
|
706
|
+
id: data.id,
|
|
707
|
+
region: data.region
|
|
708
|
+
},
|
|
709
|
+
body: data.requestBody,
|
|
710
|
+
mediaType: "application/json",
|
|
711
|
+
errors: {
|
|
712
|
+
404: "Original transaction not found",
|
|
713
|
+
409: "Original no longer ACTIVE (concurrent modification)",
|
|
714
|
+
422: "Pipeline validation failed (does not balance, invalid accounts)"
|
|
715
|
+
}
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* Suggest transaction tags
|
|
720
|
+
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
721
|
+
* @param data The data for the request.
|
|
722
|
+
* @param data.region Region code for tenant context
|
|
723
|
+
* @param data.q Prefix match, case-insensitive (max 50 chars)
|
|
724
|
+
* @param data.sort usage (default) or name
|
|
725
|
+
* @param data.limit Max suggestions (1-100, default 10)
|
|
726
|
+
* @returns TagSuggestionsResponseDto Tag suggestions
|
|
727
|
+
* @throws ApiError
|
|
728
|
+
*/
|
|
729
|
+
static transactionControllerSuggestTags(data) {
|
|
730
|
+
return request(OpenAPI, {
|
|
731
|
+
method: "GET",
|
|
732
|
+
url: "/api/v1/{region}/bean/transactions/tags",
|
|
733
|
+
path: {
|
|
734
|
+
region: data.region
|
|
735
|
+
},
|
|
736
|
+
query: {
|
|
737
|
+
q: data.q,
|
|
738
|
+
sort: data.sort,
|
|
739
|
+
limit: data.limit
|
|
740
|
+
},
|
|
741
|
+
errors: {
|
|
742
|
+
400: "Validation failed",
|
|
743
|
+
401: "Authentication required"
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
}
|
|
691
747
|
/**
|
|
692
748
|
* Get transaction detail
|
|
693
749
|
* Returns transaction details including all postings
|
|
@@ -996,7 +1052,7 @@ var ProviderSyncService = class {
|
|
|
996
1052
|
*
|
|
997
1053
|
* @param data The data for the request.
|
|
998
1054
|
* @param data.providerName Provider name
|
|
999
|
-
* @param data.region Region code
|
|
1055
|
+
* @param data.region Region code for tenant context
|
|
1000
1056
|
* @param data.requestBody
|
|
1001
1057
|
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
1002
1058
|
* @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.792fa5f1",
|
|
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"
|