@rebilly/instruments 15.3.0 → 15.5.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 +31 -63
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [15.
|
|
1
|
+
## [15.5.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v15.4.0...instruments/core-v15.5.0) (2025-09-09)
|
|
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 ([#14739](https://github.com/Rebilly/rebilly/issues/14739)) ([905122f](https://github.com/Rebilly/rebilly/commit/905122f31ef39f62e20a5d5e6c9a0d9c4fbac885))
|
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("/")}@905122f`
|
|
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
|
|
@@ -7040,44 +7040,6 @@ function Dt$1({ apiHandler: t2 }) {
|
|
|
7040
7040
|
*/
|
|
7041
7041
|
updateEntry({ id: e2, data: s }) {
|
|
7042
7042
|
return t2.put(`journal-entries/${e2}`, s);
|
|
7043
|
-
},
|
|
7044
|
-
/**
|
|
7045
|
-
* @param { rebilly.GetJournalRecordCollectionBCRequest } request
|
|
7046
|
-
* @returns { rebilly.GetJournalRecordCollectionBCResponsePromise } response
|
|
7047
|
-
*/
|
|
7048
|
-
getAllRecords({
|
|
7049
|
-
id: e2,
|
|
7050
|
-
limit: s = null,
|
|
7051
|
-
offset: r2 = null,
|
|
7052
|
-
filter: n2 = null,
|
|
7053
|
-
sort: u = null,
|
|
7054
|
-
expand: o2 = null
|
|
7055
|
-
}) {
|
|
7056
|
-
const l = { limit: s, offset: r2, filter: n2, sort: u, expand: o2 };
|
|
7057
|
-
return t2.getAll(`journal-entries/${e2}/records`, l);
|
|
7058
|
-
},
|
|
7059
|
-
createRecord({ id: e2, data: s }) {
|
|
7060
|
-
return t2.post(`journal-entries/${e2}/records`, s);
|
|
7061
|
-
},
|
|
7062
|
-
/**
|
|
7063
|
-
* @returns { rebilly.GetJournalRecordBCResponsePromise } response
|
|
7064
|
-
*/
|
|
7065
|
-
getRecord({ id: e2, journalRecordId: s }) {
|
|
7066
|
-
return t2.get(`journal-entries/${e2}/records/${s}`);
|
|
7067
|
-
},
|
|
7068
|
-
/**
|
|
7069
|
-
* @returns { rebilly.PutJournalRecordBCResponsePromise } response
|
|
7070
|
-
*/
|
|
7071
|
-
updateRecord({ id: e2, journalRecordId: s, data: r2 }) {
|
|
7072
|
-
return t2.put(
|
|
7073
|
-
`journal-entries/${e2}/records/${s}`,
|
|
7074
|
-
r2
|
|
7075
|
-
);
|
|
7076
|
-
},
|
|
7077
|
-
deleteRecord({ id: e2, journalRecordId: s }) {
|
|
7078
|
-
return t2.delete(
|
|
7079
|
-
`journal-entries/${e2}/records/${s}`
|
|
7080
|
-
);
|
|
7081
7043
|
}
|
|
7082
7044
|
};
|
|
7083
7045
|
}
|
|
@@ -8587,7 +8549,7 @@ class ks {
|
|
|
8587
8549
|
constructor({ apiHandler: e2 }) {
|
|
8588
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({
|
|
8589
8551
|
apiHandler: e2
|
|
8590
|
-
}), 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({
|
|
8591
8553
|
apiHandler: e2
|
|
8592
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({
|
|
8593
8555
|
apiHandler: e2
|
|
@@ -8606,7 +8568,7 @@ function vs({ apiHandler: t2 }) {
|
|
|
8606
8568
|
}
|
|
8607
8569
|
};
|
|
8608
8570
|
}
|
|
8609
|
-
function
|
|
8571
|
+
function Ts({ apiHandler: t2 }) {
|
|
8610
8572
|
return {
|
|
8611
8573
|
/**
|
|
8612
8574
|
* @param { rebilly.GetDataExportCollectionRequest } request
|
|
@@ -8651,7 +8613,7 @@ function ds({ apiHandler: t2 }) {
|
|
|
8651
8613
|
}
|
|
8652
8614
|
};
|
|
8653
8615
|
}
|
|
8654
|
-
function
|
|
8616
|
+
function ds({ apiHandler: t2 }) {
|
|
8655
8617
|
return {
|
|
8656
8618
|
/**
|
|
8657
8619
|
* @returns { rebilly.GetHistogramTransactionReportResponsePromise } response
|
|
@@ -8887,9 +8849,15 @@ function Is({ apiHandler: t2 }) {
|
|
|
8887
8849
|
/**
|
|
8888
8850
|
* @returns { rebilly.GetAnnualRecurringRevenueReportResponsePromise } response
|
|
8889
8851
|
*/
|
|
8890
|
-
getAnnualRecurringRevenue({
|
|
8891
|
-
|
|
8892
|
-
|
|
8852
|
+
getAnnualRecurringRevenue({
|
|
8853
|
+
currency: e2,
|
|
8854
|
+
periodStart: s,
|
|
8855
|
+
periodEnd: r2,
|
|
8856
|
+
limit: n2 = null,
|
|
8857
|
+
offset: u = null
|
|
8858
|
+
}) {
|
|
8859
|
+
const o2 = { currency: e2, periodStart: s, periodEnd: r2, limit: n2, offset: u };
|
|
8860
|
+
return t2.get("reports/annual-recurring-revenue", o2);
|
|
8893
8861
|
},
|
|
8894
8862
|
/**
|
|
8895
8863
|
* @returns { rebilly.GetRenewalSaleReportResponsePromise } response
|
|
@@ -9128,8 +9096,8 @@ function qs({ apiHandler: t2 }) {
|
|
|
9128
9096
|
}
|
|
9129
9097
|
const R = {
|
|
9130
9098
|
CustomersResource: vs,
|
|
9131
|
-
DataExportsResource:
|
|
9132
|
-
HistogramsResource:
|
|
9099
|
+
DataExportsResource: Ts,
|
|
9100
|
+
HistogramsResource: ds,
|
|
9133
9101
|
ReportsResource: Is,
|
|
9134
9102
|
SubscriptionsResource: Ss,
|
|
9135
9103
|
TimelinesResource: Es,
|