@ezpaarse-project/ezreeport-sdk-js 1.0.0-beta.8 → 1.0.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/dist/browser/ezreeport-sdk-js.mjs +181 -176
- package/dist/browser/ezreeport-sdk-js.mjs.map +1 -1
- package/dist/browser/ezreeport-sdk-js.umd.js +3 -3
- package/dist/browser/ezreeport-sdk-js.umd.js.map +1 -1
- package/dist/node/package.json +1 -1
- package/dist/node/src/index.js +2 -1
- package/dist/node/src/index.js.map +1 -1
- package/dist/node/src/modules/elastic.js +31 -0
- package/dist/node/src/modules/elastic.js.map +1 -0
- package/dist/node/src/modules/elastic.public.js +7 -0
- package/dist/node/src/modules/elastic.public.js.map +1 -0
- package/dist/node/src/modules/templates.js.map +1 -1
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/modules/elastic.d.ts +22 -0
- package/dist/types/src/modules/elastic.public.d.ts +1 -0
- package/dist/types/src/modules/templates.d.ts +1 -0
- package/package.json +1 -1
|
@@ -31,8 +31,8 @@ function b(e, t) {
|
|
|
31
31
|
if (u = Ft(s.timezone), isNaN(u))
|
|
32
32
|
return /* @__PURE__ */ new Date(NaN);
|
|
33
33
|
} else {
|
|
34
|
-
var l = new Date(c + f),
|
|
35
|
-
return
|
|
34
|
+
var l = new Date(c + f), h = /* @__PURE__ */ new Date(0);
|
|
35
|
+
return h.setFullYear(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()), h.setHours(l.getUTCHours(), l.getUTCMinutes(), l.getUTCSeconds(), l.getUTCMilliseconds()), h;
|
|
36
36
|
}
|
|
37
37
|
return new Date(c + f + u);
|
|
38
38
|
}
|
|
@@ -40,7 +40,7 @@ var q = {
|
|
|
40
40
|
dateTimeDelimiter: /[T ]/,
|
|
41
41
|
timeZoneDelimiter: /[Z ]/i,
|
|
42
42
|
timezone: /([Z+-].*)$/
|
|
43
|
-
}, Nt = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,
|
|
43
|
+
}, Nt = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, xt = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, Ct = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
44
44
|
function $t(e) {
|
|
45
45
|
var t = {}, n = e.split(q.dateTimeDelimiter), r;
|
|
46
46
|
if (n.length > 2)
|
|
@@ -70,21 +70,21 @@ function Dt(e, t) {
|
|
|
70
70
|
var n = e.match(Nt);
|
|
71
71
|
if (!n)
|
|
72
72
|
return /* @__PURE__ */ new Date(NaN);
|
|
73
|
-
var r = !!n[4], s =
|
|
73
|
+
var r = !!n[4], s = j(n[1]), o = j(n[2]) - 1, i = j(n[3]), c = j(n[4]), f = j(n[5]) - 1;
|
|
74
74
|
if (r)
|
|
75
|
-
return
|
|
75
|
+
return zt(t, c, f) ? jt(t, c, f) : /* @__PURE__ */ new Date(NaN);
|
|
76
76
|
var u = /* @__PURE__ */ new Date(0);
|
|
77
77
|
return !Bt(t, o, i) || !Mt(t, s) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(t, o, Math.max(s, i)), u);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function j(e) {
|
|
80
80
|
return e ? parseInt(e) : 1;
|
|
81
81
|
}
|
|
82
82
|
function kt(e) {
|
|
83
|
-
var t = e.match(
|
|
83
|
+
var t = e.match(xt);
|
|
84
84
|
if (!t)
|
|
85
85
|
return NaN;
|
|
86
86
|
var n = se(t[1]), r = se(t[2]), s = se(t[3]);
|
|
87
|
-
return
|
|
87
|
+
return Ht(n, r, s) ? n * Fe + r * ke + s * 1e3 : NaN;
|
|
88
88
|
}
|
|
89
89
|
function se(e) {
|
|
90
90
|
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
@@ -92,38 +92,38 @@ function se(e) {
|
|
|
92
92
|
function Ft(e) {
|
|
93
93
|
if (e === "Z")
|
|
94
94
|
return 0;
|
|
95
|
-
var t = e.match(
|
|
95
|
+
var t = e.match(Ct);
|
|
96
96
|
if (!t)
|
|
97
97
|
return 0;
|
|
98
98
|
var n = t[1] === "+" ? -1 : 1, r = parseInt(t[2]), s = t[3] && parseInt(t[3]) || 0;
|
|
99
99
|
return It(r, s) ? n * (r * Fe + s * ke) : NaN;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function jt(e, t, n) {
|
|
102
102
|
var r = /* @__PURE__ */ new Date(0);
|
|
103
103
|
r.setUTCFullYear(e, 0, 4);
|
|
104
104
|
var s = r.getUTCDay() || 7, o = (t - 1) * 7 + n + 1 - s;
|
|
105
105
|
return r.setUTCDate(r.getUTCDate() + o), r;
|
|
106
106
|
}
|
|
107
|
-
var
|
|
108
|
-
function
|
|
107
|
+
var Ut = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
108
|
+
function je(e) {
|
|
109
109
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
110
110
|
}
|
|
111
111
|
function Bt(e, t, n) {
|
|
112
|
-
return t >= 0 && t <= 11 && n >= 1 && n <= (
|
|
112
|
+
return t >= 0 && t <= 11 && n >= 1 && n <= (Ut[t] || (je(e) ? 29 : 28));
|
|
113
113
|
}
|
|
114
114
|
function Mt(e, t) {
|
|
115
|
-
return t >= 1 && t <= (
|
|
115
|
+
return t >= 1 && t <= (je(e) ? 366 : 365);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function zt(e, t, n) {
|
|
118
118
|
return t >= 1 && t <= 53 && n >= 0 && n <= 6;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ht(e, t, n) {
|
|
121
121
|
return e === 24 ? t === 0 && n === 0 : n >= 0 && n < 60 && t >= 0 && t < 60 && e >= 0 && e < 25;
|
|
122
122
|
}
|
|
123
123
|
function It(e, t) {
|
|
124
124
|
return t >= 0 && t <= 59;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Ue(e, t) {
|
|
127
127
|
return function() {
|
|
128
128
|
return e.apply(t, arguments);
|
|
129
129
|
};
|
|
@@ -164,7 +164,7 @@ function M(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
164
164
|
c = o[r], t.call(null, e[c], c, e);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function ze(e, t) {
|
|
168
168
|
t = t.toLowerCase();
|
|
169
169
|
const n = Object.keys(e);
|
|
170
170
|
let r = n.length, s;
|
|
@@ -173,10 +173,10 @@ function He(e, t) {
|
|
|
173
173
|
return s;
|
|
174
174
|
return null;
|
|
175
175
|
}
|
|
176
|
-
const
|
|
176
|
+
const He = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Ie = (e) => !B(e) && e !== He;
|
|
177
177
|
function ue() {
|
|
178
178
|
const { caseless: e } = Ie(this) && this || {}, t = {}, n = (r, s) => {
|
|
179
|
-
const o = e &&
|
|
179
|
+
const o = e && ze(t, s) || s;
|
|
180
180
|
J(t[o]) && J(r) ? t[o] = ue(t[o], r) : J(r) ? t[o] = ue({}, r) : P(r) ? t[o] = r.slice() : t[o] = r;
|
|
181
181
|
};
|
|
182
182
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
@@ -184,7 +184,7 @@ function ue() {
|
|
|
184
184
|
return t;
|
|
185
185
|
}
|
|
186
186
|
const rn = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (s, o) => {
|
|
187
|
-
n && A(s) ? e[o] =
|
|
187
|
+
n && A(s) ? e[o] = Ue(s, n) : e[o] = s;
|
|
188
188
|
}, { allOwnKeys: r }), e), sn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), on = (e, t, n, r) => {
|
|
189
189
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
190
190
|
value: t.prototype
|
|
@@ -338,8 +338,8 @@ const An = (e) => {
|
|
|
338
338
|
toCamelCase: hn,
|
|
339
339
|
noop: wn,
|
|
340
340
|
toFiniteNumber: bn,
|
|
341
|
-
findKey:
|
|
342
|
-
global:
|
|
341
|
+
findKey: ze,
|
|
342
|
+
global: He,
|
|
343
343
|
isContextDefined: Ie,
|
|
344
344
|
ALPHABET: Je,
|
|
345
345
|
generateString: En,
|
|
@@ -454,24 +454,24 @@ function ee(e, t, n) {
|
|
|
454
454
|
}
|
|
455
455
|
return le(d) ? !0 : (t.append(Re(_, m, o), u(d)), !1);
|
|
456
456
|
}
|
|
457
|
-
const
|
|
457
|
+
const h = [], v = Object.assign(On, {
|
|
458
458
|
defaultVisitor: l,
|
|
459
459
|
convertValue: u,
|
|
460
460
|
isVisitable: le
|
|
461
461
|
});
|
|
462
462
|
function w(d, m) {
|
|
463
463
|
if (!a.isUndefined(d)) {
|
|
464
|
-
if (
|
|
464
|
+
if (h.indexOf(d) !== -1)
|
|
465
465
|
throw Error("Circular reference detected in " + m.join("."));
|
|
466
|
-
|
|
466
|
+
h.push(d), a.forEach(d, function(T, x) {
|
|
467
467
|
(!(a.isUndefined(T) || T === null) && s.call(
|
|
468
468
|
t,
|
|
469
469
|
T,
|
|
470
|
-
a.isString(
|
|
470
|
+
a.isString(x) ? x.trim() : x,
|
|
471
471
|
m,
|
|
472
472
|
v
|
|
473
|
-
)) === !0 && w(T, m ? m.concat(
|
|
474
|
-
}),
|
|
473
|
+
)) === !0 && w(T, m ? m.concat(x) : [x]);
|
|
474
|
+
}), h.pop();
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
if (!a.isObject(e))
|
|
@@ -579,15 +579,15 @@ const Oe = Nn, Qe = {
|
|
|
579
579
|
silentJSONParsing: !0,
|
|
580
580
|
forcedJSONParsing: !0,
|
|
581
581
|
clarifyTimeoutError: !1
|
|
582
|
-
},
|
|
582
|
+
}, xn = typeof URLSearchParams < "u" ? URLSearchParams : he, Cn = typeof FormData < "u" ? FormData : null, $n = typeof Blob < "u" ? Blob : null, Pn = (() => {
|
|
583
583
|
let e;
|
|
584
584
|
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
585
585
|
})(), Dn = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
586
586
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), S = {
|
|
587
587
|
isBrowser: !0,
|
|
588
588
|
classes: {
|
|
589
|
-
URLSearchParams:
|
|
590
|
-
FormData:
|
|
589
|
+
URLSearchParams: xn,
|
|
590
|
+
FormData: Cn,
|
|
591
591
|
Blob: $n
|
|
592
592
|
},
|
|
593
593
|
isStandardBrowserEnv: Pn,
|
|
@@ -604,7 +604,7 @@ function kn(e, t) {
|
|
|
604
604
|
function Fn(e) {
|
|
605
605
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function jn(e) {
|
|
608
608
|
const t = {}, n = Object.keys(e);
|
|
609
609
|
let r;
|
|
610
610
|
const s = n.length;
|
|
@@ -617,7 +617,7 @@ function Ze(e) {
|
|
|
617
617
|
function t(n, r, s, o) {
|
|
618
618
|
let i = n[o++];
|
|
619
619
|
const c = Number.isFinite(+i), f = o >= n.length;
|
|
620
|
-
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] =
|
|
620
|
+
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = jn(s[i])), !c);
|
|
621
621
|
}
|
|
622
622
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
623
623
|
const n = {};
|
|
@@ -627,7 +627,7 @@ function Ze(e) {
|
|
|
627
627
|
}
|
|
628
628
|
return null;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Un(e, t, n) {
|
|
631
631
|
if (a.isString(e))
|
|
632
632
|
try {
|
|
633
633
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -663,7 +663,7 @@ const me = {
|
|
|
663
663
|
);
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
return o || s ? (n.setContentType("application/json", !1),
|
|
666
|
+
return o || s ? (n.setContentType("application/json", !1), Un(t)) : t;
|
|
667
667
|
}],
|
|
668
668
|
transformResponse: [function(t) {
|
|
669
669
|
const n = this.transitional || me.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
@@ -730,20 +730,20 @@ const ye = me, Bn = a.toObjectSet([
|
|
|
730
730
|
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Bn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
731
731
|
}), t;
|
|
732
732
|
}, Le = Symbol("internals");
|
|
733
|
-
function
|
|
733
|
+
function U(e) {
|
|
734
734
|
return e && String(e).trim().toLowerCase();
|
|
735
735
|
}
|
|
736
736
|
function W(e) {
|
|
737
737
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(W) : String(e);
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function zn(e) {
|
|
740
740
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
741
741
|
let r;
|
|
742
742
|
for (; r = n.exec(e); )
|
|
743
743
|
t[r[1]] = r[2];
|
|
744
744
|
return t;
|
|
745
745
|
}
|
|
746
|
-
const
|
|
746
|
+
const Hn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
747
747
|
function ie(e, t, n, r, s) {
|
|
748
748
|
if (a.isFunction(r))
|
|
749
749
|
return r.call(this, t, n);
|
|
@@ -775,24 +775,24 @@ let te = class {
|
|
|
775
775
|
set(t, n, r) {
|
|
776
776
|
const s = this;
|
|
777
777
|
function o(c, f, u) {
|
|
778
|
-
const l =
|
|
778
|
+
const l = U(f);
|
|
779
779
|
if (!l)
|
|
780
780
|
throw new Error("header name must be a non-empty string");
|
|
781
|
-
const
|
|
782
|
-
(!
|
|
781
|
+
const h = a.findKey(s, l);
|
|
782
|
+
(!h || s[h] === void 0 || u === !0 || u === void 0 && s[h] !== !1) && (s[h || f] = W(c));
|
|
783
783
|
}
|
|
784
784
|
const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
|
|
785
|
-
return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !
|
|
785
|
+
return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !Hn(t) ? i(Mn(t), n) : t != null && o(n, t, r), this;
|
|
786
786
|
}
|
|
787
787
|
get(t, n) {
|
|
788
|
-
if (t =
|
|
788
|
+
if (t = U(t), t) {
|
|
789
789
|
const r = a.findKey(this, t);
|
|
790
790
|
if (r) {
|
|
791
791
|
const s = this[r];
|
|
792
792
|
if (!n)
|
|
793
793
|
return s;
|
|
794
794
|
if (n === !0)
|
|
795
|
-
return
|
|
795
|
+
return zn(s);
|
|
796
796
|
if (a.isFunction(n))
|
|
797
797
|
return n.call(this, s, r);
|
|
798
798
|
if (a.isRegExp(n))
|
|
@@ -802,7 +802,7 @@ let te = class {
|
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
has(t, n) {
|
|
805
|
-
if (t =
|
|
805
|
+
if (t = U(t), t) {
|
|
806
806
|
const r = a.findKey(this, t);
|
|
807
807
|
return !!(r && this[r] !== void 0 && (!n || ie(this, this[r], r, n)));
|
|
808
808
|
}
|
|
@@ -812,7 +812,7 @@ let te = class {
|
|
|
812
812
|
const r = this;
|
|
813
813
|
let s = !1;
|
|
814
814
|
function o(i) {
|
|
815
|
-
if (i =
|
|
815
|
+
if (i = U(i), i) {
|
|
816
816
|
const c = a.findKey(r, i);
|
|
817
817
|
c && (!n || ie(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
818
818
|
}
|
|
@@ -871,7 +871,7 @@ let te = class {
|
|
|
871
871
|
accessors: {}
|
|
872
872
|
}).accessors, s = this.prototype;
|
|
873
873
|
function o(i) {
|
|
874
|
-
const c =
|
|
874
|
+
const c = U(i);
|
|
875
875
|
r[c] || (qn(s, i), r[c] = !0);
|
|
876
876
|
}
|
|
877
877
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
@@ -899,10 +899,10 @@ function ae(e, t) {
|
|
|
899
899
|
function Xe(e) {
|
|
900
900
|
return !!(e && e.__CANCEL__);
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function z(e, t, n) {
|
|
903
903
|
y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
904
904
|
}
|
|
905
|
-
a.inherits(
|
|
905
|
+
a.inherits(z, y, {
|
|
906
906
|
__CANCEL__: !0
|
|
907
907
|
});
|
|
908
908
|
function Jn(e, t, n) {
|
|
@@ -998,9 +998,9 @@ function Qn(e, t) {
|
|
|
998
998
|
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
999
999
|
const u = Date.now(), l = r[o];
|
|
1000
1000
|
i || (i = u), n[s] = f, r[s] = u;
|
|
1001
|
-
let
|
|
1002
|
-
for (;
|
|
1003
|
-
v += n[
|
|
1001
|
+
let h = o, v = 0;
|
|
1002
|
+
for (; h !== s; )
|
|
1003
|
+
v += n[h++], h = h % e;
|
|
1004
1004
|
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
|
|
1005
1005
|
return;
|
|
1006
1006
|
const w = l && u - l;
|
|
@@ -1041,7 +1041,7 @@ const Zn = typeof XMLHttpRequest < "u", Xn = Zn && function(e) {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
const l = et(e.baseURL, e.url);
|
|
1043
1043
|
u.open(e.method.toUpperCase(), Ge(l, e.params, e.paramsSerializer), !0), u.timeout = e.timeout;
|
|
1044
|
-
function
|
|
1044
|
+
function h() {
|
|
1045
1045
|
if (!u)
|
|
1046
1046
|
return;
|
|
1047
1047
|
const w = L.from(
|
|
@@ -1060,8 +1060,8 @@ const Zn = typeof XMLHttpRequest < "u", Xn = Zn && function(e) {
|
|
|
1060
1060
|
r(T), f();
|
|
1061
1061
|
}, m), u = null;
|
|
1062
1062
|
}
|
|
1063
|
-
if ("onloadend" in u ? u.onloadend =
|
|
1064
|
-
!u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1063
|
+
if ("onloadend" in u ? u.onloadend = h : u.onreadystatechange = function() {
|
|
1064
|
+
!u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(h);
|
|
1065
1065
|
}, u.onabort = function() {
|
|
1066
1066
|
u && (r(new y("Request aborted", y.ECONNABORTED, e, u)), u = null);
|
|
1067
1067
|
}, u.onerror = function() {
|
|
@@ -1082,7 +1082,7 @@ const Zn = typeof XMLHttpRequest < "u", Xn = Zn && function(e) {
|
|
|
1082
1082
|
s === void 0 && o.setContentType(null), "setRequestHeader" in u && a.forEach(o.toJSON(), function(d, m) {
|
|
1083
1083
|
u.setRequestHeader(m, d);
|
|
1084
1084
|
}), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), i && i !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", Ne(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", Ne(e.onUploadProgress)), (e.cancelToken || e.signal) && (c = (w) => {
|
|
1085
|
-
u && (r(!w || w.type ? new
|
|
1085
|
+
u && (r(!w || w.type ? new z(null, e, u) : w), u.abort(), u = null);
|
|
1086
1086
|
}, e.cancelToken && e.cancelToken.subscribe(c), e.signal && (e.signal.aborted ? c() : e.signal.addEventListener("abort", c)));
|
|
1087
1087
|
const v = Gn(l);
|
|
1088
1088
|
if (v && S.protocols.indexOf(v) === -1) {
|
|
@@ -1126,9 +1126,9 @@ const tt = {
|
|
|
1126
1126
|
};
|
|
1127
1127
|
function ce(e) {
|
|
1128
1128
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1129
|
-
throw new
|
|
1129
|
+
throw new z(null, e);
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function xe(e) {
|
|
1132
1132
|
return ce(e), e.headers = L.from(e.headers), e.data = ae.call(
|
|
1133
1133
|
e,
|
|
1134
1134
|
e.transformRequest
|
|
@@ -1146,19 +1146,19 @@ function Ce(e) {
|
|
|
1146
1146
|
), r.response.headers = L.from(r.response.headers))), Promise.reject(r);
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
1149
|
-
const
|
|
1149
|
+
const Ce = (e) => e instanceof L ? e.toJSON() : e;
|
|
1150
1150
|
function $(e, t) {
|
|
1151
1151
|
t = t || {};
|
|
1152
1152
|
const n = {};
|
|
1153
|
-
function r(u, l,
|
|
1154
|
-
return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless:
|
|
1153
|
+
function r(u, l, h) {
|
|
1154
|
+
return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: h }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
|
|
1155
1155
|
}
|
|
1156
|
-
function s(u, l,
|
|
1156
|
+
function s(u, l, h) {
|
|
1157
1157
|
if (a.isUndefined(l)) {
|
|
1158
1158
|
if (!a.isUndefined(u))
|
|
1159
|
-
return r(void 0, u,
|
|
1159
|
+
return r(void 0, u, h);
|
|
1160
1160
|
} else
|
|
1161
|
-
return r(u, l,
|
|
1161
|
+
return r(u, l, h);
|
|
1162
1162
|
}
|
|
1163
1163
|
function o(u, l) {
|
|
1164
1164
|
if (!a.isUndefined(l))
|
|
@@ -1171,10 +1171,10 @@ function $(e, t) {
|
|
|
1171
1171
|
} else
|
|
1172
1172
|
return r(void 0, l);
|
|
1173
1173
|
}
|
|
1174
|
-
function c(u, l,
|
|
1175
|
-
if (
|
|
1174
|
+
function c(u, l, h) {
|
|
1175
|
+
if (h in t)
|
|
1176
1176
|
return r(u, l);
|
|
1177
|
-
if (
|
|
1177
|
+
if (h in e)
|
|
1178
1178
|
return r(void 0, u);
|
|
1179
1179
|
}
|
|
1180
1180
|
const f = {
|
|
@@ -1205,11 +1205,11 @@ function $(e, t) {
|
|
|
1205
1205
|
socketPath: i,
|
|
1206
1206
|
responseEncoding: i,
|
|
1207
1207
|
validateStatus: c,
|
|
1208
|
-
headers: (u, l) => s(
|
|
1208
|
+
headers: (u, l) => s(Ce(u), Ce(l), !0)
|
|
1209
1209
|
};
|
|
1210
1210
|
return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
|
1211
|
-
const
|
|
1212
|
-
a.isUndefined(v) &&
|
|
1211
|
+
const h = f[l] || s, v = h(e[l], t[l], l);
|
|
1212
|
+
a.isUndefined(v) && h !== c || (n[l] = v);
|
|
1213
1213
|
}), n;
|
|
1214
1214
|
}
|
|
1215
1215
|
const nt = "1.5.0", ge = {};
|
|
@@ -1305,17 +1305,17 @@ let G = class {
|
|
|
1305
1305
|
this.interceptors.response.forEach(function(m) {
|
|
1306
1306
|
u.push(m.fulfilled, m.rejected);
|
|
1307
1307
|
});
|
|
1308
|
-
let l,
|
|
1308
|
+
let l, h = 0, v;
|
|
1309
1309
|
if (!f) {
|
|
1310
|
-
const d = [
|
|
1311
|
-
for (d.unshift.apply(d, c), d.push.apply(d, u), v = d.length, l = Promise.resolve(n);
|
|
1312
|
-
l = l.then(d[
|
|
1310
|
+
const d = [xe.bind(this), void 0];
|
|
1311
|
+
for (d.unshift.apply(d, c), d.push.apply(d, u), v = d.length, l = Promise.resolve(n); h < v; )
|
|
1312
|
+
l = l.then(d[h++], d[h++]);
|
|
1313
1313
|
return l;
|
|
1314
1314
|
}
|
|
1315
1315
|
v = c.length;
|
|
1316
1316
|
let w = n;
|
|
1317
|
-
for (
|
|
1318
|
-
const d = c[
|
|
1317
|
+
for (h = 0; h < v; ) {
|
|
1318
|
+
const d = c[h++], m = c[h++];
|
|
1319
1319
|
try {
|
|
1320
1320
|
w = d(w);
|
|
1321
1321
|
} catch (_) {
|
|
@@ -1324,12 +1324,12 @@ let G = class {
|
|
|
1324
1324
|
}
|
|
1325
1325
|
}
|
|
1326
1326
|
try {
|
|
1327
|
-
l =
|
|
1327
|
+
l = xe.call(this, w);
|
|
1328
1328
|
} catch (d) {
|
|
1329
1329
|
return Promise.reject(d);
|
|
1330
1330
|
}
|
|
1331
|
-
for (
|
|
1332
|
-
l = l.then(u[
|
|
1331
|
+
for (h = 0, v = u.length; h < v; )
|
|
1332
|
+
l = l.then(u[h++], u[h++]);
|
|
1333
1333
|
return l;
|
|
1334
1334
|
}
|
|
1335
1335
|
getUri(t) {
|
|
@@ -1388,7 +1388,7 @@ let tr = class rt {
|
|
|
1388
1388
|
r.unsubscribe(o);
|
|
1389
1389
|
}, i;
|
|
1390
1390
|
}, t(function(o, i, c) {
|
|
1391
|
-
r.reason || (r.reason = new
|
|
1391
|
+
r.reason || (r.reason = new z(o, i, c), n(r.reason));
|
|
1392
1392
|
});
|
|
1393
1393
|
}
|
|
1394
1394
|
/**
|
|
@@ -1510,14 +1510,14 @@ Object.entries(de).forEach(([e, t]) => {
|
|
|
1510
1510
|
});
|
|
1511
1511
|
const or = de;
|
|
1512
1512
|
function st(e) {
|
|
1513
|
-
const t = new V(e), n =
|
|
1513
|
+
const t = new V(e), n = Ue(V.prototype.request, t);
|
|
1514
1514
|
return a.extend(n, V.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1515
1515
|
return st($(e, s));
|
|
1516
1516
|
}, n;
|
|
1517
1517
|
}
|
|
1518
1518
|
const E = st(ye);
|
|
1519
1519
|
E.Axios = V;
|
|
1520
|
-
E.CanceledError =
|
|
1520
|
+
E.CanceledError = z;
|
|
1521
1521
|
E.CancelToken = nr;
|
|
1522
1522
|
E.isCancel = Xe;
|
|
1523
1523
|
E.VERSION = nt;
|
|
@@ -1536,22 +1536,22 @@ E.getAdapter = tt.getAdapter;
|
|
|
1536
1536
|
E.HttpStatusCode = or;
|
|
1537
1537
|
E.default = E;
|
|
1538
1538
|
const ot = E, {
|
|
1539
|
-
Axios:
|
|
1539
|
+
Axios: Es,
|
|
1540
1540
|
AxiosError: ir,
|
|
1541
|
-
CanceledError:
|
|
1542
|
-
isCancel:
|
|
1543
|
-
CancelToken:
|
|
1544
|
-
VERSION:
|
|
1545
|
-
all:
|
|
1546
|
-
Cancel:
|
|
1547
|
-
isAxiosError:
|
|
1548
|
-
spread:
|
|
1549
|
-
toFormData:
|
|
1550
|
-
AxiosHeaders:
|
|
1551
|
-
HttpStatusCode:
|
|
1552
|
-
formToJSON:
|
|
1553
|
-
getAdapter:
|
|
1554
|
-
mergeConfig:
|
|
1541
|
+
CanceledError: vs,
|
|
1542
|
+
isCancel: As,
|
|
1543
|
+
CancelToken: Ts,
|
|
1544
|
+
VERSION: Ss,
|
|
1545
|
+
all: Rs,
|
|
1546
|
+
Cancel: _s,
|
|
1547
|
+
isAxiosError: Os,
|
|
1548
|
+
spread: Ls,
|
|
1549
|
+
toFormData: Ns,
|
|
1550
|
+
AxiosHeaders: xs,
|
|
1551
|
+
HttpStatusCode: Cs,
|
|
1552
|
+
formToJSON: $s,
|
|
1553
|
+
getAdapter: Ps,
|
|
1554
|
+
mergeConfig: Ds
|
|
1555
1555
|
} = ot, it = ot.create({
|
|
1556
1556
|
headers: {
|
|
1557
1557
|
"Content-Type": "application/json"
|
|
@@ -1586,7 +1586,7 @@ const ot = E, {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
throw s = `${n.code} (${r.status}) - ${s}: ${r.data.content.message}`, new Error(s);
|
|
1588
1588
|
}
|
|
1589
|
-
},
|
|
1589
|
+
}, p = Object.assign(
|
|
1590
1590
|
it,
|
|
1591
1591
|
{
|
|
1592
1592
|
$get: async (...e) => (await O("get", ...e)).data,
|
|
@@ -1610,22 +1610,22 @@ const ot = E, {
|
|
|
1610
1610
|
createdAt: b(e.createdAt),
|
|
1611
1611
|
updatedAt: e.updatedAt ? b(e.updatedAt) : void 0
|
|
1612
1612
|
}), ct = (e) => {
|
|
1613
|
-
|
|
1613
|
+
p.defaults.headers.common.authorization = `Bearer ${e}`;
|
|
1614
1614
|
}, ut = () => {
|
|
1615
|
-
|
|
1615
|
+
p.defaults.headers.common.authorization = void 0;
|
|
1616
1616
|
}, lt = () => {
|
|
1617
|
-
const e =
|
|
1617
|
+
const e = p.defaults.headers.common.authorization;
|
|
1618
1618
|
if (!e || typeof e != "string")
|
|
1619
1619
|
return !1;
|
|
1620
1620
|
const [, t] = e.split("Bearer ");
|
|
1621
1621
|
return !!t;
|
|
1622
1622
|
}, ur = async () => {
|
|
1623
|
-
const { content: e, ...t } = await
|
|
1623
|
+
const { content: e, ...t } = await p.$get("/me");
|
|
1624
1624
|
return {
|
|
1625
1625
|
...t,
|
|
1626
1626
|
content: cr(e)
|
|
1627
1627
|
};
|
|
1628
|
-
}, lr = () =>
|
|
1628
|
+
}, lr = () => p.$get("/me/permissions"), fr = () => p.$get("/me/namespaces"), ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1629
1629
|
__proto__: null,
|
|
1630
1630
|
getCurrentNamespaces: fr,
|
|
1631
1631
|
getCurrentPermissions: lr,
|
|
@@ -1638,42 +1638,42 @@ const ot = E, {
|
|
|
1638
1638
|
nextRun: e.nextRun ? b(e.nextRun) : void 0,
|
|
1639
1639
|
lastRun: e.lastRun ? b(e.lastRun) : void 0
|
|
1640
1640
|
}), dr = async () => {
|
|
1641
|
-
const { content: e, ...t } = await
|
|
1641
|
+
const { content: e, ...t } = await p.$get("/crons");
|
|
1642
1642
|
return {
|
|
1643
1643
|
...t,
|
|
1644
1644
|
content: e.map(D)
|
|
1645
1645
|
};
|
|
1646
1646
|
}, pr = async (e) => {
|
|
1647
|
-
const t = typeof e == "string" ? e : e.name, { content: n, ...r } = await
|
|
1647
|
+
const t = typeof e == "string" ? e : e.name, { content: n, ...r } = await p.$get(`/crons/${t}`);
|
|
1648
1648
|
return {
|
|
1649
1649
|
...r,
|
|
1650
1650
|
content: D(n)
|
|
1651
1651
|
};
|
|
1652
1652
|
}, hr = async (e) => {
|
|
1653
|
-
const t = typeof e == "string" ? e : e.name, { content: n, ...r } = await
|
|
1653
|
+
const t = typeof e == "string" ? e : e.name, { content: n, ...r } = await p.$put(`/crons/${t}/start`, {});
|
|
1654
1654
|
return {
|
|
1655
1655
|
...r,
|
|
1656
1656
|
content: D(n)
|
|
1657
1657
|
};
|
|
1658
1658
|
}, mr = async (e) => {
|
|
1659
|
-
const t = typeof e == "string" ? e : e.name, { content: n, ...r } = await
|
|
1659
|
+
const t = typeof e == "string" ? e : e.name, { content: n, ...r } = await p.$put(`/crons/${t}/stop`, {});
|
|
1660
1660
|
return {
|
|
1661
1661
|
...r,
|
|
1662
1662
|
content: D(n)
|
|
1663
1663
|
};
|
|
1664
1664
|
}, yr = async (e) => {
|
|
1665
|
-
const { name: t, ...n } = e, { content: r, ...s } = await
|
|
1665
|
+
const { name: t, ...n } = e, { content: r, ...s } = await p.$patch(`/crons/${t}`, n);
|
|
1666
1666
|
return {
|
|
1667
1667
|
...s,
|
|
1668
1668
|
content: D(r)
|
|
1669
1669
|
};
|
|
1670
1670
|
}, gr = async (e) => {
|
|
1671
|
-
const t = typeof e == "string" ? e : e.name, { content: n, ...r } = await
|
|
1671
|
+
const t = typeof e == "string" ? e : e.name, { content: n, ...r } = await p.$post(`/crons/${t}/force`, {});
|
|
1672
1672
|
return {
|
|
1673
1673
|
...r,
|
|
1674
1674
|
content: D(n)
|
|
1675
1675
|
};
|
|
1676
|
-
},
|
|
1676
|
+
}, Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1677
1677
|
__proto__: null,
|
|
1678
1678
|
forceCron: gr,
|
|
1679
1679
|
getAllCrons: dr,
|
|
@@ -1681,10 +1681,10 @@ const ot = E, {
|
|
|
1681
1681
|
startCron: hr,
|
|
1682
1682
|
stopCron: mr,
|
|
1683
1683
|
updateCron: yr
|
|
1684
|
-
}, Symbol.toStringTag, { value: "Module" })), ft = () =>
|
|
1684
|
+
}, Symbol.toStringTag, { value: "Module" })), ft = () => p.$get("/health"), wr = () => p.$get("/health/all"), dt = (e) => p.$get(`/health/${e}`), br = async () => {
|
|
1685
1685
|
const { content: { current: e } } = await ft();
|
|
1686
1686
|
return dt(e);
|
|
1687
|
-
},
|
|
1687
|
+
}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1688
1688
|
__proto__: null,
|
|
1689
1689
|
checkAllConnectedService: wr,
|
|
1690
1690
|
checkConnectedService: dt,
|
|
@@ -1729,28 +1729,28 @@ const ne = (e) => ({
|
|
|
1729
1729
|
...r,
|
|
1730
1730
|
content: n.map(vr)
|
|
1731
1731
|
};
|
|
1732
|
-
},
|
|
1732
|
+
}, Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1733
1733
|
__proto__: null,
|
|
1734
1734
|
getAllEntries: Ar
|
|
1735
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1735
|
+
}, Symbol.toStringTag, { value: "Module" })), Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1736
1736
|
__proto__: null
|
|
1737
1737
|
}, Symbol.toStringTag, { value: "Module" })), we = (e) => ({
|
|
1738
1738
|
...e,
|
|
1739
1739
|
added: b(e.added),
|
|
1740
1740
|
started: e.started ? b(e.started) : void 0,
|
|
1741
1741
|
ended: e.ended ? b(e.ended) : void 0
|
|
1742
|
-
}), Tr = () =>
|
|
1742
|
+
}), Tr = () => p.$get("/queues"), Sr = async (e) => {
|
|
1743
1743
|
const t = typeof e == "string" ? e : e.name;
|
|
1744
|
-
return
|
|
1744
|
+
return p.$get(`/queues/${t}`);
|
|
1745
1745
|
}, Rr = async (e) => {
|
|
1746
1746
|
const { name: t, ...n } = e;
|
|
1747
|
-
return
|
|
1747
|
+
return p.$patch(`/queues/${t}`, n);
|
|
1748
1748
|
}, _r = async (e) => {
|
|
1749
1749
|
const t = typeof e == "string" ? e : e.name;
|
|
1750
|
-
return
|
|
1750
|
+
return p.$put(`/queues/${t}/pause`);
|
|
1751
1751
|
}, Or = async (e) => {
|
|
1752
1752
|
const t = typeof e == "string" ? e : e.name;
|
|
1753
|
-
return
|
|
1753
|
+
return p.$put(`/queues/${t}/resume`);
|
|
1754
1754
|
}, Lr = async (e, t) => {
|
|
1755
1755
|
const n = typeof e == "string" ? e : e.name, { data: { content: r, ...s } } = await O(
|
|
1756
1756
|
"get",
|
|
@@ -1763,22 +1763,22 @@ const ne = (e) => ({
|
|
|
1763
1763
|
...s,
|
|
1764
1764
|
content: r.map(we)
|
|
1765
1765
|
};
|
|
1766
|
-
},
|
|
1767
|
-
const r = typeof e == "string" ? e : e.name, s = typeof t == "string" || typeof t == "number" ? t : t.id, { content: o, ...i } = await
|
|
1766
|
+
}, H = async (e, t, n) => {
|
|
1767
|
+
const r = typeof e == "string" ? e : e.name, s = typeof t == "string" || typeof t == "number" ? t : t.id, { content: o, ...i } = await p.$get(`/queues/${r}/jobs/${s}`, { params: { namespaces: n } });
|
|
1768
1768
|
return {
|
|
1769
1769
|
...i,
|
|
1770
1770
|
content: we(o)
|
|
1771
1771
|
};
|
|
1772
1772
|
}, Nr = async (e, t, n) => {
|
|
1773
|
-
const r = typeof e == "string" ? e : e.name, s = typeof t == "string" || typeof t == "number" ? t : t.id, { content: o, ...i } = await
|
|
1773
|
+
const r = typeof e == "string" ? e : e.name, s = typeof t == "string" || typeof t == "number" ? t : t.id, { content: o, ...i } = await p.$post(`/queues/${r}/jobs/${s}/retry`, { params: { namespaces: n } });
|
|
1774
1774
|
return {
|
|
1775
1775
|
...i,
|
|
1776
1776
|
content: we(o)
|
|
1777
1777
|
};
|
|
1778
|
-
},
|
|
1778
|
+
}, Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1779
1779
|
__proto__: null,
|
|
1780
1780
|
getAllQueues: Tr,
|
|
1781
|
-
getJob:
|
|
1781
|
+
getJob: H,
|
|
1782
1782
|
getQueue: Sr,
|
|
1783
1783
|
getQueueJobs: Lr,
|
|
1784
1784
|
pauseQueue: _r,
|
|
@@ -1786,18 +1786,18 @@ const ne = (e) => ({
|
|
|
1786
1786
|
retryJob: Nr,
|
|
1787
1787
|
updateQueue: Rr
|
|
1788
1788
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1789
|
-
function
|
|
1789
|
+
function xr(e) {
|
|
1790
1790
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1791
1791
|
}
|
|
1792
|
-
var be = { exports: {} },
|
|
1792
|
+
var be = { exports: {} }, C = typeof Reflect == "object" ? Reflect : null, Pe = C && typeof C.apply == "function" ? C.apply : function(t, n, r) {
|
|
1793
1793
|
return Function.prototype.apply.call(t, n, r);
|
|
1794
1794
|
}, Y;
|
|
1795
|
-
|
|
1795
|
+
C && typeof C.ownKeys == "function" ? Y = C.ownKeys : Object.getOwnPropertySymbols ? Y = function(t) {
|
|
1796
1796
|
return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));
|
|
1797
1797
|
} : Y = function(t) {
|
|
1798
1798
|
return Object.getOwnPropertyNames(t);
|
|
1799
1799
|
};
|
|
1800
|
-
function
|
|
1800
|
+
function Cr(e) {
|
|
1801
1801
|
console && console.warn && console.warn(e);
|
|
1802
1802
|
}
|
|
1803
1803
|
var mt = Number.isNaN || function(t) {
|
|
@@ -1878,7 +1878,7 @@ function gt(e, t, n, r) {
|
|
|
1878
1878
|
else if (typeof i == "function" ? i = o[t] = r ? [n, i] : [i, n] : r ? i.unshift(n) : i.push(n), s = yt(e), s > 0 && i.length > s && !i.warned) {
|
|
1879
1879
|
i.warned = !0;
|
|
1880
1880
|
var c = new Error("Possible EventEmitter memory leak detected. " + i.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
1881
|
-
c.name = "MaxListenersExceededWarning", c.emitter = e, c.type = t, c.count = i.length,
|
|
1881
|
+
c.name = "MaxListenersExceededWarning", c.emitter = e, c.type = t, c.count = i.length, Cr(c);
|
|
1882
1882
|
}
|
|
1883
1883
|
return e;
|
|
1884
1884
|
}
|
|
@@ -2013,8 +2013,8 @@ function At(e, t, n, r) {
|
|
|
2013
2013
|
else
|
|
2014
2014
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e);
|
|
2015
2015
|
}
|
|
2016
|
-
var
|
|
2017
|
-
const
|
|
2016
|
+
var jr = be.exports;
|
|
2017
|
+
const Ur = /* @__PURE__ */ xr(jr), Br = (e, t = new Ur()) => {
|
|
2018
2018
|
const n = {
|
|
2019
2019
|
emit: (o, ...i) => (t.emit(o.toString(), ...i), n)
|
|
2020
2020
|
}, r = e(n), s = Object.assign(
|
|
@@ -2030,21 +2030,21 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2030
2030
|
(t) => {
|
|
2031
2031
|
setTimeout(t, e);
|
|
2032
2032
|
}
|
|
2033
|
-
),
|
|
2033
|
+
), zr = (e) => ({
|
|
2034
2034
|
start: b(e.start),
|
|
2035
2035
|
end: b(e.end)
|
|
2036
|
-
}),
|
|
2036
|
+
}), Hr = (e) => ({
|
|
2037
2037
|
...e,
|
|
2038
2038
|
createdAt: b(e.createdAt),
|
|
2039
2039
|
destroyAt: b(e.destroyAt),
|
|
2040
|
-
period: e.period ?
|
|
2040
|
+
period: e.period ? zr(e.period) : void 0
|
|
2041
2041
|
}), Ee = (e) => ({
|
|
2042
2042
|
...e,
|
|
2043
|
-
detail:
|
|
2043
|
+
detail: Hr(e.detail)
|
|
2044
2044
|
}), Tt = (e, t, n) => {
|
|
2045
2045
|
var s, o;
|
|
2046
2046
|
const r = typeof e == "string" ? e : e.id;
|
|
2047
|
-
return
|
|
2047
|
+
return p.$post(
|
|
2048
2048
|
`/tasks/${r}/_run`,
|
|
2049
2049
|
null,
|
|
2050
2050
|
{
|
|
@@ -2070,7 +2070,7 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
// FIXME: What if param order changes ?
|
|
2072
2072
|
// eslint-disable-next-line no-await-in-loop
|
|
2073
|
-
} = await
|
|
2073
|
+
} = await H(r, n, e[2]);
|
|
2074
2074
|
s = { progress: o, status: i, result: c }, t.emit("progress", { progress: o, status: i });
|
|
2075
2075
|
let f = 1e3;
|
|
2076
2076
|
s.status === "active" && (f = 250), await Mr(f);
|
|
@@ -2088,7 +2088,7 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2088
2088
|
}
|
|
2089
2089
|
)).data, qr = (e, t, n, r = "pdf") => k(`${e}.rep.${r}`, t, n), Jr = async (e, t, n, r) => {
|
|
2090
2090
|
var o;
|
|
2091
|
-
const { content: { result: s } } = await
|
|
2091
|
+
const { content: { result: s } } = await H(
|
|
2092
2092
|
e,
|
|
2093
2093
|
t,
|
|
2094
2094
|
n
|
|
@@ -2101,7 +2101,7 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2101
2101
|
return !n || n === "json" ? Ee(r) : r;
|
|
2102
2102
|
}, Kr = async (e, t, n, r) => {
|
|
2103
2103
|
var i;
|
|
2104
|
-
const { content: { result: s } } = await
|
|
2104
|
+
const { content: { result: s } } = await H(
|
|
2105
2105
|
e,
|
|
2106
2106
|
t,
|
|
2107
2107
|
n
|
|
@@ -2112,7 +2112,7 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2112
2112
|
return !r || r === "json" ? Ee(o) : o;
|
|
2113
2113
|
}, Vr = (e, t, n) => k(`${e}.deb.json`, t, n), Yr = async (e, t, n, r) => {
|
|
2114
2114
|
var o;
|
|
2115
|
-
const { content: { result: s } } = await
|
|
2115
|
+
const { content: { result: s } } = await H(
|
|
2116
2116
|
e,
|
|
2117
2117
|
t,
|
|
2118
2118
|
n
|
|
@@ -2120,7 +2120,7 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2120
2120
|
if (!s)
|
|
2121
2121
|
throw new Error("Job have no result");
|
|
2122
2122
|
return k(((o = s.detail) == null ? void 0 : o.files.debug) ?? "", n, r);
|
|
2123
|
-
},
|
|
2123
|
+
}, zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2124
2124
|
__proto__: null,
|
|
2125
2125
|
getReportDebugByJob: Yr,
|
|
2126
2126
|
getReportDebugByName: Vr,
|
|
@@ -2131,10 +2131,10 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2131
2131
|
startAndListenGeneration: Ir,
|
|
2132
2132
|
startGeneration: Tt
|
|
2133
2133
|
}, Symbol.toStringTag, { value: "Module" })), Gr = (e) => {
|
|
2134
|
-
|
|
2134
|
+
p.defaults.baseURL = e;
|
|
2135
2135
|
}, Qr = () => {
|
|
2136
|
-
|
|
2137
|
-
}, Zr = () => !!
|
|
2136
|
+
p.defaults.baseURL = void 0;
|
|
2137
|
+
}, Zr = () => !!p.defaults.baseURL, Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2138
2138
|
__proto__: null,
|
|
2139
2139
|
isLogged: lt,
|
|
2140
2140
|
isURLset: Zr,
|
|
@@ -2154,19 +2154,19 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2154
2154
|
body: t
|
|
2155
2155
|
};
|
|
2156
2156
|
}, Xr = async () => {
|
|
2157
|
-
const { content: e, ...t } = await
|
|
2157
|
+
const { content: e, ...t } = await p.$get("/templates");
|
|
2158
2158
|
return {
|
|
2159
2159
|
...t,
|
|
2160
2160
|
content: e.map(ve)
|
|
2161
2161
|
};
|
|
2162
2162
|
}, es = async (e) => {
|
|
2163
|
-
const t = typeof e == "string" ? e : e.id, { content: n, ...r } = await
|
|
2163
|
+
const t = typeof e == "string" ? e : e.id, { content: n, ...r } = await p.$get(`/templates/${t}`);
|
|
2164
2164
|
return {
|
|
2165
2165
|
...r,
|
|
2166
2166
|
content: Ae(n)
|
|
2167
2167
|
};
|
|
2168
2168
|
}, ts = async (e) => {
|
|
2169
|
-
const { content: t, ...n } = await
|
|
2169
|
+
const { content: t, ...n } = await p.$post(
|
|
2170
2170
|
"/templates",
|
|
2171
2171
|
e
|
|
2172
2172
|
);
|
|
@@ -2175,7 +2175,7 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2175
2175
|
content: Ae(t)
|
|
2176
2176
|
};
|
|
2177
2177
|
}, St = async (e) => {
|
|
2178
|
-
const { id: t, ...n } = e, { content: r, ...s } = await
|
|
2178
|
+
const { id: t, ...n } = e, { content: r, ...s } = await p.$put(
|
|
2179
2179
|
`/templates/${t}`,
|
|
2180
2180
|
n
|
|
2181
2181
|
);
|
|
@@ -2185,7 +2185,7 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2185
2185
|
};
|
|
2186
2186
|
}, ns = St, rs = async (e) => {
|
|
2187
2187
|
const t = typeof e == "string" ? e : e.id;
|
|
2188
|
-
await
|
|
2188
|
+
await p.$delete(`/templates/${t}`);
|
|
2189
2189
|
}, F = (e) => {
|
|
2190
2190
|
const {
|
|
2191
2191
|
activity: t,
|
|
@@ -2219,11 +2219,11 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2219
2219
|
...ne(o)
|
|
2220
2220
|
}))
|
|
2221
2221
|
};
|
|
2222
|
-
}, os = (e) =>
|
|
2222
|
+
}, os = (e) => p.$get(
|
|
2223
2223
|
"/tasks/_targets",
|
|
2224
2224
|
{ params: { namespaces: e } }
|
|
2225
2225
|
), is = async (e, t) => {
|
|
2226
|
-
const { content: n, ...r } = await
|
|
2226
|
+
const { content: n, ...r } = await p.$get(
|
|
2227
2227
|
`/tasks/_targets/${e}/tasks`,
|
|
2228
2228
|
{ params: { namespaces: t } }
|
|
2229
2229
|
);
|
|
@@ -2236,9 +2236,9 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2236
2236
|
};
|
|
2237
2237
|
}, as = async (e, t, n) => {
|
|
2238
2238
|
const r = typeof t == "string" ? t : t.id;
|
|
2239
|
-
await
|
|
2239
|
+
await p.$delete(`/tasks/_targets/${e}/tasks/${r}`, { params: { namespaces: n } });
|
|
2240
2240
|
}, cs = async (e, t) => {
|
|
2241
|
-
const { content: n, ...r } = await
|
|
2241
|
+
const { content: n, ...r } = await p.$post(
|
|
2242
2242
|
"/tasks",
|
|
2243
2243
|
e,
|
|
2244
2244
|
{ params: { namespaces: t } }
|
|
@@ -2248,13 +2248,13 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2248
2248
|
content: F(n)
|
|
2249
2249
|
};
|
|
2250
2250
|
}, us = async (e, t) => {
|
|
2251
|
-
const n = typeof e == "string" ? e : e.id, { content: r, ...s } = await
|
|
2251
|
+
const n = typeof e == "string" ? e : e.id, { content: r, ...s } = await p.$get(`/tasks/${n}`, { params: { namespaces: t } });
|
|
2252
2252
|
return {
|
|
2253
2253
|
...s,
|
|
2254
2254
|
content: F(r)
|
|
2255
2255
|
};
|
|
2256
2256
|
}, Rt = async (e, t) => {
|
|
2257
|
-
const { id: n, ...r } = e, { content: s, ...o } = await
|
|
2257
|
+
const { id: n, ...r } = e, { content: s, ...o } = await p.$put(
|
|
2258
2258
|
`/tasks/${n}`,
|
|
2259
2259
|
r,
|
|
2260
2260
|
{ params: { namespaces: t } }
|
|
@@ -2265,9 +2265,9 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2265
2265
|
};
|
|
2266
2266
|
}, ls = Rt, fs = async (e, t) => {
|
|
2267
2267
|
const n = typeof e == "string" ? e : e.id;
|
|
2268
|
-
await
|
|
2268
|
+
await p.$delete(`/tasks/${n}`, { params: { namespaces: t } });
|
|
2269
2269
|
}, ds = async (e, t) => {
|
|
2270
|
-
const n = typeof e == "string" ? e : e.id, { content: r, ...s } = await
|
|
2270
|
+
const n = typeof e == "string" ? e : e.id, { content: r, ...s } = await p.$put(
|
|
2271
2271
|
`/tasks/${n}/_enable`,
|
|
2272
2272
|
void 0,
|
|
2273
2273
|
{ params: { namespaces: t } }
|
|
@@ -2277,7 +2277,7 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2277
2277
|
content: F(r)
|
|
2278
2278
|
};
|
|
2279
2279
|
}, ps = async (e, t) => {
|
|
2280
|
-
const n = typeof e == "string" ? e : e.id, { content: r, ...s } = await
|
|
2280
|
+
const n = typeof e == "string" ? e : e.id, { content: r, ...s } = await p.$put(
|
|
2281
2281
|
`/tasks/${n}/_disable`,
|
|
2282
2282
|
void 0,
|
|
2283
2283
|
{ params: { namespaces: t } }
|
|
@@ -2287,7 +2287,7 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2287
2287
|
content: F(r)
|
|
2288
2288
|
};
|
|
2289
2289
|
}, hs = async (e, t, n) => {
|
|
2290
|
-
const r = typeof e == "string" ? e : e.id, s = typeof t == "string" ? t : t.id, { content: o, ...i } = await
|
|
2290
|
+
const r = typeof e == "string" ? e : e.id, s = typeof t == "string" ? t : t.id, { content: o, ...i } = await p.$put(
|
|
2291
2291
|
`/tasks/${r}/_link/${s}`,
|
|
2292
2292
|
void 0,
|
|
2293
2293
|
{ params: { namespaces: n } }
|
|
@@ -2298,11 +2298,11 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2298
2298
|
};
|
|
2299
2299
|
}, ms = async (e, t, n) => {
|
|
2300
2300
|
const r = typeof e == "string" ? e : e.id, s = typeof t == "string" ? t : t.id;
|
|
2301
|
-
await
|
|
2301
|
+
await p.$delete(
|
|
2302
2302
|
`/tasks/${r}/_link/${s}`,
|
|
2303
2303
|
{ params: { namespaces: n } }
|
|
2304
2304
|
);
|
|
2305
|
-
},
|
|
2305
|
+
}, Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2306
2306
|
__proto__: null,
|
|
2307
2307
|
Recurrence: pt,
|
|
2308
2308
|
createTask: cs,
|
|
@@ -2318,7 +2318,7 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2318
2318
|
unsubTargetOfTask: as,
|
|
2319
2319
|
updateTask: ls,
|
|
2320
2320
|
upsertTask: Rt
|
|
2321
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2321
|
+
}, Symbol.toStringTag, { value: "Module" })), qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2322
2322
|
__proto__: null,
|
|
2323
2323
|
createTemplate: ts,
|
|
2324
2324
|
deleteTemplate: rs,
|
|
@@ -2326,19 +2326,24 @@ const jr = /* @__PURE__ */ Cr(Ur), Br = (e, t = new jr()) => {
|
|
|
2326
2326
|
getTemplate: es,
|
|
2327
2327
|
updateTemplate: ns,
|
|
2328
2328
|
upsertTemplate: St
|
|
2329
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2329
|
+
}, Symbol.toStringTag, { value: "Module" })), ys = (e) => p.$get("/elastic/indices", { params: { namespace: e } }), gs = (e, t) => p.$get(`/elastic/indices/${e}`, { params: { namespace: t } }), Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2330
|
+
__proto__: null,
|
|
2331
|
+
getAllIndices: ys,
|
|
2332
|
+
getIndexMapping: gs
|
|
2333
|
+
}, Symbol.toStringTag, { value: "Module" })), Ws = "1.0.0-rc.1";
|
|
2330
2334
|
export {
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
Us as
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
Hs as
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2335
|
+
ks as auth,
|
|
2336
|
+
Fs as crons,
|
|
2337
|
+
Js as elastic,
|
|
2338
|
+
js as health,
|
|
2339
|
+
Us as history,
|
|
2340
|
+
Bs as namespaces,
|
|
2341
|
+
Ms as queues,
|
|
2342
|
+
zs as reports,
|
|
2343
|
+
Hs as setup,
|
|
2344
|
+
Is as tasks,
|
|
2345
|
+
Us as tasksActivity,
|
|
2346
|
+
qs as templates,
|
|
2347
|
+
Ws as version
|
|
2343
2348
|
};
|
|
2344
2349
|
//# sourceMappingURL=ezreeport-sdk-js.mjs.map
|