@delopay/sdk 0.301.0 → 0.302.0
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/internal.cjs +29 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +90 -1
- package/dist/internal.d.ts +90 -1
- package/dist/internal.js +29 -0
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
package/dist/internal.cjs
CHANGED
|
@@ -16807,6 +16807,35 @@ var AdminPortal = class {
|
|
|
16807
16807
|
query: { revision: options.revision }
|
|
16808
16808
|
});
|
|
16809
16809
|
}
|
|
16810
|
+
/**
|
|
16811
|
+
* What recalculating the shop risk history over `range` would do, without
|
|
16812
|
+
* queuing it: its days, the first day whose counters are rebuilt, the model
|
|
16813
|
+
* it would score with now, and the run of the same range already recorded.
|
|
16814
|
+
* Refused exactly where `startRiskBackfill()` would be.
|
|
16815
|
+
*
|
|
16816
|
+
* `POST /admin-portal/risk-engine/backfill/preview`
|
|
16817
|
+
*/
|
|
16818
|
+
async previewRiskBackfill(range) {
|
|
16819
|
+
return this.request("POST", "/admin-portal/risk-engine/backfill/preview", { body: range });
|
|
16820
|
+
}
|
|
16821
|
+
/**
|
|
16822
|
+
* Queue a recalculation of `range`. Days that already have a risk score keep
|
|
16823
|
+
* it, and recalculated days never alert. While the same range is queued or
|
|
16824
|
+
* running, nothing new is started and `enqueued` is `false`.
|
|
16825
|
+
*
|
|
16826
|
+
* `POST /admin-portal/risk-engine/backfill`
|
|
16827
|
+
*/
|
|
16828
|
+
async startRiskBackfill(range) {
|
|
16829
|
+
return this.request("POST", "/admin-portal/risk-engine/backfill", { body: range });
|
|
16830
|
+
}
|
|
16831
|
+
/**
|
|
16832
|
+
* One recalculation by the `job_id` a preview or start returned.
|
|
16833
|
+
*
|
|
16834
|
+
* `GET /admin-portal/risk-engine/backfill/{job_id}`
|
|
16835
|
+
*/
|
|
16836
|
+
async getRiskBackfill(jobId) {
|
|
16837
|
+
return this.request("GET", `/admin-portal/risk-engine/backfill/${encodeURIComponent(jobId)}`);
|
|
16838
|
+
}
|
|
16810
16839
|
};
|
|
16811
16840
|
function transactionListQuery(params) {
|
|
16812
16841
|
if (!params) return void 0;
|