@rebilly/instruments 16.130.0 → 16.131.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 CHANGED
@@ -1,6 +1,6 @@
1
- ## [16.130.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.129.0...instruments/core-v16.130.0) (2026-06-15)
1
+ ## [16.131.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.130.0...instruments/core-v16.131.0) (2026-06-16)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#22691](https://github.com/Rebilly/rebilly/issues/22691)) ([1ad1ebe](https://github.com/Rebilly/rebilly/commit/1ad1ebedd1501017cec860ec915eb3783b54803d))
6
+ * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#22714](https://github.com/Rebilly/rebilly/issues/22714)) ([0c8ddc4](https://github.com/Rebilly/rebilly/commit/0c8ddc4243d5f051db807feb0b581de87a20dda4))
package/README.md CHANGED
@@ -41,20 +41,20 @@ Enjoy 🎉
41
41
  <div class="rebilly-instruments"></div>
42
42
 
43
43
  <script type="text/javascript">
44
- import RebillyInstruments from '@rebilly/instruments';
45
-
46
- RebillyInstruments.mount({
47
- publishableKey: 'pk_sandbox_123',
48
- organizationId: 'org-123',
49
- websiteId: 'my-website-id',
50
- items: [
51
- {
52
- planId: 'my-plan-id',
53
- quantity: 1
54
- },
55
- ]
56
- // ...see documentation below for more options
57
- });
44
+ import RebillyInstruments from '@rebilly/instruments';
45
+
46
+ RebillyInstruments.mount({
47
+ publishableKey: 'pk_sandbox_123',
48
+ organizationId: 'org-123',
49
+ websiteId: 'my-website-id',
50
+ items: [
51
+ {
52
+ planId: 'my-plan-id',
53
+ quantity: 1,
54
+ },
55
+ ],
56
+ // ...see documentation below for more options
57
+ });
58
58
  </script>
