@rebilly/instruments 16.84.0 → 16.86.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.84.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.83.0...instruments/core-v16.84.0) (2026-03-31)
1
+ ## [16.86.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.85.0...instruments/core-v16.86.0) (2026-04-01)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * **replay:** Init k6 tool in monorepo ([#20057](https://github.com/Rebilly/rebilly/issues/20057)) ([d91a951](https://github.com/Rebilly/rebilly/commit/d91a951489a90520eb88bad62470792419f22804))
6
+ * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#20220](https://github.com/Rebilly/rebilly/issues/20220)) ([493bd6a](https://github.com/Rebilly/rebilly/commit/493bd6a65d3f9a335e085725cf399a6be505be04))
package/dist/index.js CHANGED
@@ -4849,16 +4849,16 @@ const {
4849
4849
  var it$1 = Object.defineProperty;
4850
4850
  var gt$1 = (e2, t2, s) => t2 in e2 ? it$1(e2, t2, { enumerable: true, configurable: true, writable: true, value: s }) : e2[t2] = s;
4851
4851
  var E$1 = (e2, t2, s) => gt$1(e2, typeof t2 != "symbol" ? t2 + "" : t2, s);
4852
- function T(e2, { exclude: t2 = [] } = {}) {
4852
+ function I$1(e2, { exclude: t2 = [] } = {}) {
4853
4853
  Object.freeze(e2);
4854
4854
  const s = typeof e2 == "function";
4855
4855
  return Object.getOwnPropertyNames(e2).forEach((r2) => {
4856
- (!s || r2 !== "caller" && r2 !== "callee" && r2 !== "arguments") && e2[r2] !== null && !t2.includes(r2) && (typeof e2[r2] == "object" || typeof e2[r2] == "function") && !Object.isFrozen(e2[r2]) && T(e2[r2], { exclude: t2 });
4856
+ (!s || r2 !== "caller" && r2 !== "callee" && r2 !== "arguments") && e2[r2] !== null && !t2.includes(r2) && (typeof e2[r2] == "object" || typeof e2[r2] == "function") && !Object.isFrozen(e2[r2]) && I$1(e2[r2], { exclude: t2 });
4857
4857
  }), e2;
4858
4858
  }
4859
4859
  let G$1 = class G {
4860
4860
  constructor({ data: t2, status: s, statusText: r2, headers: n2 }, u = {}) {
4861
- this.response = { status: s, statusText: r2, headers: n2 }, this.fields = { ...t2 }, this.config = u, T(this, { exclude: ["cancelToken"] });
4861
+ this.response = { status: s, statusText: r2, headers: n2 }, this.fields = { ...t2 }, this.config = u, I$1(this, { exclude: ["cancelToken"] });
4862
4862
  }
4863
4863
  /**
4864
4864
  * Returns a mutable JSON representation of the Member.
@@ -4889,7 +4889,7 @@ let at$1 = class at {
4889
4889
  this[o2] = l ? Number(l) : null;
4890
4890
  }), this.response = { status: s, statusText: r2, headers: n2 }, this.items = t2.map(
4891
4891
  (o2) => new G$1({ data: o2, status: s, statusText: r2, headers: n2 })
4892
- ), this.config = u, T(this, { exclude: ["cancelToken"] });
4892
+ ), this.config = u, I$1(this, { exclude: ["cancelToken"] });
4893
4893
  }
4894
4894
  /**
4895
4895
  * Returns a mutable JSON representation of the Collection.
@@ -5190,7 +5190,7 @@ let Qt$1 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", X
5190
5190
  };
5191
5191
  let Zt$1 = class Zt {
5192
5192
  constructor({ id: t2 = null, created: s = null } = {}) {
5193
- this.id = t2 || Xt$1(), this.created = s || (/* @__PURE__ */ new Date()).getTime(), this.cancelSource = axios.CancelToken.source(), this.cancel = this.cancelSource.cancel, this.cancelToken = this.cancelSource.token, T(this, {
5193
+ this.id = t2 || Xt$1(), this.created = s || (/* @__PURE__ */ new Date()).getTime(), this.cancelSource = axios.CancelToken.source(), this.cancel = this.cancelSource.cancel, this.cancelToken = this.cancelSource.token, I$1(this, {
5194
5194
  exclude: ["cancelSource", "cancelToken", "cancel"]
5195
5195
  });
5196
5196
  }
@@ -5238,9 +5238,9 @@ class v {
5238
5238
  }
5239
5239
  }
5240
5240
  const w = new v();
5241
- let q$1 = class q {
5242
- };
5243
- E$1(q$1, "cancelById", (t2, s) => {
5241
+ class T {
5242
+ }
5243
+ E$1(T, "cancelById", (t2, s) => {
5244
5244
  try {
5245
5245
  w.getById(t2).cancel(s), w.deleteById(t2);
5246
5246
  } catch {
@@ -5260,7 +5260,7 @@ E$1(q$1, "cancelById", (t2, s) => {
5260
5260
  * // cancel all active requests
5261
5261
  * await cancellation.cancelAll();
5262
5262
  */
5263
- E$1(q$1, "cancelAll", async (t2) => {
5263
+ E$1(T, "cancelAll", async (t2) => {
5264
5264
  for (const s of w.getAll())
5265
5265
  await s.cancel(t2), w.deleteById(s.id);
5266
5266
  });
@@ -5268,7 +5268,7 @@ const hr = {
5268
5268
  /**
5269
5269
  * @type Cancellation.cancelAll
5270
5270
  */
5271
- cancelAll: async (...e2) => await q$1.cancelAll(...e2)
5271
+ cancelAll: async (...e2) => await T.cancelAll(...e2)
5272
5272
  }, b = {
5273
5273
  request: "request",
5274
5274
  response: "response"
@@ -5298,7 +5298,7 @@ function C$1({ options: e2 }) {
5298
5298
  }
5299
5299
  function o2() {
5300
5300
  const i = {
5301
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@d91a951`
5301
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@493bd6a`
5302
5302
  };
5303
5303
  return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
5304
5304
  }
@@ -5376,7 +5376,7 @@ function C$1({ options: e2 }) {
5376
5376
  w.deleteById(h2);
5377
5377
  }
5378
5378
  }();
5379
- return z2.cancel = (k2) => q$1.cancelById(h2, k2), z2;
5379
+ return z2.cancel = (k2) => T.cancelById(h2, k2), z2;
5380
5380
  }
5381
5381
  function tt2({ response: c, isCollection: i, config: g }) {
5382
5382
  return i ? new at$1(c, g) : new G$1(c, g);
@@ -5934,6 +5934,7 @@ function ae$1({ apiHandler: e2 }) {
5934
5934
  }
5935
5935
  };
5936
5936
  }
5937
+ const q$1 = { Accept: "application/pdf" };
5937
5938
  function me$1({ apiHandler: e2 }) {
5938
5939
  return {
5939
5940
  /**
@@ -6002,6 +6003,13 @@ function me$1({ apiHandler: e2 }) {
6002
6003
  },
6003
6004
  deleteTimelineMessage({ id: t2, messageId: s }) {
6004
6005
  return e2.delete(`credit-memos/${t2}/timeline/${s}`);
6006
+ },
6007
+ downloadPDF({ id: t2 }) {
6008
+ const s = {
6009
+ headers: q$1,
6010
+ responseType: "arraybuffer"
6011
+ };
6012
+ return e2.download(`credit-memos/${t2}`, s);
6005
6013
  }
6006
6014
  };
6007
6015
  }
@@ -7034,7 +7042,6 @@ function Pe$1({ apiHandler: e2 }) {
7034
7042
  }
7035
7043
  };
7036
7044
  }
7037
- const I$1 = { Accept: "application/pdf" };
7038
7045
  function Ce$1({ apiHandler: e2 }) {
7039
7046
  return {
7040
7047
  /**
@@ -7156,7 +7163,7 @@ function Ce$1({ apiHandler: e2 }) {
7156
7163
  },
7157
7164
  downloadPDF({ id: t2 }) {
7158
7165
  const s = {
7159
- headers: I$1,
7166
+ headers: q$1,
7160
7167
  responseType: "arraybuffer"
7161
7168
  };
7162
7169
  return e2.download(`invoices/${t2}`, s);
@@ -8136,7 +8143,7 @@ function ls({ apiHandler: e2 }) {
8136
8143
  },
8137
8144
  downloadPDF({ id: t2 }) {
8138
8145
  const s = {
8139
- headers: I$1,
8146
+ headers: q$1,
8140
8147
  responseType: "arraybuffer"
8141
8148
  };
8142
8149
  return e2.download(`quotes/${t2}`, s);
@@ -9804,7 +9811,7 @@ function Gs({ apiHandler: e2 }) {
9804
9811
  },
9805
9812
  downloadPDF({ id: t2 }) {
9806
9813
  const s = {
9807
- headers: I$1,
9814
+ headers: q$1,
9808
9815
  responseType: "arraybuffer"
9809
9816
  };
9810
9817
  return e2.download(`invoices/${t2}`, s);
@@ -10060,7 +10067,7 @@ function rr({ apiHandler: e2 }) {
10060
10067
  },
10061
10068
  downloadPDF({ id: t2 }) {
10062
10069
  const s = {
10063
- headers: I$1,
10070
+ headers: q$1,
10064
10071
  responseType: "arraybuffer"
10065
10072
  };
10066
10073
  return e2.download(`quotes/${t2}`, s);
@@ -10688,7 +10695,7 @@ function L(e2, t2) {
10688
10695
  function h(e2, t2) {
10689
10696
  return [e2[0] ^ t2[0], e2[1] ^ t2[1]];
10690
10697
  }
10691
- function q2(e2) {
10698
+ function q(e2) {
10692
10699
  return e2 = h(e2, [0, e2[0] >>> 1]), e2 = C(e2, [4283543511, 3981806797]), e2 = h(e2, [0, e2[0] >>> 1]), e2 = C(e2, [3301882366, 444984403]), e2 = h(e2, [0, e2[0] >>> 1]), e2;
10693
10700
  }
10694
10701
  function we(e2, t2) {
@@ -10734,7 +10741,7 @@ function we(e2, t2) {
10734
10741
  case 1:
10735
10742
  o2 = h(o2, [0, e2.charCodeAt(u)]), o2 = C(o2, l), o2 = A(o2, 31), o2 = C(o2, s), i = h(i, o2);
10736
10743
  }
10737
- return i = h(i, [0, e2.length]), r2 = h(r2, [0, e2.length]), i = Z(i, r2), r2 = Z(r2, i), i = q2(i), r2 = q2(r2), i = Z(i, r2), r2 = Z(r2, i), ("00000000" + (i[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[1] >>> 0).toString(16)).slice(-8);
10744
+ return i = h(i, [0, e2.length]), r2 = h(r2, [0, e2.length]), i = Z(i, r2), r2 = Z(r2, i), i = q(i), r2 = q(r2), i = Z(i, r2), r2 = Z(r2, i), ("00000000" + (i[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[1] >>> 0).toString(16)).slice(-8);
10738
10745
  }
10739
10746
  function Se(e2) {
10740
10747
  var t2;