@ezpaarse-project/ezreeport-sdk-js 1.0.0 → 1.1.0-rc.1
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/LICENCE.txt +550 -0
- package/LICENSE.txt +519 -0
- package/README.md +1 -1
- package/dist/browser/ezreeport-sdk-js.mjs +55 -54
- package/dist/browser/ezreeport-sdk-js.mjs.map +1 -1
- package/dist/browser/ezreeport-sdk-js.umd.js +1 -1
- package/dist/browser/ezreeport-sdk-js.umd.js.map +1 -1
- package/dist/node/ezreeport-sdk-js.js +1 -1
- package/dist/node/ezreeport-sdk-js.js.map +1 -1
- package/dist/node/ezreeport-sdk-js.mjs +55 -54
- package/dist/node/ezreeport-sdk-js.mjs.map +1 -1
- package/dist/types/lib/axios.d.ts +1 -1
- package/dist/types/lib/promises.d.ts +1 -1
- package/dist/types/modules/elastic.d.ts +11 -0
- package/dist/types/modules/elastic.public.d.ts +1 -1
- package/dist/types/modules/queues.d.ts +3 -3
- package/dist/types/modules/reports.d.ts +4 -4
- package/package.json +14 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import se, { AxiosError as re } from "axios";
|
|
2
|
-
const oe = "1.0.
|
|
2
|
+
const oe = "1.1.0-rc.1", S = 6e4, N = 36e5;
|
|
3
3
|
function u(e, t) {
|
|
4
4
|
const n = (t == null ? void 0 : t.additionalDigits) ?? 2, s = ue(e);
|
|
5
5
|
let r;
|
|
@@ -196,7 +196,7 @@ const M = se.create({
|
|
|
196
196
|
...t,
|
|
197
197
|
content: $e(e)
|
|
198
198
|
};
|
|
199
|
-
}, Le = () => i.$get("/me/permissions"), Ae = () => i.$get("/me/namespaces"),
|
|
199
|
+
}, Le = () => i.$get("/me/permissions"), Ae = () => i.$get("/me/namespaces"), Wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
200
200
|
__proto__: null,
|
|
201
201
|
getCurrentNamespaces: Ae,
|
|
202
202
|
getCurrentPermissions: Le,
|
|
@@ -238,26 +238,26 @@ const M = se.create({
|
|
|
238
238
|
...r,
|
|
239
239
|
content: m(s)
|
|
240
240
|
};
|
|
241
|
-
},
|
|
241
|
+
}, xe = async (e) => {
|
|
242
242
|
const t = typeof e == "string" ? e : e.name, { content: n, ...s } = await i.$post(`/crons/${t}/_force`, {});
|
|
243
243
|
return {
|
|
244
244
|
...s,
|
|
245
245
|
content: m(n)
|
|
246
246
|
};
|
|
247
|
-
},
|
|
247
|
+
}, Jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
248
248
|
__proto__: null,
|
|
249
|
-
forceCron:
|
|
249
|
+
forceCron: xe,
|
|
250
250
|
getAllCrons: ke,
|
|
251
251
|
getCron: Ee,
|
|
252
252
|
startCron: Re,
|
|
253
253
|
stopCron: Ce,
|
|
254
254
|
updateCron: De
|
|
255
|
-
}, Symbol.toStringTag, { value: "Module" })), W = () => i.$get("/health"),
|
|
255
|
+
}, Symbol.toStringTag, { value: "Module" })), W = () => i.$get("/health"), je = () => i.$get("/health/_all"), J = (e) => i.$get(`/health/${e}`), Se = async () => {
|
|
256
256
|
const { content: { current: e } } = await W();
|
|
257
257
|
return J(e);
|
|
258
|
-
},
|
|
258
|
+
}, Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
259
259
|
__proto__: null,
|
|
260
|
-
checkAllConnectedService:
|
|
260
|
+
checkAllConnectedService: je,
|
|
261
261
|
checkConnectedService: J,
|
|
262
262
|
checkCurrentService: Se,
|
|
263
263
|
getAllConnectedServices: W
|
|
@@ -300,7 +300,7 @@ const $ = (e) => ({
|
|
|
300
300
|
...s,
|
|
301
301
|
content: n.map(Pe)
|
|
302
302
|
};
|
|
303
|
-
},
|
|
303
|
+
}, Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
304
304
|
__proto__: null,
|
|
305
305
|
getAllEntries: Me
|
|
306
306
|
}, Symbol.toStringTag, { value: "Module" })), Ue = (e) => ({
|
|
@@ -341,14 +341,14 @@ const $ = (e) => ({
|
|
|
341
341
|
}, Je = async (e) => {
|
|
342
342
|
const t = typeof e == "string" ? e : e.id;
|
|
343
343
|
await i.$delete(`/tasks-presets/${t}`);
|
|
344
|
-
},
|
|
344
|
+
}, Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
345
345
|
__proto__: null,
|
|
346
346
|
createTasksPreset: Fe,
|
|
347
347
|
deleteTasksPreset: Je,
|
|
348
348
|
getAllTasksPresets: Ye,
|
|
349
349
|
getTasksPreset: ze,
|
|
350
350
|
upsertTasksPreset: We
|
|
351
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
351
|
+
}, Symbol.toStringTag, { value: "Module" })), Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
352
352
|
__proto__: null
|
|
353
353
|
}, Symbol.toStringTag, { value: "Module" })), k = (e) => ({
|
|
354
354
|
...e,
|
|
@@ -391,7 +391,7 @@ const $ = (e) => ({
|
|
|
391
391
|
...a,
|
|
392
392
|
content: k(o)
|
|
393
393
|
};
|
|
394
|
-
},
|
|
394
|
+
}, qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
395
395
|
__proto__: null,
|
|
396
396
|
getAllQueues: Be,
|
|
397
397
|
getJob: w,
|
|
@@ -405,7 +405,7 @@ const $ = (e) => ({
|
|
|
405
405
|
function Ge(e) {
|
|
406
406
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
407
407
|
}
|
|
408
|
-
var E = { exports: {} }, y = typeof Reflect == "object" ? Reflect : null,
|
|
408
|
+
var E = { exports: {} }, y = typeof Reflect == "object" ? Reflect : null, x = y && typeof y.apply == "function" ? y.apply : function(t, n, s) {
|
|
409
409
|
return Function.prototype.apply.call(t, n, s);
|
|
410
410
|
}, b;
|
|
411
411
|
y && typeof y.ownKeys == "function" ? b = y.ownKeys : Object.getOwnPropertySymbols ? b = function(t) {
|
|
@@ -413,7 +413,7 @@ y && typeof y.ownKeys == "function" ? b = y.ownKeys : Object.getOwnPropertySymbo
|
|
|
413
413
|
} : b = function(t) {
|
|
414
414
|
return Object.getOwnPropertyNames(t);
|
|
415
415
|
};
|
|
416
|
-
function
|
|
416
|
+
function Ie(e) {
|
|
417
417
|
console && console.warn && console.warn(e);
|
|
418
418
|
}
|
|
419
419
|
var Q = Number.isNaN || function(t) {
|
|
@@ -428,7 +428,7 @@ c.EventEmitter = c;
|
|
|
428
428
|
c.prototype._events = void 0;
|
|
429
429
|
c.prototype._eventsCount = 0;
|
|
430
430
|
c.prototype._maxListeners = void 0;
|
|
431
|
-
var
|
|
431
|
+
var j = 10;
|
|
432
432
|
function T(e) {
|
|
433
433
|
if (typeof e != "function")
|
|
434
434
|
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e);
|
|
@@ -436,12 +436,12 @@ function T(e) {
|
|
|
436
436
|
Object.defineProperty(c, "defaultMaxListeners", {
|
|
437
437
|
enumerable: !0,
|
|
438
438
|
get: function() {
|
|
439
|
-
return
|
|
439
|
+
return j;
|
|
440
440
|
},
|
|
441
441
|
set: function(e) {
|
|
442
442
|
if (typeof e != "number" || e < 0 || Q(e))
|
|
443
443
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
444
|
-
|
|
444
|
+
j = e;
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
c.init = function() {
|
|
@@ -477,10 +477,10 @@ c.prototype.emit = function(t) {
|
|
|
477
477
|
if (p === void 0)
|
|
478
478
|
return !1;
|
|
479
479
|
if (typeof p == "function")
|
|
480
|
-
|
|
480
|
+
x(p, this, n);
|
|
481
481
|
else
|
|
482
|
-
for (var d = p.length, ne =
|
|
483
|
-
|
|
482
|
+
for (var d = p.length, ne = I(p, d), s = 0; s < d; ++s)
|
|
483
|
+
x(ne[s], this, n);
|
|
484
484
|
return !0;
|
|
485
485
|
};
|
|
486
486
|
function q(e, t, n, s) {
|
|
@@ -494,7 +494,7 @@ function q(e, t, n, s) {
|
|
|
494
494
|
else if (typeof a == "function" ? a = o[t] = s ? [n, a] : [a, n] : s ? a.unshift(n) : a.push(n), r = K(e), r > 0 && a.length > r && !a.warned) {
|
|
495
495
|
a.warned = !0;
|
|
496
496
|
var l = new Error("Possible EventEmitter memory leak detected. " + a.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
497
|
-
l.name = "MaxListenersExceededWarning", l.emitter = e, l.type = t, l.count = a.length,
|
|
497
|
+
l.name = "MaxListenersExceededWarning", l.emitter = e, l.type = t, l.count = a.length, Ie(l);
|
|
498
498
|
}
|
|
499
499
|
return e;
|
|
500
500
|
}
|
|
@@ -505,12 +505,12 @@ c.prototype.on = c.prototype.addListener;
|
|
|
505
505
|
c.prototype.prependListener = function(t, n) {
|
|
506
506
|
return q(this, t, n, !0);
|
|
507
507
|
};
|
|
508
|
-
function
|
|
508
|
+
function Ve() {
|
|
509
509
|
if (!this.fired)
|
|
510
510
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
511
511
|
}
|
|
512
512
|
function H(e, t, n) {
|
|
513
|
-
var s = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n }, r =
|
|
513
|
+
var s = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n }, r = Ve.bind(s);
|
|
514
514
|
return r.listener = n, s.wrapFn = r, r;
|
|
515
515
|
}
|
|
516
516
|
c.prototype.once = function(t, n) {
|
|
@@ -535,7 +535,7 @@ c.prototype.removeListener = function(t, n) {
|
|
|
535
535
|
}
|
|
536
536
|
if (o < 0)
|
|
537
537
|
return this;
|
|
538
|
-
o === 0 ? s.shift() :
|
|
538
|
+
o === 0 ? s.shift() : Xe(s, o), s.length === 1 && (r[t] = s[0]), r.removeListener !== void 0 && this.emit("removeListener", t, l || n);
|
|
539
539
|
}
|
|
540
540
|
return this;
|
|
541
541
|
};
|
|
@@ -564,7 +564,7 @@ function Z(e, t, n) {
|
|
|
564
564
|
if (s === void 0)
|
|
565
565
|
return [];
|
|
566
566
|
var r = s[t];
|
|
567
|
-
return r === void 0 ? [] : typeof r == "function" ? n ? [r.listener || r] : [r] : n ? et(r) :
|
|
567
|
+
return r === void 0 ? [] : typeof r == "function" ? n ? [r.listener || r] : [r] : n ? et(r) : I(r, r.length);
|
|
568
568
|
}
|
|
569
569
|
c.prototype.listeners = function(t) {
|
|
570
570
|
return Z(this, t, !0);
|
|
@@ -590,12 +590,12 @@ function G(e) {
|
|
|
590
590
|
c.prototype.eventNames = function() {
|
|
591
591
|
return this._eventsCount > 0 ? b(this._events) : [];
|
|
592
592
|
};
|
|
593
|
-
function
|
|
593
|
+
function I(e, t) {
|
|
594
594
|
for (var n = new Array(t), s = 0; s < t; ++s)
|
|
595
595
|
n[s] = e[s];
|
|
596
596
|
return n;
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function Xe(e, t) {
|
|
599
599
|
for (; t + 1 < e.length; t++)
|
|
600
600
|
e[t] = e[t + 1];
|
|
601
601
|
e.pop();
|
|
@@ -613,13 +613,13 @@ function tt(e, t) {
|
|
|
613
613
|
function o() {
|
|
614
614
|
typeof e.removeListener == "function" && e.removeListener("error", r), n([].slice.call(arguments));
|
|
615
615
|
}
|
|
616
|
-
|
|
616
|
+
V(e, t, o, { once: !0 }), t !== "error" && nt(e, r, { once: !0 });
|
|
617
617
|
});
|
|
618
618
|
}
|
|
619
619
|
function nt(e, t, n) {
|
|
620
|
-
typeof e.on == "function" &&
|
|
620
|
+
typeof e.on == "function" && V(e, "error", t, n);
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function V(e, t, n, s) {
|
|
623
623
|
if (typeof e.on == "function")
|
|
624
624
|
s.once ? e.once(t, n) : e.on(t, n);
|
|
625
625
|
else if (typeof e.addEventListener == "function")
|
|
@@ -657,7 +657,7 @@ const rt = /* @__PURE__ */ Ge(st), ot = (e, t = new rt()) => {
|
|
|
657
657
|
}), R = (e) => ({
|
|
658
658
|
...e,
|
|
659
659
|
detail: ct(e.detail)
|
|
660
|
-
}),
|
|
660
|
+
}), X = (e, t, n) => {
|
|
661
661
|
var r, o;
|
|
662
662
|
const s = typeof e == "string" ? e : e.id;
|
|
663
663
|
return i.$post(
|
|
@@ -674,7 +674,7 @@ const rt = /* @__PURE__ */ Ge(st), ot = (e, t = new rt()) => {
|
|
|
674
674
|
);
|
|
675
675
|
}, ut = (...e) => ot(
|
|
676
676
|
async (t) => {
|
|
677
|
-
const { content: { id: n, queue: s } } = await
|
|
677
|
+
const { content: { id: n, queue: s } } = await X(...e);
|
|
678
678
|
t.emit("started", { id: n, queue: s });
|
|
679
679
|
let r;
|
|
680
680
|
do {
|
|
@@ -736,7 +736,7 @@ const rt = /* @__PURE__ */ Ge(st), ot = (e, t = new rt()) => {
|
|
|
736
736
|
if (!r)
|
|
737
737
|
throw new Error("Job have no result");
|
|
738
738
|
return v(((o = r.detail) == null ? void 0 : o.files.debug) ?? "", n, s);
|
|
739
|
-
},
|
|
739
|
+
}, Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
740
740
|
__proto__: null,
|
|
741
741
|
getReportDebugByJob: yt,
|
|
742
742
|
getReportDebugByName: gt,
|
|
@@ -745,12 +745,12 @@ const rt = /* @__PURE__ */ Ge(st), ot = (e, t = new rt()) => {
|
|
|
745
745
|
getReportFileByJob: pt,
|
|
746
746
|
getReportFileByName: lt,
|
|
747
747
|
startAndListenGeneration: ut,
|
|
748
|
-
startGeneration:
|
|
748
|
+
startGeneration: X
|
|
749
749
|
}, Symbol.toStringTag, { value: "Module" })), mt = (e) => {
|
|
750
750
|
i.defaults.baseURL = e;
|
|
751
751
|
}, vt = () => {
|
|
752
752
|
i.defaults.baseURL = void 0;
|
|
753
|
-
}, ht = () => !!i.defaults.baseURL,
|
|
753
|
+
}, ht = () => !!i.defaults.baseURL, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
754
754
|
__proto__: null,
|
|
755
755
|
isLogged: F,
|
|
756
756
|
isURLset: ht,
|
|
@@ -890,7 +890,7 @@ const rt = /* @__PURE__ */ Ge(st), ot = (e, t = new rt()) => {
|
|
|
890
890
|
...o,
|
|
891
891
|
content: g(r)
|
|
892
892
|
};
|
|
893
|
-
},
|
|
893
|
+
}, xt = te, jt = async (e, t) => {
|
|
894
894
|
const n = typeof e == "string" ? e : e.id;
|
|
895
895
|
await i.$delete(`/tasks/${n}`, { params: { namespaces: t } });
|
|
896
896
|
}, St = async (e, t) => {
|
|
@@ -929,12 +929,12 @@ const rt = /* @__PURE__ */ Ge(st), ot = (e, t = new rt()) => {
|
|
|
929
929
|
`/tasks/${s}/_link/${r}`,
|
|
930
930
|
{ params: { namespaces: n } }
|
|
931
931
|
);
|
|
932
|
-
},
|
|
932
|
+
}, Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
933
933
|
__proto__: null,
|
|
934
934
|
Recurrence: B,
|
|
935
935
|
createTask: Rt,
|
|
936
936
|
createTaskFromPreset: Ct,
|
|
937
|
-
deleteTask:
|
|
937
|
+
deleteTask: jt,
|
|
938
938
|
disableTask: Nt,
|
|
939
939
|
enableTask: St,
|
|
940
940
|
getAllTargets: At,
|
|
@@ -944,9 +944,9 @@ const rt = /* @__PURE__ */ Ge(st), ot = (e, t = new rt()) => {
|
|
|
944
944
|
linkTaskToTemplate: Pt,
|
|
945
945
|
unlinkTaskToTemplate: Mt,
|
|
946
946
|
unsubTargetOfTask: Et,
|
|
947
|
-
updateTask:
|
|
947
|
+
updateTask: xt,
|
|
948
948
|
upsertTask: te
|
|
949
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
949
|
+
}, Symbol.toStringTag, { value: "Module" })), It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
950
950
|
__proto__: null,
|
|
951
951
|
createTemplate: bt,
|
|
952
952
|
deleteTemplate: Tt,
|
|
@@ -954,25 +954,26 @@ const rt = /* @__PURE__ */ Ge(st), ot = (e, t = new rt()) => {
|
|
|
954
954
|
getTemplate: _t,
|
|
955
955
|
updateTemplate: $t,
|
|
956
956
|
upsertTemplate: ee
|
|
957
|
-
}, Symbol.toStringTag, { value: "Module" })), Ut = (e) => i.$get("/elastic/indices", { params: { namespace: e } }), Yt = (e, t) => i.$get(`/elastic/indices/${e}`, { params: { namespace: t } }), Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
957
|
+
}, Symbol.toStringTag, { value: "Module" })), Ut = (e) => i.$get("/elastic/indices", { params: { namespace: e } }), Yt = (e, t) => i.$get(`/elastic/indices/${e}`, { params: { namespace: t } }), zt = (e, t) => i.$get(`/elastic/indices/_resolve/${e}`, { params: { namespace: t } }), Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
958
958
|
__proto__: null,
|
|
959
959
|
getAllIndices: Ut,
|
|
960
|
-
getIndexMapping: Yt
|
|
960
|
+
getIndexMapping: Yt,
|
|
961
|
+
resolveIndex: zt
|
|
961
962
|
}, Symbol.toStringTag, { value: "Module" })), Xt = oe;
|
|
962
963
|
export {
|
|
963
|
-
|
|
964
|
-
|
|
964
|
+
Wt as auth,
|
|
965
|
+
Jt as crons,
|
|
965
966
|
Vt as elastic,
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
967
|
+
Bt as health,
|
|
968
|
+
Ot as history,
|
|
969
|
+
Kt as namespaces,
|
|
970
|
+
qt as queues,
|
|
971
|
+
Ht as reports,
|
|
972
|
+
Zt as setup,
|
|
973
|
+
Gt as tasks,
|
|
974
|
+
Ot as tasksActivity,
|
|
975
|
+
Qt as tasksPresets,
|
|
976
|
+
It as templates,
|
|
976
977
|
Xt as version
|
|
977
978
|
};
|
|
978
979
|
//# sourceMappingURL=ezreeport-sdk-js.mjs.map
|