59
59
  ```
60
60
 
package/dist/index.js CHANGED
@@ -2097,9 +2097,17 @@ function changeIframeSrcHandler(iframe) {
2097
2097
  }
2098
2098
  const REBILLY_TO_REVEL_MAP = [
2099
2099
  ["colorPrimary", "--rebilly-colorPrimary", "--r-primary"],
2100
- ["colorPrimary", "--rebilly-buttonHoverColorBackground", "--r-primary-hover"],
2100
+ [
2101
+ "colorPrimary",
2102
+ "--rebilly-buttonHoverColorBackground",
2103
+ "--r-primary-hover"
2104
+ ],
2101
2105
  ["colorBackground", "--rebilly-colorBackground", "--r-background"],
2102
- ["colorBackground", "--rebilly-buttonSecondaryHoverColorBackground", "--r-surface"],
2106
+ [
2107
+ "colorBackground",
2108
+ "--rebilly-buttonSecondaryHoverColorBackground",
2109
+ "--r-surface"
2110
+ ],
2103
2111
  ["colorText", "--rebilly-colorText", "--r-text"],
2104
2112
  ["colorText", "--rebilly-colorMutedText", "--r-text-muted"],
2105
2113
  ["colorText", "--rebilly-colorMutedBorder", "--r-border-muted"],
@@ -5357,12 +5365,12 @@ let A$1 = class A extends Error {
5357
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;
5358
5366
  }
5359
5367
  };
5360
- let bt$1 = class bt extends A$1 {
5368
+ let Rt$1 = class Rt extends A$1 {
5361
5369
  constructor(t2) {
5362
5370
  super({ error: t2, name: "RebillyRequestError" });
5363
5371
  }
5364
5372
  };
5365
- let Rt$1 = class Rt extends A$1 {
5373
+ let bt$1 = class bt extends A$1 {
5366
5374
  constructor(t2) {
5367
5375
  super({ error: t2, name: "RebillyValidationError" });
5368
5376
  }
@@ -5399,8 +5407,8 @@ let Tt$1 = class Tt extends A$1 {
5399
5407
  };
5400
5408
  const y = {
5401
5409
  RebillyError: A$1,
5402
- RebillyRequestError: bt$1,
5403
- RebillyValidationError: Rt$1,
5410
+ RebillyRequestError: Rt$1,
5411
+ RebillyValidationError: bt$1,
5404
5412
  RebillyNotFoundError: wt$1,
5405
5413
  RebillyConflictError: kt$1,
5406
5414
  RebillyForbiddenError: vt$1,
@@ -5771,7 +5779,7 @@ function O$1({ options: e2 }) {
5771
5779
  }
5772
5780
  function o2() {
5773
5781
  const g = {
5774
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@1ad1ebe`
5782
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@0c8ddc4`
5775
5783
  };
5776
5784
  return e2.apiKey && (g["REB-APIKEY"] = e2.apiKey), g;
5777
5785
  }
@@ -5832,8 +5840,8 @@ function O$1({ options: e2 }) {
5832
5840
  function ut2(c) {
5833
5841
  N2(k$1.response, c);
5834
5842
  }
5835
- function R({ request: c, isCollection: g, config: m2 }) {
5836
- const p = z2(m2), { id: b, cancelToken: $t2 } = q$1.save();
5843
+ function b({ request: c, isCollection: g, config: m2 }) {
5844
+ const p = z2(m2), { id: R, cancelToken: $t2 } = q$1.save();
5837
5845
  p.cancelToken = $t2;
5838
5846
  const W2 = (async function() {
5839
5847
  try {
@@ -5846,10 +5854,10 @@ function O$1({ options: e2 }) {
5846
5854
  } catch (d) {
5847
5855
  return L2({ error: d });
5848
5856
  } finally {
5849
- q$1.deleteById(b);
5857
+ q$1.deleteById(R);
5850
5858
  }
5851
5859
  })();
5852
- return W2.cancel = (d) => I$1.cancelById(b, d), W2;
5860
+ return W2.cancel = (d) => I$1.cancelById(R, d), W2;
5853
5861
  }
5854
5862
  function ot2({ response: c, isCollection: g, config: m2 }) {
5855
5863
  return g ? new yt$1(c, m2) : new tt$1(c, m2);
@@ -5883,13 +5891,13 @@ function O$1({ options: e2 }) {
5883
5891
  return { ...lt2(c) };
5884
5892
  }
5885
5893
  function U2(c, g = {}) {
5886
- return R({
5894
+ return b({
5887
5895
  request: (m2) => t2.get(c, m2),
5888
5896
  config: { params: g }
5889
5897
  });
5890
5898
  }
5891
5899
  function ct2(c, g) {
5892
- return R({
5900
+ return b({
5893
5901
  request: (m2) => t2.get(c, m2),
5894
5902
  config: { params: g },
5895
5903
  isCollection: true
@@ -5897,31 +5905,31 @@ function O$1({ options: e2 }) {
5897
5905
  }
5898
5906
  function V2(c, g, m2 = {}) {
5899
5907
  let p = {};
5900
- 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({
5901
- request: (b) => t2.post(c, g, b),
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 }), b({
5909
+ request: (R) => t2.post(c, g, R),
5902
5910
  config: p
5903
5911
  });
5904
5912
  }
5905
5913
  function J2(c, g, m2 = {}) {
5906
- return R({
5914
+ return b({
5907
5915
  request: (p) => t2.put(c, g, p),
5908
5916
  config: { params: m2 }
5909
5917
  });
5910
5918
  }
5911
5919
  function it2(c, g) {
5912
- return R({
5920
+ return b({
5913
5921
  request: (m2) => t2.patch(c, g, m2),
5914
5922
  config: {}
5915
5923
  });
5916
5924
  }
5917
5925
  function gt2(c) {
5918
- return R({
5926
+ return b({
5919
5927
  request: (g) => t2.delete(c, g),
5920
5928
  config: {}
5921
5929
  });
5922
5930
  }
5923
5931
  function at2(c, g) {
5924
- return R({
5932
+ return b({
5925
5933
  request: (m2) => t2.delete(c, m2),
5926
5934
  config: { data: { ...g } }
5927
5935
  });
@@ -5934,10 +5942,10 @@ function O$1({ options: e2 }) {
5934
5942
  throw new y.RebillyConflictError({
5935
5943
  message: "A resource already exists with this ID. Please use a different ID."
5936
5944
  });
5937
- } catch (b) {
5938
- if (b.name === "RebillyNotFoundError")
5945
+ } catch (R) {
5946
+ if (R.name === "RebillyNotFoundError")
5939
5947
  return J2(c, m2, p);
5940
- throw b;
5948
+ throw R;
5941
5949
  }
5942
5950
  }
5943
5951
  async function ft2(c, g) {
@@ -7646,7 +7654,7 @@ function Ae$1({ apiHandler: e2 }) {
7646
7654
  }
7647
7655
  };
7648
7656
  }
7649
- function be({ apiHandler: e2 }) {
7657
+ function Re$1({ apiHandler: e2 }) {
7650
7658
  return {
7651
7659
  /**
7652
7660
  * @param { rebilly.GetJournalAccountCollectionRequest } request
@@ -7682,7 +7690,7 @@ function be({ apiHandler: e2 }) {
7682
7690
  }
7683
7691
  };
7684
7692
  }
7685
- function Re$1({ apiHandler: e2 }) {
7693
+ function be({ apiHandler: e2 }) {
7686
7694
  return {
7687
7695
  /**
7688
7696
  * @param { rebilly.GetJournalEntryCollectionRequest } request
@@ -9513,7 +9521,7 @@ class $s {
9513
9521
  apiHandler: t2
9514
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({
9515
9523
  apiHandler: t2
9516
- }), 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({
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 = Re$1({ apiHandler: t2 }), this.journalEntries = be({ 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({
9517
9525
  apiHandler: t2
9518
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({
9519
9527
  apiHandler: t2
@@ -10093,7 +10101,7 @@ function As({ apiHandler: e2 }) {
10093
10101
  }
10094
10102
  };
10095
10103
  }
10096
- function bs({ apiHandler: e2 }) {
10104
+ function Rs({ apiHandler: e2 }) {
10097
10105
  return {
10098
10106
  /**
10099
10107
  * @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
@@ -10103,7 +10111,7 @@ function bs({ apiHandler: e2 }) {
10103
10111
  }
10104
10112
  };
10105
10113
  }
10106
- function Rs({ apiHandler: e2 }) {
10114
+ function bs({ apiHandler: e2 }) {
10107
10115
  return {
10108
10116
  getActivityFeed({ eventTypes: t2 = null, limit: s = 1e3, offset: r2 = 0 }) {
10109
10117
  const n2 = {
@@ -10143,8 +10151,8 @@ const w = {
10143
10151
  DataExportsResource: hs,
10144
10152
  HistogramsResource: ys,
10145
10153
  ReportsResource: As,
10146
- SubscriptionsResource: bs,
10147
- TimelinesResource: Rs,
10154
+ SubscriptionsResource: Rs,
10155
+ TimelinesResource: bs,
10148
10156
  LocationResource: ws
10149
10157
  };
10150
10158
  class ks {
@@ -12741,11 +12749,10 @@ async function cn({
12741
12749
  }
12742
12750
  };
12743
12751
  }
12744
- async function un({
12745
- env: e2 = null,
12746
- kountAccountId: t2 = null,
12747
- kountSessionId: n2 = null
12748
- } = { env: null, kountAccountId: null }) {
12752
+ async function un({ env: e2 = null, kountAccountId: t2 = null, kountSessionId: n2 = null } = {
12753
+ env: null,
12754
+ kountAccountId: null
12755
+ }) {
12749
12756
  return cn({
12750
12757
  env: e2,
12751
12758
  kountAccountId: t2,