tango-app-ui-analyse-trax 3.9.2 → 3.9.3
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/.eslintrc.json +37 -0
- package/ng-package.json +7 -0
- package/package.json +12 -25
- package/src/lib/components/action-centre/action-centre.component.html +607 -0
- package/src/lib/components/action-centre/action-centre.component.scss +185 -0
- package/src/lib/components/action-centre/action-centre.component.spec.ts +23 -0
- package/src/lib/components/action-centre/action-centre.component.ts +279 -0
- package/src/lib/components/activity-log/activity-log.component.html +84 -0
- package/src/lib/components/activity-log/activity-log.component.scss +33 -0
- package/src/lib/components/activity-log/activity-log.component.spec.ts +23 -0
- package/src/lib/components/activity-log/activity-log.component.ts +137 -0
- package/src/lib/components/activity-log-v2/activity-log-v2.component.html +189 -0
- package/src/lib/components/activity-log-v2/activity-log-v2.component.scss +162 -0
- package/src/lib/components/activity-log-v2/activity-log-v2.component.spec.ts +23 -0
- package/src/lib/components/activity-log-v2/activity-log-v2.component.ts +517 -0
- package/src/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.html +19 -0
- package/src/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.scss +148 -0
- package/src/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.spec.ts +23 -0
- package/src/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.ts +141 -0
- package/src/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.html +42 -0
- package/src/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.scss +49 -0
- package/src/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.spec.ts +23 -0
- package/src/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.ts +22 -0
- package/src/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.html +724 -0
- package/src/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.scss +217 -0
- package/src/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.spec.ts +23 -0
- package/src/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.ts +122 -0
- package/src/lib/components/add-checklist/add-checklist.component.html +1459 -0
- package/src/lib/components/add-checklist/add-checklist.component.scss +1205 -0
- package/src/lib/components/add-checklist/add-checklist.component.spec.ts +23 -0
- package/src/lib/components/add-checklist/add-checklist.component.ts +2460 -0
- package/src/lib/components/add-checklist/checklist-popup/checklist-popup.component.html +207 -0
- package/src/lib/components/add-checklist/checklist-popup/checklist-popup.component.scss +213 -0
- package/src/lib/components/add-checklist/checklist-popup/checklist-popup.component.spec.ts +23 -0
- package/src/lib/components/add-checklist/checklist-popup/checklist-popup.component.ts +621 -0
- package/src/lib/components/add-checklist/counter/counter.component.html +43 -0
- package/src/lib/components/add-checklist/counter/counter.component.scss +49 -0
- package/src/lib/components/add-checklist/counter/counter.component.spec.ts +23 -0
- package/src/lib/components/add-checklist/counter/counter.component.ts +123 -0
- package/src/lib/components/add-multitask/add-multitask.component.html +705 -0
- package/src/lib/components/add-multitask/add-multitask.component.scss +296 -0
- package/src/lib/components/add-multitask/add-multitask.component.spec.ts +23 -0
- package/src/lib/components/add-multitask/add-multitask.component.ts +611 -0
- package/src/lib/components/add-multitask/ascending-validator.ts +13 -0
- package/src/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.html +197 -0
- package/src/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.scss +31 -0
- package/src/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.spec.ts +23 -0
- package/src/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.ts +285 -0
- package/src/lib/components/add-multitask/create-task.data.ts +374 -0
- package/src/lib/components/add-multitask/create-task.interface.ts +177 -0
- package/src/lib/components/add-multitask/unique-string-validator.ts +13 -0
- package/src/lib/components/add-multitask/whitespace-validator.ts +11 -0
- package/src/lib/components/add-task/add-task.component.html +654 -0
- package/src/lib/components/add-task/add-task.component.scss +536 -0
- package/src/lib/components/add-task/add-task.component.spec.ts +23 -0
- package/src/lib/components/add-task/add-task.component.ts +569 -0
- package/src/lib/components/add-task/ascending-validator.ts +13 -0
- package/src/lib/components/add-task/create-task.data.ts +374 -0
- package/src/lib/components/add-task/create-task.interface.ts +192 -0
- package/src/lib/components/add-task/unique-string-validator.ts +13 -0
- package/src/lib/components/add-task/whitespace-validator.ts +11 -0
- package/src/lib/components/approval-popup/approval-popup.component.html +25 -0
- package/src/lib/components/approval-popup/approval-popup.component.scss +3 -0
- package/src/lib/components/approval-popup/approval-popup.component.spec.ts +23 -0
- package/src/lib/components/approval-popup/approval-popup.component.ts +26 -0
- package/src/lib/components/checklist/checklist.component.html +330 -0
- package/src/lib/components/checklist/checklist.component.scss +112 -0
- package/src/lib/components/checklist/checklist.component.spec.ts +23 -0
- package/src/lib/components/checklist/checklist.component.ts +344 -0
- package/src/lib/components/checklist-configure/assign/assign.component.html +665 -0
- package/src/lib/components/checklist-configure/assign/assign.component.scss +219 -0
- package/src/lib/components/checklist-configure/assign/assign.component.spec.ts +23 -0
- package/src/lib/components/checklist-configure/assign/assign.component.ts +932 -0
- package/src/lib/components/checklist-configure/checklist-configure.component.html +4340 -0
- package/src/lib/components/checklist-configure/checklist-configure.component.scss +2338 -0
- package/src/lib/components/checklist-configure/checklist-configure.component.spec.ts +23 -0
- package/src/lib/components/checklist-configure/checklist-configure.component.ts +4659 -0
- package/src/lib/components/checklistlayout/checklistlayout.component.html +30 -0
- package/src/lib/components/checklistlayout/checklistlayout.component.scss +15 -0
- package/src/lib/components/checklistlayout/checklistlayout.component.spec.ts +23 -0
- package/src/lib/components/checklistlayout/checklistlayout.component.ts +47 -0
- package/src/lib/components/chip-dropdown/chip-dropdown.component.html +36 -0
- package/src/lib/components/chip-dropdown/chip-dropdown.component.scss +97 -0
- package/src/lib/components/chip-dropdown/chip-dropdown.component.spec.ts +23 -0
- package/src/lib/components/chip-dropdown/chip-dropdown.component.ts +125 -0
- package/src/lib/components/create-task/create-task.component.html +2003 -0
- package/src/lib/components/create-task/create-task.component.scss +272 -0
- package/src/lib/components/create-task/create-task.component.spec.ts +23 -0
- package/src/lib/components/create-task/create-task.component.ts +614 -0
- package/src/lib/components/create-task/create-task.data.ts +372 -0
- package/src/lib/components/create-task/create-task.interface.ts +182 -0
- package/src/lib/components/create-task/validators/ascending-validator.ts +13 -0
- package/src/lib/components/create-task/validators/unique-string-validator.ts +13 -0
- package/src/lib/components/create-task/validators/whitespace-validator.ts +11 -0
- package/src/lib/components/custom-select/custom-select.component.html +44 -0
- package/src/lib/components/custom-select/custom-select.component.scss +144 -0
- package/src/lib/components/custom-select/custom-select.component.spec.ts +23 -0
- package/src/lib/components/custom-select/custom-select.component.ts +265 -0
- package/src/lib/components/dashboard/dashboard.component.html +1076 -0
- package/src/lib/components/dashboard/dashboard.component.scss +237 -0
- package/src/lib/components/dashboard/dashboard.component.spec.ts +23 -0
- package/src/lib/components/dashboard/dashboard.component.ts +539 -0
- package/src/lib/components/dashboard-info/dashboard-info.component.html +1420 -0
- package/src/lib/components/dashboard-info/dashboard-info.component.scss +409 -0
- package/src/lib/components/dashboard-info/dashboard-info.component.spec.ts +23 -0
- package/src/lib/components/dashboard-info/dashboard-info.component.ts +772 -0
- package/src/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.html +110 -0
- package/src/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.scss +260 -0
- package/src/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.spec.ts +23 -0
- package/src/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.ts +143 -0
- package/src/lib/components/dashboard-layout/dashboard-layout.component.html +1 -0
- package/src/lib/components/dashboard-layout/dashboard-layout.component.scss +0 -0
- package/src/lib/components/dashboard-layout/dashboard-layout.component.spec.ts +23 -0
- package/src/lib/components/dashboard-layout/dashboard-layout.component.ts +10 -0
- package/src/lib/components/disabled-select/disabled-select.component.html +44 -0
- package/src/lib/components/disabled-select/disabled-select.component.scss +149 -0
- package/src/lib/components/disabled-select/disabled-select.component.spec.ts +23 -0
- package/src/lib/components/disabled-select/disabled-select.component.ts +146 -0
- package/src/lib/components/export-gallery/export-gallery.component.html +175 -0
- package/src/lib/components/export-gallery/export-gallery.component.scss +200 -0
- package/src/lib/components/export-gallery/export-gallery.component.spec.ts +23 -0
- package/src/lib/components/export-gallery/export-gallery.component.ts +263 -0
- package/src/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.html +36 -0
- package/src/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.scss +97 -0
- package/src/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.ts +104 -0
- package/src/lib/components/eye-test-audit/custom-select/custom-select.component.html +44 -0
- package/src/lib/components/eye-test-audit/custom-select/custom-select.component.scss +144 -0
- package/src/lib/components/eye-test-audit/custom-select/custom-select.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/custom-select/custom-select.component.ts +265 -0
- package/src/lib/components/eye-test-audit/eye-test/eye-test.component.html +1804 -0
- package/src/lib/components/eye-test-audit/eye-test/eye-test.component.scss +806 -0
- package/src/lib/components/eye-test-audit/eye-test/eye-test.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/eye-test/eye-test.component.ts +1890 -0
- package/src/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.html +25 -0
- package/src/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.scss +0 -0
- package/src/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.ts +20 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit-routing.module.ts +26 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.html +1 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.scss +0 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.ts +24 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.module.ts +44 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.html +490 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.scss +721 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.ts +1017 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.html +708 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.scss +247 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.ts +446 -0
- package/src/lib/components/eye-test-audit/group-select/group-select.component.html +44 -0
- package/src/lib/components/eye-test-audit/group-select/group-select.component.scss +144 -0
- package/src/lib/components/eye-test-audit/group-select/group-select.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/group-select/group-select.component.ts +147 -0
- package/src/lib/components/eye-test-audit/reactive-select/reactive-select.component.html +18 -0
- package/src/lib/components/eye-test-audit/reactive-select/reactive-select.component.scss +49 -0
- package/src/lib/components/eye-test-audit/reactive-select/reactive-select.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/reactive-select/reactive-select.component.ts +104 -0
- package/src/lib/components/eye-test-audit/select-drop/select-drop.component.html +44 -0
- package/src/lib/components/eye-test-audit/select-drop/select-drop.component.scss +144 -0
- package/src/lib/components/eye-test-audit/select-drop/select-drop.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/select-drop/select-drop.component.ts +152 -0
- package/src/lib/components/eye-test-audit/services/eye-test-audit.service.spec.ts +16 -0
- package/src/lib/components/eye-test-audit/services/eye-test-audit.service.ts +190 -0
- package/src/lib/components/flag-layout/flag-layout.component.html +1 -0
- package/src/lib/components/flag-layout/flag-layout.component.scss +0 -0
- package/src/lib/components/flag-layout/flag-layout.component.spec.ts +23 -0
- package/src/lib/components/flag-layout/flag-layout.component.ts +10 -0
- package/src/lib/components/flags/flags.component.html +473 -0
- package/src/lib/components/flags/flags.component.scss +86 -0
- package/src/lib/components/flags/flags.component.spec.ts +23 -0
- package/src/lib/components/flags/flags.component.ts +280 -0
- package/{lib/components/flags/flags.interface.d.ts → src/lib/components/flags/flags.interface.ts} +73 -65
- package/src/lib/components/flags-info/flags-info.component.html +6012 -0
- package/src/lib/components/flags-info/flags-info.component.scss +278 -0
- package/src/lib/components/flags-info/flags-info.component.spec.ts +23 -0
- package/src/lib/components/flags-info/flags-info.component.ts +490 -0
- package/src/lib/components/flags-info/flags-info.interface.ts +441 -0
- package/src/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.html +1 -0
- package/src/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.scss +4 -0
- package/src/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.ts +78 -0
- package/src/lib/components/flags-new/flags-new.component.html +904 -0
- package/src/lib/components/flags-new/flags-new.component.scss +121 -0
- package/src/lib/components/flags-new/flags-new.component.spec.ts +23 -0
- package/src/lib/components/flags-new/flags-new.component.ts +357 -0
- package/{lib/components/flags-new/flags-new.interface.d.ts → src/lib/components/flags-new/flags-new.interface.ts} +90 -81
- package/src/lib/components/gallery/gallery.component.html +3660 -0
- package/src/lib/components/gallery/gallery.component.scss +930 -0
- package/src/lib/components/gallery/gallery.component.ts +3527 -0
- package/src/lib/components/group-select/group-select.component.html +44 -0
- package/src/lib/components/group-select/group-select.component.scss +144 -0
- package/src/lib/components/group-select/group-select.component.spec.ts +23 -0
- package/src/lib/components/group-select/group-select.component.ts +145 -0
- package/src/lib/components/image-popup/image-popup.component.html +11 -0
- package/src/lib/components/image-popup/image-popup.component.scss +5 -0
- package/src/lib/components/image-popup/image-popup.component.ts +18 -0
- package/src/lib/components/lib/custom-select/custom-select.component.html +42 -0
- package/src/lib/components/lib/custom-select/custom-select.component.scss +131 -0
- package/src/lib/components/lib/custom-select/custom-select.component.spec.ts +23 -0
- package/src/lib/components/lib/custom-select/custom-select.component.ts +151 -0
- package/src/lib/components/manage-task/manage-task.component.html +265 -0
- package/src/lib/components/manage-task/manage-task.component.scss +69 -0
- package/src/lib/components/manage-task/manage-task.component.spec.ts +23 -0
- package/src/lib/components/manage-task/manage-task.component.ts +267 -0
- package/src/lib/components/managechecklist/managechecklist.component.html +176 -0
- package/src/lib/components/managechecklist/managechecklist.component.scss +43 -0
- package/src/lib/components/managechecklist/managechecklist.component.spec.ts +23 -0
- package/src/lib/components/managechecklist/managechecklist.component.ts +176 -0
- package/src/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.html +46 -0
- package/src/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.scss +181 -0
- package/src/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.spec.ts +23 -0
- package/src/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.ts +221 -0
- package/src/lib/components/multi-date-datepicker/multi-date-datepicker.component.html +36 -0
- package/src/lib/components/multi-date-datepicker/multi-date-datepicker.component.scss +89 -0
- package/src/lib/components/multi-date-datepicker/multi-date-datepicker.component.spec.ts +23 -0
- package/src/lib/components/multi-date-datepicker/multi-date-datepicker.component.ts +118 -0
- package/src/lib/components/orders/orders.component.html +203 -0
- package/src/lib/components/orders/orders.component.scss +180 -0
- package/src/lib/components/orders/orders.component.spec.ts +25 -0
- package/src/lib/components/orders/orders.component.ts +197 -0
- package/src/lib/components/pagination/pagination.component.html +28 -0
- package/src/lib/components/pagination/pagination.component.scss +6 -0
- package/src/lib/components/pagination/pagination.component.spec.ts +23 -0
- package/src/lib/components/pagination/pagination.component.ts +54 -0
- package/src/lib/components/reactive-select/reactive-select.component.html +18 -0
- package/src/lib/components/reactive-select/reactive-select.component.scss +48 -0
- package/src/lib/components/reactive-select/reactive-select.component.spec.ts +23 -0
- package/src/lib/components/reactive-select/reactive-select.component.ts +104 -0
- package/src/lib/components/reports/date-picker/date-picker.component.html +54 -0
- package/src/lib/components/reports/date-picker/date-picker.component.scss +156 -0
- package/src/lib/components/reports/date-picker/date-picker.component.spec.ts +23 -0
- package/src/lib/components/reports/date-picker/date-picker.component.ts +60 -0
- package/src/lib/components/reports/reports.component.html +225 -0
- package/src/lib/components/reports/reports.component.scss +69 -0
- package/src/lib/components/reports/reports.component.spec.ts +23 -0
- package/src/lib/components/reports/reports.component.ts +334 -0
- package/{lib/components/reports/reports.interface.d.ts → src/lib/components/reports/reports.interface.ts} +50 -46
- package/src/lib/components/tango-analyse-trax/tango-analyse-trax.component.html +1 -0
- package/src/lib/components/tango-analyse-trax/tango-analyse-trax.component.scss +15 -0
- package/src/lib/components/tango-analyse-trax/tango-analyse-trax.component.spec.ts +23 -0
- package/src/lib/components/tango-analyse-trax/tango-analyse-trax.component.ts +31 -0
- package/src/lib/components/task/task.component.html +322 -0
- package/src/lib/components/task/task.component.scss +169 -0
- package/src/lib/components/task/task.component.spec.ts +23 -0
- package/src/lib/components/task/task.component.ts +340 -0
- package/src/lib/components/task-configure/task-configure.component.html +737 -0
- package/src/lib/components/task-configure/task-configure.component.scss +569 -0
- package/src/lib/components/task-configure/task-configure.component.spec.ts +23 -0
- package/src/lib/components/task-configure/task-configure.component.ts +1603 -0
- package/src/lib/components/task-configure/task-configure.interface.ts +138 -0
- package/src/lib/components/task-info/task-info.component.html +390 -0
- package/src/lib/components/task-info/task-info.component.scss +56 -0
- package/src/lib/components/task-info/task-info.component.spec.ts +23 -0
- package/src/lib/components/task-info/task-info.component.ts +400 -0
- package/src/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.html +141 -0
- package/src/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.scss +460 -0
- package/src/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.spec.ts +23 -0
- package/src/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.ts +202 -0
- package/src/lib/components/task-layout/task-layout.component.html +1 -0
- package/src/lib/components/task-layout/task-layout.component.scss +0 -0
- package/src/lib/components/task-layout/task-layout.component.spec.ts +23 -0
- package/src/lib/components/task-layout/task-layout.component.ts +10 -0
- package/src/lib/components/task-logs/task-logs.component.html +97 -0
- package/src/lib/components/task-logs/task-logs.component.scss +301 -0
- package/src/lib/components/task-logs/task-logs.component.spec.ts +23 -0
- package/src/lib/components/task-logs/task-logs.component.ts +80 -0
- package/src/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.html +84 -0
- package/src/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.scss +229 -0
- package/src/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.spec.ts +23 -0
- package/src/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.ts +111 -0
- package/src/lib/components/trax-store/trax-store.component.html +78 -0
- package/src/lib/components/trax-store/trax-store.component.scss +134 -0
- package/src/lib/components/trax-store/trax-store.component.spec.ts +23 -0
- package/src/lib/components/trax-store/trax-store.component.ts +172 -0
- package/src/lib/components/traxpopup/traxpopup.component.html +130 -0
- package/src/lib/components/traxpopup/traxpopup.component.scss +225 -0
- package/src/lib/components/traxpopup/traxpopup.component.spec.ts +23 -0
- package/src/lib/components/traxpopup/traxpopup.component.ts +71 -0
- package/src/lib/services/trax.service.spec.ts +16 -0
- package/src/lib/services/trax.service.ts +789 -0
- package/src/lib/tango-analyse-trax-routing.module.ts +151 -0
- package/src/lib/tango-analyse-trax.module.ts +140 -0
- package/{public-api.d.ts → src/public-api.ts} +6 -2
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/lib/components/action-centre/action-centre.component.mjs +0 -288
- package/esm2022/lib/components/activity-log/activity-log.component.mjs +0 -150
- package/esm2022/lib/components/activity-log-v2/activity-log-v2.component.mjs +0 -502
- package/esm2022/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.mjs +0 -114
- package/esm2022/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.mjs +0 -24
- package/esm2022/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.mjs +0 -126
- package/esm2022/lib/components/add-checklist/add-checklist.component.mjs +0 -2352
- package/esm2022/lib/components/add-checklist/checklist-popup/checklist-popup.component.mjs +0 -612
- package/esm2022/lib/components/add-checklist/counter/counter.component.mjs +0 -138
- package/esm2022/lib/components/add-multitask/add-multitask.component.mjs +0 -604
- package/esm2022/lib/components/add-multitask/ascending-validator.mjs +0 -11
- package/esm2022/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.mjs +0 -297
- package/esm2022/lib/components/add-multitask/create-task.data.mjs +0 -372
- package/esm2022/lib/components/add-multitask/create-task.interface.mjs +0 -2
- package/esm2022/lib/components/add-multitask/unique-string-validator.mjs +0 -10
- package/esm2022/lib/components/add-multitask/whitespace-validator.mjs +0 -10
- package/esm2022/lib/components/add-task/add-task.component.mjs +0 -561
- package/esm2022/lib/components/add-task/ascending-validator.mjs +0 -11
- package/esm2022/lib/components/add-task/create-task.data.mjs +0 -372
- package/esm2022/lib/components/add-task/create-task.interface.mjs +0 -2
- package/esm2022/lib/components/add-task/unique-string-validator.mjs +0 -10
- package/esm2022/lib/components/add-task/whitespace-validator.mjs +0 -10
- package/esm2022/lib/components/approval-popup/approval-popup.component.mjs +0 -30
- package/esm2022/lib/components/checklist/checklist.component.mjs +0 -327
- package/esm2022/lib/components/checklist-configure/assign/assign.component.mjs +0 -912
- package/esm2022/lib/components/checklist-configure/checklist-configure.component.mjs +0 -4161
- package/esm2022/lib/components/checklistlayout/checklistlayout.component.mjs +0 -44
- package/esm2022/lib/components/chip-dropdown/chip-dropdown.component.mjs +0 -120
- package/esm2022/lib/components/create-task/create-task.component.mjs +0 -585
- package/esm2022/lib/components/create-task/create-task.data.mjs +0 -372
- package/esm2022/lib/components/create-task/create-task.interface.mjs +0 -2
- package/esm2022/lib/components/create-task/validators/ascending-validator.mjs +0 -11
- package/esm2022/lib/components/create-task/validators/unique-string-validator.mjs +0 -10
- package/esm2022/lib/components/create-task/validators/whitespace-validator.mjs +0 -10
- package/esm2022/lib/components/custom-select/custom-select.component.mjs +0 -240
- package/esm2022/lib/components/dashboard/dashboard.component.mjs +0 -532
- package/esm2022/lib/components/dashboard-info/dashboard-info.component.mjs +0 -741
- package/esm2022/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.mjs +0 -155
- package/esm2022/lib/components/dashboard-layout/dashboard-layout.component.mjs +0 -12
- package/esm2022/lib/components/disabled-select/disabled-select.component.mjs +0 -158
- package/esm2022/lib/components/export-gallery/export-gallery.component.mjs +0 -266
- package/esm2022/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.mjs +0 -105
- package/esm2022/lib/components/eye-test-audit/custom-select/custom-select.component.mjs +0 -240
- package/esm2022/lib/components/eye-test-audit/eye-test/eye-test.component.mjs +0 -1733
- package/esm2022/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.mjs +0 -24
- package/esm2022/lib/components/eye-test-audit/eye-test-audit/eye-test-audit-routing.module.mjs +0 -34
- package/esm2022/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.mjs +0 -27
- package/esm2022/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.module.mjs +0 -71
- package/esm2022/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.mjs +0 -823
- package/esm2022/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.mjs +0 -412
- package/esm2022/lib/components/eye-test-audit/group-select/group-select.component.mjs +0 -157
- package/esm2022/lib/components/eye-test-audit/reactive-select/reactive-select.component.mjs +0 -105
- package/esm2022/lib/components/eye-test-audit/select-drop/select-drop.component.mjs +0 -162
- package/esm2022/lib/components/eye-test-audit/services/eye-test-audit.service.mjs +0 -166
- package/esm2022/lib/components/flag-layout/flag-layout.component.mjs +0 -12
- package/esm2022/lib/components/flags/flags.component.mjs +0 -263
- package/esm2022/lib/components/flags/flags.interface.mjs +0 -2
- package/esm2022/lib/components/flags-info/flags-info.component.mjs +0 -452
- package/esm2022/lib/components/flags-info/flags-info.interface.mjs +0 -2
- package/esm2022/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.mjs +0 -71
- package/esm2022/lib/components/flags-new/flags-new.component.mjs +0 -335
- package/esm2022/lib/components/flags-new/flags-new.interface.mjs +0 -2
- package/esm2022/lib/components/gallery/gallery.component.mjs +0 -3402
- package/esm2022/lib/components/group-select/group-select.component.mjs +0 -155
- package/esm2022/lib/components/image-popup/image-popup.component.mjs +0 -25
- package/esm2022/lib/components/lib/custom-select/custom-select.component.mjs +0 -158
- package/esm2022/lib/components/manage-task/manage-task.component.mjs +0 -264
- package/esm2022/lib/components/managechecklist/managechecklist.component.mjs +0 -186
- package/esm2022/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.mjs +0 -229
- package/esm2022/lib/components/multi-date-datepicker/multi-date-datepicker.component.mjs +0 -124
- package/esm2022/lib/components/orders/orders.component.mjs +0 -171
- package/esm2022/lib/components/pagination/pagination.component.mjs +0 -62
- package/esm2022/lib/components/reactive-select/reactive-select.component.mjs +0 -108
- package/esm2022/lib/components/reports/date-picker/date-picker.component.mjs +0 -60
- package/esm2022/lib/components/reports/reports.component.mjs +0 -300
- package/esm2022/lib/components/reports/reports.interface.mjs +0 -2
- package/esm2022/lib/components/tango-analyse-trax/tango-analyse-trax.component.mjs +0 -32
- package/esm2022/lib/components/task/task.component.mjs +0 -341
- package/esm2022/lib/components/task-configure/task-configure.component.mjs +0 -1532
- package/esm2022/lib/components/task-configure/task-configure.interface.mjs +0 -2
- package/esm2022/lib/components/task-info/task-info.component.mjs +0 -375
- package/esm2022/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.mjs +0 -208
- package/esm2022/lib/components/task-layout/task-layout.component.mjs +0 -12
- package/esm2022/lib/components/task-logs/task-logs.component.mjs +0 -104
- package/esm2022/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.mjs +0 -107
- package/esm2022/lib/components/trax-store/trax-store.component.mjs +0 -179
- package/esm2022/lib/components/traxpopup/traxpopup.component.mjs +0 -70
- package/esm2022/lib/services/trax.service.mjs +0 -559
- package/esm2022/lib/tango-analyse-trax-routing.module.mjs +0 -153
- package/esm2022/lib/tango-analyse-trax.module.mjs +0 -221
- package/esm2022/public-api.mjs +0 -6
- package/esm2022/tango-app-ui-analyse-trax.mjs +0 -5
- package/fesm2022/tango-app-ui-analyse-trax.mjs +0 -28896
- package/fesm2022/tango-app-ui-analyse-trax.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/action-centre/action-centre.component.d.ts +0 -68
- package/lib/components/activity-log/activity-log.component.d.ts +0 -39
- package/lib/components/activity-log-v2/activity-log-v2.component.d.ts +0 -78
- package/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.d.ts +0 -24
- package/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.d.ts +0 -9
- package/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.d.ts +0 -34
- package/lib/components/add-checklist/add-checklist.component.d.ts +0 -121
- package/lib/components/add-checklist/checklist-popup/checklist-popup.component.d.ts +0 -45
- package/lib/components/add-checklist/counter/counter.component.d.ts +0 -29
- package/lib/components/add-multitask/add-multitask.component.d.ts +0 -102
- package/lib/components/add-multitask/ascending-validator.d.ts +0 -2
- package/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.d.ts +0 -45
- package/lib/components/add-multitask/create-task.data.d.ts +0 -293
- package/lib/components/add-multitask/create-task.interface.d.ts +0 -159
- package/lib/components/add-multitask/unique-string-validator.d.ts +0 -2
- package/lib/components/add-multitask/whitespace-validator.d.ts +0 -2
- package/lib/components/add-task/add-task.component.d.ts +0 -89
- package/lib/components/add-task/ascending-validator.d.ts +0 -2
- package/lib/components/add-task/create-task.data.d.ts +0 -293
- package/lib/components/add-task/create-task.interface.d.ts +0 -161
- package/lib/components/add-task/unique-string-validator.d.ts +0 -2
- package/lib/components/add-task/whitespace-validator.d.ts +0 -2
- package/lib/components/approval-popup/approval-popup.component.d.ts +0 -14
- package/lib/components/checklist/checklist.component.d.ts +0 -40
- package/lib/components/checklist-configure/assign/assign.component.d.ts +0 -105
- package/lib/components/checklist-configure/checklist-configure.component.d.ts +0 -325
- package/lib/components/checklistlayout/checklistlayout.component.d.ts +0 -15
- package/lib/components/chip-dropdown/chip-dropdown.component.d.ts +0 -28
- package/lib/components/create-task/create-task.component.d.ts +0 -76
- package/lib/components/create-task/create-task.data.d.ts +0 -293
- package/lib/components/create-task/create-task.interface.d.ts +0 -163
- package/lib/components/create-task/validators/ascending-validator.d.ts +0 -2
- package/lib/components/create-task/validators/unique-string-validator.d.ts +0 -2
- package/lib/components/create-task/validators/whitespace-validator.d.ts +0 -2
- package/lib/components/custom-select/custom-select.component.d.ts +0 -35
- package/lib/components/dashboard/dashboard.component.d.ts +0 -80
- package/lib/components/dashboard-info/dashboard-info.component.d.ts +0 -117
- package/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.d.ts +0 -41
- package/lib/components/dashboard-layout/dashboard-layout.component.d.ts +0 -5
- package/lib/components/disabled-select/disabled-select.component.d.ts +0 -34
- package/lib/components/export-gallery/export-gallery.component.d.ts +0 -44
- package/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.d.ts +0 -26
- package/lib/components/eye-test-audit/custom-select/custom-select.component.d.ts +0 -35
- package/lib/components/eye-test-audit/eye-test/eye-test.component.d.ts +0 -218
- package/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.d.ts +0 -12
- package/lib/components/eye-test-audit/eye-test-audit/eye-test-audit-routing.module.d.ts +0 -7
- package/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.d.ts +0 -11
- package/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.module.d.ts +0 -21
- package/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.d.ts +0 -129
- package/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.d.ts +0 -86
- package/lib/components/eye-test-audit/group-select/group-select.component.d.ts +0 -33
- package/lib/components/eye-test-audit/reactive-select/reactive-select.component.d.ts +0 -32
- package/lib/components/eye-test-audit/select-drop/select-drop.component.d.ts +0 -33
- package/lib/components/eye-test-audit/services/eye-test-audit.service.d.ts +0 -47
- package/lib/components/flag-layout/flag-layout.component.d.ts +0 -5
- package/lib/components/flags/flags.component.d.ts +0 -52
- package/lib/components/flags-info/flags-info.component.d.ts +0 -73
- package/lib/components/flags-info/flags-info.interface.d.ts +0 -430
- package/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.d.ts +0 -13
- package/lib/components/flags-new/flags-new.component.d.ts +0 -60
- package/lib/components/gallery/gallery.component.d.ts +0 -261
- package/lib/components/group-select/group-select.component.d.ts +0 -33
- package/lib/components/image-popup/image-popup.component.d.ts +0 -11
- package/lib/components/lib/custom-select/custom-select.component.d.ts +0 -33
- package/lib/components/manage-task/manage-task.component.d.ts +0 -47
- package/lib/components/managechecklist/managechecklist.component.d.ts +0 -33
- package/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.d.ts +0 -40
- package/lib/components/multi-date-datepicker/multi-date-datepicker.component.d.ts +0 -27
- package/lib/components/orders/orders.component.d.ts +0 -38
- package/lib/components/pagination/pagination.component.d.ts +0 -16
- package/lib/components/reactive-select/reactive-select.component.d.ts +0 -32
- package/lib/components/reports/date-picker/date-picker.component.d.ts +0 -23
- package/lib/components/reports/reports.component.d.ts +0 -55
- package/lib/components/tango-analyse-trax/tango-analyse-trax.component.d.ts +0 -14
- package/lib/components/task/task.component.d.ts +0 -70
- package/lib/components/task-configure/task-configure.component.d.ts +0 -142
- package/lib/components/task-configure/task-configure.interface.d.ts +0 -128
- package/lib/components/task-info/task-info.component.d.ts +0 -76
- package/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.d.ts +0 -61
- package/lib/components/task-layout/task-layout.component.d.ts +0 -5
- package/lib/components/task-logs/task-logs.component.d.ts +0 -27
- package/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.d.ts +0 -26
- package/lib/components/trax-store/trax-store.component.d.ts +0 -45
- package/lib/components/traxpopup/traxpopup.component.d.ts +0 -24
- package/lib/services/trax.service.d.ts +0 -175
- package/lib/tango-analyse-trax-routing.module.d.ts +0 -7
- package/lib/tango-analyse-trax.module.d.ts +0 -68
|
@@ -0,0 +1,789 @@
|
|
|
1
|
+
import { HttpClient, HttpErrorResponse, HttpParams } from '@angular/common/http';
|
|
2
|
+
import { Injectable, OnDestroy, } from '@angular/core';
|
|
3
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
4
|
+
import { BehaviorSubject, Observable, Subject, takeUntil, catchError, map, throwError, of } from 'rxjs';
|
|
5
|
+
import * as FileSaver from 'file-saver';
|
|
6
|
+
import * as XLSX from 'xlsx';
|
|
7
|
+
|
|
8
|
+
const EXCEL_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8';
|
|
9
|
+
const EXCEL_EXTENSION = '.xlsx';
|
|
10
|
+
const CSV_TYPE = 'text/csv;charset=utf-8';
|
|
11
|
+
const CSV_EXTENSION = '.csv';
|
|
12
|
+
|
|
13
|
+
@Injectable({
|
|
14
|
+
providedIn: "root",
|
|
15
|
+
})
|
|
16
|
+
export class TraxService implements OnDestroy {
|
|
17
|
+
traxUrl: any;
|
|
18
|
+
storeUrl: any;
|
|
19
|
+
galleryApiUrl: any;
|
|
20
|
+
activitylogUrl: any;
|
|
21
|
+
dropDownTrigger = new BehaviorSubject<any>(null);
|
|
22
|
+
|
|
23
|
+
private reloadDataSubject = new BehaviorSubject<boolean>(false);
|
|
24
|
+
reloadData$ = this.reloadDataSubject.asObservable();
|
|
25
|
+
|
|
26
|
+
// openedDropdowns:string[] = []
|
|
27
|
+
dropdownCloseTrigger = new BehaviorSubject<string>("");
|
|
28
|
+
clientAPiUrl: any;
|
|
29
|
+
trafficApiUrl: any;
|
|
30
|
+
traxTaskUrl: string;
|
|
31
|
+
|
|
32
|
+
constructor(
|
|
33
|
+
private http: HttpClient,
|
|
34
|
+
private gs: GlobalStateService,
|
|
35
|
+
) {
|
|
36
|
+
this.gs.environment.pipe(takeUntil(this.destroy$)).subscribe((env) => {
|
|
37
|
+
if (env) {
|
|
38
|
+
this.traxUrl = env.traxUrl;
|
|
39
|
+
this.storeUrl = env.storeApiUrl;
|
|
40
|
+
this.galleryApiUrl = env.galleryApiUrl;
|
|
41
|
+
this.clientAPiUrl = env.clientApiUrl;
|
|
42
|
+
this.trafficApiUrl = env.trafficApiUrl;
|
|
43
|
+
this.traxTaskUrl = env.traxTaskUrl;
|
|
44
|
+
this.activitylogUrl = env.activitylogUrl;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
triggerReload() {
|
|
50
|
+
this.reloadDataSubject.next(true);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public exportAsExcelFile(json: any[], excelFileName: string): void {
|
|
54
|
+
const worksheet: XLSX.WorkSheet = XLSX.utils.json_to_sheet(json);
|
|
55
|
+
const workbook: XLSX.WorkBook = {
|
|
56
|
+
Sheets: { data: worksheet },
|
|
57
|
+
SheetNames: ["data"],
|
|
58
|
+
};
|
|
59
|
+
const excelBuffer: any = XLSX.write(workbook, {
|
|
60
|
+
bookType: "xlsx",
|
|
61
|
+
type: "array",
|
|
62
|
+
});
|
|
63
|
+
this.saveAsExcelFile(excelBuffer, excelFileName);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public saveAsExcelFile(buffer: any, fileName: string): void {
|
|
67
|
+
const data: Blob = new Blob([buffer], {
|
|
68
|
+
type: EXCEL_TYPE,
|
|
69
|
+
});
|
|
70
|
+
FileSaver.saveAs(data, fileName + "list" + EXCEL_EXTENSION);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
public saveAsTemplate(buffer: any, fileName: string): void {
|
|
74
|
+
const data: Blob = new Blob([buffer], {
|
|
75
|
+
type: EXCEL_TYPE,
|
|
76
|
+
});
|
|
77
|
+
FileSaver.saveAs(data, fileName + EXCEL_EXTENSION);
|
|
78
|
+
}
|
|
79
|
+
private readonly destroy$ = new Subject();
|
|
80
|
+
|
|
81
|
+
ngOnDestroy(): void {
|
|
82
|
+
this.destroy$.next(true);
|
|
83
|
+
this.destroy$.complete();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
getSummaryTableData(data: any): Observable<any> {
|
|
87
|
+
return this.http.post(`${this.traxUrl}/zoneSummaryTable_v2`, data);
|
|
88
|
+
}
|
|
89
|
+
getchecklist(data: any): Observable<any> {
|
|
90
|
+
return this.http.post(`${this.galleryApiUrl}/getchecklist`, data);
|
|
91
|
+
}
|
|
92
|
+
getTaskList(data: any): Observable<any> {
|
|
93
|
+
return this.http.post(`${this.traxTaskUrl}/taskDropdown`, data);
|
|
94
|
+
}
|
|
95
|
+
getQuestions(data: any): Observable<any> {
|
|
96
|
+
return this.http.post(`${this.traxTaskUrl}/getQuestions`, data);
|
|
97
|
+
}
|
|
98
|
+
approvechecklist(data: any): Observable<any> {
|
|
99
|
+
return this.http.post(`${this.galleryApiUrl}/updateApprove`, data);
|
|
100
|
+
}
|
|
101
|
+
approvetask(data: any): Observable<any> {
|
|
102
|
+
return this.http.post(`${this.traxTaskUrl}/updateApprove`, data);
|
|
103
|
+
}
|
|
104
|
+
getAnswers(data: any): Observable<any> {
|
|
105
|
+
return this.http.post(`${this.traxTaskUrl}/getAnswers`, data);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
getAnswercount(data: any): Observable<any> {
|
|
109
|
+
return this.http.post(`${this.traxTaskUrl}/getAnswerCount`, data);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
getMobUsagelist(data: any): Observable<any> {
|
|
113
|
+
return this.http.post(`${this.galleryApiUrl}/getMobileUseagelist`, data);
|
|
114
|
+
}
|
|
115
|
+
getcustomerunattendedlist(data: any): Observable<any> {
|
|
116
|
+
return this.http.post(
|
|
117
|
+
`${this.galleryApiUrl}/getcustomerunattendedlist`,
|
|
118
|
+
data,
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
storeOpencloselist(data: any): Observable<any> {
|
|
123
|
+
return this.http.post(
|
|
124
|
+
`${this.galleryApiUrl}/getcustomerunattendedlist`,
|
|
125
|
+
data,
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
queuealertlist(data: any): Observable<any> {
|
|
129
|
+
return this.http.post(
|
|
130
|
+
`${this.galleryApiUrl}/getcustomerunattendedlist`,
|
|
131
|
+
data,
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
getSummaryTableExport(data: any): Observable<any> {
|
|
136
|
+
return this.http.post(`${this.traxUrl}/zoneSummaryTable_v2`, data, {
|
|
137
|
+
responseType: "arraybuffer",
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
checklist(obj: any) {
|
|
142
|
+
return this.http.get(
|
|
143
|
+
`${this.traxUrl}/checklist?limit=${obj.limit}&offset=${obj.offset}&sortColumnName=${obj.sortColumn}&search=${obj.search}&sortBy=${obj.sortBy}&clientId=${obj.clientId}`,
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
checklistv2(obj: any) {
|
|
148
|
+
return this.http.get(
|
|
149
|
+
`${this.traxUrl}/checklistV2?limit=${obj.limit}&offset=${obj.offset}&sortColumnName=${obj.sortColumn}&search=${obj.search}&sortBy=${obj.sortBy}&clientId=${obj.clientId}`,
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
imageupload(users: any) {
|
|
154
|
+
return this.http.post(`${this.traxUrl}/upload`, users);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
taskImageupload(users: any) {
|
|
158
|
+
return this.http.post(`${this.traxTaskUrl}/uploadImage`, users);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
validateUser(users: any) {
|
|
162
|
+
return this.http.post(`${this.traxUrl}/validateUser`, users);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
taskvalidateUserData(users: any) {
|
|
166
|
+
return this.http.post(`${this.galleryApiUrl}/taskvalidateUserData`, users);
|
|
167
|
+
}
|
|
168
|
+
getallchecklist(users: any) {
|
|
169
|
+
return this.http.post(`${this.galleryApiUrl}/getallchecklist`, users);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
assignUpload(users: any) {
|
|
173
|
+
return this.http.post(`${this.traxUrl}/assignUpload`, users);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
validateUserv1(users: any) {
|
|
177
|
+
return this.http.post(`${this.traxUrl}/validateUserv1`, users);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
taskvalidateUserv1(users: any) {
|
|
181
|
+
return this.http.post(`${this.traxTaskUrl}/upload`, users);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
taskassignUpload(users: any) {
|
|
185
|
+
return this.http.post(`${this.traxTaskUrl}/assignUpload`, users);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
getUpdateChecklist(id: any, data: any) {
|
|
189
|
+
return this.http.put(`${this.traxUrl}/checklist/update/${id}`, data);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
createChecklist(data: any) {
|
|
193
|
+
return this.http.post(`${this.traxUrl}/checklist/create`, data);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
configUpdate(obj: any) {
|
|
197
|
+
return this.http.post(`${this.traxUrl}/checklistConfigurev1`, obj);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
assignUpdate(data: any) {
|
|
201
|
+
return this.http.post(`${this.traxUrl}/updateAssign`, data);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
assigntaskUpdate(data: any) {
|
|
205
|
+
return this.http.post(`${this.traxTaskUrl}/updateAssign`, data);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
updateAiConfigure(data: any) {
|
|
209
|
+
return this.http.post(`${this.traxUrl}/updateAiConfigure`, data);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
getconfig(obj: any) {
|
|
213
|
+
let key = Object.keys(obj)[0];
|
|
214
|
+
let value = obj[Object.keys(obj)[0]];
|
|
215
|
+
return this.http.get(
|
|
216
|
+
`${this.traxUrl}/getConfigDetails?${key}=${value}&clientId=${obj[Object.keys(obj)[1]]}`,
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
getAIconfig(obj: any) {
|
|
221
|
+
let key = Object.keys(obj)[0];
|
|
222
|
+
let value = obj[Object.keys(obj)[0]];
|
|
223
|
+
return this.http.get(
|
|
224
|
+
`${this.traxUrl}/getAiDetails?${key}=${value}&clientId=${obj[Object.keys(obj)[1]]}`,
|
|
225
|
+
);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
runAIInsert(data: any) {
|
|
229
|
+
return this.http.post(`${this.traxUrl}/runAIInsert`, data);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
duplicatechecklist(data: any) {
|
|
233
|
+
return this.http.get(
|
|
234
|
+
`${this.traxUrl}/duplicateChecklist/${data.checklistId}?clientId=${data.clientId}`,
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
getUserDetails(obj: any) {
|
|
239
|
+
return this.http.get(
|
|
240
|
+
`${this.traxUrl}/userDetails/${obj.id}?offset=${obj.offset}&limit=${obj.limit}&search=${obj.search}&clientId=${obj.clientId}`,
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
getStoreList(data: any) {
|
|
245
|
+
return this.http.post(`${this.storeUrl}/storeInfraList`, data);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
deleteChecklist(data: any) {
|
|
249
|
+
return this.http.delete(
|
|
250
|
+
`${this.traxUrl}/deleteChecklist/${data.id}?clientId=${data.clientId}`,
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
publish(data: any) {
|
|
255
|
+
return this.http.put(`${this.traxUrl}/publish`, data);
|
|
256
|
+
}
|
|
257
|
+
getStores(data: any): Observable<any> {
|
|
258
|
+
return this.http.post<any>(`${this.galleryApiUrl}/get-stores`, data);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
getChecklists(data: any): Observable<any> {
|
|
262
|
+
return this.http.post<any>(`${this.galleryApiUrl}/checklistDropdown`, data);
|
|
263
|
+
}
|
|
264
|
+
viewChecklists(data: any): Observable<any> {
|
|
265
|
+
return this.http.post<any>(`${this.galleryApiUrl}/viewchecklist`, data);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
overallFlagMetrics(body: any): Observable<any> {
|
|
269
|
+
return this.http.post<any>(`${this.traxUrl}/flag/flagCardsV1`, body);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
overallFlagMetricsComparison(body: any): Observable<any> {
|
|
273
|
+
return this.http.post<any>(
|
|
274
|
+
`${this.traxUrl}/flag/flagComparisonCardsV2`,
|
|
275
|
+
body,
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
flagsTable(body: any): Observable<any> {
|
|
280
|
+
return this.http.post<any>(`${this.traxUrl}/flag/flagTablesV1`, body);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
flagsTableV2(body: any): Observable<any> {
|
|
284
|
+
return this.http.post<any>(`${this.traxUrl}/flag/flagTablesV2`, body);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
exportFlagsTable(body: any): Observable<any> {
|
|
288
|
+
return this.http.post(`${this.traxUrl}/flag/flagTablesV1`, body, {
|
|
289
|
+
responseType: "arraybuffer",
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
exportFlagsTablev2(body: any): Observable<any> {
|
|
294
|
+
return this.http.post(`${this.traxUrl}/flag/flagTablesV2`, body, {
|
|
295
|
+
responseType: "arraybuffer",
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
getOverallCardsData(data: any): Observable<any> {
|
|
300
|
+
return this.http.post(`${this.traxUrl}/dashboard/overallCardsV1`, data);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
getChecklistPerformanceData(data: any): Observable<any> {
|
|
304
|
+
return this.http.post(
|
|
305
|
+
`${this.traxUrl}/dashboard/checklistPerformance`,
|
|
306
|
+
data,
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
getChecklistPerformanceDatav2(data: any): Observable<any> {
|
|
311
|
+
return this.http.post(
|
|
312
|
+
`${this.traxUrl}/dashboard/checklistPerformanceV2`,
|
|
313
|
+
data,
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
getChecklistPerformanceDataExport(data: any): Observable<any> {
|
|
318
|
+
return this.http.post(
|
|
319
|
+
`${this.traxUrl}/dashboard/checklistPerformance`,
|
|
320
|
+
data,
|
|
321
|
+
{ responseType: "arraybuffer" },
|
|
322
|
+
);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
getChecklistPerformanceDataExportv2(data: any): Observable<any> {
|
|
326
|
+
return this.http.post(
|
|
327
|
+
`${this.traxUrl}/dashboard/checklistPerformanceV2`,
|
|
328
|
+
data,
|
|
329
|
+
{ responseType: "arraybuffer" },
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
getStorePerformanceData(data: any): Observable<any> {
|
|
334
|
+
return this.http.post(`${this.traxUrl}/dashboard/storePerformance`, data);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
getStorePerformanceDatav2(data: any): Observable<any> {
|
|
338
|
+
return this.http.post(
|
|
339
|
+
`${this.traxUrl}/dashboard/checklistPerformanceV2`,
|
|
340
|
+
data,
|
|
341
|
+
);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
getStorePerformanceDataExport(data: any): Observable<any> {
|
|
345
|
+
return this.http.post(`${this.traxUrl}/dashboard/storePerformance`, data, {
|
|
346
|
+
responseType: "arraybuffer",
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
getUserPerformanceData(data: any): Observable<any> {
|
|
351
|
+
return this.http.post(`${this.traxUrl}/dashboard/userPerformance`, data);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
getUserPerformanceDataExport(data: any): Observable<any> {
|
|
355
|
+
return this.http.post(`${this.traxUrl}/dashboard/userPerformance`, data, {
|
|
356
|
+
responseType: "arraybuffer",
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
getChecklistDropdownData(data: any): Observable<any> {
|
|
361
|
+
return this.http.post(`${this.traxUrl}/flag/flagChecklistDropDownV1`, data);
|
|
362
|
+
}
|
|
363
|
+
getChecklistDropdownDashboardData(data: any): Observable<any> {
|
|
364
|
+
return this.http.post(`${this.traxUrl}/dashboard/checklistDropdown`, data);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
getInfoCardsData(data: any): Observable<any> {
|
|
368
|
+
return this.http.post(`${this.traxUrl}/dashboard/infoCardsV1`, data);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
checklistFlagTable(body: any): Observable<any> {
|
|
372
|
+
return this.http.post<any>(
|
|
373
|
+
`${this.traxUrl}/flag/flagChecklistTableV1`,
|
|
374
|
+
body,
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
CreatechecklistTask(body: any): Observable<any> {
|
|
379
|
+
return this.http.post<any>(`${this.traxTaskUrl}/checklistTask`, body);
|
|
380
|
+
}
|
|
381
|
+
CreatechecklistMultiTask(body: any): Observable<any> {
|
|
382
|
+
return this.http.post<any>(`${this.traxTaskUrl}/checklistMultiTask`, body);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
redoTaskchecklist(body: any): Observable<any> {
|
|
386
|
+
return this.http.post<any>(`${this.galleryApiUrl}/redo`, body);
|
|
387
|
+
}
|
|
388
|
+
redoTaskmultichecklist(body: any): Observable<any> {
|
|
389
|
+
return this.http.post<any>(`${this.galleryApiUrl}/multiredo`, body);
|
|
390
|
+
}
|
|
391
|
+
redomultiTask(body: any): Observable<any> {
|
|
392
|
+
return this.http.post<any>(`${this.traxTaskUrl}/multiredo`, body);
|
|
393
|
+
}
|
|
394
|
+
redoTask(body: any): Observable<any> {
|
|
395
|
+
return this.http.post<any>(`${this.traxTaskUrl}/redo`, body);
|
|
396
|
+
}
|
|
397
|
+
getredoLogs(body: any): Observable<any> {
|
|
398
|
+
return this.http.post<any>(`${this.galleryApiUrl}/getLogs`, body);
|
|
399
|
+
}
|
|
400
|
+
exportChecklistFlagTable(body: any): Observable<any> {
|
|
401
|
+
return this.http.post(`${this.traxUrl}/flag/flagChecklistTableV1`, body, {
|
|
402
|
+
responseType: "arraybuffer",
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
reportTable(body: any): Observable<any> {
|
|
407
|
+
return this.http.post<any>(
|
|
408
|
+
`${this.traxUrl}/dashboard/reportChecklistDatav1`,
|
|
409
|
+
body,
|
|
410
|
+
);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
flagCardValues(body: any) {
|
|
414
|
+
return this.http.post<any>(
|
|
415
|
+
`${this.traxUrl}/flag/flagChecklistCardsV1`,
|
|
416
|
+
body,
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
flagCardTerend(body: any) {
|
|
421
|
+
return this.http.post<any>(
|
|
422
|
+
`${this.traxUrl}/flag/flagChecklistComparisonCardsV1`,
|
|
423
|
+
body,
|
|
424
|
+
);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
getChecklistInfoData(data: any): Observable<any> {
|
|
428
|
+
return this.http.post(`${this.traxUrl}/dashboard/checklistInfo`, data);
|
|
429
|
+
}
|
|
430
|
+
getChecklistInfoDataExport(data: any): Observable<any> {
|
|
431
|
+
return this.http.post(`${this.traxUrl}/dashboard/checklistInfo`, data, {
|
|
432
|
+
responseType: "arraybuffer",
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
getUserlistDropdownData(data: any): Observable<any> {
|
|
437
|
+
return this.http.post(`${this.traxUrl}/dashboard/userlistDropdown`, data);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
getMonthlyPeformanceData(data: any): Observable<any> {
|
|
441
|
+
return this.http.post(`${this.traxUrl}/dashboard/monthlyGraphV1`, data);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
getClientUser(clientId: any): Observable<any> {
|
|
445
|
+
return this.http.get(`${this.traxUrl}/userList?clientId=${clientId}`);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
getTeamList(clientId: any): Observable<any> {
|
|
449
|
+
return this.http.get(`${this.traxUrl}/getTeamList?clientId=${clientId}`);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
getZoneList(params: { clientId: any; checkListName: any }): Observable<any> {
|
|
453
|
+
let queryString = "";
|
|
454
|
+
if (params.clientId) queryString = `?clientId=${params.clientId}`;
|
|
455
|
+
if (params.checkListName)
|
|
456
|
+
queryString = queryString + `&checkListName=${params.checkListName}`;
|
|
457
|
+
return this.http.get(`${this.traxUrl}/zoneList${queryString}`);
|
|
458
|
+
}
|
|
459
|
+
getInfoComparisonCardsData(data: any): Observable<any> {
|
|
460
|
+
return this.http.post(
|
|
461
|
+
`${this.traxUrl}/dashboard/infoComparisonCardsV1`,
|
|
462
|
+
data,
|
|
463
|
+
);
|
|
464
|
+
}
|
|
465
|
+
getOverallComparisonCardsData(data: any): Observable<any> {
|
|
466
|
+
return this.http.post(
|
|
467
|
+
`${this.traxUrl}/dashboard/overallComparisonCardsV1`,
|
|
468
|
+
data,
|
|
469
|
+
);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
getaichecklist(data: any) {
|
|
473
|
+
return this.http.get(`${this.traxUrl}/aichecklist?clientId=${data}`);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
reportTableExport(body: any): Observable<any> {
|
|
477
|
+
return this.http.post<any>(
|
|
478
|
+
`${this.traxUrl}/downloads/downloadInsert`,
|
|
479
|
+
body,
|
|
480
|
+
);
|
|
481
|
+
}
|
|
482
|
+
aichecklistExport(body: any): Observable<any> {
|
|
483
|
+
return this.http.post<any>(
|
|
484
|
+
`${this.traxUrl}/downloads/downloadInsertAI`,
|
|
485
|
+
body,
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
getpredefinedchecklist(data: any) {
|
|
489
|
+
return this.http.get(
|
|
490
|
+
`${this.traxUrl}/predefinedChecklist?clientId=${data}`,
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
getclient(data: any) {
|
|
494
|
+
return this.http.get(
|
|
495
|
+
`${this.clientAPiUrl}/detailed-client-count?clientId=${data.clientId}`,
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
getGroups(data: any) {
|
|
499
|
+
return this.http.post(`${this.trafficApiUrl}/headerGroups_v1`, data);
|
|
500
|
+
}
|
|
501
|
+
getclusters(data: any) {
|
|
502
|
+
return this.http.post(`${this.galleryApiUrl}/headercluster_v2`, data);
|
|
503
|
+
}
|
|
504
|
+
getusers(data: any) {
|
|
505
|
+
return this.http.post(`${this.galleryApiUrl}/userList`, data);
|
|
506
|
+
}
|
|
507
|
+
getAllTeams(clientId: any) {
|
|
508
|
+
return this.http.get(
|
|
509
|
+
`${this.galleryApiUrl}/teamsList?clientId=${clientId}`,
|
|
510
|
+
);
|
|
511
|
+
}
|
|
512
|
+
getStoreslist(data: any) {
|
|
513
|
+
return this.http.post(`${this.galleryApiUrl}/headerStores_v2`, data);
|
|
514
|
+
}
|
|
515
|
+
approvalstatuschecklist(data: any) {
|
|
516
|
+
return this.http.post(`${this.galleryApiUrl}/approvalstatus`, data);
|
|
517
|
+
}
|
|
518
|
+
approvalstatustask(data: any) {
|
|
519
|
+
return this.http.post(`${this.traxTaskUrl}/approvalstatus`, data);
|
|
520
|
+
}
|
|
521
|
+
Allapprovalstatuschecklist(data: any) {
|
|
522
|
+
return this.http.post(`${this.galleryApiUrl}/allapprovalstatus`, data);
|
|
523
|
+
}
|
|
524
|
+
Allapprovalstatustask(data: any) {
|
|
525
|
+
return this.http.post(`${this.traxTaskUrl}/allapprovalstatus`, data);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
getOrdersByDate(data: any) {
|
|
529
|
+
return this.http.post(`${this.traxUrl}/locusorder/get`, data);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
orderUpdate(data: any) {
|
|
533
|
+
return this.http.post(`${this.traxUrl}/locusorder/update`, data);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
orderDelete(data: any) {
|
|
537
|
+
return this.http.post(`${this.traxUrl}/locusorder/delete`, data);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
isLocusAuthorized() {
|
|
541
|
+
return this.http.get(`${this.traxUrl}/locusorder/user-allowed`);
|
|
542
|
+
}
|
|
543
|
+
reinitiateChecklist(data: any) {
|
|
544
|
+
return this.http.post(
|
|
545
|
+
`${this.traxUrl}/dashboard/reinitiatechecklist`,
|
|
546
|
+
data,
|
|
547
|
+
);
|
|
548
|
+
}
|
|
549
|
+
checkNotificationCount(data: any) {
|
|
550
|
+
return this.http.post(`${this.galleryApiUrl}/checkNotificationCount`, data);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
public exportAsCSVFile(
|
|
554
|
+
json: any[],
|
|
555
|
+
excelFileName: string,
|
|
556
|
+
identifier?: any[],
|
|
557
|
+
): void {
|
|
558
|
+
const worksheet: XLSX.WorkSheet = XLSX.utils.json_to_sheet(json);
|
|
559
|
+
|
|
560
|
+
const csvOutput: string = XLSX.utils.sheet_to_csv(worksheet);
|
|
561
|
+
this.saveAsCSVFile(csvOutput, excelFileName);
|
|
562
|
+
}
|
|
563
|
+
private saveAsCSVFile(buffer: any, fileName: string): void {
|
|
564
|
+
const data: Blob = new Blob([buffer], {
|
|
565
|
+
type: CSV_TYPE,
|
|
566
|
+
});
|
|
567
|
+
FileSaver.saveAs(data, fileName + CSV_EXTENSION);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
reInitiate(body: any): Observable<any> {
|
|
571
|
+
return this.http.post<any>(
|
|
572
|
+
`${this.traxUrl}/dashboard/reinitiatechecklist`,
|
|
573
|
+
body,
|
|
574
|
+
);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
createTask(data: any) {
|
|
578
|
+
return this.http.post(`${this.traxTaskUrl}/create`, data);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
getTaskconfig(id: string, clientId: string) {
|
|
582
|
+
return this.http.get(
|
|
583
|
+
`${this.traxTaskUrl}/details?taskId=${id}&clientId=${clientId}`,
|
|
584
|
+
);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
configTask(data: any) {
|
|
588
|
+
return this.http.post(`${this.traxTaskUrl}/config`, data);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
getTaskUserDetails(data: any) {
|
|
592
|
+
const params = new HttpParams({ fromObject: data });
|
|
593
|
+
return this.http.get(`${this.traxTaskUrl}/userDetails`, { params });
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
uploadTaskAssignees(data: any) {
|
|
597
|
+
return this.http.post(`${this.traxTaskUrl}/upload`, data);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
getOverallTasksData(data: any): Observable<any> {
|
|
601
|
+
return this.http.post(`${this.traxTaskUrl}/dashboard/overallcardsV1`, data);
|
|
602
|
+
}
|
|
603
|
+
// getTaskTableData( data:any):Observable<any>{
|
|
604
|
+
// return this.http.post(`${this.traxTaskUrl}/dashboard/taskTableV1`, data)
|
|
605
|
+
// }
|
|
606
|
+
// getTaskTableDataExport( data:any):Observable<any>{
|
|
607
|
+
// return this.http.post(`${this.traxTaskUrl}/dashboard/taskTableV1`, data, {responseType: 'arraybuffer'})
|
|
608
|
+
// }
|
|
609
|
+
getTaskTableData(data: any): Observable<any> {
|
|
610
|
+
return this.http.post(`${this.traxTaskUrl}/dashboard/taskDetails`, data);
|
|
611
|
+
}
|
|
612
|
+
getTaskTableDataExport(data: any): Observable<any> {
|
|
613
|
+
return this.http.post(`${this.traxTaskUrl}/dashboard/taskDetails`, data, {
|
|
614
|
+
responseType: "arraybuffer",
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
getTaskInfoTableData(data: any): Observable<any> {
|
|
618
|
+
return this.http.post(
|
|
619
|
+
`${this.traxTaskUrl}/dashboard/taskInfoTableV1`,
|
|
620
|
+
data,
|
|
621
|
+
);
|
|
622
|
+
}
|
|
623
|
+
getTaskInfoTableDataExport(data: any): Observable<any> {
|
|
624
|
+
return this.http.post(
|
|
625
|
+
`${this.traxTaskUrl}/dashboard/taskInfoTableV1`,
|
|
626
|
+
data,
|
|
627
|
+
{ responseType: "arraybuffer" },
|
|
628
|
+
);
|
|
629
|
+
}
|
|
630
|
+
getOverallActionCenterData(data: any): Observable<any> {
|
|
631
|
+
return this.http.post(
|
|
632
|
+
`${this.traxTaskUrl}/actionCenter/overallcardsV1`,
|
|
633
|
+
data,
|
|
634
|
+
);
|
|
635
|
+
}
|
|
636
|
+
getApprovalData(data: any): Observable<any> {
|
|
637
|
+
return this.http.post(
|
|
638
|
+
`${this.traxTaskUrl}/actionCenter/approvalTableV1`,
|
|
639
|
+
data,
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
getActivityLog(data: any): Observable<any> {
|
|
643
|
+
return this.http.post(
|
|
644
|
+
`${this.traxTaskUrl}/actionCenter/activityLogV1`,
|
|
645
|
+
data,
|
|
646
|
+
);
|
|
647
|
+
}
|
|
648
|
+
getTaskDropdownList(data: any): Observable<any> {
|
|
649
|
+
return this.http.post(
|
|
650
|
+
`${this.traxTaskUrl}/dashboard/taskDropdownListV1`,
|
|
651
|
+
data,
|
|
652
|
+
);
|
|
653
|
+
}
|
|
654
|
+
getTaskDelete(data: any): Observable<any> {
|
|
655
|
+
return this.http.post(`${this.traxTaskUrl}/dashboard/taskDeleteV1`, data);
|
|
656
|
+
}
|
|
657
|
+
getTaskUpdate(data: any): Observable<any> {
|
|
658
|
+
return this.http.post(`${this.traxTaskUrl}/reinitiate`, data);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
selecttaskChips(data: any) {
|
|
662
|
+
return this.http.post(`${this.traxTaskUrl}/assign`, data);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
taskList(obj: any): Observable<any> {
|
|
666
|
+
return this.http.get(
|
|
667
|
+
`${this.traxTaskUrl}/task-list?limit=${obj.limit}&offset=${obj.offset}&sortColumnName=${obj.sortColumn}&search=${obj.search}&sortBy=${obj.sortBy}&clientId=${obj.clientId}`,
|
|
668
|
+
);
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
publishTask(data: any) {
|
|
672
|
+
return this.http.put(`${this.traxTaskUrl}/publish`, data);
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
duplicateTask(data: any) {
|
|
676
|
+
return this.http.get(
|
|
677
|
+
`${this.traxTaskUrl}/duplicateTask/${data.checklistId}?clientId=${data.clientId}`,
|
|
678
|
+
);
|
|
679
|
+
}
|
|
680
|
+
getSendAlert(data: any): Observable<any> {
|
|
681
|
+
return this.http.post(`${this.traxUrl}/dashboard/sendAlert`, data);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
getassignDropdown(data: any) {
|
|
685
|
+
return this.http.post(`${this.traxUrl}/selectAssign`, data);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
selectChips(data: any) {
|
|
689
|
+
return this.http.post(`${this.traxUrl}/assign`, data);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
removeChips(data: any) {
|
|
693
|
+
return this.http.post(`${this.traxUrl}/remove`, data);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
getUserDetailsV2(obj: any) {
|
|
697
|
+
return this.http.get(
|
|
698
|
+
`${this.traxUrl}/userDetails/${obj.checklistId}?offset=${obj.offset}&limit=${obj.limit}&search=${obj.search}&clientId=${obj.clientId}&sortColumn=${obj.sortColumn}&sortBy=${obj.sortBy}`,
|
|
699
|
+
);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
getUserDetailsV1(obj: any) {
|
|
703
|
+
return this.http.get(
|
|
704
|
+
`${this.traxUrl}/userDetailsv1/${obj.id}?clientId=${obj?.clientId}`,
|
|
705
|
+
);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
gettaskUserDetailsV1(obj: any) {
|
|
709
|
+
return this.http.get(
|
|
710
|
+
`${this.traxTaskUrl}/userDetails/?taskId=${obj.id}&clientId=${obj?.clientId}`,
|
|
711
|
+
);
|
|
712
|
+
}
|
|
713
|
+
checklistCountByType(body: any): Observable<any> {
|
|
714
|
+
return this.http.post<any>(
|
|
715
|
+
`${this.traxUrl}/flag/checklistCountByType`,
|
|
716
|
+
body,
|
|
717
|
+
);
|
|
718
|
+
}
|
|
719
|
+
activityLogList(data: any): Observable<any> {
|
|
720
|
+
return this.http.post(`${this.activitylogUrl}/listLog`, data);
|
|
721
|
+
}
|
|
722
|
+
downloadtemplate(data: any): Observable<any> {
|
|
723
|
+
return this.http.post(`${this.galleryApiUrl}/exportTemplate`, data, {
|
|
724
|
+
responseType: "arraybuffer",
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
getClientrunAIFeatues(data: any): Observable<any> {
|
|
729
|
+
return this.http.post(`${this.traxUrl}/getRunAIFeatures`, data);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
updateRunAIFeatures(data: any): Observable<any> {
|
|
733
|
+
return this.http.post(`${this.traxUrl}/updateRunAIFeatures`, data);
|
|
734
|
+
}
|
|
735
|
+
downloadQuestion(data: any): Observable<any> {
|
|
736
|
+
return this.http.post(
|
|
737
|
+
`${this.traxUrl}/exportQuestions`,
|
|
738
|
+
{ checklistId: data },
|
|
739
|
+
{ responseType: "arraybuffer" },
|
|
740
|
+
);
|
|
741
|
+
}
|
|
742
|
+
getChecklistDetailsV1(data: any): Observable<any> {
|
|
743
|
+
return this.http.post(`${this.galleryApiUrl}/getchecklistDetails`, data);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
public saveAsPdfBlob(blob: Blob, fileName: string = "report.pdf"): void {
|
|
747
|
+
const finalFileName = fileName.endsWith(".pdf")
|
|
748
|
+
? fileName
|
|
749
|
+
: `${fileName}.pdf`;
|
|
750
|
+
|
|
751
|
+
FileSaver.saveAs(blob, finalFileName);
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
reportTableExportAsBlob(
|
|
755
|
+
body: any,
|
|
756
|
+
): Observable<{ blob: Blob; fileName?: string }> {
|
|
757
|
+
return this.http
|
|
758
|
+
.post(
|
|
759
|
+
`${this.traxUrl}/downloads/downloadInsert`,
|
|
760
|
+
|
|
761
|
+
body,
|
|
762
|
+
|
|
763
|
+
{ responseType: "blob", observe: "response" },
|
|
764
|
+
)
|
|
765
|
+
.pipe(
|
|
766
|
+
map((response) => {
|
|
767
|
+
const blob = response.body as Blob;
|
|
768
|
+
|
|
769
|
+
let fileName: string | undefined;
|
|
770
|
+
|
|
771
|
+
const contentDisposition = response.headers.get(
|
|
772
|
+
"Content-Disposition",
|
|
773
|
+
);
|
|
774
|
+
|
|
775
|
+
if (contentDisposition) {
|
|
776
|
+
const match = contentDisposition.match(
|
|
777
|
+
/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/,
|
|
778
|
+
);
|
|
779
|
+
|
|
780
|
+
if (match && match[1]) {
|
|
781
|
+
fileName = match[1].replace(/['"]/g, "").trim();
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
return { blob, fileName };
|
|
786
|
+
}),
|
|
787
|
+
);
|
|
788
|
+
}
|
|
789
|
+
}
|