@rebilly/instruments 15.4.0 → 15.6.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 +25 -25
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [15.
|
|
1
|
+
## [15.6.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v15.5.0...instruments/core-v15.6.0) (2025-09-10)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#
|
|
6
|
+
* **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#14757](https://github.com/Rebilly/rebilly/issues/14757)) ([a64f312](https://github.com/Rebilly/rebilly/commit/a64f312fd51e42dc9a514d5b99cb338474618172))
|
package/dist/index.js
CHANGED
|
@@ -4648,16 +4648,16 @@ const {
|
|
|
4648
4648
|
var ie$1 = Object.defineProperty;
|
|
4649
4649
|
var ge = (t2, e2, s) => e2 in t2 ? ie$1(t2, e2, { enumerable: true, configurable: true, writable: true, value: s }) : t2[e2] = s;
|
|
4650
4650
|
var q$1 = (t2, e2, s) => ge(t2, typeof e2 != "symbol" ? e2 + "" : e2, s);
|
|
4651
|
-
function
|
|
4651
|
+
function d(t2, { exclude: e2 = [] } = {}) {
|
|
4652
4652
|
Object.freeze(t2);
|
|
4653
4653
|
const s = typeof t2 == "function";
|
|
4654
4654
|
return Object.getOwnPropertyNames(t2).forEach((r2) => {
|
|
4655
|
-
(!s || r2 !== "caller" && r2 !== "callee" && r2 !== "arguments") && t2[r2] !== null && !e2.includes(r2) && (typeof t2[r2] == "object" || typeof t2[r2] == "function") && !Object.isFrozen(t2[r2]) &&
|
|
4655
|
+
(!s || r2 !== "caller" && r2 !== "callee" && r2 !== "arguments") && t2[r2] !== null && !e2.includes(r2) && (typeof t2[r2] == "object" || typeof t2[r2] == "function") && !Object.isFrozen(t2[r2]) && d(t2[r2], { exclude: e2 });
|
|
4656
4656
|
}), t2;
|
|
4657
4657
|
}
|
|
4658
4658
|
let G$1 = class G {
|
|
4659
4659
|
constructor({ data: e2, status: s, statusText: r2, headers: n2 }, u = {}) {
|
|
4660
|
-
this.response = { status: s, statusText: r2, headers: n2 }, this.fields = { ...e2 }, this.config = u,
|
|
4660
|
+
this.response = { status: s, statusText: r2, headers: n2 }, this.fields = { ...e2 }, this.config = u, d(this, { exclude: ["cancelToken"] });
|
|
4661
4661
|
}
|
|
4662
4662
|
/**
|
|
4663
4663
|
* Returns a mutable JSON representation of the Member.
|
|
@@ -4688,7 +4688,7 @@ let ae$1 = class ae {
|
|
|
4688
4688
|
this[o2] = l ? Number(l) : null;
|
|
4689
4689
|
}), this.response = { status: s, statusText: r2, headers: n2 }, this.items = e2.map(
|
|
4690
4690
|
(o2) => new G$1({ data: o2, status: s, statusText: r2, headers: n2 })
|
|
4691
|
-
), this.config = u,
|
|
4691
|
+
), this.config = u, d(this, { exclude: ["cancelToken"] });
|
|
4692
4692
|
}
|
|
4693
4693
|
/**
|
|
4694
4694
|
* Returns a mutable JSON representation of the Collection.
|
|
@@ -4781,8 +4781,8 @@ var ke$1 = Object.prototype.toString, Y$1 = function(e2) {
|
|
|
4781
4781
|
if (ve$1(e2)) return "array";
|
|
4782
4782
|
if (xe$1(e2)) return "buffer";
|
|
4783
4783
|
if (qe$1(e2)) return "arguments";
|
|
4784
|
-
if (
|
|
4785
|
-
if (
|
|
4784
|
+
if (de$1(e2)) return "date";
|
|
4785
|
+
if (Te$1(e2)) return "error";
|
|
4786
4786
|
if (Ie$1(e2)) return "regexp";
|
|
4787
4787
|
switch (Q$1(e2)) {
|
|
4788
4788
|
case "Symbol":
|
|
@@ -4838,10 +4838,10 @@ function Q$1(t2) {
|
|
|
4838
4838
|
function ve$1(t2) {
|
|
4839
4839
|
return Array.isArray ? Array.isArray(t2) : t2 instanceof Array;
|
|
4840
4840
|
}
|
|
4841
|
-
function
|
|
4841
|
+
function Te$1(t2) {
|
|
4842
4842
|
return t2 instanceof Error || typeof t2.message == "string" && t2.constructor && typeof t2.constructor.stackTraceLimit == "number";
|
|
4843
4843
|
}
|
|
4844
|
-
function
|
|
4844
|
+
function de$1(t2) {
|
|
4845
4845
|
return t2 instanceof Date ? true : typeof t2.toDateString == "function" && typeof t2.getDate == "function" && typeof t2.setDate == "function";
|
|
4846
4846
|
}
|
|
4847
4847
|
function Ie$1(t2) {
|
|
@@ -4989,7 +4989,7 @@ let Qe$1 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", X
|
|
|
4989
4989
|
};
|
|
4990
4990
|
let Ze$1 = class Ze {
|
|
4991
4991
|
constructor({ id: e2 = null, created: s = null } = {}) {
|
|
4992
|
-
this.id = e2 || Xe$1(), this.created = s || (/* @__PURE__ */ new Date()).getTime(), this.cancelSource = axios.CancelToken.source(), this.cancel = this.cancelSource.cancel, this.cancelToken = this.cancelSource.token,
|
|
4992
|
+
this.id = e2 || Xe$1(), this.created = s || (/* @__PURE__ */ new Date()).getTime(), this.cancelSource = axios.CancelToken.source(), this.cancel = this.cancelSource.cancel, this.cancelToken = this.cancelSource.token, d(this, {
|
|
4993
4993
|
exclude: ["cancelSource", "cancelToken", "cancel"]
|
|
4994
4994
|
});
|
|
4995
4995
|
}
|
|
@@ -5037,9 +5037,9 @@ class v {
|
|
|
5037
5037
|
}
|
|
5038
5038
|
}
|
|
5039
5039
|
const w = new v();
|
|
5040
|
-
class
|
|
5040
|
+
class T {
|
|
5041
5041
|
}
|
|
5042
|
-
q$1(
|
|
5042
|
+
q$1(T, "cancelById", (e2, s) => {
|
|
5043
5043
|
try {
|
|
5044
5044
|
w.getById(e2).cancel(s), w.deleteById(e2);
|
|
5045
5045
|
} catch {
|
|
@@ -5059,7 +5059,7 @@ q$1(d, "cancelById", (e2, s) => {
|
|
|
5059
5059
|
* // cancel all active requests
|
|
5060
5060
|
* await cancellation.cancelAll();
|
|
5061
5061
|
*/
|
|
5062
|
-
q$1(
|
|
5062
|
+
q$1(T, "cancelAll", async (e2) => {
|
|
5063
5063
|
for (const s of w.getAll())
|
|
5064
5064
|
await s.cancel(e2), w.deleteById(s.id);
|
|
5065
5065
|
});
|
|
@@ -5067,7 +5067,7 @@ const ir = {
|
|
|
5067
5067
|
/**
|
|
5068
5068
|
* @type Cancellation.cancelAll
|
|
5069
5069
|
*/
|
|
5070
|
-
cancelAll: async (...t2) => await
|
|
5070
|
+
cancelAll: async (...t2) => await T.cancelAll(...t2)
|
|
5071
5071
|
}, b = {
|
|
5072
5072
|
request: "request",
|
|
5073
5073
|
response: "response"
|
|
@@ -5097,7 +5097,7 @@ function C$1({ options: t2 }) {
|
|
|
5097
5097
|
}
|
|
5098
5098
|
function o2() {
|
|
5099
5099
|
const i = {
|
|
5100
|
-
"REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@
|
|
5100
|
+
"REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@a64f312`
|
|
5101
5101
|
};
|
|
5102
5102
|
return t2.apiKey && (i["REB-APIKEY"] = t2.apiKey), i;
|
|
5103
5103
|
}
|
|
@@ -5175,7 +5175,7 @@ function C$1({ options: t2 }) {
|
|
|
5175
5175
|
w.deleteById(p);
|
|
5176
5176
|
}
|
|
5177
5177
|
}();
|
|
5178
|
-
return z2.cancel = (k2) =>
|
|
5178
|
+
return z2.cancel = (k2) => T.cancelById(p, k2), z2;
|
|
5179
5179
|
}
|
|
5180
5180
|
function ee2({ response: c, isCollection: i, config: g }) {
|
|
5181
5181
|
return i ? new ae$1(c, g) : new G$1(c, g);
|
|
@@ -6322,7 +6322,7 @@ function vt$1({ apiHandler: t2 }) {
|
|
|
6322
6322
|
}
|
|
6323
6323
|
};
|
|
6324
6324
|
}
|
|
6325
|
-
function
|
|
6325
|
+
function Tt$1({ apiHandler: t2 }) {
|
|
6326
6326
|
return {
|
|
6327
6327
|
/**
|
|
6328
6328
|
* @param { rebilly.GetEmailNotificationCollectionRequest } request
|
|
@@ -6334,7 +6334,7 @@ function dt$1({ apiHandler: t2 }) {
|
|
|
6334
6334
|
}
|
|
6335
6335
|
};
|
|
6336
6336
|
}
|
|
6337
|
-
function
|
|
6337
|
+
function dt$1({ apiHandler: t2 }) {
|
|
6338
6338
|
return {
|
|
6339
6339
|
/**
|
|
6340
6340
|
* @param { rebilly.GetEventCollectionRequest } request
|
|
@@ -8549,7 +8549,7 @@ class ks {
|
|
|
8549
8549
|
constructor({ apiHandler: e2 }) {
|
|
8550
8550
|
this.account = _e$1({ apiHandler: e2 }), this.allowlists = He$1({ apiHandler: e2 }), this.amlChecks = et$1({ apiHandler: e2 }), this.amlSettings = tt$1({ apiHandler: e2 }), this.apiKeys = st$1({ apiHandler: e2 }), this.applicationInstances = rt$1({ apiHandler: e2 }), this.applications = nt$1({ apiHandler: e2 }), this.balanceTransactions = ut$1({ apiHandler: e2 }), this.billingPortals = ot$1({ apiHandler: e2 }), this.blocklists = lt$1({ apiHandler: e2 }), this.broadcastMessages = ct$1({ apiHandler: e2 }), this.cashiers = it$1({ apiHandler: e2 }), this.checkoutForms = gt$1({ apiHandler: e2 }), this.coupons = at$1({ apiHandler: e2 }), this.creditMemos = mt$1({ apiHandler: e2 }), this.customDomains = ft$1({ apiHandler: e2 }), this.customFields = $t$1({ apiHandler: e2 }), this.customerAuthentication = ht$1({ apiHandler: e2 }), this.customers = pt$1({ apiHandler: e2 }), this.depositCustomPropertySets = yt$1({
|
|
8551
8551
|
apiHandler: e2
|
|
8552
|
-
}), this.depositRequests = At$1({ apiHandler: e2 }), this.depositStrategies = Rt$1({ apiHandler: e2 }), this.digitalWallets = bt$1({ apiHandler: e2 }), this.disputes = wt$1({ apiHandler: e2 }), this.emailDeliverySettings = kt$1({ apiHandler: e2 }), this.emailMessages = vt$1({ apiHandler: e2 }), this.emailNotifications =
|
|
8552
|
+
}), this.depositRequests = At$1({ apiHandler: e2 }), this.depositStrategies = Rt$1({ apiHandler: e2 }), this.digitalWallets = bt$1({ apiHandler: e2 }), this.disputes = wt$1({ apiHandler: e2 }), this.emailDeliverySettings = kt$1({ apiHandler: e2 }), this.emailMessages = vt$1({ apiHandler: e2 }), this.emailNotifications = Tt$1({ apiHandler: e2 }), this.events = dt$1({ apiHandler: e2 }), this.externalIdentifiers = It$1({ apiHandler: e2 }), this.externalServicesSettings = St$1({
|
|
8553
8553
|
apiHandler: e2
|
|
8554
8554
|
}), this.fees = Et$1({ apiHandler: e2 }), this.files = qt$1({ apiHandler: e2 }), this.gatewayAccounts = xt$1({ apiHandler: e2 }), this.integrations = Pt$1({ apiHandler: e2 }), this.invoices = Ct$1({ apiHandler: e2 }), this.journalAccounts = jt$1({ apiHandler: e2 }), this.journalEntries = Dt$1({ apiHandler: e2 }), this.journalRecords = Mt$1({ apiHandler: e2 }), this.kycDocuments = Ft$1({ apiHandler: e2 }), this.kycRequests = Ot$1({ apiHandler: e2 }), this.kycSettings = Kt$1({ apiHandler: e2 }), this.lists = Nt$1({ apiHandler: e2 }), this.memberships = Bt$1({ apiHandler: e2 }), this.organizationExports = Lt$1({ apiHandler: e2 }), this.organizations = zt$1({ apiHandler: e2 }), this.paymentCardsBankNames = Ut$1({ apiHandler: e2 }), this.paymentInstruments = Vt$1({ apiHandler: e2 }), this.paymentMethods = Jt$1({ apiHandler: e2 }), this.paymentTokens = Wt$1({ apiHandler: e2 }), this.payoutRequests = Gt$1({ apiHandler: e2 }), this.payouts = Yt$1({ apiHandler: e2 }), this.plans = Qt$1({ apiHandler: e2 }), this.previews = Xt$1({ apiHandler: e2 }), this.products = Zt$1({ apiHandler: e2 }), this.profile = _t$1({ apiHandler: e2 }), this.purchase = Ht$1({ apiHandler: e2 }), this.quotes = es({ apiHandler: e2 }), this.resource = ts({ apiHandler: e2 }), this.riskScoreRules = ss({ apiHandler: e2 }), this.roles = rs({ apiHandler: e2 }), this.search = ns({ apiHandler: e2 }), this.segments = us({ apiHandler: e2 }), this.sendThroughAttribution = os({ apiHandler: e2 }), this.serviceCredentials = ls({ apiHandler: e2 }), this.shippingRates = cs({ apiHandler: e2 }), this.status = is({ apiHandler: e2 }), this.subscriptionCancellations = gs({
|
|
8555
8555
|
apiHandler: e2
|
|
@@ -8568,7 +8568,7 @@ function vs({ apiHandler: t2 }) {
|
|
|
8568
8568
|
}
|
|
8569
8569
|
};
|
|
8570
8570
|
}
|
|
8571
|
-
function
|
|
8571
|
+
function Ts({ apiHandler: t2 }) {
|
|
8572
8572
|
return {
|
|
8573
8573
|
/**
|
|
8574
8574
|
* @param { rebilly.GetDataExportCollectionRequest } request
|
|
@@ -8613,7 +8613,7 @@ function ds({ apiHandler: t2 }) {
|
|
|
8613
8613
|
}
|
|
8614
8614
|
};
|
|
8615
8615
|
}
|
|
8616
|
-
function
|
|
8616
|
+
function ds({ apiHandler: t2 }) {
|
|
8617
8617
|
return {
|
|
8618
8618
|
/**
|
|
8619
8619
|
* @returns { rebilly.GetHistogramTransactionReportResponsePromise } response
|
|
@@ -8772,11 +8772,11 @@ function Is({ apiHandler: t2 }) {
|
|
|
8772
8772
|
* @returns { rebilly.GetJournalReportResponsePromise } response
|
|
8773
8773
|
*/
|
|
8774
8774
|
getJournal({
|
|
8775
|
-
currency: e2,
|
|
8775
|
+
currency: e2 = null,
|
|
8776
8776
|
bookedFrom: s = null,
|
|
8777
8777
|
bookedTo: r2 = null,
|
|
8778
|
-
recognizedAt: n2,
|
|
8779
|
-
aggregationField: u,
|
|
8778
|
+
recognizedAt: n2 = null,
|
|
8779
|
+
aggregationField: u = null,
|
|
8780
8780
|
limit: o2 = null,
|
|
8781
8781
|
offset: l = null,
|
|
8782
8782
|
filter: a = null
|
|
@@ -9096,8 +9096,8 @@ function qs({ apiHandler: t2 }) {
|
|
|
9096
9096
|
}
|
|
9097
9097
|
const R = {
|
|
9098
9098
|
CustomersResource: vs,
|
|
9099
|
-
DataExportsResource:
|
|
9100
|
-
HistogramsResource:
|
|
9099
|
+
DataExportsResource: Ts,
|
|
9100
|
+
HistogramsResource: ds,
|
|
9101
9101
|
ReportsResource: Is,
|
|
9102
9102
|
SubscriptionsResource: Ss,
|
|
9103
9103
|
TimelinesResource: Es,
|