@delopay/sdk 0.301.0 → 0.304.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/{chunk-32VR22VH.js → chunk-ZAYJIXX6.js} +15 -1
- package/dist/chunk-ZAYJIXX6.js.map +1 -0
- package/dist/{index-B2ilGXPx.d.cts → index-CX18XhHn.d.cts} +171 -3
- package/dist/{index-B2ilGXPx.d.ts → index-CX18XhHn.d.ts} +171 -3
- package/dist/index.cjs +14 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +75 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +112 -3
- package/dist/internal.d.ts +112 -3
- package/dist/internal.js +62 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-32VR22VH.js.map +0 -1
package/dist/internal.cjs
CHANGED
|
@@ -5997,6 +5997,20 @@ var Analytics = class {
|
|
|
5997
5997
|
query: params
|
|
5998
5998
|
});
|
|
5999
5999
|
}
|
|
6000
|
+
/**
|
|
6001
|
+
* Shop comparison: one series per shop over one window, with whole-window
|
|
6002
|
+
* and previous-window totals, so shops can be drawn side by side. Pinned
|
|
6003
|
+
* server-side to your own merchant (`merchant_id` is ignored), and to your
|
|
6004
|
+
* single shop for a shop-scoped user; `project_id` / `shop_id` narrow it.
|
|
6005
|
+
* Shops without activity are included, sorted by name. Hourly buckets are
|
|
6006
|
+
* refused for windows over 7 days. Accepts an API key like `scope`.
|
|
6007
|
+
* `GET /analytics/shops`
|
|
6008
|
+
*/
|
|
6009
|
+
async shops(params) {
|
|
6010
|
+
return this.request("GET", "/analytics/shops", {
|
|
6011
|
+
query: params
|
|
6012
|
+
});
|
|
6013
|
+
}
|
|
6000
6014
|
/**
|
|
6001
6015
|
* Device analytics over the canonical client-context observation per
|
|
6002
6016
|
* payment (browser/platform families, device classes and models, checkout
|
|
@@ -16195,6 +16209,38 @@ var AdminPortal = class {
|
|
|
16195
16209
|
async deleteAnalyticsExclusion(id) {
|
|
16196
16210
|
return this.request("DELETE", `/admin-portal/analytics/exclusions/${encodeURIComponent(id)}`);
|
|
16197
16211
|
}
|
|
16212
|
+
/**
|
|
16213
|
+
* A merchant's own exclusions, read-only, each with the operator rule that
|
|
16214
|
+
* already holds it (`admin_rule_id`).
|
|
16215
|
+
* `GET /admin-portal/analytics/exclusions/merchant/{merchant_id}`
|
|
16216
|
+
*/
|
|
16217
|
+
async listMerchantAnalyticsExclusions(merchantId) {
|
|
16218
|
+
return this.request(
|
|
16219
|
+
"GET",
|
|
16220
|
+
`/admin-portal/analytics/exclusions/merchant/${encodeURIComponent(merchantId)}`
|
|
16221
|
+
);
|
|
16222
|
+
}
|
|
16223
|
+
/**
|
|
16224
|
+
* Copy some of a merchant's rules into the operators' rules, each scoped to
|
|
16225
|
+
* that merchant. A copy is independent of its source; a rule an operator
|
|
16226
|
+
* rule already holds is skipped with a reason.
|
|
16227
|
+
* `POST /admin-portal/analytics/exclusions/copy`
|
|
16228
|
+
*/
|
|
16229
|
+
async copyAnalyticsExclusions(body) {
|
|
16230
|
+
return this.request("POST", "/admin-portal/analytics/exclusions/copy", { body });
|
|
16231
|
+
}
|
|
16232
|
+
/**
|
|
16233
|
+
* Shop comparison for one merchant: one series per shop over one window,
|
|
16234
|
+
* with whole-window and previous-window totals. `merchant_id` is required
|
|
16235
|
+
* (400 without it). Same contract as the merchant surface's
|
|
16236
|
+
* `analytics.shops`. `GET /admin-portal/analytics/shops`
|
|
16237
|
+
*/
|
|
16238
|
+
async analyticsShops(params) {
|
|
16239
|
+
const query = params;
|
|
16240
|
+
return this.request("GET", "/admin-portal/analytics/shops", {
|
|
16241
|
+
query
|
|
16242
|
+
});
|
|
16243
|
+
}
|
|
16198
16244
|
/**
|
|
16199
16245
|
* Device analytics over the canonical client-context observation per
|
|
16200
16246
|
* payment, rooted at all merchants and drillable via `merchant_id` /
|
|
@@ -16807,6 +16853,35 @@ var AdminPortal = class {
|
|
|
16807
16853
|
query: { revision: options.revision }
|
|
16808
16854
|
});
|
|
16809
16855
|
}
|
|
16856
|
+
/**
|
|
16857
|
+
* What recalculating the shop risk history over `range` would do, without
|
|
16858
|
+
* queuing it: its days, the first day whose counters are rebuilt, the model
|
|
16859
|
+
* it would score with now, and the run of the same range already recorded.
|
|
16860
|
+
* Refused exactly where `startRiskBackfill()` would be.
|
|
16861
|
+
*
|
|
16862
|
+
* `POST /admin-portal/risk-engine/backfill/preview`
|
|
16863
|
+
*/
|
|
16864
|
+
async previewRiskBackfill(range) {
|
|
16865
|
+
return this.request("POST", "/admin-portal/risk-engine/backfill/preview", { body: range });
|
|
16866
|
+
}
|
|
16867
|
+
/**
|
|
16868
|
+
* Queue a recalculation of `range`. Days that already have a risk score keep
|
|
16869
|
+
* it, and recalculated days never alert. While the same range is queued or
|
|
16870
|
+
* running, nothing new is started and `enqueued` is `false`.
|
|
16871
|
+
*
|
|
16872
|
+
* `POST /admin-portal/risk-engine/backfill`
|
|
16873
|
+
*/
|
|
16874
|
+
async startRiskBackfill(range) {
|
|
16875
|
+
return this.request("POST", "/admin-portal/risk-engine/backfill", { body: range });
|
|
16876
|
+
}
|
|
16877
|
+
/**
|
|
16878
|
+
* One recalculation by the `job_id` a preview or start returned.
|
|
16879
|
+
*
|
|
16880
|
+
* `GET /admin-portal/risk-engine/backfill/{job_id}`
|
|
16881
|
+
*/
|
|
16882
|
+
async getRiskBackfill(jobId) {
|
|
16883
|
+
return this.request("GET", `/admin-portal/risk-engine/backfill/${encodeURIComponent(jobId)}`);
|
|
16884
|
+
}
|
|
16810
16885
|
};
|
|
16811
16886
|
function transactionListQuery(params) {
|
|
16812
16887
|
if (!params) return void 0;
|