@ezpaarse-project/ezreeport-sdk-js 3.0.0 → 3.1.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/dist/api-BMa8Xm_O.js +14 -0
- package/dist/api-Bux99RKM.d.ts +27 -0
- package/dist/api-Bux99RKM.d.ts.map +1 -0
- package/dist/api-CAycTX8Z.d.mts +27 -0
- package/dist/api-CAycTX8Z.d.mts.map +1 -0
- package/dist/api-DFielZ98.mjs +10 -0
- package/dist/api-DFielZ98.mjs.map +1 -0
- package/dist/asyncToGenerator-BTgp0X8Q.mjs +28 -0
- package/dist/asyncToGenerator-D0muCXnm.js +34 -0
- package/dist/auth.d.mts +47 -0
- package/dist/auth.d.mts.map +1 -0
- package/dist/auth.d.ts +20 -16
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +8 -2
- package/dist/auth.mjs +6 -7
- package/dist/body-BeZQpy9P.d.mts +20 -0
- package/dist/body-BeZQpy9P.d.mts.map +1 -0
- package/dist/{body-ADynkNh0.d.ts → body-CBEqKjUe.d.ts} +12 -10
- package/dist/body-CBEqKjUe.d.ts.map +1 -0
- package/dist/crons.d.mts +19 -0
- package/dist/crons.d.mts.map +1 -0
- package/dist/crons.d.ts +10 -7
- package/dist/crons.d.ts.map +1 -0
- package/dist/crons.js +70 -2
- package/dist/crons.mjs +62 -87
- package/dist/crons.mjs.map +1 -1
- package/dist/decorator-Bjs7qJx3.mjs +46 -0
- package/dist/decorator-Bjs7qJx3.mjs.map +1 -0
- package/dist/decorator-DkHkhO2_.js +63 -0
- package/dist/elastic.d.mts +29 -0
- package/dist/elastic.d.mts.map +1 -0
- package/dist/elastic.d.ts +6 -3
- package/dist/elastic.d.ts.map +1 -0
- package/dist/elastic.js +53 -2
- package/dist/elastic.mjs +51 -48
- package/dist/elastic.mjs.map +1 -1
- package/dist/fetch-BoGJTvlB.js +84 -0
- package/dist/fetch-DcGZzMm-.mjs +73 -0
- package/dist/fetch-DcGZzMm-.mjs.map +1 -0
- package/dist/figures-Bdr-CTN1.mjs +252 -0
- package/dist/figures-Bdr-CTN1.mjs.map +1 -0
- package/dist/figures-cK0cMwpV.js +454 -0
- package/dist/generations.d.mts +20 -0
- package/dist/generations.d.mts.map +1 -0
- package/dist/generations.d.ts +13 -10
- package/dist/generations.d.ts.map +1 -0
- package/dist/generations.js +13 -2
- package/dist/generations.mjs +11 -7
- package/dist/health.d.mts +38 -0
- package/dist/health.d.mts.map +1 -0
- package/dist/health.d.ts +25 -22
- package/dist/health.d.ts.map +1 -0
- package/dist/health.js +25 -2
- package/dist/health.mjs +25 -42
- package/dist/health.mjs.map +1 -1
- package/dist/helpers/aggregations.d.mts +5 -0
- package/dist/helpers/aggregations.d.ts +5 -120
- package/dist/helpers/aggregations.js +128 -2
- package/dist/helpers/aggregations.mjs +123 -39
- package/dist/helpers/aggregations.mjs.map +1 -1
- package/dist/helpers/figures.d.mts +7 -0
- package/dist/helpers/figures.d.ts +7 -221
- package/dist/helpers/figures.js +32 -2
- package/dist/helpers/figures.mjs +4 -33
- package/dist/helpers/filters.d.mts +12 -0
- package/dist/helpers/filters.d.mts.map +1 -0
- package/dist/helpers/filters.d.ts +8 -4
- package/dist/helpers/filters.d.ts.map +1 -0
- package/dist/helpers/filters.js +8 -2
- package/dist/helpers/filters.mjs +7 -6
- package/dist/helpers/filters.mjs.map +1 -1
- package/dist/helpers/generations.d.mts +62 -0
- package/dist/helpers/generations.d.mts.map +1 -0
- package/dist/helpers/generations.d.ts +24 -17
- package/dist/helpers/generations.d.ts.map +1 -0
- package/dist/helpers/generations.js +120 -2
- package/dist/helpers/generations.mjs +116 -306
- package/dist/helpers/generations.mjs.map +1 -1
- package/dist/helpers/layouts.d.mts +11 -0
- package/dist/helpers/layouts.d.ts +11 -24
- package/dist/helpers/layouts.js +17 -2
- package/dist/helpers/layouts.mjs +5 -44
- package/dist/helpers/permissions.d.mts +20 -0
- package/dist/helpers/permissions.d.mts.map +1 -0
- package/dist/helpers/permissions.d.ts +5 -2
- package/dist/helpers/permissions.d.ts.map +1 -0
- package/dist/helpers/permissions.js +49 -2
- package/dist/helpers/permissions.mjs +47 -42
- package/dist/helpers/permissions.mjs.map +1 -1
- package/dist/helpers/task-presets.d.mts +21 -0
- package/dist/helpers/task-presets.d.mts.map +1 -0
- package/dist/helpers/task-presets.d.ts +10 -5
- package/dist/helpers/task-presets.d.ts.map +1 -0
- package/dist/helpers/task-presets.js +41 -2
- package/dist/helpers/task-presets.mjs +41 -38
- package/dist/helpers/task-presets.mjs.map +1 -1
- package/dist/helpers/tasks.d.mts +81 -0
- package/dist/helpers/tasks.d.mts.map +1 -0
- package/dist/helpers/tasks.d.ts +44 -34
- package/dist/helpers/tasks.d.ts.map +1 -0
- package/dist/helpers/tasks.js +220 -2
- package/dist/helpers/tasks.mjs +193 -210
- package/dist/helpers/tasks.mjs.map +1 -1
- package/dist/helpers/templates.d.mts +43 -0
- package/dist/helpers/templates.d.mts.map +1 -0
- package/dist/helpers/templates.d.ts +27 -18
- package/dist/helpers/templates.d.ts.map +1 -0
- package/dist/helpers/templates.js +132 -2
- package/dist/helpers/templates.mjs +111 -120
- package/dist/helpers/templates.mjs.map +1 -1
- package/dist/index-8Jjx2sF7.d.ts +123 -0
- package/dist/index-8Jjx2sF7.d.ts.map +1 -0
- package/dist/index-B1i_oJHZ.d.mts +62 -0
- package/dist/index-B1i_oJHZ.d.mts.map +1 -0
- package/dist/index-BM9ZEIo1.d.mts +112 -0
- package/dist/index-BM9ZEIo1.d.mts.map +1 -0
- package/dist/index-BQMs7hcI.d.mts +123 -0
- package/dist/index-BQMs7hcI.d.mts.map +1 -0
- package/dist/index-BwnTPP7V.d.mts +34 -0
- package/dist/index-BwnTPP7V.d.mts.map +1 -0
- package/dist/index-CFTcAzkv.d.ts +62 -0
- package/dist/index-CFTcAzkv.d.ts.map +1 -0
- package/dist/index-CLUuJN2U.d.ts +34 -0
- package/dist/index-CLUuJN2U.d.ts.map +1 -0
- package/dist/index-C_kFLsnO.d.ts +229 -0
- package/dist/index-C_kFLsnO.d.ts.map +1 -0
- package/dist/index-DIYCM-ZC.d.mts +73 -0
- package/dist/index-DIYCM-ZC.d.mts.map +1 -0
- package/dist/index-DdWYJWZx.d.mts +57 -0
- package/dist/index-DdWYJWZx.d.mts.map +1 -0
- package/dist/index-DwY7Gx4v.d.ts +73 -0
- package/dist/index-DwY7Gx4v.d.ts.map +1 -0
- package/dist/index-WThwo4GE.d.mts +229 -0
- package/dist/index-WThwo4GE.d.mts.map +1 -0
- package/dist/index-ikFTh5Of.d.ts +57 -0
- package/dist/index-ikFTh5Of.d.ts.map +1 -0
- package/dist/index-vQuyEowr.d.ts +112 -0
- package/dist/index-vQuyEowr.d.ts.map +1 -0
- package/dist/index.d.mts +169 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +157 -6
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -2
- package/dist/index.mjs +8 -7
- package/dist/index.mjs.map +1 -1
- package/dist/layouts-B4-6tFOc.js +146 -0
- package/dist/layouts-BjVGZ985.mjs +69 -0
- package/dist/layouts-BjVGZ985.mjs.map +1 -0
- package/dist/methods-1m6HC-Cq.js +74 -0
- package/dist/methods-B-5Y4mYI.js +244 -0
- package/dist/methods-BJmwe8TB.mjs +150 -0
- package/dist/methods-BJmwe8TB.mjs.map +1 -0
- package/dist/methods-BT7d3cn_.mjs +60 -0
- package/dist/methods-BT7d3cn_.mjs.map +1 -0
- package/dist/methods-COQbKdUK.mjs +191 -0
- package/dist/methods-COQbKdUK.mjs.map +1 -0
- package/dist/methods-Cwsy79oP.mjs +58 -0
- package/dist/methods-Cwsy79oP.mjs.map +1 -0
- package/dist/methods-D22WgfeH.js +83 -0
- package/dist/methods-DywJ3kNL.js +197 -0
- package/dist/namespaces.d.mts +2 -0
- package/dist/namespaces.d.ts +2 -28
- package/dist/namespaces.js +0 -2
- package/dist/namespaces.mjs +0 -2
- package/dist/objectSpread2-CqB2zXI4.mjs +67 -0
- package/dist/objectSpread2-D6h_DL8D.js +73 -0
- package/dist/objectWithoutProperties-BW1v2UJb.mjs +25 -0
- package/dist/objectWithoutProperties-WR0nj2yB.js +31 -0
- package/dist/recurrence.d.mts +34 -0
- package/dist/recurrence.d.mts.map +1 -0
- package/dist/recurrence.d.ts +12 -6
- package/dist/recurrence.d.ts.map +1 -0
- package/dist/recurrence.js +54 -2
- package/dist/recurrence.mjs +51 -49
- package/dist/recurrence.mjs.map +1 -1
- package/dist/reports.d.mts +88 -0
- package/dist/reports.d.mts.map +1 -0
- package/dist/reports.d.ts +14 -10
- package/dist/reports.d.ts.map +1 -0
- package/dist/reports.js +15 -2
- package/dist/reports.mjs +8 -12
- package/dist/task-activity.d.mts +38 -0
- package/dist/task-activity.d.mts.map +1 -0
- package/dist/task-activity.d.ts +26 -21
- package/dist/task-activity.d.ts.map +1 -0
- package/dist/task-activity.js +35 -2
- package/dist/task-activity.mjs +35 -61
- package/dist/task-activity.mjs.map +1 -1
- package/dist/task-presets-DiNjCcoY.js +178 -0
- package/dist/task-presets-gBDbKXvf.mjs +144 -0
- package/dist/task-presets-gBDbKXvf.mjs.map +1 -0
- package/dist/task-presets.d.mts +8 -0
- package/dist/task-presets.d.ts +8 -61
- package/dist/task-presets.js +16 -2
- package/dist/task-presets.mjs +11 -10
- package/dist/tasks-C7BDH9DB.mjs +0 -0
- package/dist/tasks-CvWlwPt4.js +0 -0
- package/dist/tasks.d.mts +8 -0
- package/dist/tasks.d.ts +8 -60
- package/dist/tasks.js +16 -2
- package/dist/tasks.mjs +11 -10
- package/dist/template-tags.d.mts +3 -0
- package/dist/template-tags.d.ts +3 -0
- package/dist/template-tags.js +125 -0
- package/dist/template-tags.mjs +122 -0
- package/dist/template-tags.mjs.map +1 -0
- package/dist/templates-4-HG94_R.mjs +123 -0
- package/dist/templates-4-HG94_R.mjs.map +1 -0
- package/dist/templates-BDeiW4cQ.js +151 -0
- package/dist/templates.d.mts +5 -0
- package/dist/templates.d.ts +5 -51
- package/dist/templates.js +14 -2
- package/dist/templates.mjs +10 -9
- package/dist/transform-BwhdwBpm.js +51 -0
- package/dist/transform-qQl1fxH9.mjs +40 -0
- package/dist/transform-qQl1fxH9.mjs.map +1 -0
- package/dist/types-BMxmOgXj.d.ts +80 -0
- package/dist/types-BMxmOgXj.d.ts.map +1 -0
- package/dist/types-BzHI9Ite.d.mts +25 -0
- package/dist/types-BzHI9Ite.d.mts.map +1 -0
- package/dist/types-C1-YTWbn.d.ts +25 -0
- package/dist/types-C1-YTWbn.d.ts.map +1 -0
- package/dist/types-C45-jPGm.d.ts +104 -0
- package/dist/types-C45-jPGm.d.ts.map +1 -0
- package/dist/types-Cog_jwWQ.d.ts +30 -0
- package/dist/types-Cog_jwWQ.d.ts.map +1 -0
- package/dist/types-D3Or9gzv.d.mts +104 -0
- package/dist/types-D3Or9gzv.d.mts.map +1 -0
- package/dist/types-DHTY3l5T.d.mts +30 -0
- package/dist/types-DHTY3l5T.d.mts.map +1 -0
- package/dist/types-EvlWp0P4.d.mts +69 -0
- package/dist/types-EvlWp0P4.d.mts.map +1 -0
- package/dist/types-GqzHU1o3.d.ts +69 -0
- package/dist/types-GqzHU1o3.d.ts.map +1 -0
- package/dist/types-O3D5ZCFu.d.mts +80 -0
- package/dist/types-O3D5ZCFu.d.mts.map +1 -0
- package/package.json +75 -91
- package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -7
- package/dist/_commonjsHelpers-C6fGbg64.mjs.map +0 -1
- package/dist/_commonjsHelpers-DwGv2jUC.js +0 -2
- package/dist/_commonjsHelpers-DwGv2jUC.js.map +0 -1
- package/dist/api-BSUnyE6V.js +0 -2
- package/dist/api-BSUnyE6V.js.map +0 -1
- package/dist/api-Beaugm6M.d.ts +0 -24
- package/dist/api-Cwb98wAh.mjs +0 -18
- package/dist/api-Cwb98wAh.mjs.map +0 -1
- package/dist/auth.js.map +0 -1
- package/dist/auth.mjs.map +0 -1
- package/dist/crons.js.map +0 -1
- package/dist/decorator-C2gcn2rK.js +0 -2
- package/dist/decorator-C2gcn2rK.js.map +0 -1
- package/dist/decorator-DCiVxI72.mjs +0 -24
- package/dist/decorator-DCiVxI72.mjs.map +0 -1
- package/dist/elastic.js.map +0 -1
- package/dist/fetch-DldyAFkY.js +0 -2
- package/dist/fetch-DldyAFkY.js.map +0 -1
- package/dist/fetch-FK-Cz8Ty.mjs +0 -52
- package/dist/fetch-FK-Cz8Ty.mjs.map +0 -1
- package/dist/generations.js.map +0 -1
- package/dist/generations.mjs.map +0 -1
- package/dist/health.js.map +0 -1
- package/dist/helpers/aggregations.js.map +0 -1
- package/dist/helpers/figures.js.map +0 -1
- package/dist/helpers/figures.mjs.map +0 -1
- package/dist/helpers/filters.js.map +0 -1
- package/dist/helpers/generations.js.map +0 -1
- package/dist/helpers/layouts.js.map +0 -1
- package/dist/helpers/layouts.mjs.map +0 -1
- package/dist/helpers/permissions.js.map +0 -1
- package/dist/helpers/task-presets.js.map +0 -1
- package/dist/helpers/tasks.js.map +0 -1
- package/dist/helpers/templates.js.map +0 -1
- package/dist/index-CVa-i8Jy.js +0 -7
- package/dist/index-CVa-i8Jy.js.map +0 -1
- package/dist/index-CqG3FOrT.mjs +0 -1113
- package/dist/index-CqG3FOrT.mjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/methods-B1u-wrM_.js +0 -2
- package/dist/methods-B1u-wrM_.js.map +0 -1
- package/dist/methods-BArV-Of4.js +0 -2
- package/dist/methods-BArV-Of4.js.map +0 -1
- package/dist/methods-C1KfMC_9.mjs +0 -158
- package/dist/methods-C1KfMC_9.mjs.map +0 -1
- package/dist/methods-CBNMk0T-.mjs +0 -47
- package/dist/methods-CBNMk0T-.mjs.map +0 -1
- package/dist/methods-CEARrYHM.mjs +0 -151
- package/dist/methods-CEARrYHM.mjs.map +0 -1
- package/dist/methods-CXuFuv8n.js +0 -2
- package/dist/methods-CXuFuv8n.js.map +0 -1
- package/dist/methods-DbOs99Zw.js +0 -2
- package/dist/methods-DbOs99Zw.js.map +0 -1
- package/dist/methods-DieaE_8I.js +0 -2
- package/dist/methods-DieaE_8I.js.map +0 -1
- package/dist/methods-DkGCHQdm.mjs +0 -144
- package/dist/methods-DkGCHQdm.mjs.map +0 -1
- package/dist/methods-YvctuH6v.js +0 -2
- package/dist/methods-YvctuH6v.js.map +0 -1
- package/dist/methods-byDDsdem.mjs +0 -122
- package/dist/methods-byDDsdem.mjs.map +0 -1
- package/dist/methods-k68hJDbY.mjs +0 -90
- package/dist/methods-k68hJDbY.mjs.map +0 -1
- package/dist/namespaces.js.map +0 -1
- package/dist/namespaces.mjs.map +0 -1
- package/dist/recurrence.js.map +0 -1
- package/dist/reports.js.map +0 -1
- package/dist/reports.mjs.map +0 -1
- package/dist/task-activity.js.map +0 -1
- package/dist/task-presets.js.map +0 -1
- package/dist/task-presets.mjs.map +0 -1
- package/dist/tasks-C-Si9c_j.js +0 -2
- package/dist/tasks-C-Si9c_j.js.map +0 -1
- package/dist/tasks-rnhGl39m.mjs +0 -34
- package/dist/tasks-rnhGl39m.mjs.map +0 -1
- package/dist/tasks.js.map +0 -1
- package/dist/tasks.mjs.map +0 -1
- package/dist/templates-BNAX4vB8.mjs +0 -29
- package/dist/templates-BNAX4vB8.mjs.map +0 -1
- package/dist/templates-BgRTZc5c.d.ts +0 -14
- package/dist/templates-D7C0TH1C.js +0 -2
- package/dist/templates-D7C0TH1C.js.map +0 -1
- package/dist/templates.js.map +0 -1
- package/dist/templates.mjs.map +0 -1
- package/dist/transform-DrB-Z9tA.mjs +0 -26
- package/dist/transform-DrB-Z9tA.mjs.map +0 -1
- package/dist/transform-DzLAfSJo.js +0 -2
- package/dist/transform-DzLAfSJo.js.map +0 -1
- package/dist/types-BxhkIhgG.d.ts +0 -50
- package/dist/types-CCDLyhAJ.d.ts +0 -77
- package/dist/types-Cac8HEO5.d.ts +0 -23
- package/dist/types-CgKoQCwb.d.ts +0 -67
- package/dist/types-DcoMmjs3.d.ts +0 -101
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
|
|
2
|
+
//#region \0@oxc-project+runtime@0.97.0/helpers/typeof.js
|
|
3
|
+
function _typeof(o) {
|
|
4
|
+
"@babel/helpers - typeof";
|
|
5
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
6
|
+
return typeof o$1;
|
|
7
|
+
} : function(o$1) {
|
|
8
|
+
return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
|
|
9
|
+
}, _typeof(o);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region \0@oxc-project+runtime@0.97.0/helpers/toPrimitive.js
|
|
14
|
+
function toPrimitive(t, r) {
|
|
15
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
16
|
+
var e = t[Symbol.toPrimitive];
|
|
17
|
+
if (void 0 !== e) {
|
|
18
|
+
var i = e.call(t, r || "default");
|
|
19
|
+
if ("object" != _typeof(i)) return i;
|
|
20
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
21
|
+
}
|
|
22
|
+
return ("string" === r ? String : Number)(t);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region \0@oxc-project+runtime@0.97.0/helpers/toPropertyKey.js
|
|
27
|
+
function toPropertyKey(t) {
|
|
28
|
+
var i = toPrimitive(t, "string");
|
|
29
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region \0@oxc-project+runtime@0.97.0/helpers/defineProperty.js
|
|
34
|
+
function _defineProperty(e, r, t) {
|
|
35
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
36
|
+
value: t,
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
configurable: !0,
|
|
39
|
+
writable: !0
|
|
40
|
+
}) : e[r] = t, e;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region \0@oxc-project+runtime@0.97.0/helpers/objectSpread2.js
|
|
45
|
+
function ownKeys(e, r) {
|
|
46
|
+
var t = Object.keys(e);
|
|
47
|
+
if (Object.getOwnPropertySymbols) {
|
|
48
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
49
|
+
r && (o = o.filter(function(r$1) {
|
|
50
|
+
return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
|
|
51
|
+
})), t.push.apply(t, o);
|
|
52
|
+
}
|
|
53
|
+
return t;
|
|
54
|
+
}
|
|
55
|
+
function _objectSpread2(e) {
|
|
56
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
57
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
58
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
|
|
59
|
+
_defineProperty(e, r$1, t[r$1]);
|
|
60
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
|
|
61
|
+
Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return e;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
//#endregion
|
|
68
|
+
Object.defineProperty(exports, '_objectSpread2', {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () {
|
|
71
|
+
return _objectSpread2;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region \0@oxc-project+runtime@0.97.0/helpers/objectWithoutPropertiesLoose.js
|
|
2
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
3
|
+
if (null == r) return {};
|
|
4
|
+
var t = {};
|
|
5
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
6
|
+
if (e.includes(n)) continue;
|
|
7
|
+
t[n] = r[n];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region \0@oxc-project+runtime@0.97.0/helpers/objectWithoutProperties.js
|
|
14
|
+
function _objectWithoutProperties(e, t) {
|
|
15
|
+
if (null == e) return {};
|
|
16
|
+
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
17
|
+
if (Object.getOwnPropertySymbols) {
|
|
18
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
19
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
20
|
+
}
|
|
21
|
+
return i;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { _objectWithoutProperties as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
//#region \0@oxc-project+runtime@0.97.0/helpers/objectWithoutPropertiesLoose.js
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
4
|
+
if (null == r) return {};
|
|
5
|
+
var t = {};
|
|
6
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
7
|
+
if (e.includes(n)) continue;
|
|
8
|
+
t[n] = r[n];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region \0@oxc-project+runtime@0.97.0/helpers/objectWithoutProperties.js
|
|
15
|
+
function _objectWithoutProperties(e, t) {
|
|
16
|
+
if (null == e) return {};
|
|
17
|
+
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
18
|
+
if (Object.getOwnPropertySymbols) {
|
|
19
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
20
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
21
|
+
}
|
|
22
|
+
return i;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
Object.defineProperty(exports, '_objectWithoutProperties', {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () {
|
|
29
|
+
return _objectWithoutProperties;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { i as ReportPeriod } from "./types-EvlWp0P4.mjs";
|
|
2
|
+
import "./types-DHTY3l5T.mjs";
|
|
3
|
+
import "./api-CAycTX8Z.mjs";
|
|
4
|
+
import "./index-DIYCM-ZC.mjs";
|
|
5
|
+
import "./types-D3Or9gzv.mjs";
|
|
6
|
+
import "./index-DdWYJWZx.mjs";
|
|
7
|
+
import { o as TaskRecurrence } from "./types-O3D5ZCFu.mjs";
|
|
8
|
+
|
|
9
|
+
//#region src/modules/recurrence/types.d.ts
|
|
10
|
+
type Recurrence = TaskRecurrence;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/modules/recurrence/methods.d.ts
|
|
13
|
+
/**
|
|
14
|
+
* Get the period covered by a recurrence
|
|
15
|
+
*
|
|
16
|
+
* @param recurrence The recurrence
|
|
17
|
+
* @param reference The date used as reference, defaults to today
|
|
18
|
+
* @param offset The offset, negative for previous, positive for next, 0 for current, default to 0
|
|
19
|
+
*
|
|
20
|
+
* @returns The period covered by the recurrence
|
|
21
|
+
*/
|
|
22
|
+
declare function getPeriodFromRecurrence(recurrence: Recurrence, reference?: Date, offset?: number): Promise<ReportPeriod>;
|
|
23
|
+
/**
|
|
24
|
+
* Get the "nextDate" (next iteration of a report) from a recurrence and a reference
|
|
25
|
+
*
|
|
26
|
+
* @param recurrence The recurrence
|
|
27
|
+
* @param reference The date used as reference, defaults to today
|
|
28
|
+
*
|
|
29
|
+
* @returns The next iteration date
|
|
30
|
+
*/
|
|
31
|
+
declare function getNextDateFromRecurrence(recurrence: Recurrence, reference?: Date): Promise<Date>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { type Recurrence, getNextDateFromRecurrence, getPeriodFromRecurrence };
|
|
34
|
+
//# sourceMappingURL=recurrence.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recurrence.d.mts","names":[],"sources":["../src/modules/recurrence/types.ts","../src/modules/recurrence/methods.ts"],"sourcesContent":[],"mappings":";;;;;;;;;KAEY,UAAA,GAAa;;;;;;;;;;AAAzB;;iBCiBsB,uBAAA,aACR,wBACA,wBAEX,QAAQ;;AAJX;;;;;;AA0BA;AACc,iBADQ,yBAAA,CACR,UAAA,EAAA,UAAA,EAAA,SAAA,CAAA,EACA,IADA,CAAA,EAEX,OAFW,CAEH,IAFG,CAAA"}
|
package/dist/recurrence.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { i as ReportPeriod } from "./types-GqzHU1o3.js";
|
|
2
|
+
import "./types-Cog_jwWQ.js";
|
|
3
|
+
import "./api-Bux99RKM.js";
|
|
4
|
+
import "./index-DwY7Gx4v.js";
|
|
5
|
+
import "./types-C45-jPGm.js";
|
|
6
|
+
import "./index-ikFTh5Of.js";
|
|
7
|
+
import { o as TaskRecurrence } from "./types-BMxmOgXj.js";
|
|
5
8
|
|
|
9
|
+
//#region src/modules/recurrence/types.d.ts
|
|
6
10
|
type Recurrence = TaskRecurrence;
|
|
7
|
-
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/modules/recurrence/methods.d.ts
|
|
8
13
|
/**
|
|
9
14
|
* Get the period covered by a recurrence
|
|
10
15
|
*
|
|
@@ -24,5 +29,6 @@ declare function getPeriodFromRecurrence(recurrence: Recurrence, reference?: Dat
|
|
|
24
29
|
* @returns The next iteration date
|
|
25
30
|
*/
|
|
26
31
|
declare function getNextDateFromRecurrence(recurrence: Recurrence, reference?: Date): Promise<Date>;
|
|
27
|
-
|
|
32
|
+
//#endregion
|
|
28
33
|
export { type Recurrence, getNextDateFromRecurrence, getPeriodFromRecurrence };
|
|
34
|
+
//# sourceMappingURL=recurrence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recurrence.d.ts","names":[],"sources":["../src/modules/recurrence/types.ts","../src/modules/recurrence/methods.ts"],"sourcesContent":[],"mappings":";;;;;;;;;KAEY,UAAA,GAAa;;;;;;;;;;AAAzB;;iBCiBsB,uBAAA,aACR,wBACA,wBAEX,QAAQ;;AAJX;;;;;;AA0BA;AACc,iBADQ,yBAAA,CACR,UAAA,EAAA,UAAA,EAAA,SAAA,CAAA,EACA,IADA,CAAA,EAEX,OAFW,CAEH,IAFG,CAAA"}
|
package/dist/recurrence.js
CHANGED
|
@@ -1,2 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
const require_figures = require('./figures-cK0cMwpV.js');
|
|
2
|
+
const require_fetch = require('./fetch-BoGJTvlB.js');
|
|
3
|
+
require('./decorator-DkHkhO2_.js');
|
|
4
|
+
const require_asyncToGenerator = require('./asyncToGenerator-D0muCXnm.js');
|
|
5
|
+
require('./objectSpread2-D6h_DL8D.js');
|
|
6
|
+
require('./transform-BwhdwBpm.js');
|
|
7
|
+
const require_methods = require('./methods-B-5Y4mYI.js');
|
|
8
|
+
let date_fns = require("date-fns");
|
|
9
|
+
|
|
10
|
+
//#region src/modules/recurrence/methods.ts
|
|
11
|
+
/**
|
|
12
|
+
* Get the period covered by a recurrence
|
|
13
|
+
*
|
|
14
|
+
* @param recurrence The recurrence
|
|
15
|
+
* @param reference The date used as reference, defaults to today
|
|
16
|
+
* @param offset The offset, negative for previous, positive for next, 0 for current, default to 0
|
|
17
|
+
*
|
|
18
|
+
* @returns The period covered by the recurrence
|
|
19
|
+
*/
|
|
20
|
+
function getPeriodFromRecurrence(_x, _x2, _x3) {
|
|
21
|
+
return _getPeriodFromRecurrence.apply(this, arguments);
|
|
22
|
+
}
|
|
23
|
+
function _getPeriodFromRecurrence() {
|
|
24
|
+
_getPeriodFromRecurrence = require_asyncToGenerator._asyncToGenerator(function* (recurrence, reference, offset) {
|
|
25
|
+
const { content } = yield require_fetch.client.fetch(`/recurrence/${recurrence}/period`, { params: {
|
|
26
|
+
reference: reference && (0, date_fns.formatISO)(reference),
|
|
27
|
+
offset
|
|
28
|
+
} });
|
|
29
|
+
return require_methods.transformPeriod(content);
|
|
30
|
+
});
|
|
31
|
+
return _getPeriodFromRecurrence.apply(this, arguments);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Get the "nextDate" (next iteration of a report) from a recurrence and a reference
|
|
35
|
+
*
|
|
36
|
+
* @param recurrence The recurrence
|
|
37
|
+
* @param reference The date used as reference, defaults to today
|
|
38
|
+
*
|
|
39
|
+
* @returns The next iteration date
|
|
40
|
+
*/
|
|
41
|
+
function getNextDateFromRecurrence(_x4, _x5) {
|
|
42
|
+
return _getNextDateFromRecurrence.apply(this, arguments);
|
|
43
|
+
}
|
|
44
|
+
function _getNextDateFromRecurrence() {
|
|
45
|
+
_getNextDateFromRecurrence = require_asyncToGenerator._asyncToGenerator(function* (recurrence, reference) {
|
|
46
|
+
const { content } = yield require_fetch.client.fetch(`/recurrence/${recurrence}/nextDate`, { params: { reference: reference && (0, date_fns.formatISO)(reference) } });
|
|
47
|
+
return (0, date_fns.parseISO)(content.value);
|
|
48
|
+
});
|
|
49
|
+
return _getNextDateFromRecurrence.apply(this, arguments);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
exports.getNextDateFromRecurrence = getNextDateFromRecurrence;
|
|
54
|
+
exports.getPeriodFromRecurrence = getPeriodFromRecurrence;
|
package/dist/recurrence.mjs
CHANGED
|
@@ -1,51 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return m(this, null, function* () {
|
|
22
|
-
const { content: c } = yield f.fetch(
|
|
23
|
-
`/recurrence/${n}/period`,
|
|
24
|
-
{
|
|
25
|
-
params: {
|
|
26
|
-
reference: e && s(e),
|
|
27
|
-
offset: r
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
return x(c);
|
|
32
|
-
});
|
|
1
|
+
import { t as client } from "./fetch-DcGZzMm-.mjs";
|
|
2
|
+
import "./decorator-Bjs7qJx3.mjs";
|
|
3
|
+
import { t as _asyncToGenerator } from "./asyncToGenerator-BTgp0X8Q.mjs";
|
|
4
|
+
import "./objectSpread2-CqB2zXI4.mjs";
|
|
5
|
+
import "./transform-qQl1fxH9.mjs";
|
|
6
|
+
import { l as transformPeriod } from "./methods-COQbKdUK.mjs";
|
|
7
|
+
import { formatISO, parseISO } from "date-fns";
|
|
8
|
+
|
|
9
|
+
//#region src/modules/recurrence/methods.ts
|
|
10
|
+
/**
|
|
11
|
+
* Get the period covered by a recurrence
|
|
12
|
+
*
|
|
13
|
+
* @param recurrence The recurrence
|
|
14
|
+
* @param reference The date used as reference, defaults to today
|
|
15
|
+
* @param offset The offset, negative for previous, positive for next, 0 for current, default to 0
|
|
16
|
+
*
|
|
17
|
+
* @returns The period covered by the recurrence
|
|
18
|
+
*/
|
|
19
|
+
function getPeriodFromRecurrence(_x, _x2, _x3) {
|
|
20
|
+
return _getPeriodFromRecurrence.apply(this, arguments);
|
|
33
21
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
);
|
|
44
|
-
return d(r.value);
|
|
45
|
-
});
|
|
22
|
+
function _getPeriodFromRecurrence() {
|
|
23
|
+
_getPeriodFromRecurrence = _asyncToGenerator(function* (recurrence, reference, offset) {
|
|
24
|
+
const { content } = yield client.fetch(`/recurrence/${recurrence}/period`, { params: {
|
|
25
|
+
reference: reference && formatISO(reference),
|
|
26
|
+
offset
|
|
27
|
+
} });
|
|
28
|
+
return transformPeriod(content);
|
|
29
|
+
});
|
|
30
|
+
return _getPeriodFromRecurrence.apply(this, arguments);
|
|
46
31
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Get the "nextDate" (next iteration of a report) from a recurrence and a reference
|
|
34
|
+
*
|
|
35
|
+
* @param recurrence The recurrence
|
|
36
|
+
* @param reference The date used as reference, defaults to today
|
|
37
|
+
*
|
|
38
|
+
* @returns The next iteration date
|
|
39
|
+
*/
|
|
40
|
+
function getNextDateFromRecurrence(_x4, _x5) {
|
|
41
|
+
return _getNextDateFromRecurrence.apply(this, arguments);
|
|
42
|
+
}
|
|
43
|
+
function _getNextDateFromRecurrence() {
|
|
44
|
+
_getNextDateFromRecurrence = _asyncToGenerator(function* (recurrence, reference) {
|
|
45
|
+
const { content } = yield client.fetch(`/recurrence/${recurrence}/nextDate`, { params: { reference: reference && formatISO(reference) } });
|
|
46
|
+
return parseISO(content.value);
|
|
47
|
+
});
|
|
48
|
+
return _getNextDateFromRecurrence.apply(this, arguments);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
export { getNextDateFromRecurrence, getPeriodFromRecurrence };
|
|
53
|
+
//# sourceMappingURL=recurrence.mjs.map
|
package/dist/recurrence.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recurrence.mjs","sources":["../src/modules/recurrence/methods.ts"],"sourcesContent":["import { formatISO, parseISO } from 'date-fns';\n\nimport { client } from '~/lib/fetch';\nimport type { ApiResponse } from '~/lib/api';\n\nimport type { RawReportPeriod, ReportPeriod } from '~/modules/reports/types';\nimport { transformPeriod } from '~/modules/reports/methods';\n\nimport type { Recurrence } from './types';\n\n/**\n * Get the period covered by a recurrence\n *\n * @param recurrence The recurrence\n * @param reference The date used as reference, defaults to today\n * @param offset The offset, negative for previous, positive for next, 0 for current, default to 0\n *\n * @returns The period covered by the recurrence\n */\nexport async function getPeriodFromRecurrence(\n recurrence: Recurrence,\n reference?: Date,\n offset?: number\n): Promise<ReportPeriod> {\n const { content } = await client.fetch<ApiResponse<RawReportPeriod>>(\n `/recurrence/${recurrence}/period`,\n {\n params: {\n reference: reference && formatISO(reference),\n offset,\n },\n }\n );\n\n return transformPeriod(content);\n}\n\n/**\n * Get the \"nextDate\" (next iteration of a report) from a recurrence and a reference\n *\n * @param recurrence The recurrence\n * @param reference The date used as reference, defaults to today\n *\n * @returns The next iteration date\n */\nexport async function getNextDateFromRecurrence(\n recurrence: Recurrence,\n reference?: Date\n): Promise<Date> {\n const { content } = await client.fetch<ApiResponse<{ value: string }>>(\n `/recurrence/${recurrence}/nextDate`,\n {\n params: {\n reference: reference && formatISO(reference),\n },\n }\n );\n\n return parseISO(content.value);\n}\n"],"
|
|
1
|
+
{"version":3,"file":"recurrence.mjs","names":[],"sources":["../src/modules/recurrence/methods.ts"],"sourcesContent":["import { formatISO, parseISO } from 'date-fns';\n\nimport { client } from '~/lib/fetch';\nimport type { ApiResponse } from '~/lib/api';\n\nimport type { RawReportPeriod, ReportPeriod } from '~/modules/reports/types';\nimport { transformPeriod } from '~/modules/reports/methods';\n\nimport type { Recurrence } from './types';\n\n/**\n * Get the period covered by a recurrence\n *\n * @param recurrence The recurrence\n * @param reference The date used as reference, defaults to today\n * @param offset The offset, negative for previous, positive for next, 0 for current, default to 0\n *\n * @returns The period covered by the recurrence\n */\nexport async function getPeriodFromRecurrence(\n recurrence: Recurrence,\n reference?: Date,\n offset?: number\n): Promise<ReportPeriod> {\n const { content } = await client.fetch<ApiResponse<RawReportPeriod>>(\n `/recurrence/${recurrence}/period`,\n {\n params: {\n reference: reference && formatISO(reference),\n offset,\n },\n }\n );\n\n return transformPeriod(content);\n}\n\n/**\n * Get the \"nextDate\" (next iteration of a report) from a recurrence and a reference\n *\n * @param recurrence The recurrence\n * @param reference The date used as reference, defaults to today\n *\n * @returns The next iteration date\n */\nexport async function getNextDateFromRecurrence(\n recurrence: Recurrence,\n reference?: Date\n): Promise<Date> {\n const { content } = await client.fetch<ApiResponse<{ value: string }>>(\n `/recurrence/${recurrence}/nextDate`,\n {\n params: {\n reference: reference && formatISO(reference),\n },\n }\n );\n\n return parseISO(content.value);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,SAAsB,wBACpB,IACA,KACA;;;;yDAFA,YACA,WACA,QACuB;EACvB,MAAM,EAAE,kBAAkB,OAAO,MAC/B,eAAe,WAAW,UAC1B,EACE,QAAQ;GACN,WAAW,aAAa,UAAU,UAAU;GAC5C;GACD,EACF,CACF;AAED,SAAO,gBAAgB,QAAQ;;;;;;;;;;;;AAWjC,SAAsB,0BACpB,KACA;;;;2DADA,YACA,WACe;EACf,MAAM,EAAE,kBAAkB,OAAO,MAC/B,eAAe,WAAW,YAC1B,EACE,QAAQ,EACN,WAAW,aAAa,UAAU,UAAU,EAC7C,EACF,CACF;AAED,SAAO,SAAS,QAAQ,MAAM"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { a as ReportResult, i as ReportPeriod, n as ReportError, o as ReportStats, r as ReportFiles, t as ReportDetails } from "./types-EvlWp0P4.mjs";
|
|
2
|
+
import "./types-DHTY3l5T.mjs";
|
|
3
|
+
import "./api-CAycTX8Z.mjs";
|
|
4
|
+
import "./index-DIYCM-ZC.mjs";
|
|
5
|
+
import "./types-D3Or9gzv.mjs";
|
|
6
|
+
import "./index-DdWYJWZx.mjs";
|
|
7
|
+
import { r as Task } from "./types-O3D5ZCFu.mjs";
|
|
8
|
+
|
|
9
|
+
//#region src/modules/reports/methods.d.ts
|
|
10
|
+
type ReportMap = Record<string, ReportFiles>;
|
|
11
|
+
/**
|
|
12
|
+
* Get all available reports
|
|
13
|
+
*
|
|
14
|
+
* @returns Object with keys being task IDs, values being report IDs
|
|
15
|
+
*/
|
|
16
|
+
declare function getAllReports(): Promise<Record<string, ReportMap>>;
|
|
17
|
+
/**
|
|
18
|
+
* Get all available reports of a task
|
|
19
|
+
*
|
|
20
|
+
* @param taskOrId Task or Task's id
|
|
21
|
+
*
|
|
22
|
+
* @returns Object with keys being report IDs, values being files
|
|
23
|
+
*/
|
|
24
|
+
declare function getReportsOfTask(taskOrId: Omit<Task, 'template'> | string): Promise<ReportMap>;
|
|
25
|
+
/**
|
|
26
|
+
* Get a report file as a blob
|
|
27
|
+
*
|
|
28
|
+
* @param taskOrId Task or Task's id
|
|
29
|
+
* @param path Path to the file
|
|
30
|
+
*
|
|
31
|
+
* @returns The blob
|
|
32
|
+
*/
|
|
33
|
+
declare function getFileAsBlob(taskOrId: Omit<Task, 'template'> | string, path: string): Promise<Blob>;
|
|
34
|
+
/**
|
|
35
|
+
* Get a report file as an array buffer
|
|
36
|
+
*
|
|
37
|
+
* @param taskOrId Task or Task's id
|
|
38
|
+
* @param path Path to the file
|
|
39
|
+
*
|
|
40
|
+
* @returns The array buffer
|
|
41
|
+
*/
|
|
42
|
+
declare function getFileAsArrayBuffer(taskOrId: Omit<Task, 'template'> | string, path: string): Promise<ArrayBuffer>;
|
|
43
|
+
/**
|
|
44
|
+
* Get a report file as a stream
|
|
45
|
+
*
|
|
46
|
+
* @param taskOrId Task or Task's id
|
|
47
|
+
* @param path Path to the file
|
|
48
|
+
*
|
|
49
|
+
* @returns The stream
|
|
50
|
+
*/
|
|
51
|
+
declare function getFileAsStream(taskOrId: Omit<Task, 'template'> | string, path: string): Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
|
|
52
|
+
/**
|
|
53
|
+
* Get a report file as a text
|
|
54
|
+
*
|
|
55
|
+
* @param taskOrId Task or Task's id
|
|
56
|
+
* @param path Path to the file
|
|
57
|
+
*
|
|
58
|
+
* @returns The text
|
|
59
|
+
*/
|
|
60
|
+
declare function getFileAsText(taskOrId: Omit<Task, 'template'> | string, path: string): Promise<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Get a report file as a JSON object
|
|
63
|
+
* The file should end with `.det.json`
|
|
64
|
+
*
|
|
65
|
+
* @param taskOrId Task or Task's id
|
|
66
|
+
* @param path Path to the file
|
|
67
|
+
*
|
|
68
|
+
* @returns The JSON object
|
|
69
|
+
*/
|
|
70
|
+
declare function getFileAsJson(taskOrId: Omit<Task, 'template'> | string, path: `${string}.det.json`): Promise<ReportResult>;
|
|
71
|
+
/**
|
|
72
|
+
* Start a report generation
|
|
73
|
+
*
|
|
74
|
+
* @param taskOrId Task or Task's id
|
|
75
|
+
* @param targets Override targets, also enable first level of debugging
|
|
76
|
+
* @param period Override period, must match task's recurrence
|
|
77
|
+
*
|
|
78
|
+
* @returns Data to get job, and so the progress of the generation
|
|
79
|
+
*/
|
|
80
|
+
declare function generateReportOfTask(taskOrId: Omit<Task, 'template'> | string, period?: {
|
|
81
|
+
start: Date;
|
|
82
|
+
end: Date;
|
|
83
|
+
}, targets?: string[]): Promise<{
|
|
84
|
+
id: string;
|
|
85
|
+
}>;
|
|
86
|
+
//#endregion
|
|
87
|
+
export { type ReportDetails, type ReportError, type ReportFiles, type ReportPeriod, type ReportResult, type ReportStats, generateReportOfTask, getAllReports, getFileAsArrayBuffer, getFileAsBlob, getFileAsJson, getFileAsStream, getFileAsText, getReportsOfTask };
|
|
88
|
+
//# sourceMappingURL=reports.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports.d.mts","names":[],"sources":["../src/modules/reports/methods.ts"],"sourcesContent":[],"mappings":";;;;;;;;;KAoBK,SAAA,GAAY,eAAe;;;;AAFf;AAyBjB;AAA8D,iBAAxC,aAAA,CAAA,CAAwC,EAAvB,OAAuB,CAAf,MAAe,CAAA,MAAA,EAAA,SAAA,CAAA,CAAA;;;;AAkB9D;;;;AAAmF,iBAA7D,gBAAA,CAA6D,QAAA,EAAlC,IAAkC,CAA7B,IAA6B,EAAA,UAAA,CAAA,GAAA,MAAA,CAAA,EAAA,OAAA,CAAQ,SAAR,CAAA;;AAwBnF;;;;;;AAuBA;AACiB,iBAxBK,aAAA,CAwBL,QAAA,EAvBL,IAuBK,CAvBA,IAuBA,EAAA,UAAA,CAAA,GAAA,MAAA,EAAA,IAAA,EAAA,MAAA,CAAA,EArBd,OAqBc,CArBN,IAqBM,CAAA;;;;;AAsBjB;;;;AAG0B,iBA1BJ,oBAAA,CA0BI,QAAA,EAzBd,IAyBc,CAzBT,IAyBS,EAAA,UAAA,CAAA,GAAA,MAAA,EAAA,IAAA,EAAA,MAAA,CAAA,EAvBvB,OAuBuB,CAvBf,WAuBe,CAAA;;;;AAoB1B;;;;;AAwBsB,iBA/CA,eAAA,CA+Ca,QAAA,EA9CvB,IA8CuB,CA9ClB,IA8CkB,EAAA,UAAA,CAAA,GAAA,MAAA,EAAA,IAAA,EAAA,MAAA,CAAA,EA5ChC,OA4CgC,CA5CxB,cA4CwB,CA5CT,UA4CS,CA5CE,eA4CF,CAAA,CAAA,CAAA;;;;;;AAuBnC;;;AAEoB,iBAjDE,aAAA,CAiDF,QAAA,EAhDR,IAgDQ,CAhDH,IAgDG,EAAA,UAAA,CAAA,GAAA,MAAA,EAAA,IAAA,EAAA,MAAA,CAAA,EA9CjB,OA8CiB,CAAA,MAAA,CAAA;;;;;;;;;;iBAzBE,aAAA,WACV,KAAK,yDAEd,QAAQ;;;;;;;;;;iBAoBW,oBAAA,WACV,KAAK;SACG;OAAW;wBAE5B"}
|
package/dist/reports.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { a as ReportResult, i as ReportPeriod, n as ReportError, o as ReportStats, r as ReportFiles, t as ReportDetails } from "./types-GqzHU1o3.js";
|
|
2
|
+
import "./types-Cog_jwWQ.js";
|
|
3
|
+
import "./api-Bux99RKM.js";
|
|
4
|
+
import "./index-DwY7Gx4v.js";
|
|
5
|
+
import "./types-C45-jPGm.js";
|
|
6
|
+
import "./index-ikFTh5Of.js";
|
|
7
|
+
import { r as Task } from "./types-BMxmOgXj.js";
|
|
6
8
|
|
|
9
|
+
//#region src/modules/reports/methods.d.ts
|
|
7
10
|
type ReportMap = Record<string, ReportFiles>;
|
|
8
11
|
/**
|
|
9
12
|
* Get all available reports
|
|
@@ -75,10 +78,11 @@ declare function getFileAsJson(taskOrId: Omit<Task, 'template'> | string, path:
|
|
|
75
78
|
* @returns Data to get job, and so the progress of the generation
|
|
76
79
|
*/
|
|
77
80
|
declare function generateReportOfTask(taskOrId: Omit<Task, 'template'> | string, period?: {
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
start: Date;
|
|
82
|
+
end: Date;
|
|
80
83
|
}, targets?: string[]): Promise<{
|
|
81
|
-
|
|
84
|
+
id: string;
|
|
82
85
|
}>;
|
|
83
|
-
|
|
84
|
-
export { ReportFiles, ReportResult, generateReportOfTask, getAllReports, getFileAsArrayBuffer, getFileAsBlob, getFileAsJson, getFileAsStream, getFileAsText, getReportsOfTask };
|
|
86
|
+
//#endregion
|
|
87
|
+
export { type ReportDetails, type ReportError, type ReportFiles, type ReportPeriod, type ReportResult, type ReportStats, generateReportOfTask, getAllReports, getFileAsArrayBuffer, getFileAsBlob, getFileAsJson, getFileAsStream, getFileAsText, getReportsOfTask };
|
|
88
|
+
//# sourceMappingURL=reports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports.d.ts","names":[],"sources":["../src/modules/reports/methods.ts"],"sourcesContent":[],"mappings":";;;;;;;;;KAoBK,SAAA,GAAY,eAAe;;;;AAFf;AAyBjB;AAA8D,iBAAxC,aAAA,CAAA,CAAwC,EAAvB,OAAuB,CAAf,MAAe,CAAA,MAAA,EAAA,SAAA,CAAA,CAAA;;;;AAkB9D;;;;AAAmF,iBAA7D,gBAAA,CAA6D,QAAA,EAAlC,IAAkC,CAA7B,IAA6B,EAAA,UAAA,CAAA,GAAA,MAAA,CAAA,EAAA,OAAA,CAAQ,SAAR,CAAA;;AAwBnF;;;;;;AAuBA;AACiB,iBAxBK,aAAA,CAwBL,QAAA,EAvBL,IAuBK,CAvBA,IAuBA,EAAA,UAAA,CAAA,GAAA,MAAA,EAAA,IAAA,EAAA,MAAA,CAAA,EArBd,OAqBc,CArBN,IAqBM,CAAA;;;;;AAsBjB;;;;AAG0B,iBA1BJ,oBAAA,CA0BI,QAAA,EAzBd,IAyBc,CAzBT,IAyBS,EAAA,UAAA,CAAA,GAAA,MAAA,EAAA,IAAA,EAAA,MAAA,CAAA,EAvBvB,OAuBuB,CAvBf,WAuBe,CAAA;;;;AAoB1B;;;;;AAwBsB,iBA/CA,eAAA,CA+Ca,QAAA,EA9CvB,IA8CuB,CA9ClB,IA8CkB,EAAA,UAAA,CAAA,GAAA,MAAA,EAAA,IAAA,EAAA,MAAA,CAAA,EA5ChC,OA4CgC,CA5CxB,cA4CwB,CA5CT,UA4CS,CA5CE,eA4CF,CAAA,CAAA,CAAA;;;;;;AAuBnC;;;AAEoB,iBAjDE,aAAA,CAiDF,QAAA,EAhDR,IAgDQ,CAhDH,IAgDG,EAAA,UAAA,CAAA,GAAA,MAAA,EAAA,IAAA,EAAA,MAAA,CAAA,EA9CjB,OA8CiB,CAAA,MAAA,CAAA;;;;;;;;;;iBAzBE,aAAA,WACV,KAAK,yDAEd,QAAQ;;;;;;;;;;iBAoBW,oBAAA,WACV,KAAK;SACG;OAAW;wBAE5B"}
|
package/dist/reports.js
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
require('./fetch-BoGJTvlB.js');
|
|
2
|
+
require('./decorator-DkHkhO2_.js');
|
|
3
|
+
require('./asyncToGenerator-D0muCXnm.js');
|
|
4
|
+
require('./objectSpread2-D6h_DL8D.js');
|
|
5
|
+
require('./transform-BwhdwBpm.js');
|
|
6
|
+
const require_methods = require('./methods-B-5Y4mYI.js');
|
|
7
|
+
|
|
8
|
+
exports.generateReportOfTask = require_methods.generateReportOfTask;
|
|
9
|
+
exports.getAllReports = require_methods.getAllReports;
|
|
10
|
+
exports.getFileAsArrayBuffer = require_methods.getFileAsArrayBuffer;
|
|
11
|
+
exports.getFileAsBlob = require_methods.getFileAsBlob;
|
|
12
|
+
exports.getFileAsJson = require_methods.getFileAsJson;
|
|
13
|
+
exports.getFileAsStream = require_methods.getFileAsStream;
|
|
14
|
+
exports.getFileAsText = require_methods.getFileAsText;
|
|
15
|
+
exports.getReportsOfTask = require_methods.getReportsOfTask;
|
package/dist/reports.mjs
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
A as getFileAsText,
|
|
10
|
-
f as getReportsOfTask
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=reports.mjs.map
|
|
1
|
+
import "./fetch-DcGZzMm-.mjs";
|
|
2
|
+
import "./decorator-Bjs7qJx3.mjs";
|
|
3
|
+
import "./asyncToGenerator-BTgp0X8Q.mjs";
|
|
4
|
+
import "./objectSpread2-CqB2zXI4.mjs";
|
|
5
|
+
import "./transform-qQl1fxH9.mjs";
|
|
6
|
+
import { a as getFileAsJson, c as getReportsOfTask, i as getFileAsBlob, n as getAllReports, o as getFileAsStream, r as getFileAsArrayBuffer, s as getFileAsText, t as generateReportOfTask } from "./methods-COQbKdUK.mjs";
|
|
7
|
+
|
|
8
|
+
export { generateReportOfTask, getAllReports, getFileAsArrayBuffer, getFileAsBlob, getFileAsJson, getFileAsStream, getFileAsText, getReportsOfTask };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import "./types-DHTY3l5T.mjs";
|
|
2
|
+
import { n as SdkPaginated, t as ApiRequestOptions } from "./api-CAycTX8Z.mjs";
|
|
3
|
+
import "./index-DIYCM-ZC.mjs";
|
|
4
|
+
import "./types-D3Or9gzv.mjs";
|
|
5
|
+
import "./index-DdWYJWZx.mjs";
|
|
6
|
+
import { r as Task } from "./types-O3D5ZCFu.mjs";
|
|
7
|
+
|
|
8
|
+
//#region src/modules/task-activity/types.d.ts
|
|
9
|
+
interface TaskActivity {
|
|
10
|
+
/** Activity ID */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Task ID */
|
|
13
|
+
taskId: string;
|
|
14
|
+
/** Activity type */
|
|
15
|
+
type: string;
|
|
16
|
+
/** Activity message */
|
|
17
|
+
message: string;
|
|
18
|
+
/** Activity data */
|
|
19
|
+
data: unknown | null;
|
|
20
|
+
/** Creation date */
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
/** Task related to event, must be included when fetching */
|
|
23
|
+
task?: Omit<Task, 'template'>;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/modules/task-activity/methods.d.ts
|
|
27
|
+
type PaginatedActivity = SdkPaginated<TaskActivity>;
|
|
28
|
+
/**
|
|
29
|
+
* Get all available activity
|
|
30
|
+
*
|
|
31
|
+
* @returns All activity' info
|
|
32
|
+
*/
|
|
33
|
+
declare function getAllActivity(opts?: ApiRequestOptions & {
|
|
34
|
+
include?: string[];
|
|
35
|
+
}): Promise<PaginatedActivity>;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { type TaskActivity, getAllActivity };
|
|
38
|
+
//# sourceMappingURL=task-activity.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-activity.d.mts","names":[],"sources":["../src/modules/task-activity/types.ts","../src/modules/task-activity/methods.ts"],"sourcesContent":[],"mappings":";;;;;;;;UAEiB,YAAA;;;;;;;EAAA;EAYJ,OAAA,EAAA,MAAA;EAGC;EAAL,IAAA,EAAA,OAAA,GAAA,IAAA;EAAI;aAHA;;SAGJ,KAAK;ACEX;;;KAEE,iBAAA,GAAoB,aAAa;;;;;ADnBtC;AAYa,iBCcS,cAAA,CDdT,IAGJ,CAHI,ECeJ,iBDfI,GAAA;EAGC,OAAA,CAAA,EAAA,MAAA,EAAA;CAAL,CAAA,ECaN,ODbM,CCaE,iBDbF,CAAA"}
|