@rebilly/instruments 16.184.0 → 16.185.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/CHANGELOG.md +2 -2
- package/dist/index.js +63 -48
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [16.
|
|
1
|
+
## [16.185.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.184.0...instruments/core-v16.185.0) (2026-09-17)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* **
|
|
6
|
+
* **fe:** Add AML audit report ([#23848](https://github.com/Rebilly/rebilly/issues/23848)) ([9677e5c](https://github.com/Rebilly/rebilly/commit/9677e5c5daf173383eb625fa06d9c8796286619a))
|
package/dist/index.js
CHANGED
|
@@ -5957,8 +5957,8 @@ const {
|
|
|
5957
5957
|
mergeConfig,
|
|
5958
5958
|
create
|
|
5959
5959
|
} = axios;
|
|
5960
|
-
var
|
|
5961
|
-
var ht$1 = (e, t, s) => t in e ?
|
|
5960
|
+
var $t$1 = Object.defineProperty;
|
|
5961
|
+
var ht$1 = (e, t, s) => t in e ? $t$1(e, t, { enumerable: true, configurable: true, writable: true, value: s }) : e[t] = s;
|
|
5962
5962
|
var E$1 = (e, t, s) => ht$1(e, typeof t != "symbol" ? t + "" : t, s);
|
|
5963
5963
|
function S$1(e, { exclude: t = [] } = {}) {
|
|
5964
5964
|
Object.freeze(e);
|
|
@@ -6085,23 +6085,23 @@ function st$1() {
|
|
|
6085
6085
|
if (Q$1) return x$1;
|
|
6086
6086
|
Q$1 = 1;
|
|
6087
6087
|
var e = Object.prototype.toString;
|
|
6088
|
-
x$1 = function(
|
|
6089
|
-
if (
|
|
6090
|
-
if (
|
|
6091
|
-
var h2 = typeof
|
|
6088
|
+
x$1 = function($2) {
|
|
6089
|
+
if ($2 === void 0) return "undefined";
|
|
6090
|
+
if ($2 === null) return "null";
|
|
6091
|
+
var h2 = typeof $2;
|
|
6092
6092
|
if (h2 === "boolean") return "boolean";
|
|
6093
6093
|
if (h2 === "string") return "string";
|
|
6094
6094
|
if (h2 === "number") return "number";
|
|
6095
6095
|
if (h2 === "symbol") return "symbol";
|
|
6096
6096
|
if (h2 === "function")
|
|
6097
|
-
return o(
|
|
6098
|
-
if (s(
|
|
6099
|
-
if (f(
|
|
6100
|
-
if (i(
|
|
6101
|
-
if (n(
|
|
6102
|
-
if (r(
|
|
6103
|
-
if (u(
|
|
6104
|
-
switch (t(
|
|
6097
|
+
return o($2) ? "generatorfunction" : "function";
|
|
6098
|
+
if (s($2)) return "array";
|
|
6099
|
+
if (f($2)) return "buffer";
|
|
6100
|
+
if (i($2)) return "arguments";
|
|
6101
|
+
if (n($2)) return "date";
|
|
6102
|
+
if (r($2)) return "error";
|
|
6103
|
+
if (u($2)) return "regexp";
|
|
6104
|
+
switch (t($2)) {
|
|
6105
6105
|
case "Symbol":
|
|
6106
6106
|
return "symbol";
|
|
6107
6107
|
case "Promise":
|
|
@@ -6137,9 +6137,9 @@ function st$1() {
|
|
|
6137
6137
|
case "Float64Array":
|
|
6138
6138
|
return "float64array";
|
|
6139
6139
|
}
|
|
6140
|
-
if (l(
|
|
6140
|
+
if (l($2))
|
|
6141
6141
|
return "generator";
|
|
6142
|
-
switch (h2 = e.call(
|
|
6142
|
+
switch (h2 = e.call($2), h2) {
|
|
6143
6143
|
case "[object Object]":
|
|
6144
6144
|
return "object";
|
|
6145
6145
|
// iterators
|
|
@@ -6169,7 +6169,7 @@ function st$1() {
|
|
|
6169
6169
|
function u(g) {
|
|
6170
6170
|
return g instanceof RegExp ? true : typeof g.flags == "string" && typeof g.ignoreCase == "boolean" && typeof g.multiline == "boolean" && typeof g.global == "boolean";
|
|
6171
6171
|
}
|
|
6172
|
-
function o(g,
|
|
6172
|
+
function o(g, $2) {
|
|
6173
6173
|
return t(g) === "GeneratorFunction";
|
|
6174
6174
|
}
|
|
6175
6175
|
function l(g) {
|
|
@@ -6179,8 +6179,8 @@ function st$1() {
|
|
|
6179
6179
|
try {
|
|
6180
6180
|
if (typeof g.length == "number" && typeof g.callee == "function")
|
|
6181
6181
|
return true;
|
|
6182
|
-
} catch (
|
|
6183
|
-
if (
|
|
6182
|
+
} catch ($2) {
|
|
6183
|
+
if ($2.message.indexOf("callee") !== -1)
|
|
6184
6184
|
return true;
|
|
6185
6185
|
}
|
|
6186
6186
|
return false;
|
|
@@ -6440,7 +6440,7 @@ function O$1({ options: e }) {
|
|
|
6440
6440
|
}
|
|
6441
6441
|
function o() {
|
|
6442
6442
|
const a = {
|
|
6443
|
-
"REB-API-CONSUMER": `${["Rebilly", e.appName, "js-sdk"].filter((m2) => m2).join("/")}@
|
|
6443
|
+
"REB-API-CONSUMER": `${["Rebilly", e.appName, "js-sdk"].filter((m2) => m2).join("/")}@9677e5c`
|
|
6444
6444
|
};
|
|
6445
6445
|
return e.apiKey && (a["REB-APIKEY"] = e.apiKey), a;
|
|
6446
6446
|
}
|
|
@@ -6458,7 +6458,7 @@ function O$1({ options: e }) {
|
|
|
6458
6458
|
const a = l();
|
|
6459
6459
|
e.publishableKey = c, a.common.Authorization = `${c}`, t.defaults.headers = a;
|
|
6460
6460
|
}
|
|
6461
|
-
function
|
|
6461
|
+
function $2({ host: c, port: a, auth: m2 }) {
|
|
6462
6462
|
t.defaults.proxy = {
|
|
6463
6463
|
host: c,
|
|
6464
6464
|
port: a,
|
|
@@ -6502,15 +6502,15 @@ function O$1({ options: e }) {
|
|
|
6502
6502
|
N2(w.response, c);
|
|
6503
6503
|
}
|
|
6504
6504
|
function v({ request: c, isCollection: a, config: m2 }) {
|
|
6505
|
-
const
|
|
6506
|
-
|
|
6505
|
+
const p = z2(m2), { id: R, cancelToken: pt2 } = q$1.save();
|
|
6506
|
+
p.cancelToken = pt2;
|
|
6507
6507
|
const G2 = (async function() {
|
|
6508
6508
|
try {
|
|
6509
|
-
const d = await c(
|
|
6509
|
+
const d = await c(p);
|
|
6510
6510
|
return lt2({
|
|
6511
6511
|
response: d,
|
|
6512
6512
|
isCollection: a,
|
|
6513
|
-
config:
|
|
6513
|
+
config: p
|
|
6514
6514
|
});
|
|
6515
6515
|
} catch (d) {
|
|
6516
6516
|
return L2({ error: d });
|
|
@@ -6550,8 +6550,8 @@ function O$1({ options: e }) {
|
|
|
6550
6550
|
return c.params[a] !== null && c.params[a] !== "" && !(a === "sort" && ((m2 = c.params[a]) == null ? void 0 : m2.length) === 0);
|
|
6551
6551
|
}
|
|
6552
6552
|
).reduce((a, m2) => {
|
|
6553
|
-
const
|
|
6554
|
-
return a[m2] = m2 === "sort" && Array.isArray(
|
|
6553
|
+
const p = c.params[m2];
|
|
6554
|
+
return a[m2] = m2 === "sort" && Array.isArray(p) ? p.join(",") : p, a;
|
|
6555
6555
|
}, {})), c;
|
|
6556
6556
|
}
|
|
6557
6557
|
function z2(c = {}) {
|
|
@@ -6571,15 +6571,15 @@ function O$1({ options: e }) {
|
|
|
6571
6571
|
});
|
|
6572
6572
|
}
|
|
6573
6573
|
function V2(c, a, m2 = {}) {
|
|
6574
|
-
let
|
|
6575
|
-
return m2.authenticate === false && (
|
|
6574
|
+
let p = {};
|
|
6575
|
+
return m2.authenticate === false && (p = { headers: l() }, delete p.headers.common["REB-APIKEY"], delete p.headers.common.Authorization), m2.params && (p.params = { ...m2.params }), v({
|
|
6576
6576
|
request: (R) => t.post(c, a, R),
|
|
6577
|
-
config:
|
|
6577
|
+
config: p
|
|
6578
6578
|
});
|
|
6579
6579
|
}
|
|
6580
6580
|
function J2(c, a, m2 = {}) {
|
|
6581
6581
|
return v({
|
|
6582
|
-
request: (
|
|
6582
|
+
request: (p) => t.put(c, a, p),
|
|
6583
6583
|
config: { params: m2 }
|
|
6584
6584
|
});
|
|
6585
6585
|
}
|
|
@@ -6598,9 +6598,9 @@ function O$1({ options: e }) {
|
|
|
6598
6598
|
function gt2(c, a) {
|
|
6599
6599
|
return W2(c, a);
|
|
6600
6600
|
}
|
|
6601
|
-
async function mt2(c, a, m2,
|
|
6601
|
+
async function mt2(c, a, m2, p = {}) {
|
|
6602
6602
|
if (a === "")
|
|
6603
|
-
return V2(c, m2, { params:
|
|
6603
|
+
return V2(c, m2, { params: p });
|
|
6604
6604
|
try {
|
|
6605
6605
|
if ((await U2(c)).response.status === 200)
|
|
6606
6606
|
throw new y.RebillyConflictError({
|
|
@@ -6608,17 +6608,17 @@ function O$1({ options: e }) {
|
|
|
6608
6608
|
});
|
|
6609
6609
|
} catch (R) {
|
|
6610
6610
|
if (R.name === "RebillyNotFoundError")
|
|
6611
|
-
return J2(c, m2,
|
|
6611
|
+
return J2(c, m2, p);
|
|
6612
6612
|
throw R;
|
|
6613
6613
|
}
|
|
6614
6614
|
}
|
|
6615
6615
|
async function ft2(c, a) {
|
|
6616
6616
|
const m2 = z2(a);
|
|
6617
6617
|
try {
|
|
6618
|
-
const
|
|
6619
|
-
return new At$1(
|
|
6620
|
-
} catch (
|
|
6621
|
-
return L2({ error:
|
|
6618
|
+
const p = await t.get(c, m2);
|
|
6619
|
+
return new At$1(p, m2);
|
|
6620
|
+
} catch (p) {
|
|
6621
|
+
return L2({ error: p });
|
|
6622
6622
|
}
|
|
6623
6623
|
}
|
|
6624
6624
|
return {
|
|
@@ -6628,7 +6628,7 @@ function O$1({ options: e }) {
|
|
|
6628
6628
|
addResponseInterceptor: ut2,
|
|
6629
6629
|
removeResponseInterceptor: ot2,
|
|
6630
6630
|
setTimeout: i,
|
|
6631
|
-
setProxyAgent:
|
|
6631
|
+
setProxyAgent: $2,
|
|
6632
6632
|
setSessionToken: f,
|
|
6633
6633
|
setPublishableKey: g,
|
|
6634
6634
|
setEndpoints: h2,
|
|
@@ -7861,7 +7861,7 @@ function fe$1({ apiHandler: e }) {
|
|
|
7861
7861
|
}
|
|
7862
7862
|
};
|
|
7863
7863
|
}
|
|
7864
|
-
function $
|
|
7864
|
+
function pe$1({ apiHandler: e }) {
|
|
7865
7865
|
return {
|
|
7866
7866
|
/**
|
|
7867
7867
|
* @param { rebilly.GetFeeCollectionRequest } request
|
|
@@ -7898,7 +7898,7 @@ function $e$1({ apiHandler: e }) {
|
|
|
7898
7898
|
}
|
|
7899
7899
|
};
|
|
7900
7900
|
}
|
|
7901
|
-
function
|
|
7901
|
+
function $e$1({ apiHandler: e }) {
|
|
7902
7902
|
return {
|
|
7903
7903
|
/**
|
|
7904
7904
|
* @param { rebilly.GetAttachmentCollectionRequest } request
|
|
@@ -10165,7 +10165,7 @@ function fs({ apiHandler: e }) {
|
|
|
10165
10165
|
}
|
|
10166
10166
|
};
|
|
10167
10167
|
}
|
|
10168
|
-
function
|
|
10168
|
+
function ps({ apiHandler: e }) {
|
|
10169
10169
|
return {
|
|
10170
10170
|
/**
|
|
10171
10171
|
* @param { rebilly.GetWebsiteCollectionRequest } request
|
|
@@ -10205,7 +10205,7 @@ function $s({ apiHandler: e }) {
|
|
|
10205
10205
|
}
|
|
10206
10206
|
};
|
|
10207
10207
|
}
|
|
10208
|
-
class
|
|
10208
|
+
class $s {
|
|
10209
10209
|
constructor({ apiHandler: t }) {
|
|
10210
10210
|
this.accountRegistrationSettings = Ft$1({
|
|
10211
10211
|
apiHandler: t
|
|
@@ -10213,13 +10213,13 @@ class ps {
|
|
|
10213
10213
|
apiHandler: t
|
|
10214
10214
|
}), this.depositRequests = ne$1({ apiHandler: t }), this.depositStrategies = ue$1({ apiHandler: t }), this.digitalWallets = oe$1({ apiHandler: t }), this.disputes = le$1({ apiHandler: t }), this.emailDeliverySettings = ce$1({ apiHandler: t }), this.emailMessages = ie$1({ apiHandler: t }), this.emailNotifications = ae$1({ apiHandler: t }), this.events = ge({ apiHandler: t }), this.externalIdentifiers = me$1({ apiHandler: t }), this.externalServicesSettings = fe$1({
|
|
10215
10215
|
apiHandler: t
|
|
10216
|
-
}), this.fees = $
|
|
10216
|
+
}), this.fees = pe$1({ apiHandler: t }), this.files = $e$1({ apiHandler: t }), this.gatewayAccounts = he$1({ apiHandler: t }), this.integrations = ye$1({ apiHandler: t }), this.invoices = Ae$1({ apiHandler: t }), this.journalAccounts = Re$1({ apiHandler: t }), this.journalEntries = be({ apiHandler: t }), this.journalRecords = we$1({ apiHandler: t }), this.kycDocuments = ke$1({ apiHandler: t }), this.kycRequests = ve$1({ apiHandler: t }), this.kycSettings = qe$1({ apiHandler: t }), this.lists = de$1({ apiHandler: t }), this.memberships = Te$1({ apiHandler: t }), this.orderCancellations = Ie$1({ apiHandler: t }), this.orderPauses = Se$1({ apiHandler: t }), this.orderReactivations = Ee$1({ apiHandler: t }), this.orders = xe$1({ apiHandler: t }), this.organizationExports = Pe$1({ apiHandler: t }), this.organizations = Ce$1({ apiHandler: t }), this.paymentCardsBankNames = De$1({ apiHandler: t }), this.paymentInstruments = je$1({ apiHandler: t }), this.paymentMethods = Me$1({ apiHandler: t }), this.paymentTokens = Oe$1({ apiHandler: t }), this.payoutRequestAllocations = Fe$1({
|
|
10217
10217
|
apiHandler: t
|
|
10218
10218
|
}), this.payoutRequestBatches = Be$1({ apiHandler: t }), this.payoutRequestSplits = Ke$1({ apiHandler: t }), this.payoutRequests = Ne$1({ apiHandler: t }), this.payouts = Le$1({ apiHandler: t }), this.plans = ze$1({ apiHandler: t }), this.previews = Ue$1({ apiHandler: t }), this.products = Ve$1({ apiHandler: t }), this.profile = Je$1({ apiHandler: t }), this.purchase = We$1({ apiHandler: t }), this.quotes = Ge$1({ apiHandler: t }), this.resource = Ye$1({ apiHandler: t }), this.riskScoreRules = Qe$1({ apiHandler: t }), this.roles = Xe$1({ apiHandler: t }), this.search = Ze$1({ apiHandler: t }), this.segments = _e$1({ apiHandler: t }), this.sendThroughAttribution = He$1({ apiHandler: t }), this.serviceCredentials = ts({ apiHandler: t }), this.shippingRates = es({ apiHandler: t }), this.status = ss({ apiHandler: t }), this.subscriptionCancellations = rs({
|
|
10219
10219
|
apiHandler: t
|
|
10220
10220
|
}), this.subscriptionPauses = ns({ apiHandler: t }), this.subscriptionReactivations = us({
|
|
10221
10221
|
apiHandler: t
|
|
10222
|
-
}), this.subscriptions = os({ apiHandler: t }), this.tags = ls({ apiHandler: t }), this.tagsRules = cs({ apiHandler: t }), this.tracking = is({ apiHandler: t }), this.transactions = as({ apiHandler: t }), this.usages = gs({ apiHandler: t }), this.users = ms({ apiHandler: t }), this.webhooks = fs({ apiHandler: t }), this.websites =
|
|
10222
|
+
}), this.subscriptions = os({ apiHandler: t }), this.tags = ls({ apiHandler: t }), this.tagsRules = cs({ apiHandler: t }), this.tracking = is({ apiHandler: t }), this.transactions = as({ apiHandler: t }), this.usages = gs({ apiHandler: t }), this.users = ms({ apiHandler: t }), this.webhooks = fs({ apiHandler: t }), this.websites = ps({ apiHandler: t }), this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setPublishableKey = t.setPublishableKey, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken, this.generateSignature = t.generateSignature;
|
|
10223
10223
|
}
|
|
10224
10224
|
}
|
|
10225
10225
|
function hs({ apiHandler: e }) {
|
|
@@ -10665,7 +10665,7 @@ function Rs({ apiHandler: e }) {
|
|
|
10665
10665
|
offset: i = null,
|
|
10666
10666
|
filter: f = null,
|
|
10667
10667
|
sort: g = null,
|
|
10668
|
-
criteria:
|
|
10668
|
+
criteria: $2 = null
|
|
10669
10669
|
}) {
|
|
10670
10670
|
const h2 = {
|
|
10671
10671
|
aggregationField: t,
|
|
@@ -10678,7 +10678,7 @@ function Rs({ apiHandler: e }) {
|
|
|
10678
10678
|
offset: i,
|
|
10679
10679
|
filter: f,
|
|
10680
10680
|
sort: g,
|
|
10681
|
-
criteria:
|
|
10681
|
+
criteria: $2
|
|
10682
10682
|
};
|
|
10683
10683
|
return e.get("reports/retention-value", h2);
|
|
10684
10684
|
},
|
|
@@ -10802,6 +10802,21 @@ function Rs({ apiHandler: e }) {
|
|
|
10802
10802
|
filter: o
|
|
10803
10803
|
};
|
|
10804
10804
|
return e.get("reports/transactions", l);
|
|
10805
|
+
},
|
|
10806
|
+
downloadAmlAuditReport({
|
|
10807
|
+
personId: t,
|
|
10808
|
+
periodStart: s = null,
|
|
10809
|
+
periodEnd: r = null,
|
|
10810
|
+
filter: n = null,
|
|
10811
|
+
// Selects the export format: 'application/pdf' (default), 'text/csv', or 'application/json'.
|
|
10812
|
+
accept: u = "application/pdf"
|
|
10813
|
+
}) {
|
|
10814
|
+
const o = {
|
|
10815
|
+
params: { personId: t, periodStart: s, periodEnd: r, filter: n },
|
|
10816
|
+
headers: { Accept: u },
|
|
10817
|
+
responseType: u === "application/pdf" ? "arraybuffer" : "text"
|
|
10818
|
+
};
|
|
10819
|
+
return e.download("reports/aml-audit-reports", o);
|
|
10805
10820
|
}
|
|
10806
10821
|
};
|
|
10807
10822
|
}
|
|
@@ -11358,7 +11373,7 @@ class Qs {
|
|
|
11358
11373
|
}
|
|
11359
11374
|
}
|
|
11360
11375
|
function Xs({ apiHandler: e }) {
|
|
11361
|
-
return new
|
|
11376
|
+
return new $s({ apiHandler: e });
|
|
11362
11377
|
}
|
|
11363
11378
|
function Zs({ apiHandler: e }) {
|
|
11364
11379
|
return new vs({ apiHandler: e });
|