@firela/api-types 0.0.0-canary.ab69e138 → 0.0.0-canary.ad70e5a
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 +2044 -1778
- package/dist/index.d.ts +2044 -1778
- package/dist/index.js +25 -0
- package/dist/index.mjs +25 -0
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +2385 -2079
- package/src/generated/services.gen.ts +1117 -1007
- package/src/generated/types.gen.ts +3313 -2442
package/dist/index.js
CHANGED
|
@@ -750,6 +750,31 @@ var BeanTransactionsService = class {
|
|
|
750
750
|
}
|
|
751
751
|
});
|
|
752
752
|
}
|
|
753
|
+
/**
|
|
754
|
+
* Batch void transactions
|
|
755
|
+
* Soft-deletes (VOIDED) a batch of the caller's ACTIVE transactions in one DB transaction. Voiding releases each row's importId dedup slot, so re-importing the same file after an undo batch-void imports every row again instead of skipping them as duplicates.
|
|
756
|
+
* @param data The data for the request.
|
|
757
|
+
* @param data.region Region code for tenant context
|
|
758
|
+
* @param data.requestBody Batch void request (1-500 unique transaction IDs)
|
|
759
|
+
* @returns BatchVoidResultDto Batch void result: count of rows voided plus ids not found / no longer ACTIVE
|
|
760
|
+
* @throws ApiError
|
|
761
|
+
*/
|
|
762
|
+
static transactionControllerBatchVoid(data) {
|
|
763
|
+
return request(OpenAPI, {
|
|
764
|
+
method: "POST",
|
|
765
|
+
url: "/api/v1/{region}/bean/transactions/batch-void",
|
|
766
|
+
path: {
|
|
767
|
+
region: data.region
|
|
768
|
+
},
|
|
769
|
+
body: data.requestBody,
|
|
770
|
+
mediaType: "application/json",
|
|
771
|
+
errors: {
|
|
772
|
+
400: "Validation failed (empty, over 500, duplicate or non-string ids)",
|
|
773
|
+
401: "Authentication required",
|
|
774
|
+
403: "Batch contains ids owned by another user \u2014 whole request rejected, nothing committed"
|
|
775
|
+
}
|
|
776
|
+
});
|
|
777
|
+
}
|
|
753
778
|
/**
|
|
754
779
|
* Correct (supersede) a transaction
|
|
755
780
|
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
package/dist/index.mjs
CHANGED
|
@@ -718,6 +718,31 @@ var BeanTransactionsService = class {
|
|
|
718
718
|
}
|
|
719
719
|
});
|
|
720
720
|
}
|
|
721
|
+
/**
|
|
722
|
+
* Batch void transactions
|
|
723
|
+
* Soft-deletes (VOIDED) a batch of the caller's ACTIVE transactions in one DB transaction. Voiding releases each row's importId dedup slot, so re-importing the same file after an undo batch-void imports every row again instead of skipping them as duplicates.
|
|
724
|
+
* @param data The data for the request.
|
|
725
|
+
* @param data.region Region code for tenant context
|
|
726
|
+
* @param data.requestBody Batch void request (1-500 unique transaction IDs)
|
|
727
|
+
* @returns BatchVoidResultDto Batch void result: count of rows voided plus ids not found / no longer ACTIVE
|
|
728
|
+
* @throws ApiError
|
|
729
|
+
*/
|
|
730
|
+
static transactionControllerBatchVoid(data) {
|
|
731
|
+
return request(OpenAPI, {
|
|
732
|
+
method: "POST",
|
|
733
|
+
url: "/api/v1/{region}/bean/transactions/batch-void",
|
|
734
|
+
path: {
|
|
735
|
+
region: data.region
|
|
736
|
+
},
|
|
737
|
+
body: data.requestBody,
|
|
738
|
+
mediaType: "application/json",
|
|
739
|
+
errors: {
|
|
740
|
+
400: "Validation failed (empty, over 500, duplicate or non-string ids)",
|
|
741
|
+
401: "Authentication required",
|
|
742
|
+
403: "Batch contains ids owned by another user \u2014 whole request rejected, nothing committed"
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
}
|
|
721
746
|
/**
|
|
722
747
|
* Correct (supersede) a transaction
|
|
723
748
|
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|