@feedmepos/mf-report 5.14.1-beta.0 → 5.14.2-beta.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.
Files changed (25) hide show
  1. package/dist/{App-8UYPSbi6.js → App-y_r1I8Kx.js} +4 -4
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-Dn62PHIj.js → BaseDialog.vue_vue_type_script_setup_true_lang-BfqoIHbA.js} +2 -2
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CY6B25Af.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-D_vOomEW.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-BnZSfKop.js → Default.vue_vue_type_script_setup_true_lang-SKf2r2G8.js} +2 -2
  5. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-C1yW2R2S.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BMVhDJ_I.js} +618 -592
  6. package/dist/{InsightView-RIrek9NR.js → InsightView-BFki5EUd.js} +5 -5
  7. package/dist/{Integration-DY0RbjJJ.js → Integration-C1vkCqlT.js} +447 -438
  8. package/dist/{Integrations-1gYE7U7o.js → Integrations-BTB-ZK56.js} +3 -3
  9. package/dist/{Layout-SEDjluXQ.js → Layout-V_HNhnDl.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B9Sn5kpJ.js → MenuTab.vue_vue_type_script_setup_true_lang-CTyHtBSW.js} +6 -6
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DymC0PoU.js → NavigationTab.vue_vue_type_script_setup_true_lang-CCX9gZ52.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-tMdvKjM3.js → NoData.vue_vue_type_script_setup_true_lang-DT2L1CAc.js} +1 -1
  13. package/dist/{OverviewView-g0MRE4sm.js → OverviewView-B8azM0WK.js} +5 -5
  14. package/dist/{Report-B61AWY72.js → Report-CNKUdP4L.js} +4 -4
  15. package/dist/{ReportEditor-B5MnOIUR.js → ReportEditor-BLwUfj38.js} +6 -6
  16. package/dist/{ReportView-Cio3aitl.js → ReportView-CNwMhmvY.js} +7 -7
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-DLzo7grl.js → SelectComponent.vue_vue_type_script_setup_true_lang-CJaP9yq9.js} +1 -1
  18. package/dist/{Setting-Cd7ScfRg.js → Setting-glu98b3A.js} +4 -4
  19. package/dist/{TileEditor-BP00RCTG.js → TileEditor-BmlqAFyc.js} +7 -7
  20. package/dist/{TransitionFade-8ACgMjNz.js → TransitionFade-DKCPXh2R.js} +5 -5
  21. package/dist/app.js +11 -11
  22. package/dist/assets/{formatChartData.worker-CzUhzs-5.js → formatChartData.worker-CtQY7gMJ.js} +2 -2
  23. package/dist/{helper-Cnw7wwTJ.js → helper-CZss0RvH.js} +1 -1
  24. package/dist/{vue-i18n-Cbp-3I-3.js → vue-i18n-CLA-22OG.js} +13 -13
  25. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { d } from "./vue-i18n-Cbp-3I-3.js";
1
+ import { d } from "./vue-i18n-CLA-22OG.js";
2
2
  var u = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(u || {});
3
3
  function c(e, a = 100) {
4
4
  let r = null;
@@ -3386,30 +3386,30 @@ async function Yl(e) {
3386
3386
  };
3387
3387
  return await Ue.fetch(n);
3388
3388
  }
3389
- async function _l(e) {
3390
- let t = [];
3389
+ async function _l(e, t) {
3390
+ let n = [];
3391
3391
  try {
3392
- const { businessId: n } = le(), { dateRange: A } = Fn(), r = Ae(A.endDate).diff(A.startDate, "day"), i = {
3393
- dates: [...new Array(r + 1)].map(
3394
- (c, v) => Ae(A.startDate).add(v, "day").utc().toISOString()
3392
+ const { businessId: A } = le(), { dateRange: r } = Fn(), o = Ae(r.endDate).diff(r.startDate, "day"), a = {
3393
+ dates: [...new Array(o + 1)].map(
3394
+ (v, g) => Ae(r.startDate).add(g, "day").utc().toISOString()
3395
3395
  )
3396
- }, a = {
3396
+ }, s = {
3397
3397
  fetchType: ce.Post,
3398
- url: `/${n}/integration/${e}/download/metadata`,
3399
- data: i,
3398
+ url: `/${A}/integration/${e}/download/metadata${t ? `?types=${t.join(",")}` : ""}`,
3399
+ data: a,
3400
3400
  requestConfig: {
3401
3401
  timeout: 1e3 * 60 * 3
3402
3402
  }
3403
3403
  };
3404
- t = await Ue.fetch(a);
3405
- const s = t.map(async (c) => {
3406
- await ya(e, c);
3404
+ n = await Ue.fetch(s);
3405
+ const c = n.map(async (v) => {
3406
+ await ya(e, v);
3407
3407
  });
3408
- await Promise.all(s);
3408
+ await Promise.all(c);
3409
3409
  } catch {
3410
3410
  throw new Error("Failed to download");
3411
3411
  }
3412
- if (t.length === 0)
3412
+ if (n.length === 0)
3413
3413
  throw new Error("No downloadable file");
3414
3414
  }
3415
3415
  async function ya(e, t) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-report",
3
- "version": "5.14.1-beta.0",
3
+ "version": "5.14.2-beta.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],