@delopay/sdk 0.299.0 → 0.301.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/{index-DjY8wPI5.d.cts → index-B2ilGXPx.d.cts} +102 -7
- package/dist/{index-DjY8wPI5.d.ts → index-B2ilGXPx.d.ts} +102 -7
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/internal.cjs +34 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +27 -3
- package/dist/internal.d.ts +27 -3
- package/dist/internal.js +34 -0
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
package/dist/internal.cjs
CHANGED
|
@@ -16161,6 +16161,40 @@ var AdminPortal = class {
|
|
|
16161
16161
|
query: params
|
|
16162
16162
|
});
|
|
16163
16163
|
}
|
|
16164
|
+
/**
|
|
16165
|
+
* The operators' own analytics exclusions, oldest first, with the payments
|
|
16166
|
+
* each one matched in the lookback window. They change the admin's
|
|
16167
|
+
* analytics only; a merchant's own rules never change the admin's figures.
|
|
16168
|
+
* `GET /admin-portal/analytics/exclusions`
|
|
16169
|
+
*/
|
|
16170
|
+
async listAnalyticsExclusions() {
|
|
16171
|
+
return this.request("GET", "/admin-portal/analytics/exclusions");
|
|
16172
|
+
}
|
|
16173
|
+
/**
|
|
16174
|
+
* Write a new operator rule. Omitting `merchant_id` applies it to every
|
|
16175
|
+
* merchant; omitting `surfaces` means **all five**, not none.
|
|
16176
|
+
* `POST /admin-portal/analytics/exclusions`
|
|
16177
|
+
*/
|
|
16178
|
+
async createAnalyticsExclusion(rule) {
|
|
16179
|
+
return this.request("POST", "/admin-portal/analytics/exclusions", { body: rule });
|
|
16180
|
+
}
|
|
16181
|
+
/**
|
|
16182
|
+
* Replace an operator rule **completely** — send the whole rule, including
|
|
16183
|
+
* an explicit `null` for every optional field you mean to clear.
|
|
16184
|
+
* `PUT /admin-portal/analytics/exclusions/{id}`
|
|
16185
|
+
*/
|
|
16186
|
+
async updateAnalyticsExclusion(id, rule) {
|
|
16187
|
+
return this.request("PUT", `/admin-portal/analytics/exclusions/${encodeURIComponent(id)}`, {
|
|
16188
|
+
body: rule
|
|
16189
|
+
});
|
|
16190
|
+
}
|
|
16191
|
+
/**
|
|
16192
|
+
* Delete an operator rule. Returns the rule as it was.
|
|
16193
|
+
* `DELETE /admin-portal/analytics/exclusions/{id}`
|
|
16194
|
+
*/
|
|
16195
|
+
async deleteAnalyticsExclusion(id) {
|
|
16196
|
+
return this.request("DELETE", `/admin-portal/analytics/exclusions/${encodeURIComponent(id)}`);
|
|
16197
|
+
}
|
|
16164
16198
|
/**
|
|
16165
16199
|
* Device analytics over the canonical client-context observation per
|
|
16166
16200
|
* payment, rooted at all merchants and drillable via `merchant_id` /
|