@firela/api-types 0.0.0-canary.32edff08 → 0.0.0-canary.52154bb3
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 +751 -9
- package/dist/index.d.ts +751 -9
- package/dist/index.js +28 -1
- package/dist/index.mjs +28 -1
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +739 -3
- package/src/generated/services.gen.ts +303 -2
- package/src/generated/types.gen.ts +881 -82
package/dist/index.js
CHANGED
|
@@ -720,6 +720,33 @@ 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
|
+
}
|
|
723
750
|
/**
|
|
724
751
|
* Suggest transaction tags
|
|
725
752
|
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
@@ -1057,7 +1084,7 @@ var ProviderSyncService = class {
|
|
|
1057
1084
|
*
|
|
1058
1085
|
* @param data The data for the request.
|
|
1059
1086
|
* @param data.providerName Provider name
|
|
1060
|
-
* @param data.region Region code
|
|
1087
|
+
* @param data.region Region code for tenant context
|
|
1061
1088
|
* @param data.requestBody
|
|
1062
1089
|
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
1063
1090
|
* @throws ApiError
|
package/dist/index.mjs
CHANGED
|
@@ -688,6 +688,33 @@ 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
|
+
}
|
|
691
718
|
/**
|
|
692
719
|
* Suggest transaction tags
|
|
693
720
|
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
@@ -1025,7 +1052,7 @@ var ProviderSyncService = class {
|
|
|
1025
1052
|
*
|
|
1026
1053
|
* @param data The data for the request.
|
|
1027
1054
|
* @param data.providerName Provider name
|
|
1028
|
-
* @param data.region Region code
|
|
1055
|
+
* @param data.region Region code for tenant context
|
|
1029
1056
|
* @param data.requestBody
|
|
1030
1057
|
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
1031
1058
|
* @throws ApiError
|