@rebilly/instruments 16.136.0 → 16.137.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 +27 -27
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [16.
|
|
1
|
+
## [16.137.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.136.0...instruments/core-v16.137.0) (2026-06-24)
|
|
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 ([#22980](https://github.com/Rebilly/rebilly/issues/22980)) ([d36cb4e](https://github.com/Rebilly/rebilly/commit/d36cb4e2b263b5e89de700d336f662c52b1e54a9))
|
package/dist/index.js
CHANGED
|
@@ -5365,12 +5365,12 @@ let A$1 = class A extends Error {
|
|
|
5365
5365
|
n2 && n2.data && (n2.data.error ? l = n2.data.error : n2.data.detail ? l = n2.data.detail : n2.data.title && (l = n2.data.title)), super(l), this.name = s || "RebillyError", this.response = n2, this.request = u, this.config = r2, this.status = n2 && n2.status ? n2.status : null, this.statusText = n2 && n2.statusText ? n2.statusText : null, this.details = n2 && n2.data && n2.data.details ? n2.data.details : null, this.invalidFields = n2 && n2.data && n2.data.invalidFields ? n2.data.invalidFields : null;
|
|
5366
5366
|
}
|
|
5367
5367
|
};
|
|
5368
|
-
let
|
|
5368
|
+
let bt$1 = class bt extends A$1 {
|
|
5369
5369
|
constructor(t2) {
|
|
5370
5370
|
super({ error: t2, name: "RebillyRequestError" });
|
|
5371
5371
|
}
|
|
5372
5372
|
};
|
|
5373
|
-
let
|
|
5373
|
+
let Rt$1 = class Rt extends A$1 {
|
|
5374
5374
|
constructor(t2) {
|
|
5375
5375
|
super({ error: t2, name: "RebillyValidationError" });
|
|
5376
5376
|
}
|
|
@@ -5407,8 +5407,8 @@ let Tt$1 = class Tt extends A$1 {
|
|
|
5407
5407
|
};
|
|
5408
5408
|
const y = {
|
|
5409
5409
|
RebillyError: A$1,
|
|
5410
|
-
RebillyRequestError:
|
|
5411
|
-
RebillyValidationError:
|
|
5410
|
+
RebillyRequestError: bt$1,
|
|
5411
|
+
RebillyValidationError: Rt$1,
|
|
5412
5412
|
RebillyNotFoundError: wt$1,
|
|
5413
5413
|
RebillyConflictError: kt$1,
|
|
5414
5414
|
RebillyForbiddenError: vt$1,
|
|
@@ -5779,7 +5779,7 @@ function O$1({ options: e2 }) {
|
|
|
5779
5779
|
}
|
|
5780
5780
|
function o2() {
|
|
5781
5781
|
const g = {
|
|
5782
|
-
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@
|
|
5782
|
+
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@d36cb4e`
|
|
5783
5783
|
};
|
|
5784
5784
|
return e2.apiKey && (g["REB-APIKEY"] = e2.apiKey), g;
|
|
5785
5785
|
}
|
|
@@ -5840,8 +5840,8 @@ function O$1({ options: e2 }) {
|
|
|
5840
5840
|
function ut2(c) {
|
|
5841
5841
|
N2(k$1.response, c);
|
|
5842
5842
|
}
|
|
5843
|
-
function
|
|
5844
|
-
const p = z2(m2), { id:
|
|
5843
|
+
function R({ request: c, isCollection: g, config: m2 }) {
|
|
5844
|
+
const p = z2(m2), { id: b, cancelToken: $t2 } = q$1.save();
|
|
5845
5845
|
p.cancelToken = $t2;
|
|
5846
5846
|
const W2 = (async function() {
|
|
5847
5847
|
try {
|
|
@@ -5854,10 +5854,10 @@ function O$1({ options: e2 }) {
|
|
|
5854
5854
|
} catch (d) {
|
|
5855
5855
|
return L2({ error: d });
|
|
5856
5856
|
} finally {
|
|
5857
|
-
q$1.deleteById(
|
|
5857
|
+
q$1.deleteById(b);
|
|
5858
5858
|
}
|
|
5859
5859
|
})();
|
|
5860
|
-
return W2.cancel = (d) => I$1.cancelById(
|
|
5860
|
+
return W2.cancel = (d) => I$1.cancelById(b, d), W2;
|
|
5861
5861
|
}
|
|
5862
5862
|
function ot2({ response: c, isCollection: g, config: m2 }) {
|
|
5863
5863
|
return g ? new yt$1(c, m2) : new tt$1(c, m2);
|
|
@@ -5891,13 +5891,13 @@ function O$1({ options: e2 }) {
|
|
|
5891
5891
|
return { ...lt2(c) };
|
|
5892
5892
|
}
|
|
5893
5893
|
function U2(c, g = {}) {
|
|
5894
|
-
return
|
|
5894
|
+
return R({
|
|
5895
5895
|
request: (m2) => t2.get(c, m2),
|
|
5896
5896
|
config: { params: g }
|
|
5897
5897
|
});
|
|
5898
5898
|
}
|
|
5899
5899
|
function ct2(c, g) {
|
|
5900
|
-
return
|
|
5900
|
+
return R({
|
|
5901
5901
|
request: (m2) => t2.get(c, m2),
|
|
5902
5902
|
config: { params: g },
|
|
5903
5903
|
isCollection: true
|
|
@@ -5905,31 +5905,31 @@ function O$1({ options: e2 }) {
|
|
|
5905
5905
|
}
|
|
5906
5906
|
function V2(c, g, m2 = {}) {
|
|
5907
5907
|
let p = {};
|
|
5908
|
-
return m2.authenticate === false && (p = { headers: l() }, delete p.headers.common["REB-APIKEY"], delete p.headers.common.Authorization), m2.params && (p.params = { ...m2.params }),
|
|
5909
|
-
request: (
|
|
5908
|
+
return m2.authenticate === false && (p = { headers: l() }, delete p.headers.common["REB-APIKEY"], delete p.headers.common.Authorization), m2.params && (p.params = { ...m2.params }), R({
|
|
5909
|
+
request: (b) => t2.post(c, g, b),
|
|
5910
5910
|
config: p
|
|
5911
5911
|
});
|
|
5912
5912
|
}
|
|
5913
5913
|
function J2(c, g, m2 = {}) {
|
|
5914
|
-
return
|
|
5914
|
+
return R({
|
|
5915
5915
|
request: (p) => t2.put(c, g, p),
|
|
5916
5916
|
config: { params: m2 }
|
|
5917
5917
|
});
|
|
5918
5918
|
}
|
|
5919
5919
|
function it2(c, g) {
|
|
5920
|
-
return
|
|
5920
|
+
return R({
|
|
5921
5921
|
request: (m2) => t2.patch(c, g, m2),
|
|
5922
5922
|
config: {}
|
|
5923
5923
|
});
|
|
5924
5924
|
}
|
|
5925
5925
|
function gt2(c) {
|
|
5926
|
-
return
|
|
5926
|
+
return R({
|
|
5927
5927
|
request: (g) => t2.delete(c, g),
|
|
5928
5928
|
config: {}
|
|
5929
5929
|
});
|
|
5930
5930
|
}
|
|
5931
5931
|
function at2(c, g) {
|
|
5932
|
-
return
|
|
5932
|
+
return R({
|
|
5933
5933
|
request: (m2) => t2.delete(c, m2),
|
|
5934
5934
|
config: { data: { ...g } }
|
|
5935
5935
|
});
|
|
@@ -5942,10 +5942,10 @@ function O$1({ options: e2 }) {
|
|
|
5942
5942
|
throw new y.RebillyConflictError({
|
|
5943
5943
|
message: "A resource already exists with this ID. Please use a different ID."
|
|
5944
5944
|
});
|
|
5945
|
-
} catch (
|
|
5946
|
-
if (
|
|
5945
|
+
} catch (b) {
|
|
5946
|
+
if (b.name === "RebillyNotFoundError")
|
|
5947
5947
|
return J2(c, m2, p);
|
|
5948
|
-
throw
|
|
5948
|
+
throw b;
|
|
5949
5949
|
}
|
|
5950
5950
|
}
|
|
5951
5951
|
async function ft2(c, g) {
|
|
@@ -7654,7 +7654,7 @@ function Ae$1({ apiHandler: e2 }) {
|
|
|
7654
7654
|
}
|
|
7655
7655
|
};
|
|
7656
7656
|
}
|
|
7657
|
-
function
|
|
7657
|
+
function be({ apiHandler: e2 }) {
|
|
7658
7658
|
return {
|
|
7659
7659
|
/**
|
|
7660
7660
|
* @param { rebilly.GetJournalAccountCollectionRequest } request
|
|
@@ -7690,7 +7690,7 @@ function Re$1({ apiHandler: e2 }) {
|
|
|
7690
7690
|
}
|
|
7691
7691
|
};
|
|
7692
7692
|
}
|
|
7693
|
-
function
|
|
7693
|
+
function Re$1({ apiHandler: e2 }) {
|
|
7694
7694
|
return {
|
|
7695
7695
|
/**
|
|
7696
7696
|
* @param { rebilly.GetJournalEntryCollectionRequest } request
|
|
@@ -9521,7 +9521,7 @@ class $s {
|
|
|
9521
9521
|
apiHandler: t2
|
|
9522
9522
|
}), this.depositRequests = ne$1({ apiHandler: t2 }), this.depositStrategies = ue$1({ apiHandler: t2 }), this.digitalWallets = oe$1({ apiHandler: t2 }), this.disputes = le$1({ apiHandler: t2 }), this.emailDeliverySettings = ce$1({ apiHandler: t2 }), this.emailMessages = ie$1({ apiHandler: t2 }), this.emailNotifications = ge({ apiHandler: t2 }), this.events = ae$1({ apiHandler: t2 }), this.externalIdentifiers = me$1({ apiHandler: t2 }), this.externalServicesSettings = fe$1({
|
|
9523
9523
|
apiHandler: t2
|
|
9524
|
-
}), this.fees = $e$1({ apiHandler: t2 }), this.files = pe$1({ apiHandler: t2 }), this.gatewayAccounts = he$1({ apiHandler: t2 }), this.integrations = ye$1({ apiHandler: t2 }), this.invoices = Ae$1({ apiHandler: t2 }), this.journalAccounts =
|
|
9524
|
+
}), this.fees = $e$1({ apiHandler: t2 }), this.files = pe$1({ apiHandler: t2 }), this.gatewayAccounts = he$1({ apiHandler: t2 }), this.integrations = ye$1({ apiHandler: t2 }), this.invoices = Ae$1({ apiHandler: t2 }), this.journalAccounts = be({ apiHandler: t2 }), this.journalEntries = Re$1({ apiHandler: t2 }), this.journalRecords = we$1({ apiHandler: t2 }), this.kycDocuments = ke$1({ apiHandler: t2 }), this.kycRequests = ve$1({ apiHandler: t2 }), this.kycSettings = qe$1({ apiHandler: t2 }), this.lists = de$1({ apiHandler: t2 }), this.memberships = Te$1({ apiHandler: t2 }), this.orderCancellations = Ie$1({ apiHandler: t2 }), this.orderPauses = Se$1({ apiHandler: t2 }), this.orderReactivations = Ee$1({ apiHandler: t2 }), this.orders = xe$1({ apiHandler: t2 }), this.organizationExports = Pe$1({ apiHandler: t2 }), this.organizations = Ce$1({ apiHandler: t2 }), this.paymentCardsBankNames = De$1({ apiHandler: t2 }), this.paymentInstruments = je$1({ apiHandler: t2 }), this.paymentMethods = Me$1({ apiHandler: t2 }), this.paymentTokens = Oe$1({ apiHandler: t2 }), this.payoutRequestAllocations = Fe$1({
|
|
9525
9525
|
apiHandler: t2
|
|
9526
9526
|
}), this.payoutRequestBatches = Be$1({ apiHandler: t2 }), this.payoutRequests = Ke$1({ apiHandler: t2 }), this.payouts = Ne$1({ apiHandler: t2 }), this.plans = Le$1({ apiHandler: t2 }), this.previews = ze$1({ apiHandler: t2 }), this.products = Ue$1({ apiHandler: t2 }), this.profile = Ve$1({ apiHandler: t2 }), this.purchase = Je$1({ apiHandler: t2 }), this.quotes = We$1({ apiHandler: t2 }), this.resource = Ge$1({ apiHandler: t2 }), this.riskScoreRules = Ye$1({ apiHandler: t2 }), this.roles = Qe$1({ apiHandler: t2 }), this.search = Xe$1({ apiHandler: t2 }), this.segments = Ze$1({ apiHandler: t2 }), this.sendThroughAttribution = _e$1({ apiHandler: t2 }), this.serviceCredentials = He$1({ apiHandler: t2 }), this.shippingRates = ts({ apiHandler: t2 }), this.status = es({ apiHandler: t2 }), this.subscriptionCancellations = ss({
|
|
9527
9527
|
apiHandler: t2
|
|
@@ -10101,7 +10101,7 @@ function As({ apiHandler: e2 }) {
|
|
|
10101
10101
|
}
|
|
10102
10102
|
};
|
|
10103
10103
|
}
|
|
10104
|
-
function
|
|
10104
|
+
function bs({ apiHandler: e2 }) {
|
|
10105
10105
|
return {
|
|
10106
10106
|
/**
|
|
10107
10107
|
* @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
|
|
@@ -10111,7 +10111,7 @@ function Rs({ apiHandler: e2 }) {
|
|
|
10111
10111
|
}
|
|
10112
10112
|
};
|
|
10113
10113
|
}
|
|
10114
|
-
function
|
|
10114
|
+
function Rs({ apiHandler: e2 }) {
|
|
10115
10115
|
return {
|
|
10116
10116
|
getActivityFeed({ eventTypes: t2 = null, limit: s = 1e3, offset: r2 = 0 }) {
|
|
10117
10117
|
const n2 = {
|
|
@@ -10151,8 +10151,8 @@ const w = {
|
|
|
10151
10151
|
DataExportsResource: hs,
|
|
10152
10152
|
HistogramsResource: ys,
|
|
10153
10153
|
ReportsResource: As,
|
|
10154
|
-
SubscriptionsResource:
|
|
10155
|
-
TimelinesResource:
|
|
10154
|
+
SubscriptionsResource: bs,
|
|
10155
|
+
TimelinesResource: Rs,
|
|
10156
10156
|
LocationResource: ws
|
|
10157
10157
|
};
|
|
10158
10158
|
class ks {
|