@ezpaarse-project/ezreeport-sdk-js 1.0.0-beta.1 → 1.0.0-beta.2
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/dist/browser/ezreeport-sdk-js.mjs +50 -49
- package/dist/browser/ezreeport-sdk-js.mjs.map +1 -1
- package/dist/browser/ezreeport-sdk-js.umd.js +2 -2
- package/dist/browser/ezreeport-sdk-js.umd.js.map +1 -1
- package/dist/node/index.js +38 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/lib/axios.js +91 -0
- package/dist/node/lib/axios.js.map +1 -0
- package/dist/node/lib/promises.js +26 -0
- package/dist/node/lib/promises.js.map +1 -0
- package/dist/node/lib/utils.js +24 -0
- package/dist/node/lib/utils.js.map +1 -0
- package/dist/node/modules/auth.js +61 -0
- package/dist/node/modules/auth.js.map +1 -0
- package/dist/node/modules/crons.js +105 -0
- package/dist/node/modules/crons.js.map +1 -0
- package/dist/node/modules/health.js +52 -0
- package/dist/node/modules/health.js.map +1 -0
- package/dist/node/modules/history.js +60 -0
- package/dist/node/modules/history.js.map +1 -0
- package/dist/node/modules/institutions.js +61 -0
- package/dist/node/modules/institutions.js.map +1 -0
- package/dist/node/modules/queues.js +128 -0
- package/dist/node/modules/queues.js.map +1 -0
- package/dist/node/modules/reports.js +261 -0
- package/dist/node/modules/reports.js.map +1 -0
- package/dist/node/modules/setup.js +35 -0
- package/dist/node/modules/setup.js.map +1 -0
- package/dist/node/modules/tasks.js +187 -0
- package/dist/node/modules/tasks.js.map +1 -0
- package/dist/node/modules/templates.js +28 -0
- package/dist/node/modules/templates.js.map +1 -0
- package/dist/node/package.json +2 -2
- package/dist/node/src/index.js +39 -0
- package/dist/node/src/index.js.map +1 -0
- package/dist/node/src/lib/axios.js +91 -0
- package/dist/node/src/lib/axios.js.map +1 -0
- package/dist/node/src/lib/promises.js +41 -0
- package/dist/node/src/lib/promises.js.map +1 -0
- package/dist/node/src/lib/utils.js +24 -0
- package/dist/node/src/lib/utils.js.map +1 -0
- package/dist/node/src/modules/auth.js +111 -0
- package/dist/node/src/modules/auth.js.map +1 -0
- package/dist/node/src/modules/auth.public.js +11 -0
- package/dist/node/src/modules/auth.public.js.map +1 -0
- package/dist/node/src/modules/crons.js +105 -0
- package/dist/node/src/modules/crons.js.map +1 -0
- package/dist/node/src/modules/crons.public.js +10 -0
- package/dist/node/src/modules/crons.public.js.map +1 -0
- package/dist/node/src/modules/health.js +60 -0
- package/dist/node/src/modules/health.js.map +1 -0
- package/dist/node/src/modules/health.public.js +9 -0
- package/dist/node/src/modules/health.public.js.map +1 -0
- package/dist/node/src/modules/history.js +62 -0
- package/dist/node/src/modules/history.js.map +1 -0
- package/dist/node/src/modules/history.public.js +6 -0
- package/dist/node/src/modules/history.public.js.map +1 -0
- package/dist/node/src/modules/namespaces.js +16 -0
- package/dist/node/src/modules/namespaces.js.map +1 -0
- package/dist/node/src/modules/namespaces.public.js +3 -0
- package/dist/node/src/modules/namespaces.public.js.map +1 -0
- package/dist/node/src/modules/queues.js +136 -0
- package/dist/node/src/modules/queues.js.map +1 -0
- package/dist/node/src/modules/queues.public.js +11 -0
- package/dist/node/src/modules/queues.public.js.map +1 -0
- package/dist/node/src/modules/reports.js +266 -0
- package/dist/node/src/modules/reports.js.map +1 -0
- package/dist/node/src/modules/reports.public.js +13 -0
- package/dist/node/src/modules/reports.public.js.map +1 -0
- package/dist/node/src/modules/setup.js +35 -0
- package/dist/node/src/modules/setup.js.map +1 -0
- package/dist/node/src/modules/setup.public.js +12 -0
- package/dist/node/src/modules/setup.public.js.map +1 -0
- package/dist/node/src/modules/tasks.base.js +51 -0
- package/dist/node/src/modules/tasks.base.js.map +1 -0
- package/dist/node/src/modules/tasks.js +183 -0
- package/dist/node/src/modules/tasks.js.map +1 -0
- package/dist/node/src/modules/tasks.public.js +15 -0
- package/dist/node/src/modules/tasks.public.js.map +1 -0
- package/dist/node/src/modules/templates.js +135 -0
- package/dist/node/src/modules/templates.js.map +1 -0
- package/dist/node/src/modules/templates.public.js +11 -0
- package/dist/node/src/modules/templates.public.js.map +1 -0
- package/dist/types/lib/promises.d.ts +9 -7
- package/dist/types/modules/reports.d.ts +5 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -42
|
@@ -409,7 +409,7 @@ function Ae(e, t, n) {
|
|
|
409
409
|
function An(e) {
|
|
410
410
|
return a.isArray(e) && !e.some(ue);
|
|
411
411
|
}
|
|
412
|
-
const
|
|
412
|
+
const Sn = a.toFlatObject(a, {}, null, function(t) {
|
|
413
413
|
return /^is[A-Z]/.test(t);
|
|
414
414
|
});
|
|
415
415
|
function X(e, t, n) {
|
|
@@ -419,8 +419,8 @@ function X(e, t, n) {
|
|
|
419
419
|
metaTokens: !0,
|
|
420
420
|
dots: !1,
|
|
421
421
|
indexes: !1
|
|
422
|
-
}, !1, function(h,
|
|
423
|
-
return !a.isUndefined(
|
|
422
|
+
}, !1, function(h, S) {
|
|
423
|
+
return !a.isUndefined(S[h]);
|
|
424
424
|
});
|
|
425
425
|
const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
426
426
|
if (!a.isFunction(s))
|
|
@@ -434,9 +434,9 @@ function X(e, t, n) {
|
|
|
434
434
|
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
435
435
|
return a.isArrayBuffer(d) || a.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
|
|
436
436
|
}
|
|
437
|
-
function l(d, h,
|
|
437
|
+
function l(d, h, S) {
|
|
438
438
|
let O = d;
|
|
439
|
-
if (d && !
|
|
439
|
+
if (d && !S && typeof d == "object") {
|
|
440
440
|
if (a.endsWith(h, "{}"))
|
|
441
441
|
h = r ? h : h.slice(0, -2), d = JSON.stringify(d);
|
|
442
442
|
else if (a.isArray(d) && An(d) || (a.isFileList(d) || a.endsWith(h, "[]")) && (O = a.toArray(d)))
|
|
@@ -448,9 +448,9 @@ function X(e, t, n) {
|
|
|
448
448
|
);
|
|
449
449
|
}), !1;
|
|
450
450
|
}
|
|
451
|
-
return ue(d) ? !0 : (t.append(Ae(
|
|
451
|
+
return ue(d) ? !0 : (t.append(Ae(S, h, o), u(d)), !1);
|
|
452
452
|
}
|
|
453
|
-
const p = [], v = Object.assign(
|
|
453
|
+
const p = [], v = Object.assign(Sn, {
|
|
454
454
|
defaultVisitor: l,
|
|
455
455
|
convertValue: u,
|
|
456
456
|
isVisitable: ue
|
|
@@ -474,7 +474,7 @@ function X(e, t, n) {
|
|
|
474
474
|
throw new TypeError("data must be an object");
|
|
475
475
|
return b(e), t;
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function Se(e) {
|
|
478
478
|
const t = {
|
|
479
479
|
"!": "%21",
|
|
480
480
|
"'": "%27",
|
|
@@ -497,19 +497,19 @@ Ve.append = function(t, n) {
|
|
|
497
497
|
};
|
|
498
498
|
Ve.toString = function(t) {
|
|
499
499
|
const n = t ? function(r) {
|
|
500
|
-
return t.call(this, r,
|
|
501
|
-
} :
|
|
500
|
+
return t.call(this, r, Se);
|
|
501
|
+
} : Se;
|
|
502
502
|
return this._pairs.map(function(s) {
|
|
503
503
|
return n(s[0]) + "=" + n(s[1]);
|
|
504
504
|
}, "").join("&");
|
|
505
505
|
};
|
|
506
|
-
function
|
|
506
|
+
function Rn(e) {
|
|
507
507
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
508
508
|
}
|
|
509
509
|
function Ye(e, t, n) {
|
|
510
510
|
if (!t)
|
|
511
511
|
return e;
|
|
512
|
-
const r = n && n.encode ||
|
|
512
|
+
const r = n && n.encode || Rn, s = n && n.serialize;
|
|
513
513
|
let o;
|
|
514
514
|
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new me(t, n).toString(r), o) {
|
|
515
515
|
const i = e.indexOf("#");
|
|
@@ -571,7 +571,7 @@ class Tn {
|
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
const
|
|
574
|
+
const Re = Tn, Ge = {
|
|
575
575
|
silentJSONParsing: !0,
|
|
576
576
|
forcedJSONParsing: !0,
|
|
577
577
|
clarifyTimeoutError: !1
|
|
@@ -1254,8 +1254,8 @@ const le = {
|
|
|
1254
1254
|
let G = class {
|
|
1255
1255
|
constructor(t) {
|
|
1256
1256
|
this.defaults = t, this.interceptors = {
|
|
1257
|
-
request: new
|
|
1258
|
-
response: new
|
|
1257
|
+
request: new Re(),
|
|
1258
|
+
response: new Re()
|
|
1259
1259
|
};
|
|
1260
1260
|
}
|
|
1261
1261
|
/**
|
|
@@ -1311,8 +1311,8 @@ let G = class {
|
|
|
1311
1311
|
const d = c[p++], h = c[p++];
|
|
1312
1312
|
try {
|
|
1313
1313
|
b = d(b);
|
|
1314
|
-
} catch (
|
|
1315
|
-
h.call(this,
|
|
1314
|
+
} catch (S) {
|
|
1315
|
+
h.call(this, S);
|
|
1316
1316
|
break;
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
@@ -1543,7 +1543,7 @@ const rt = E, {
|
|
|
1543
1543
|
HttpStatusCode: bs,
|
|
1544
1544
|
formToJSON: gs,
|
|
1545
1545
|
mergeConfig: Es
|
|
1546
|
-
} = rt, st = rt.create({}),
|
|
1546
|
+
} = rt, st = rt.create({}), R = async (e, ...t) => {
|
|
1547
1547
|
try {
|
|
1548
1548
|
return await st[e](...t);
|
|
1549
1549
|
} catch (n) {
|
|
@@ -1576,11 +1576,11 @@ const rt = E, {
|
|
|
1576
1576
|
}, m = Object.assign(
|
|
1577
1577
|
st,
|
|
1578
1578
|
{
|
|
1579
|
-
$get: async (...e) => (await
|
|
1580
|
-
$post: async (...e) => (await
|
|
1581
|
-
$put: async (...e) => (await
|
|
1582
|
-
$patch: async (...e) => (await
|
|
1583
|
-
$delete: async (...e) => (await
|
|
1579
|
+
$get: async (...e) => (await R("get", ...e)).data,
|
|
1580
|
+
$post: async (...e) => (await R("post", ...e)).data,
|
|
1581
|
+
$put: async (...e) => (await R("put", ...e)).data,
|
|
1582
|
+
$patch: async (...e) => (await R("patch", ...e)).data,
|
|
1583
|
+
$delete: async (...e) => (await R("delete", ...e)).data
|
|
1584
1584
|
}
|
|
1585
1585
|
), ot = (e) => ({
|
|
1586
1586
|
...e,
|
|
@@ -1695,7 +1695,7 @@ const dt = (e) => ({
|
|
|
1695
1695
|
task: pt(e.task),
|
|
1696
1696
|
createdAt: g(e.createdAt)
|
|
1697
1697
|
}), Er = async (e, t) => {
|
|
1698
|
-
const { data: { content: n, ...r } } = await
|
|
1698
|
+
const { data: { content: n, ...r } } = await R(
|
|
1699
1699
|
"get",
|
|
1700
1700
|
"/history",
|
|
1701
1701
|
{
|
|
@@ -1709,18 +1709,18 @@ const dt = (e) => ({
|
|
|
1709
1709
|
...r,
|
|
1710
1710
|
content: n.map(gr)
|
|
1711
1711
|
};
|
|
1712
|
-
},
|
|
1712
|
+
}, Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1713
1713
|
__proto__: null,
|
|
1714
1714
|
getAllEntries: Er
|
|
1715
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1715
|
+
}, Symbol.toStringTag, { value: "Module" })), Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1716
1716
|
__proto__: null
|
|
1717
1717
|
}, Symbol.toStringTag, { value: "Module" })), be = (e) => ({
|
|
1718
1718
|
...e,
|
|
1719
1719
|
added: g(e.added),
|
|
1720
1720
|
started: e.started ? g(e.started) : void 0,
|
|
1721
1721
|
ended: e.ended ? g(e.ended) : void 0
|
|
1722
|
-
}), vr = () => m.$get("/queues"), Or = async (e) => m.$put(`/queues/${e}/pause`), Ar = async (e) => m.$put(`/queues/${e}/resume`),
|
|
1723
|
-
const { data: { content: n, ...r } } = await
|
|
1722
|
+
}), vr = () => m.$get("/queues"), Or = async (e) => m.$put(`/queues/${e}/pause`), Ar = async (e) => m.$put(`/queues/${e}/resume`), Sr = async (e, t) => {
|
|
1723
|
+
const { data: { content: n, ...r } } = await R(
|
|
1724
1724
|
"get",
|
|
1725
1725
|
`/queues/${e}/jobs`,
|
|
1726
1726
|
{
|
|
@@ -1737,7 +1737,7 @@ const dt = (e) => ({
|
|
|
1737
1737
|
...s,
|
|
1738
1738
|
content: be(r)
|
|
1739
1739
|
};
|
|
1740
|
-
},
|
|
1740
|
+
}, Rr = async (e, t, n) => {
|
|
1741
1741
|
const { content: r, ...s } = await m.$post(`/queues/${e}/jobs/${t}/retry`, { params: { namespaces: n } });
|
|
1742
1742
|
return {
|
|
1743
1743
|
...s,
|
|
@@ -1747,10 +1747,10 @@ const dt = (e) => ({
|
|
|
1747
1747
|
__proto__: null,
|
|
1748
1748
|
getAllQueues: vr,
|
|
1749
1749
|
getJob: I,
|
|
1750
|
-
getQueueJobs:
|
|
1750
|
+
getQueueJobs: Sr,
|
|
1751
1751
|
pauseQueue: Or,
|
|
1752
1752
|
resumeQueue: Ar,
|
|
1753
|
-
retryJob:
|
|
1753
|
+
retryJob: Rr
|
|
1754
1754
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1755
1755
|
var Q = {}, Tr = {
|
|
1756
1756
|
get exports() {
|
|
@@ -1984,16 +1984,17 @@ function vt(e, t, n, r) {
|
|
|
1984
1984
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e);
|
|
1985
1985
|
}
|
|
1986
1986
|
const Dr = (e, t = new Q()) => {
|
|
1987
|
-
const n =
|
|
1988
|
-
n
|
|
1987
|
+
const n = {
|
|
1988
|
+
emit: (o, ...i) => (t.emit(o.toString(), ...i), n)
|
|
1989
|
+
}, r = e(n), s = Object.assign(
|
|
1990
|
+
r,
|
|
1989
1991
|
{
|
|
1990
|
-
on: (
|
|
1991
|
-
once: (
|
|
1992
|
-
off: (
|
|
1993
|
-
emit: (...s) => (t.emit(...s), r)
|
|
1992
|
+
on: (o, i) => (t.on(o.toString(), (...c) => i(...c)), s),
|
|
1993
|
+
once: (o, i) => (t.once(o.toString(), (...c) => i(...c)), s),
|
|
1994
|
+
off: (o, i) => (t.off(o.toString(), (...c) => i(...c)), s)
|
|
1994
1995
|
}
|
|
1995
1996
|
);
|
|
1996
|
-
return
|
|
1997
|
+
return s;
|
|
1997
1998
|
}, $r = (e) => new Promise(
|
|
1998
1999
|
(t) => {
|
|
1999
2000
|
setTimeout(t, e);
|
|
@@ -2046,7 +2047,7 @@ const Dr = (e, t = new Q()) => {
|
|
|
2046
2047
|
throw new Error("Generation failed with weird error");
|
|
2047
2048
|
return ge(s.result);
|
|
2048
2049
|
}
|
|
2049
|
-
), $ = async (e, t, n) => (await
|
|
2050
|
+
), $ = async (e, t, n) => (await R(
|
|
2050
2051
|
"get",
|
|
2051
2052
|
`/reports/${e}`,
|
|
2052
2053
|
{
|
|
@@ -2123,7 +2124,7 @@ const Dr = (e, t = new Q()) => {
|
|
|
2123
2124
|
targets: r
|
|
2124
2125
|
};
|
|
2125
2126
|
}, Kr = async (e, t) => {
|
|
2126
|
-
const { data: { content: n, ...r } } = await
|
|
2127
|
+
const { data: { content: n, ...r } } = await R(
|
|
2127
2128
|
"get",
|
|
2128
2129
|
"/tasks",
|
|
2129
2130
|
{
|
|
@@ -2196,21 +2197,21 @@ const Dr = (e, t = new Q()) => {
|
|
|
2196
2197
|
getTask: Yr,
|
|
2197
2198
|
updateTask: Gr,
|
|
2198
2199
|
upsertTask: At
|
|
2199
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2200
|
+
}, Symbol.toStringTag, { value: "Module" })), St = (e) => ({
|
|
2200
2201
|
...e,
|
|
2201
2202
|
createdAt: g(e.createdAt),
|
|
2202
2203
|
updatedAt: e.updatedAt ? g(e.updatedAt) : void 0
|
|
2203
2204
|
}), Ee = (e) => {
|
|
2204
2205
|
const { body: t, ...n } = e;
|
|
2205
2206
|
return {
|
|
2206
|
-
...
|
|
2207
|
+
...St(n),
|
|
2207
2208
|
body: t
|
|
2208
2209
|
};
|
|
2209
2210
|
}, es = async () => {
|
|
2210
2211
|
const { content: e, ...t } = await m.$get("/templates");
|
|
2211
2212
|
return {
|
|
2212
2213
|
...t,
|
|
2213
|
-
content: e.map(
|
|
2214
|
+
content: e.map(St)
|
|
2214
2215
|
};
|
|
2215
2216
|
}, ts = async (e) => {
|
|
2216
2217
|
const { content: t, ...n } = await m.$get(`/templates/${e}`);
|
|
@@ -2227,7 +2228,7 @@ const Dr = (e, t = new Q()) => {
|
|
|
2227
2228
|
...n,
|
|
2228
2229
|
content: Ee(t)
|
|
2229
2230
|
};
|
|
2230
|
-
},
|
|
2231
|
+
}, Rt = async (e, t) => {
|
|
2231
2232
|
const { content: n, ...r } = await m.$put(
|
|
2232
2233
|
`/templates/${e}`,
|
|
2233
2234
|
t
|
|
@@ -2236,7 +2237,7 @@ const Dr = (e, t = new Q()) => {
|
|
|
2236
2237
|
...r,
|
|
2237
2238
|
content: Ee(n)
|
|
2238
2239
|
};
|
|
2239
|
-
}, rs =
|
|
2240
|
+
}, rs = Rt, ss = async (e) => {
|
|
2240
2241
|
await m.$delete(`/templates/${e}`);
|
|
2241
2242
|
}, xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2242
2243
|
__proto__: null,
|
|
@@ -2245,14 +2246,14 @@ const Dr = (e, t = new Q()) => {
|
|
|
2245
2246
|
getAllTemplates: es,
|
|
2246
2247
|
getTemplate: ts,
|
|
2247
2248
|
updateTemplate: rs,
|
|
2248
|
-
upsertTemplate:
|
|
2249
|
-
}, Symbol.toStringTag, { value: "Module" })), Cs = "1.0.0-beta.
|
|
2249
|
+
upsertTemplate: Rt
|
|
2250
|
+
}, Symbol.toStringTag, { value: "Module" })), Cs = "1.0.0-beta.2";
|
|
2250
2251
|
export {
|
|
2251
2252
|
vs as auth,
|
|
2252
2253
|
Os as crons,
|
|
2253
2254
|
As as health,
|
|
2254
|
-
|
|
2255
|
-
|
|
2255
|
+
Ss as history,
|
|
2256
|
+
Rs as namespaces,
|
|
2256
2257
|
Ts as queues,
|
|
2257
2258
|
_s as reports,
|
|
2258
2259
|
Ns as setup,
|