@acorex-platform/module-timesheet-management-client 0.0.21

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 (45) hide show
  1. package/fesm2022/acorex-platform-module-timesheet-management-client-admin-adjust-timesheet-period.command-8lA7h4rI.mjs +57 -0
  2. package/fesm2022/acorex-platform-module-timesheet-management-client-admin-adjust-timesheet-period.command-8lA7h4rI.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-timesheet-management-client-approval-inbox.query-Wyz_jjxb.mjs +49 -0
  4. package/fesm2022/acorex-platform-module-timesheet-management-client-approval-inbox.query-Wyz_jjxb.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-timesheet-management-client-approve-timesheet-period.command-DlAeGANo.mjs +54 -0
  6. package/fesm2022/acorex-platform-module-timesheet-management-client-approve-timesheet-period.command-DlAeGANo.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-timesheet-management-client-compare-attendance-vs-timesheet.query-ZZym5nSx.mjs +91 -0
  8. package/fesm2022/acorex-platform-module-timesheet-management-client-compare-attendance-vs-timesheet.query-ZZym5nSx.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-timesheet-management-client-contracts.mjs +200 -0
  10. package/fesm2022/acorex-platform-module-timesheet-management-client-contracts.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-timesheet-management-client-create-time-entry.command-DS2EVLym.mjs +59 -0
  12. package/fesm2022/acorex-platform-module-timesheet-management-client-create-time-entry.command-DS2EVLym.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-timesheet-management-client-delete-time-entry.command-5_ItHpnx.mjs +59 -0
  14. package/fesm2022/acorex-platform-module-timesheet-management-client-delete-time-entry.command-5_ItHpnx.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-timesheet-management-client-lock-timesheet-period.command-D7V7SWUK.mjs +50 -0
  16. package/fesm2022/acorex-platform-module-timesheet-management-client-lock-timesheet-period.command-D7V7SWUK.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-timesheet-management-client-my-timesheet-grid.query-DlDY3tdF.mjs +90 -0
  18. package/fesm2022/acorex-platform-module-timesheet-management-client-my-timesheet-grid.query-DlDY3tdF.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-timesheet-management-client-reject-timesheet-period.command-CONxKPNm.mjs +56 -0
  20. package/fesm2022/acorex-platform-module-timesheet-management-client-reject-timesheet-period.command-CONxKPNm.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-timesheet-management-client-reopen-timesheet-period.command-DRr_c67L.mjs +56 -0
  22. package/fesm2022/acorex-platform-module-timesheet-management-client-reopen-timesheet-period.command-DRr_c67L.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-timesheet-management-client-report-billable-summary.query-BeLk4Of7.mjs +57 -0
  24. package/fesm2022/acorex-platform-module-timesheet-management-client-report-billable-summary.query-BeLk4Of7.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-timesheet-management-client-report-hours-by-project.query-Sp8cLnTC.mjs +69 -0
  26. package/fesm2022/acorex-platform-module-timesheet-management-client-report-hours-by-project.query-Sp8cLnTC.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-timesheet-management-client-report-hours-by-work-item.query-C8RU9Uc0.mjs +70 -0
  28. package/fesm2022/acorex-platform-module-timesheet-management-client-report-hours-by-work-item.query-C8RU9Uc0.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-timesheet-management-client-submit-timesheet-period.command-C2qlQVIC.mjs +51 -0
  30. package/fesm2022/acorex-platform-module-timesheet-management-client-submit-timesheet-period.command-C2qlQVIC.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-timesheet-management-client-team-timesheets.query-B0QpkVEI.mjs +51 -0
  32. package/fesm2022/acorex-platform-module-timesheet-management-client-team-timesheets.query-B0QpkVEI.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-timesheet-management-client-timesheet-validation.service-DMrJn3HU.mjs +263 -0
  34. package/fesm2022/acorex-platform-module-timesheet-management-client-timesheet-validation.service-DMrJn3HU.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-timesheet-management-client-update-time-entry.command-Do6s9OrI.mjs +60 -0
  36. package/fesm2022/acorex-platform-module-timesheet-management-client-update-time-entry.command-Do6s9OrI.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-timesheet-management-client-work-item-search.query-BA2kvF-S.mjs +68 -0
  38. package/fesm2022/acorex-platform-module-timesheet-management-client-work-item-search.query-BA2kvF-S.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-timesheet-management-client-workforce-exception-report.query-0q-AITic.mjs +40 -0
  40. package/fesm2022/acorex-platform-module-timesheet-management-client-workforce-exception-report.query-0q-AITic.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-timesheet-management-client.mjs +891 -0
  42. package/fesm2022/acorex-platform-module-timesheet-management-client.mjs.map +1 -0
  43. package/package.json +28 -0
  44. package/types/acorex-platform-module-timesheet-management-client-contracts.d.ts +305 -0
  45. package/types/acorex-platform-module-timesheet-management-client.d.ts +54 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-timesheet-management-client-workforce-exception-report.query-0q-AITic.mjs","sources":["../../../../libs/modules/timesheet-management/client/src/lib/features/reporting/queries/workforce-exception-report.query.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPQuery, type AXPQueryFetchResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQueryPayloadData,\n runtimeQuerySuccessObject,\n type AXPRuntimeQueryResult,\n} from '@acorex-platform/framework-shared/core';\nimport { inject, Injectable } from '@angular/core';\nimport { AXMCompareAttendanceVsTimesheetQuery } from './compare-attendance-vs-timesheet.query';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface AXMWorkforceExceptionReportQueryInput {\n employeeId: string;\n fromDate: string;\n toDate: string;\n varianceThresholdSeconds?: number;\n}\n\nexport interface AXMWorkforceExceptionReportQueryResult {\n exceptions: {\n date: string;\n attendanceWorkedSeconds: number;\n timesheetLoggedSeconds: number;\n varianceSeconds: number;\n }[];\n}\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Returns only dates where attendance vs timesheet variance exceeds the threshold.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMWorkforceExceptionReportQuery\n implements AXPQuery<AXMWorkforceExceptionReportQueryInput, AXMWorkforceExceptionReportQueryResult>\n{\n private readonly compareQuery = inject(AXMCompareAttendanceVsTimesheetQuery);\n\n async fetch(\n input: AXMWorkforceExceptionReportQueryInput,\n ): AXPQueryFetchResultPromise<AXMWorkforceExceptionReportQueryResult> {\n const result = await this.compareQuery.fetch(input);\n const payload = runtimeQueryPayloadData(result);\n if (!payload) {\n return runtimeQueryFailure(result.message ?? 'Failed to load workforce exception report.');\n }\n\n const exceptions = payload.rows\n .filter((row) => row.exceedsThreshold)\n .map((row) => ({\n date: row.date,\n attendanceWorkedSeconds: row.attendanceWorkedSeconds,\n timesheetLoggedSeconds: row.timesheetLoggedSeconds,\n varianceSeconds: row.varianceSeconds,\n }));\n\n return runtimeQuerySuccessObject({ exceptions });\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;AAgCA;AAEA;AAEA;;AAEG;MAEU,gCAAgC,CAAA;AAD7C,IAAA,WAAA,GAAA;AAImB,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,oCAAoC,CAAC;AAsB7E,IAAA;IApBC,MAAM,KAAK,CACT,KAA4C,EAAA;QAE5C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC;AACnD,QAAA,MAAM,OAAO,GAAG,uBAAuB,CAAC,MAAM,CAAC;QAC/C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,mBAAmB,CAAC,MAAM,CAAC,OAAO,IAAI,4CAA4C,CAAC;QAC5F;AAEA,QAAA,MAAM,UAAU,GAAG,OAAO,CAAC;aACxB,MAAM,CAAC,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