rebilly-js-sdk 62.210.0 → 62.211.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 +1 -1
- package/dist/rebilly-js-sdk.d.cts +89 -0
- package/dist/rebilly-js-sdk.d.mts +89 -0
- package/dist/rebilly-js-sdk.d.ts +89 -0
- package/dist/rebilly-js-sdk.es.mjs +66 -60
- package/dist/rebilly-js-sdk.umd.js +1 -1
- package/package.json +1 -1
- package/src/resources/digital-wallets-resource.js +11 -0
|
@@ -33,7 +33,7 @@ var J = class {
|
|
|
33
33
|
limit: "pagination-limit",
|
|
34
34
|
offset: "pagination-offset",
|
|
35
35
|
total: "pagination-total"
|
|
36
|
-
},
|
|
36
|
+
}, pe = class {
|
|
37
37
|
constructor({ data: t, status: e, statusText: r, headers: s }, n = {}) {
|
|
38
38
|
this.limit = null, this.offset = null, this.total = null, Object.keys(L).forEach((u) => {
|
|
39
39
|
const o = s[L[u]];
|
|
@@ -52,7 +52,7 @@ var J = class {
|
|
|
52
52
|
getJSON() {
|
|
53
53
|
return JSON.parse(JSON.stringify({ items: this.items }));
|
|
54
54
|
}
|
|
55
|
-
},
|
|
55
|
+
}, fe = class {
|
|
56
56
|
constructor({ data: t, status: e, statusText: r, headers: s }, n = {}) {
|
|
57
57
|
this.response = {
|
|
58
58
|
status: e,
|
|
@@ -180,7 +180,7 @@ var J = class {
|
|
|
180
180
|
case "Float64Array":
|
|
181
181
|
return "float64array";
|
|
182
182
|
}
|
|
183
|
-
if (
|
|
183
|
+
if (f(y)) return "generator";
|
|
184
184
|
switch (A = r.call(y), A) {
|
|
185
185
|
case "[object Object]":
|
|
186
186
|
return "object";
|
|
@@ -213,7 +213,7 @@ var J = class {
|
|
|
213
213
|
function i(m, y) {
|
|
214
214
|
return s(m) === "GeneratorFunction";
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function f(m) {
|
|
217
217
|
return typeof m.throw == "function" && typeof m.return == "function" && typeof m.next == "function";
|
|
218
218
|
}
|
|
219
219
|
function g(m) {
|
|
@@ -244,7 +244,7 @@ var J = class {
|
|
|
244
244
|
case "buffer":
|
|
245
245
|
return i(g);
|
|
246
246
|
case "symbol":
|
|
247
|
-
return
|
|
247
|
+
return f(g);
|
|
248
248
|
case "arraybuffer":
|
|
249
249
|
return o(g);
|
|
250
250
|
case "float32array":
|
|
@@ -280,7 +280,7 @@ var J = class {
|
|
|
280
280
|
const $ = g.length, m = Buffer.allocUnsafe ? Buffer.allocUnsafe($) : Buffer.from($);
|
|
281
281
|
return g.copy(m), m;
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function f(g) {
|
|
284
284
|
return r ? Object(r.call(g)) : {};
|
|
285
285
|
}
|
|
286
286
|
e.exports = n;
|
|
@@ -299,28 +299,28 @@ var J = class {
|
|
|
299
299
|
};
|
|
300
300
|
})), Te = /* @__PURE__ */ I(((t, e) => {
|
|
301
301
|
var r = ke(), s = W(), n = de();
|
|
302
|
-
function u(i,
|
|
302
|
+
function u(i, f) {
|
|
303
303
|
switch (s(i)) {
|
|
304
304
|
case "object":
|
|
305
|
-
return o(i,
|
|
305
|
+
return o(i, f);
|
|
306
306
|
case "array":
|
|
307
|
-
return l(i,
|
|
307
|
+
return l(i, f);
|
|
308
308
|
default:
|
|
309
309
|
return r(i);
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
function o(i,
|
|
313
|
-
if (typeof
|
|
314
|
-
if (
|
|
312
|
+
function o(i, f) {
|
|
313
|
+
if (typeof f == "function") return f(i);
|
|
314
|
+
if (f || n(i)) {
|
|
315
315
|
const g = new i.constructor();
|
|
316
|
-
for (let $ in i) g[$] = u(i[$],
|
|
316
|
+
for (let $ in i) g[$] = u(i[$], f);
|
|
317
317
|
return g;
|
|
318
318
|
}
|
|
319
319
|
return i;
|
|
320
320
|
}
|
|
321
|
-
function l(i,
|
|
321
|
+
function l(i, f) {
|
|
322
322
|
const g = new i.constructor(i.length);
|
|
323
|
-
for (let $ = 0; $ < i.length; $++) g[$] = u(i[$],
|
|
323
|
+
for (let $ = 0; $ < i.length; $++) g[$] = u(i[$], f);
|
|
324
324
|
return g;
|
|
325
325
|
}
|
|
326
326
|
e.exports = u;
|
|
@@ -399,7 +399,7 @@ function C({ options: t }) {
|
|
|
399
399
|
"Rebilly",
|
|
400
400
|
t.appName,
|
|
401
401
|
"js-sdk"
|
|
402
|
-
].filter((a) => a).join("/")}@
|
|
402
|
+
].filter((a) => a).join("/")}@d021da2` };
|
|
403
403
|
return t.apiKey && (c["REB-APIKEY"] = t.apiKey), c;
|
|
404
404
|
}
|
|
405
405
|
function l() {
|
|
@@ -408,7 +408,7 @@ function C({ options: t }) {
|
|
|
408
408
|
function i(c) {
|
|
409
409
|
t.requestTimeout = Number(c), e.defaults.timeout = t.requestTimeout;
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function f(c = t.jwt) {
|
|
412
412
|
const a = l();
|
|
413
413
|
t.apiKey = null, t.jwt = c, delete a.common["REB-APIKEY"], a.common.Authorization = `Bearer ${c}`, e.defaults.headers = a;
|
|
414
414
|
}
|
|
@@ -416,19 +416,19 @@ function C({ options: t }) {
|
|
|
416
416
|
const a = l();
|
|
417
417
|
t.publishableKey = c, a.common.Authorization = `${c}`, e.defaults.headers = a;
|
|
418
418
|
}
|
|
419
|
-
function $({ host: c, port: a, auth:
|
|
419
|
+
function $({ host: c, port: a, auth: p }) {
|
|
420
420
|
e.defaults.proxy = {
|
|
421
421
|
host: c,
|
|
422
422
|
port: a,
|
|
423
|
-
auth:
|
|
423
|
+
auth: p
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
426
|
function m({ live: c = null, sandbox: a = null }) {
|
|
427
427
|
c && (t.apiEndpoints.live = c), a && (t.apiEndpoints.sandbox = a), e.defaults.baseURL = u();
|
|
428
428
|
}
|
|
429
|
-
function y(c, { thenDelegate: a, catchDelegate:
|
|
429
|
+
function y(c, { thenDelegate: a, catchDelegate: p = () => {
|
|
430
430
|
} }) {
|
|
431
|
-
return U(c) && e.interceptors[k[c]].use(a,
|
|
431
|
+
return U(c) && e.interceptors[k[c]].use(a, p);
|
|
432
432
|
}
|
|
433
433
|
function A(c, a) {
|
|
434
434
|
return U(c) && e.interceptors[k[c]].eject(a);
|
|
@@ -453,8 +453,8 @@ function C({ options: t }) {
|
|
|
453
453
|
function Z(c) {
|
|
454
454
|
A(k.response, c);
|
|
455
455
|
}
|
|
456
|
-
function d({ request: c, isCollection: a, config:
|
|
457
|
-
const h = M(
|
|
456
|
+
function d({ request: c, isCollection: a, config: p }) {
|
|
457
|
+
const h = M(p), { id: w, cancelToken: oe } = T.save();
|
|
458
458
|
h.cancelToken = oe;
|
|
459
459
|
const _ = async function() {
|
|
460
460
|
try {
|
|
@@ -474,8 +474,8 @@ function C({ options: t }) {
|
|
|
474
474
|
}();
|
|
475
475
|
return _.cancel = (E) => G.cancelById(w, E), _;
|
|
476
476
|
}
|
|
477
|
-
function H({ response: c, isCollection: a, config:
|
|
478
|
-
return a ? new
|
|
477
|
+
function H({ response: c, isCollection: a, config: p }) {
|
|
478
|
+
return a ? new pe(c, p) : new J(c, p);
|
|
479
479
|
}
|
|
480
480
|
function D({ error: c }) {
|
|
481
481
|
if (P.isCancel(c)) throw new R.RebillyCanceledError(c);
|
|
@@ -496,9 +496,9 @@ function C({ options: t }) {
|
|
|
496
496
|
throw c.code === "ECONNABORTED" ? new R.RebillyTimeoutError(c) : new R.RebillyRequestError(c);
|
|
497
497
|
}
|
|
498
498
|
function ee(c) {
|
|
499
|
-
return c.params !== void 0 && (c.params = Object.keys(c.params).filter((a) => c.params[a] !== null && c.params[a] !== "" && !(a === "sort" && c.params[a]?.length === 0)).reduce((a,
|
|
500
|
-
const h = c.params[
|
|
501
|
-
return a[
|
|
499
|
+
return c.params !== void 0 && (c.params = Object.keys(c.params).filter((a) => c.params[a] !== null && c.params[a] !== "" && !(a === "sort" && c.params[a]?.length === 0)).reduce((a, p) => {
|
|
500
|
+
const h = c.params[p];
|
|
501
|
+
return a[p] = p === "sort" && Array.isArray(h) ? h.join(",") : h, a;
|
|
502
502
|
}, {})), c;
|
|
503
503
|
}
|
|
504
504
|
function M(c = {}) {
|
|
@@ -506,63 +506,63 @@ function C({ options: t }) {
|
|
|
506
506
|
}
|
|
507
507
|
function F(c, a = {}) {
|
|
508
508
|
return d({
|
|
509
|
-
request: (
|
|
509
|
+
request: (p) => e.get(c, p),
|
|
510
510
|
config: { params: a }
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
513
|
function te(c, a) {
|
|
514
514
|
return d({
|
|
515
|
-
request: (
|
|
515
|
+
request: (p) => e.get(c, p),
|
|
516
516
|
config: { params: a },
|
|
517
517
|
isCollection: !0
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
function B(c, a,
|
|
520
|
+
function B(c, a, p = {}) {
|
|
521
521
|
let h = {};
|
|
522
|
-
return
|
|
522
|
+
return p.authenticate === !1 && (h = { headers: l() }, delete h.headers.common["REB-APIKEY"], delete h.headers.common.Authorization), p.params && (h.params = { ...p.params }), d({
|
|
523
523
|
request: (w) => e.post(c, a, w),
|
|
524
524
|
config: h
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
|
-
function N(c, a,
|
|
527
|
+
function N(c, a, p = {}) {
|
|
528
528
|
return d({
|
|
529
529
|
request: (h) => e.put(c, a, h),
|
|
530
|
-
config: { params:
|
|
530
|
+
config: { params: p }
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
533
|
function re(c, a) {
|
|
534
534
|
return d({
|
|
535
|
-
request: (
|
|
535
|
+
request: (p) => e.patch(c, a, p),
|
|
536
536
|
config: {}
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
539
|
function K(c, a = null) {
|
|
540
540
|
return d({
|
|
541
|
-
request: (
|
|
541
|
+
request: (p) => e.delete(c, p),
|
|
542
542
|
config: a != null ? { data: a } : {}
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
545
|
function se(c, a) {
|
|
546
546
|
return K(c, a);
|
|
547
547
|
}
|
|
548
|
-
async function ne(c, a,
|
|
549
|
-
if (a === "") return B(c,
|
|
548
|
+
async function ne(c, a, p, h = {}) {
|
|
549
|
+
if (a === "") return B(c, p, { params: h });
|
|
550
550
|
try {
|
|
551
551
|
if ((await F(c)).response.status === 200) throw new R.RebillyConflictError({ message: "A resource already exists with this ID. Please use a different ID." });
|
|
552
552
|
} catch (w) {
|
|
553
|
-
if (w.name === "RebillyNotFoundError") return N(c,
|
|
553
|
+
if (w.name === "RebillyNotFoundError") return N(c, p, h);
|
|
554
554
|
throw w;
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
async function ue(c, a) {
|
|
558
|
-
const
|
|
558
|
+
const p = M(a);
|
|
559
559
|
try {
|
|
560
|
-
const h = await e.get(c,
|
|
561
|
-
return new
|
|
560
|
+
const h = await e.get(c, p);
|
|
561
|
+
return new fe(h, p);
|
|
562
562
|
} catch (h) {
|
|
563
563
|
return D({
|
|
564
564
|
error: h,
|
|
565
|
-
config:
|
|
565
|
+
config: p
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
568
|
}
|
|
@@ -574,7 +574,7 @@ function C({ options: t }) {
|
|
|
574
574
|
removeResponseInterceptor: Z,
|
|
575
575
|
setTimeout: i,
|
|
576
576
|
setProxyAgent: $,
|
|
577
|
-
setSessionToken:
|
|
577
|
+
setSessionToken: f,
|
|
578
578
|
setPublishableKey: g,
|
|
579
579
|
setEndpoints: m,
|
|
580
580
|
get: F,
|
|
@@ -1187,8 +1187,14 @@ function He({ apiHandler: t }) {
|
|
|
1187
1187
|
validate({ data: e }) {
|
|
1188
1188
|
return t.post("digital-wallets/validation", e);
|
|
1189
1189
|
},
|
|
1190
|
+
getApplePayDomains() {
|
|
1191
|
+
return t.get("digital-wallets/onboarding/apple-pay");
|
|
1192
|
+
},
|
|
1190
1193
|
create({ data: e }) {
|
|
1191
1194
|
return t.post("digital-wallets/onboarding/apple-pay", e);
|
|
1195
|
+
},
|
|
1196
|
+
deleteApplePayDomain({ domain: e }) {
|
|
1197
|
+
return t.delete(`digital-wallets/onboarding/apple-pay/${e}`);
|
|
1192
1198
|
}
|
|
1193
1199
|
};
|
|
1194
1200
|
}
|
|
@@ -1486,7 +1492,7 @@ function ct({ apiHandler: t }) {
|
|
|
1486
1492
|
const u = (async () => {
|
|
1487
1493
|
const o = this.getAllAttachments(r);
|
|
1488
1494
|
s.push(o);
|
|
1489
|
-
const l = (await o).items.map((
|
|
1495
|
+
const l = (await o).items.map((f) => this.detach({ id: f.fields.id }));
|
|
1490
1496
|
s = [...s, l], await Promise.all(l);
|
|
1491
1497
|
const i = t.delete(`files/${e}`);
|
|
1492
1498
|
return s.push(i), i;
|
|
@@ -1755,7 +1761,7 @@ function mt({ apiHandler: t }) {
|
|
|
1755
1761
|
}
|
|
1756
1762
|
};
|
|
1757
1763
|
}
|
|
1758
|
-
function
|
|
1764
|
+
function pt({ apiHandler: t }) {
|
|
1759
1765
|
return {
|
|
1760
1766
|
getAllEntries({ limit: e = null, offset: r = null, filter: s = null, sort: n = null } = {}) {
|
|
1761
1767
|
const u = {
|
|
@@ -1777,7 +1783,7 @@ function ft({ apiHandler: t }) {
|
|
|
1777
1783
|
}
|
|
1778
1784
|
};
|
|
1779
1785
|
}
|
|
1780
|
-
function
|
|
1786
|
+
function ft({ apiHandler: t }) {
|
|
1781
1787
|
return {
|
|
1782
1788
|
getAll({ limit: e = null, offset: r = null, filter: s = null, sort: n = null, expand: u = null } = {}) {
|
|
1783
1789
|
const o = {
|
|
@@ -2589,7 +2595,7 @@ function Xt({ apiHandler: t }) {
|
|
|
2589
2595
|
return t.patch(`service-credentials/${e}/${r}`, s);
|
|
2590
2596
|
},
|
|
2591
2597
|
getItems({ type: e, id: r, limit: s = null, offset: n = null, filter: u = null, q: o = null, fields: l = null, sort: i = null }) {
|
|
2592
|
-
const
|
|
2598
|
+
const f = {
|
|
2593
2599
|
limit: s,
|
|
2594
2600
|
offset: n,
|
|
2595
2601
|
filter: u,
|
|
@@ -2597,7 +2603,7 @@ function Xt({ apiHandler: t }) {
|
|
|
2597
2603
|
fields: l,
|
|
2598
2604
|
sort: i
|
|
2599
2605
|
};
|
|
2600
|
-
return t.getAll(`service-credentials/${e}/${r}/items`,
|
|
2606
|
+
return t.getAll(`service-credentials/${e}/${r}/items`, f);
|
|
2601
2607
|
}
|
|
2602
2608
|
};
|
|
2603
2609
|
}
|
|
@@ -3086,15 +3092,15 @@ function gr({ apiHandler: t }) {
|
|
|
3086
3092
|
}
|
|
3087
3093
|
var mr = class {
|
|
3088
3094
|
constructor({ apiHandler: t }) {
|
|
3089
|
-
this.account = Ce({ apiHandler: t }), this.allowlists = je({ apiHandler: t }), this.amlChecks = Oe({ apiHandler: t }), this.amlSettings = De({ apiHandler: t }), this.apiKeys = Me({ apiHandler: t }), this.applicationInstances = Fe({ apiHandler: t }), this.applications = Be({ apiHandler: t }), this.balanceTransactions = Ne({ apiHandler: t }), this.billingPortals = Ke({ apiHandler: t }), this.blocklists = _e({ apiHandler: t }), this.broadcastMessages = Le({ apiHandler: t }), this.cashiers = Ue({ apiHandler: t }), this.checkoutForms = ze({ apiHandler: t }), this.coupons = Ve({ apiHandler: t }), this.creditMemos = Je({ apiHandler: t }), this.customDomains = We({ apiHandler: t }), this.customFields = Ge({ apiHandler: t }), this.customerAuthentication = Ye({ apiHandler: t }), this.customers = Qe({ apiHandler: t }), this.depositRequests = Xe({ apiHandler: t }), this.depositStrategies = Ze({ apiHandler: t }), this.digitalWallets = He({ apiHandler: t }), this.disputes = et({ apiHandler: t }), this.emailDeliverySettings = tt({ apiHandler: t }), this.emailMessages = rt({ apiHandler: t }), this.emailNotifications = st({ apiHandler: t }), this.events = nt({ apiHandler: t }), this.externalIdentifiers = ut({ apiHandler: t }), this.externalServicesSettings = ot({ apiHandler: t }), this.fees = lt({ apiHandler: t }), this.files = ct({ apiHandler: t }), this.gatewayAccounts = it({ apiHandler: t }), this.integrations = at({ apiHandler: t }), this.invoices = gt({ apiHandler: t }), this.journalAccounts = mt({ apiHandler: t }), this.journalEntries =
|
|
3095
|
+
this.account = Ce({ apiHandler: t }), this.allowlists = je({ apiHandler: t }), this.amlChecks = Oe({ apiHandler: t }), this.amlSettings = De({ apiHandler: t }), this.apiKeys = Me({ apiHandler: t }), this.applicationInstances = Fe({ apiHandler: t }), this.applications = Be({ apiHandler: t }), this.balanceTransactions = Ne({ apiHandler: t }), this.billingPortals = Ke({ apiHandler: t }), this.blocklists = _e({ apiHandler: t }), this.broadcastMessages = Le({ apiHandler: t }), this.cashiers = Ue({ apiHandler: t }), this.checkoutForms = ze({ apiHandler: t }), this.coupons = Ve({ apiHandler: t }), this.creditMemos = Je({ apiHandler: t }), this.customDomains = We({ apiHandler: t }), this.customFields = Ge({ apiHandler: t }), this.customerAuthentication = Ye({ apiHandler: t }), this.customers = Qe({ apiHandler: t }), this.depositRequests = Xe({ apiHandler: t }), this.depositStrategies = Ze({ apiHandler: t }), this.digitalWallets = He({ apiHandler: t }), this.disputes = et({ apiHandler: t }), this.emailDeliverySettings = tt({ apiHandler: t }), this.emailMessages = rt({ apiHandler: t }), this.emailNotifications = st({ apiHandler: t }), this.events = nt({ apiHandler: t }), this.externalIdentifiers = ut({ apiHandler: t }), this.externalServicesSettings = ot({ apiHandler: t }), this.fees = lt({ apiHandler: t }), this.files = ct({ apiHandler: t }), this.gatewayAccounts = it({ apiHandler: t }), this.integrations = at({ apiHandler: t }), this.invoices = gt({ apiHandler: t }), this.journalAccounts = mt({ apiHandler: t }), this.journalEntries = pt({ apiHandler: t }), this.journalRecords = ft({ apiHandler: t }), this.kycDocuments = $t({ apiHandler: t }), this.kycRequests = ht({ apiHandler: t }), this.kycSettings = yt({ apiHandler: t }), this.lists = At({ apiHandler: t }), this.orderCancellations = Rt({ apiHandler: t }), this.orderChanges = bt({ apiHandler: t }), this.orderPauses = wt({ apiHandler: t }), this.orderReactivations = vt({ apiHandler: t }), this.orders = kt({ apiHandler: t }), this.organizationExports = qt({ apiHandler: t }), this.organizations = dt({ apiHandler: t }), this.paymentCardsBankNames = Tt({ apiHandler: t }), this.paymentInstruments = It({ apiHandler: t }), this.paymentMethods = St({ apiHandler: t }), this.paymentTokens = xt({ apiHandler: t }), this.payoutRequestAllocations = Et({ apiHandler: t }), this.payoutRequestAutoAllocations = Pt({ apiHandler: t }), this.payoutRequestBatchOperations = Ct({ apiHandler: t }), this.payoutRequestBatchPreviews = jt({ apiHandler: t }), this.payoutRequestBatches = Ot({ apiHandler: t }), this.payoutRequestSplits = Dt({ apiHandler: t }), this.payoutRequests = Mt({ apiHandler: t }), this.payouts = Ft({ apiHandler: t }), this.plans = Bt({ apiHandler: t }), this.previews = Nt({ apiHandler: t }), this.products = Kt({ apiHandler: t }), this.profile = _t({ apiHandler: t }), this.purchase = Lt({ apiHandler: t }), this.quotes = Ut({ apiHandler: t }), this.releaseFlags = zt({ apiHandler: t }), this.resource = Vt({ apiHandler: t }), this.riskScoreRules = Jt({ apiHandler: t }), this.roles = Wt({ apiHandler: t }), this.search = Gt({ apiHandler: t }), this.segments = Yt({ apiHandler: t }), this.sendThroughAttribution = Qt({ apiHandler: t }), this.serviceCredentials = Xt({ apiHandler: t }), this.shippingRates = Zt({ apiHandler: t }), this.status = Ht({ apiHandler: t }), this.subscriptionCancellations = er({ apiHandler: t }), this.subscriptionPauses = tr({ apiHandler: t }), this.subscriptionReactivations = rr({ apiHandler: t }), this.subscriptions = sr({ apiHandler: t }), this.tags = nr({ apiHandler: t }), this.tagsRules = ur({ apiHandler: t }), this.tracking = or({ apiHandler: t }), this.transactions = lr({ apiHandler: t }), this.usages = cr({ apiHandler: t }), this.users = ir({ apiHandler: t }), this.webhooks = ar({ apiHandler: t }), this.websites = gr({ apiHandler: t }), this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setPublishableKey = t.setPublishableKey, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken, this.generateSignature = t.generateSignature;
|
|
3090
3096
|
}
|
|
3091
3097
|
};
|
|
3092
|
-
function
|
|
3098
|
+
function pr({ apiHandler: t }) {
|
|
3093
3099
|
return { getCustomerLifetimeSummaryMetrics({ customerId: e }) {
|
|
3094
3100
|
return t.get(`customers/${e}/summary-metrics`);
|
|
3095
3101
|
} };
|
|
3096
3102
|
}
|
|
3097
|
-
function
|
|
3103
|
+
function fr({ apiHandler: t }) {
|
|
3098
3104
|
return {
|
|
3099
3105
|
getAll({ limit: e = null, offset: r = null, sort: s = null, expand: n = null, filter: u = null, q: o = null, criteria: l = null } = {}) {
|
|
3100
3106
|
const i = {
|
|
@@ -3279,7 +3285,7 @@ function hr({ apiHandler: t }) {
|
|
|
3279
3285
|
return t.get("reports/future-renewals", u);
|
|
3280
3286
|
},
|
|
3281
3287
|
getJournal({ currency: e = null, bookedFrom: r = null, bookedTo: s = null, recognizedAt: n = null, aggregationField: u = null, limit: o = null, offset: l = null, filter: i = null }) {
|
|
3282
|
-
const
|
|
3288
|
+
const f = {
|
|
3283
3289
|
currency: e,
|
|
3284
3290
|
bookedFrom: r,
|
|
3285
3291
|
bookedTo: s,
|
|
@@ -3289,7 +3295,7 @@ function hr({ apiHandler: t }) {
|
|
|
3289
3295
|
offset: l,
|
|
3290
3296
|
filter: i
|
|
3291
3297
|
};
|
|
3292
|
-
return t.get("reports/journal",
|
|
3298
|
+
return t.get("reports/journal", f);
|
|
3293
3299
|
},
|
|
3294
3300
|
getJournalSummary({ periodStart: e = null, periodEnd: r = null, currency: s = null, aggregationField: n = null, amountField: u = null, journalAccountIds: o = null }) {
|
|
3295
3301
|
const l = {
|
|
@@ -3352,7 +3358,7 @@ function hr({ apiHandler: t }) {
|
|
|
3352
3358
|
};
|
|
3353
3359
|
return t.get("reports/renewal-sales", u);
|
|
3354
3360
|
},
|
|
3355
|
-
getRetentionPercentage({ aggregationField: e = null, aggregationPeriod: r = null, includeSwitchedSubscriptions: s = null, periodStart: n = null, periodEnd: u = null, limit: o = null, offset: l = null, filter: i = null, criteria:
|
|
3361
|
+
getRetentionPercentage({ aggregationField: e = null, aggregationPeriod: r = null, includeSwitchedSubscriptions: s = null, periodStart: n = null, periodEnd: u = null, limit: o = null, offset: l = null, filter: i = null, criteria: f = null }) {
|
|
3356
3362
|
const g = {
|
|
3357
3363
|
aggregationField: e,
|
|
3358
3364
|
aggregationPeriod: r,
|
|
@@ -3362,11 +3368,11 @@ function hr({ apiHandler: t }) {
|
|
|
3362
3368
|
limit: o,
|
|
3363
3369
|
offset: l,
|
|
3364
3370
|
filter: i,
|
|
3365
|
-
criteria:
|
|
3371
|
+
criteria: f
|
|
3366
3372
|
};
|
|
3367
3373
|
return t.get("reports/retention-percentage", g);
|
|
3368
3374
|
},
|
|
3369
|
-
getRetentionValue({ aggregationField: e = null, aggregationPeriod: r = null, includeRefunds: s = null, includeDisputes: n = null, periodStart: u = null, periodEnd: o = null, limit: l = null, offset: i = null, filter:
|
|
3375
|
+
getRetentionValue({ aggregationField: e = null, aggregationPeriod: r = null, includeRefunds: s = null, includeDisputes: n = null, periodStart: u = null, periodEnd: o = null, limit: l = null, offset: i = null, filter: f = null, sort: g = null, criteria: $ = null }) {
|
|
3370
3376
|
const m = {
|
|
3371
3377
|
aggregationField: e,
|
|
3372
3378
|
aggregationPeriod: r,
|
|
@@ -3376,7 +3382,7 @@ function hr({ apiHandler: t }) {
|
|
|
3376
3382
|
periodEnd: o,
|
|
3377
3383
|
limit: l,
|
|
3378
3384
|
offset: i,
|
|
3379
|
-
filter:
|
|
3385
|
+
filter: f,
|
|
3380
3386
|
sort: g,
|
|
3381
3387
|
criteria: $
|
|
3382
3388
|
};
|
|
@@ -3508,8 +3514,8 @@ function Rr({ apiHandler: t }) {
|
|
|
3508
3514
|
} };
|
|
3509
3515
|
}
|
|
3510
3516
|
var v = {
|
|
3511
|
-
CustomersResource:
|
|
3512
|
-
DataExportsResource:
|
|
3517
|
+
CustomersResource: pr,
|
|
3518
|
+
DataExportsResource: fr,
|
|
3513
3519
|
HistogramsResource: $r,
|
|
3514
3520
|
ReportsResource: hr,
|
|
3515
3521
|
SubscriptionsResource: yr,
|