@rebilly/instruments 16.123.0 → 16.124.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 +45 -26
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [16.
|
|
1
|
+
## [16.124.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.123.1...instruments/core-v16.124.0) (2026-06-05)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* **
|
|
6
|
+
* **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#22287](https://github.com/Rebilly/rebilly/issues/22287)) ([3305978](https://github.com/Rebilly/rebilly/commit/330597836fdcf938ed8c2b5e7cbf5109c02756e1))
|
package/dist/index.js
CHANGED
|
@@ -4990,12 +4990,12 @@ let At$1 = class At extends p {
|
|
|
4990
4990
|
super({ error: t2, name: "RebillyMethodNotAllowedError" });
|
|
4991
4991
|
}
|
|
4992
4992
|
};
|
|
4993
|
-
let
|
|
4993
|
+
let bt$1 = class bt extends p {
|
|
4994
4994
|
constructor(t2) {
|
|
4995
4995
|
super({ error: t2, name: "RebillyTimeoutError" });
|
|
4996
4996
|
}
|
|
4997
4997
|
};
|
|
4998
|
-
let
|
|
4998
|
+
let Rt$1 = class Rt extends p {
|
|
4999
4999
|
constructor(t2) {
|
|
5000
5000
|
super({ error: t2, name: "RebillyCanceledError" });
|
|
5001
5001
|
}
|
|
@@ -5008,8 +5008,8 @@ const $$1 = {
|
|
|
5008
5008
|
RebillyConflictError: ht$1,
|
|
5009
5009
|
RebillyForbiddenError: yt$1,
|
|
5010
5010
|
RebillyMethodNotAllowedError: At$1,
|
|
5011
|
-
RebillyTimeoutError:
|
|
5012
|
-
RebillyCanceledError:
|
|
5011
|
+
RebillyTimeoutError: bt$1,
|
|
5012
|
+
RebillyCanceledError: Rt$1
|
|
5013
5013
|
};
|
|
5014
5014
|
function wt$1(e2) {
|
|
5015
5015
|
return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
|
|
@@ -5314,11 +5314,11 @@ const hr = {
|
|
|
5314
5314
|
* @type Cancellation.cancelAll
|
|
5315
5315
|
*/
|
|
5316
5316
|
cancelAll: async (...e2) => await T.cancelAll(...e2)
|
|
5317
|
-
},
|
|
5317
|
+
}, R = {
|
|
5318
5318
|
request: "request",
|
|
5319
5319
|
response: "response"
|
|
5320
5320
|
}, W$1 = (e2) => {
|
|
5321
|
-
if (!Object.values(
|
|
5321
|
+
if (!Object.values(R).includes(e2))
|
|
5322
5322
|
throw new Error(`There is no such interceptor type as "${e2}"`);
|
|
5323
5323
|
return true;
|
|
5324
5324
|
};
|
|
@@ -5343,7 +5343,7 @@ function C$1({ options: e2 }) {
|
|
|
5343
5343
|
}
|
|
5344
5344
|
function o2() {
|
|
5345
5345
|
const i = {
|
|
5346
|
-
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@
|
|
5346
|
+
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@3305978`
|
|
5347
5347
|
};
|
|
5348
5348
|
return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
|
|
5349
5349
|
}
|
|
@@ -5373,36 +5373,36 @@ function C$1({ options: e2 }) {
|
|
|
5373
5373
|
}
|
|
5374
5374
|
function M2(c, { thenDelegate: i, catchDelegate: g = () => {
|
|
5375
5375
|
} }) {
|
|
5376
|
-
return W$1(c) && t2.interceptors[
|
|
5376
|
+
return W$1(c) && t2.interceptors[R[c]].use(
|
|
5377
5377
|
i,
|
|
5378
5378
|
g
|
|
5379
5379
|
);
|
|
5380
5380
|
}
|
|
5381
5381
|
function O2(c, i) {
|
|
5382
|
-
return W$1(c) && t2.interceptors[
|
|
5382
|
+
return W$1(c) && t2.interceptors[R[c]].eject(i);
|
|
5383
5383
|
}
|
|
5384
5384
|
function X2({ thenDelegate: c, catchDelegate: i = () => {
|
|
5385
5385
|
} }) {
|
|
5386
|
-
return M2(
|
|
5386
|
+
return M2(R.request, {
|
|
5387
5387
|
thenDelegate: c,
|
|
5388
5388
|
catchDelegate: i
|
|
5389
5389
|
});
|
|
5390
5390
|
}
|
|
5391
5391
|
function Z2(c) {
|
|
5392
|
-
O2(
|
|
5392
|
+
O2(R.request, c);
|
|
5393
5393
|
}
|
|
5394
5394
|
function _2({
|
|
5395
5395
|
thenDelegate: c,
|
|
5396
5396
|
catchDelegate: i = () => {
|
|
5397
5397
|
}
|
|
5398
5398
|
}) {
|
|
5399
|
-
return M2(
|
|
5399
|
+
return M2(R.response, {
|
|
5400
5400
|
thenDelegate: c,
|
|
5401
5401
|
catchDelegate: i
|
|
5402
5402
|
});
|
|
5403
5403
|
}
|
|
5404
5404
|
function H2(c) {
|
|
5405
|
-
O2(
|
|
5405
|
+
O2(R.response, c);
|
|
5406
5406
|
}
|
|
5407
5407
|
function A2({ request: c, isCollection: i, config: g }) {
|
|
5408
5408
|
const m2 = B2(g), { id: h2, cancelToken: ct2 } = k$1.save();
|
|
@@ -6378,7 +6378,7 @@ function Ae$1({ apiHandler: e2 }) {
|
|
|
6378
6378
|
}
|
|
6379
6379
|
};
|
|
6380
6380
|
}
|
|
6381
|
-
function
|
|
6381
|
+
function be({ apiHandler: e2 }) {
|
|
6382
6382
|
return {
|
|
6383
6383
|
/**
|
|
6384
6384
|
* @param { rebilly.GetDepositRequestCollectionRequest } request
|
|
@@ -6406,7 +6406,7 @@ function Re$1({ apiHandler: e2 }) {
|
|
|
6406
6406
|
}
|
|
6407
6407
|
};
|
|
6408
6408
|
}
|
|
6409
|
-
function
|
|
6409
|
+
function Re$1({ apiHandler: e2 }) {
|
|
6410
6410
|
return {
|
|
6411
6411
|
/**
|
|
6412
6412
|
* @param { rebilly.GetDepositStrategyCollectionRequest } request
|
|
@@ -8083,6 +8083,25 @@ function us({ apiHandler: e2 }) {
|
|
|
8083
8083
|
},
|
|
8084
8084
|
deleteMfa() {
|
|
8085
8085
|
return e2.delete("profile/mfa");
|
|
8086
|
+
},
|
|
8087
|
+
/**
|
|
8088
|
+
* @returns { rebilly.GetProfileDashboardResponsePromise } response
|
|
8089
|
+
*/
|
|
8090
|
+
getDashboard() {
|
|
8091
|
+
return e2.get("profile/dashboard");
|
|
8092
|
+
},
|
|
8093
|
+
/**
|
|
8094
|
+
* @returns { rebilly.PutProfileDashboardResponsePromise } response
|
|
8095
|
+
*/
|
|
8096
|
+
updateDashboard({ data: t2 }) {
|
|
8097
|
+
return e2.put("profile/dashboard", t2);
|
|
8098
|
+
},
|
|
8099
|
+
/**
|
|
8100
|
+
* @returns { rebilly.GetProfileDashboardMetricReportResponsePromise } response
|
|
8101
|
+
*/
|
|
8102
|
+
getDashboardMetricReport({ metric: t2, periodStart: s, periodEnd: r2 }) {
|
|
8103
|
+
const n2 = { periodStart: s, periodEnd: r2 };
|
|
8104
|
+
return e2.get(`profile/dashboard/metrics/${t2}`, n2);
|
|
8086
8105
|
}
|
|
8087
8106
|
};
|
|
8088
8107
|
}
|
|
@@ -8511,7 +8530,7 @@ function As({ apiHandler: e2 }) {
|
|
|
8511
8530
|
}
|
|
8512
8531
|
};
|
|
8513
8532
|
}
|
|
8514
|
-
function
|
|
8533
|
+
function bs({ apiHandler: e2 }) {
|
|
8515
8534
|
return {
|
|
8516
8535
|
/**
|
|
8517
8536
|
* @param { rebilly.GetSubscriptionReactivationCollectionRequest } request
|
|
@@ -8532,7 +8551,7 @@ function Rs({ apiHandler: e2 }) {
|
|
|
8532
8551
|
}
|
|
8533
8552
|
};
|
|
8534
8553
|
}
|
|
8535
|
-
function
|
|
8554
|
+
function Rs({ apiHandler: e2 }) {
|
|
8536
8555
|
return {
|
|
8537
8556
|
/**
|
|
8538
8557
|
* @param { rebilly.GetSubscriptionCollectionRequest } request
|
|
@@ -9064,15 +9083,15 @@ class Es {
|
|
|
9064
9083
|
apiHandler: t2
|
|
9065
9084
|
}), this.account = Ht$1({ apiHandler: t2 }), this.allowlists = te$1({ apiHandler: t2 }), this.amlChecks = ee$1({ apiHandler: t2 }), this.amlSettings = se$1({ apiHandler: t2 }), this.apiKeys = re$1({ apiHandler: t2 }), this.applicationInstances = ne$1({ apiHandler: t2 }), this.applications = ue$1({ apiHandler: t2 }), this.balanceTransactions = oe$1({ apiHandler: t2 }), this.billingPortals = le$1({ apiHandler: t2 }), this.blocklists = ce$1({ apiHandler: t2 }), this.broadcastMessages = ie$1({ apiHandler: t2 }), this.cashiers = ge({ apiHandler: t2 }), this.checkoutForms = ae$1({ apiHandler: t2 }), this.coupons = me$1({ apiHandler: t2 }), this.creditMemos = fe$1({ apiHandler: t2 }), this.customDomains = $e$1({ apiHandler: t2 }), this.customFields = pe$1({ apiHandler: t2 }), this.customerAuthentication = he$1({ apiHandler: t2 }), this.customers = ye$1({ apiHandler: t2 }), this.depositCustomPropertySets = Ae$1({
|
|
9066
9085
|
apiHandler: t2
|
|
9067
|
-
}), this.depositRequests =
|
|
9086
|
+
}), this.depositRequests = be({ apiHandler: t2 }), this.depositStrategies = Re$1({ apiHandler: t2 }), this.digitalWallets = we$1({ apiHandler: t2 }), this.disputes = ke$1({ apiHandler: t2 }), this.emailDeliverySettings = ve$1({ apiHandler: t2 }), this.emailMessages = qe$1({ apiHandler: t2 }), this.emailNotifications = Te$1({ apiHandler: t2 }), this.events = de$1({ apiHandler: t2 }), this.externalIdentifiers = Ie$1({ apiHandler: t2 }), this.externalServicesSettings = Se$1({
|
|
9068
9087
|
apiHandler: t2
|
|
9069
9088
|
}), this.fees = Ee$1({ apiHandler: t2 }), this.files = xe$1({ apiHandler: t2 }), this.gatewayAccounts = Pe$1({ apiHandler: t2 }), this.integrations = Ce$1({ apiHandler: t2 }), this.invoices = De$1({ apiHandler: t2 }), this.journalAccounts = je$1({ apiHandler: t2 }), this.journalEntries = Me$1({ apiHandler: t2 }), this.journalRecords = Oe$1({ apiHandler: t2 }), this.kycDocuments = Fe$1({ apiHandler: t2 }), this.kycRequests = Be$1({ apiHandler: t2 }), this.kycSettings = Ke$1({ apiHandler: t2 }), this.lists = Ne$1({ apiHandler: t2 }), this.memberships = Le$1({ apiHandler: t2 }), this.orderCancellations = ze$1({ apiHandler: t2 }), this.orderPauses = Ue$1({ apiHandler: t2 }), this.orderReactivations = Ve$1({ apiHandler: t2 }), this.orders = Je$1({ apiHandler: t2 }), this.organizationExports = We$1({ apiHandler: t2 }), this.organizations = Ge$1({ apiHandler: t2 }), this.paymentCardsBankNames = Ye$1({ apiHandler: t2 }), this.paymentInstruments = Qe$1({ apiHandler: t2 }), this.paymentMethods = Xe$1({ apiHandler: t2 }), this.paymentTokens = Ze$1({ apiHandler: t2 }), this.payoutRequestAllocations = _e$1({
|
|
9070
9089
|
apiHandler: t2
|
|
9071
9090
|
}), this.payoutRequestBatches = He$1({ apiHandler: t2 }), this.payoutRequests = ts({ apiHandler: t2 }), this.payouts = es({ apiHandler: t2 }), this.plans = ss({ apiHandler: t2 }), this.previews = rs({ apiHandler: t2 }), this.products = ns({ apiHandler: t2 }), this.profile = us({ apiHandler: t2 }), this.purchase = os({ apiHandler: t2 }), this.quotes = ls({ apiHandler: t2 }), this.resource = cs({ apiHandler: t2 }), this.riskScoreRules = is({ apiHandler: t2 }), this.roles = gs({ apiHandler: t2 }), this.search = as({ apiHandler: t2 }), this.segments = ms({ apiHandler: t2 }), this.sendThroughAttribution = fs({ apiHandler: t2 }), this.serviceCredentials = $s({ apiHandler: t2 }), this.shippingRates = ps({ apiHandler: t2 }), this.status = hs({ apiHandler: t2 }), this.subscriptionCancellations = ys({
|
|
9072
9091
|
apiHandler: t2
|
|
9073
|
-
}), this.subscriptionPauses = As({ apiHandler: t2 }), this.subscriptionReactivations =
|
|
9092
|
+
}), this.subscriptionPauses = As({ apiHandler: t2 }), this.subscriptionReactivations = bs({
|
|
9074
9093
|
apiHandler: t2
|
|
9075
|
-
}), this.subscriptions =
|
|
9094
|
+
}), this.subscriptions = Rs({ apiHandler: t2 }), this.tags = ws({ apiHandler: t2 }), this.tagsRules = ks({ apiHandler: t2 }), this.tracking = vs({ apiHandler: t2 }), this.transactions = qs({ apiHandler: t2 }), this.usages = Ts({ apiHandler: t2 }), this.users = ds({ apiHandler: t2 }), this.webhooks = Is({ apiHandler: t2 }), this.websites = Ss({ apiHandler: t2 }), this.addRequestInterceptor = t2.addRequestInterceptor, this.removeRequestInterceptor = t2.removeRequestInterceptor, this.addResponseInterceptor = t2.addResponseInterceptor, this.removeResponseInterceptor = t2.removeResponseInterceptor, this.setTimeout = t2.setTimeout, this.setProxyAgent = t2.setProxyAgent, this.setSessionToken = t2.setSessionToken, this.setPublishableKey = t2.setPublishableKey, this.setEndpoints = t2.setEndpoints, this.getCancellationToken = t2.getCancellationToken, this.generateSignature = t2.generateSignature;
|
|
9076
9095
|
}
|
|
9077
9096
|
}
|
|
9078
9097
|
function xs({ apiHandler: e2 }) {
|
|
@@ -9691,7 +9710,7 @@ function Os({ apiHandler: e2 }) {
|
|
|
9691
9710
|
}
|
|
9692
9711
|
};
|
|
9693
9712
|
}
|
|
9694
|
-
const
|
|
9713
|
+
const b = {
|
|
9695
9714
|
CustomersResource: xs,
|
|
9696
9715
|
DataExportsResource: Ps,
|
|
9697
9716
|
HistogramsResource: Cs,
|
|
@@ -9702,11 +9721,11 @@ const R = {
|
|
|
9702
9721
|
};
|
|
9703
9722
|
class Fs {
|
|
9704
9723
|
constructor({ apiHandler: t2 }) {
|
|
9705
|
-
this.customers =
|
|
9724
|
+
this.customers = b.CustomersResource({ apiHandler: t2 }), this.dataExports = b.DataExportsResource({
|
|
9706
9725
|
apiHandler: t2
|
|
9707
|
-
}), this.histograms =
|
|
9726
|
+
}), this.histograms = b.HistogramsResource({ apiHandler: t2 }), this.reports = b.ReportsResource({ apiHandler: t2 }), this.subscriptions = b.SubscriptionsResource({
|
|
9708
9727
|
apiHandler: t2
|
|
9709
|
-
}), this.timelines =
|
|
9728
|
+
}), this.timelines = b.TimelinesResource({ apiHandler: t2 }), this.location = b.LocationResource({ apiHandler: t2 }), this.addRequestInterceptor = t2.addRequestInterceptor, this.removeRequestInterceptor = t2.removeRequestInterceptor, this.addResponseInterceptor = t2.addResponseInterceptor, this.removeResponseInterceptor = t2.removeResponseInterceptor, this.setTimeout = t2.setTimeout, this.setProxyAgent = t2.setProxyAgent, this.setSessionToken = t2.setSessionToken, this.setEndpoints = t2.setEndpoints, this.getCancellationToken = t2.getCancellationToken;
|
|
9710
9729
|
}
|
|
9711
9730
|
}
|
|
9712
9731
|
function Bs({ apiHandler: e2 }) {
|
|
@@ -10275,7 +10294,7 @@ function Ar({
|
|
|
10275
10294
|
}, l = C$1({ options: o2 });
|
|
10276
10295
|
return ar({ apiHandler: l });
|
|
10277
10296
|
}
|
|
10278
|
-
function
|
|
10297
|
+
function br({
|
|
10279
10298
|
publishableKey: e2 = null,
|
|
10280
10299
|
jwt: t2 = null,
|
|
10281
10300
|
sandbox: s = false,
|
|
@@ -10343,7 +10362,7 @@ class StorefrontInstance {
|
|
|
10343
10362
|
appName: appName ? `${appName}/instruments` : "instruments"
|
|
10344
10363
|
}
|
|
10345
10364
|
};
|
|
10346
|
-
const api =
|
|
10365
|
+
const api = br(config);
|
|
10347
10366
|
const rebilly = (
|
|
10348
10367
|
// @ts-expect-error refactor with above todo
|
|
10349
10368
|
typeof yr.default === "function" ? (
|