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EAAO,EAGjCopD,EAAqB91B,KAAoC,8BAAIA,KAAoC,+BAAK,GAC1G81B,EAAmBrtD,QAAQitD,EAAqB7gC,KAAK,KAAM,IAC3DihC,EAAmBlqE,KAAO8pE,EAAqB7gC,KAAK,KAAMihC,EAAmBlqE,KAAKipC,KAAKihC,G,KChDvFrC,EAAoBsC,QAAK5oE,ECGzB,IAAI6oE,EAAsBvC,EAAoBS,OAAE/mE,EAAW,CAAC,MAAM,IAAOsmE,EAAoB,SAC7FuC,EAAsBvC,EAAoBS,EAAE8B,E","sources":["webpack://cronos_timesheets/webpack/runtime/chunk loaded","webpack://cronos_timesheets/webpack/runtime/create fake namespace object","webpack://cronos_timesheets/./src/helpers/dateHelper.ts","webpack://cronos_timesheets/./src/reducers/initialState.ts","webpack://cronos_timesheets/./src/types/messageTypes.ts","webpack://cronos_timesheets/./src/helpers/cookieHelper.ts","webpack://cronos_timesheets/./src/types/actionTypes.ts","webpack://cronos_timesheets/./src/helpers/userHelper.ts","webpack://cronos_timesheets/./src/actions/assignmentActions.ts","webpack://cronos_timesheets/./src/actions/tsCodeActions.ts","webpack://cronos_timesheets/./src/helpers/DeserifyHelper.ts","webpack://cronos_timesheets/./src/common/EmptyTimesheetToast.tsx","webpack://cronos_timesheets/./src/helpers/messageHelper.tsx","webpack://cronos_timesheets/./src/customError.ts","webpack://cronos_timesheets/./src/helpers/errorHelper.ts","webpack://cronos_timesheets/./src/api/authorizedRequests.ts","webpack://cronos_timesheets/./src/api/assignmentApi.ts","webpack://cronos_timesheets/./src/sagas/assignmentSaga.ts","webpack://cronos_timesheets/./src/api/documentApi.ts","webpack://cronos_timesheets/./src/sagas/documentSaga.ts","webpack://cronos_timesheets/./src/api/groupApi.ts","webpack://cronos_timesheets/./src/sagas/groupSaga.ts","webpack://cronos_timesheets/./src/api/importApi.ts","webpack://cronos_timesheets/./src/sagas/importSaga.ts","webpack://cronos_timesheets/./src/api/invoiceApi.ts","webpack://cronos_timesheets/./src/sagas/invoiceSaga.ts","webpack://cronos_timesheets/./src/api/maintenanceApi.ts","webpack://cronos_timesheets/./src/sagas/maintenanceSaga.ts","webpack://cronos_timesheets/./src/sagas/presetSaga.ts","webpack://cronos_timesheets/./src/api/projectApi.ts","webpack://cronos_timesheets/./src/sagas/projectSaga.ts","webpack://cronos_timesheets/./src/api/releaseNoteApi.ts","webpack://cronos_timesheets/./src/sagas/releaseNoteSaga.ts","webpack://cronos_timesheets/./src/api/reportApi.ts","webpack://cronos_timesheets/./src/sagas/reportSaga.ts","webpack://cronos_timesheets/./src/reducers/rootReducer.ts","webpack://cronos_timesheets/./src/reducers/userReducer.ts","webpack://cronos_timesheets/./src/reducers/timesheetReducer.ts","webpack://cronos_timesheets/./src/reducers/settingsReducer.ts","webpack://cronos_timesheets/./src/reducers/tsCodeReducer.ts","webpack://cronos_timesheets/./src/reducers/mostRecentTsCodeReducer.ts","webpack://cronos_timesheets/./src/reducers/callsReducer.ts","webpack://cronos_timesheets/./src/reducers/supplierReducer.ts","webpack://cronos_timesheets/./src/reducers/reportReducer.ts","webpack://cronos_timesheets/./src/reducers/maintenanceReducer.ts","webpack://cronos_timesheets/./src/reducers/validatedActualsReducer.ts","webpack://cronos_timesheets/./src/reducers/releaseNoteReducer.ts","webpack://cronos_timesheets/./src/reducers/invoiceReducer.ts","webpack://cronos_timesheets/./src/reducers/assignedTimesheetCodesReducer.ts","webpack://cronos_timesheets/./src/reducers/presetReducer.ts","webpack://cronos_timesheets/./src/reducers/timesheetsFromClientReducer.ts","webpack://cronos_timesheets/./src/reducers/documentReducer.ts","webpack://cronos_timesheets/./src/reducers/projectReducer.ts","webpack://cronos_timesheets/./src/reducers/groupReducer.ts","webpack://cronos_timesheets/./src/api/signingHubApi.ts","webpack://cronos_timesheets/./src/api/timesheetApi.ts","webpack://cronos_timesheets/./src/sagas/signingHubSaga.ts","webpack://cronos_timesheets/./src/api/supplierApi.ts","webpack://cronos_timesheets/./src/sagas/supplierSaga.ts","webpack://cronos_timesheets/./src/sagas/timesheetSaga.ts","webpack://cronos_timesheets/./src/api/tsCodeApi.ts","webpack://cronos_timesheets/./src/sagas/tsCodeSaga.ts","webpack://cronos_timesheets/./src/api/userApi.ts","webpack://cronos_timesheets/./src/sagas/userSaga.ts","webpack://cronos_timesheets/./src/store/store.prod.ts","webpack://cronos_timesheets/./src/desktop/components/App.sass?dc51","webpack://cronos_timesheets/./src/types/enumTypes.ts","webpack://cronos_timesheets/./src/types/permissionTypes.ts","webpack://cronos_timesheets/./src/common/WithRouter.tsx","webpack://cronos_timesheets/./src/actions/maintenanceActions.ts","webpack://cronos_timesheets/./src/actions/userActions.ts","webpack://cronos_timesheets/./src/actions/timesheetActions.ts","webpack://cronos_timesheets/./src/helpers/cronHelper.ts","webpack://cronos_timesheets/./src/actions/importActions.ts","webpack://cronos_timesheets/./src/types/locationTypes.ts","webpack://cronos_timesheets/./src/helpers/fileHelper.ts","webpack://cronos_timesheets/./src/helpers/floatHelper.ts","webpack://cronos_timesheets/./src/desktop/components/content/import/ImportActualsRow.tsx","webpack://cronos_timesheets/./src/desktop/components/content/import/ImportActualsTemplateLegend.tsx","webpack://cronos_timesheets/./src/helpers/numberHelper.tsx","webpack://cronos_timesheets/./src/helpers/objectHelper.ts","webpack://cronos_timesheets/./src/helpers/permissionHelper.ts","webpack://cronos_timesheets/./src/desktop/components/content/import/ProgressTracker.tsx","webpack://cronos_timesheets/./src/desktop/components/content/import/ImportActuals.tsx","webpack://cronos_timesheets/./src/common/IncompleteMonthsToast.tsx","webpack://cronos_timesheets/./src/types/formatTypes.ts","webpack://cronos_timesheets/./src/desktop/components/common/DateRangePicker.tsx","webpack://cronos_timesheets/./src/actions/invoiceActions.ts","webpack://cronos_timesheets/./src/helpers/apiHelper.ts","webpack://cronos_timesheets/./src/desktop/components/content/invoice/SearchInvoiceNumber.tsx","webpack://cronos_timesheets/./src/helpers/formatHelper.ts","webpack://cronos_timesheets/./src/common/TextInput.tsx","webpack://cronos_timesheets/./src/desktop/components/content/invoice/SentInvoice.tsx","webpack://cronos_timesheets/./src/desktop/components/content/invoice/InvoiceViewer.tsx","webpack://cronos_timesheets/./src/actions/supplierActions.ts","webpack://cronos_timesheets/./src/actions/releaseNotesActions.ts","webpack://cronos_timesheets/./src/actions/settingsActions.ts","webpack://cronos_timesheets/./src/helpers/componentHelper.ts","webpack://cronos_timesheets/./src/common/Modal.tsx","webpack://cronos_timesheets/./src/helpers/emailHelper.ts","webpack://cronos_timesheets/./src/helpers/windowHelper.ts","webpack://cronos_timesheets/./src/desktop/components/content/login/LoginModal.tsx","webpack://cronos_timesheets/./src/desktop/components/content/login/Login.tsx","webpack://cronos_timesheets/./src/helpers/maintenanceHelper.ts","webpack://cronos_timesheets/./src/desktop/components/common/ProtectedRoute.tsx","webpack://cronos_timesheets/./src/common/RefreshToast.tsx","webpack://cronos_timesheets/./src/desktop/components/content/releasenotes/ReleaseNotes.tsx","webpack://cronos_timesheets/./src/actions/reportActions.ts","webpack://cronos_timesheets/./src/actions/groupActions.ts","webpack://cronos_timesheets/./src/desktop/components/content/reporting/AutoSuggestList.tsx","webpack://cronos_timesheets/./src/common/Toggle.tsx","webpack://cronos_timesheets/./src/common/ContractHoursToggle.tsx","webpack://cronos_timesheets/./src/desktop/components/common/DatePicker.tsx","webpack://cronos_timesheets/./src/common/OrderByToggle.tsx","webpack://cronos_timesheets/./src/helpers/stringHelper.ts","webpack://cronos_timesheets/./src/helpers/util.ts","webpack://cronos_timesheets/./src/helpers/wildCardHelper.ts","webpack://cronos_timesheets/./src/helpers/employeeSortHelper.ts","webpack://cronos_timesheets/./src/actions/presetActions.ts","webpack://cronos_timesheets/./src/common/ClosableModal.tsx","webpack://cronos_timesheets/./src/common/Preset.tsx","webpack://cronos_timesheets/./src/desktop/components/content/reporting/ActualsReport.tsx","webpack://cronos_timesheets/./src/types/groupTypes.ts","webpack://cronos_timesheets/./src/desktop/components/common/MonthYearPicker.tsx","webpack://cronos_timesheets/./src/desktop/components/content/reporting/ProjectTimesheetReport.tsx","webpack://cronos_timesheets/./src/desktop/components/content/reporting/ReportingContainer.tsx","webpack://cronos_timesheets/./src/desktop/components/content/reporting/TimeLeftOnOrderDetails.tsx","webpack://cronos_timesheets/./src/desktop/components/content/reporting/TimeLeftOnOrderReport.tsx","webpack://cronos_timesheets/./src/desktop/components/content/reporting/TimesheetsLandscapeReport.tsx","webpack://cronos_timesheets/./src/desktop/components/content/reporting/TimesheetsReport.tsx","webpack://cronos_timesheets/./src/desktop/components/common/WeekPicker.tsx","webpack://cronos_timesheets/./src/desktop/components/content/reporting/TimesheetsWeeklyReport.tsx","webpack://cronos_timesheets/./src/actions/projectActions.ts","webpack://cronos_timesheets/./src/desktop/components/content/reporting/Reporting.tsx","webpack://cronos_timesheets/./src/helpers/timesheetHelper.ts","webpack://cronos_timesheets/./src/desktop/selectors/timesheetSelectors.tsx","webpack://cronos_timesheets/./src/types/keyCodeTypes.ts","webpack://cronos_timesheets/./src/common/DefaultSubmit.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/AddTimesheetCodeModal.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/SearchTimesheetCode.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/AddTimesheetCodeRow.tsx","webpack://cronos_timesheets/./src/actions/signingHubActions.ts","webpack://cronos_timesheets/./src/helpers/digitalSigningHelper.ts","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/DigitalSigning/Approver.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/DigitalSigning/DigitalSigningWizardManageApprovers.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/DigitalSigning/DigitalSigningWizardScreen1.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/DigitalSigning/DigitalSigningWizardMonthly.tsx","webpack://cronos_timesheets/./src/desktop/components/common/InfoContainer.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/DigitalSigning/DigitalSigningWizardOverview.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/DigitalSigning/DigitalSigningWizardScreen2.tsx","webpack://cronos_timesheets/./src/helpers/weekHelper.ts","webpack://cronos_timesheets/./src/desktop/components/common/WeekSelection.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/DigitalSigning/DigitalSigningWizardWeekly.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/DigitalSigning/DigitalSigningModal.tsx","webpack://cronos_timesheets/./src/actions/documentActions.ts","webpack://cronos_timesheets/./src/common/AreYouSureModal.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/DigitalSigning/DigitalSigningOverviewModal.tsx","webpack://cronos_timesheets/./src/desktop/components/common/DropDown.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/DigitalSigning/DigitalSigning.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/Disclaimer.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/ExportMonthlyTimesheetModal.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/ExportWeeklyTimesheetModal.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/ExportMenu.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/Legend.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/MaintenanceModeDisclaimer.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/ManageClientTimesheetModal.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/ManageClientTimesheet.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetCodeColumnPlaceHolder.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetCompleteModal.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetComplete.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/Version.tsx","webpack://cronos_timesheets/./src/helpers/accessibleUserHelper.ts","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetFooter.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetCode.tsx","webpack://cronos_timesheets/./src/common/TextAreaInput.tsx","webpack://cronos_timesheets/./src/helpers/hourHelper.ts","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetCodeDayAddHoursComment.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetCodeDay.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetCodeTotal.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetRow.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetCodeDayTotal.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetCodeTotalTotal.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetTotal.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/Timesheet.tsx","webpack://cronos_timesheets/./src/desktop/components/content/Content.tsx","webpack://cronos_timesheets/./src/common/CookieConsent.tsx","webpack://cronos_timesheets/./src/common/ErrorBoundary.tsx","webpack://cronos_timesheets/./src/desktop/components/content/location/SiteLocation.tsx","webpack://cronos_timesheets/./src/desktop/components/header/identity/Identity.tsx","webpack://cronos_timesheets/./src/desktop/components/header/profile/ChangeUserModal.tsx","webpack://cronos_timesheets/./src/desktop/components/header/profile/SettingsModal.tsx","webpack://cronos_timesheets/./src/desktop/components/header/profile/Profile.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/MonthWeekNavigation.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/SwitchMonth.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetNavigationDay.tsx","webpack://cronos_timesheets/./src/desktop/components/content/timesheet/TimesheetNavigation.tsx","webpack://cronos_timesheets/./src/desktop/components/header/weekend/Weekend.tsx","webpack://cronos_timesheets/./src/desktop/components/header/Header.tsx","webpack://cronos_timesheets/./src/common/MobileRedirect.tsx","webpack://cronos_timesheets/./src/desktop/components/App.tsx","webpack://cronos_timesheets/./src/desktop/index.prod.tsx","webpack://cronos_timesheets/./src/desktop/components/App.sass","webpack://cronos_timesheets/./node_modules/moment/locale/ sync ^\\.\\/.*$","webpack://cronos_timesheets/webpack/bootstrap","webpack://cronos_timesheets/webpack/runtime/amd options","webpack://cronos_timesheets/webpack/runtime/compat get default export","webpack://cronos_timesheets/webpack/runtime/define property getters","webpack://cronos_timesheets/webpack/runtime/global","webpack://cronos_timesheets/webpack/runtime/hasOwnProperty shorthand","webpack://cronos_timesheets/webpack/runtime/make namespace object","webpack://cronos_timesheets/webpack/runtime/node module decorator","webpack://cronos_timesheets/webpack/runtime/jsonp chunk loading","webpack://cronos_timesheets/webpack/runtime/nonce","webpack://cronos_timesheets/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","import { Day, Period, Week } from '../typescript/dateTypes';\r\n\r\nclass DateHelper {\r\n static months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\r\n\r\n static getNormalizedDate(date: Date): Date {\r\n date = new Date(date);\r\n const normalizedDate = new Date();\r\n\r\n normalizedDate.setDate(1);\r\n normalizedDate.setFullYear(date.getFullYear());\r\n normalizedDate.setMonth(date.getMonth());\r\n normalizedDate.setDate(date.getDate());\r\n\r\n return normalizedDate;\r\n }\r\n\r\n static isInvalidDate(date: Date): boolean {\r\n return date.toString() === new Date('').toString();\r\n }\r\n\r\n static createDateFromServerDate(date: string): Date {\r\n const year = Number.parseInt(date.substring(0,4));\r\n const month = Number.parseInt(date.substring(5,7)) - 1; //js month offset\r\n const day = Number.parseInt(date.substring(8,10));\r\n\r\n return new Date(year, month, day);\r\n }\r\n\r\n static dayDiff(firstDate: Date, secondDate: Date): number {\r\n if (firstDate.toDateString() === secondDate.toDateString()) {\r\n return 0;\r\n }\r\n\r\n const firstOffset = firstDate.getTimezoneOffset();\r\n const secondOffset = secondDate.getTimezoneOffset();\r\n\r\n if(firstOffset > secondOffset) {\r\n secondDate = this.addMinutes(secondDate, firstOffset - secondOffset);\r\n } else if (firstOffset < secondOffset){\r\n secondDate = this.addMinutes(secondDate, secondOffset - firstOffset);\r\n }\r\n\r\n return Math.floor(((secondDate as unknown as number) - (firstDate as unknown as number))/86400000) + 1; // +1 to include last day\r\n }\r\n\r\n static getPeriod(startDate: Date, endDate: Date): Period {\r\n const days = [];\r\n const weeks: Week[] = [];\r\n const daysInPeriod = this.dayDiff(startDate, endDate);\r\n\r\n for (let i = 0; i < daysInPeriod; i++) {\r\n const day = DateHelper.getNormalizedDate(new Date(startDate.getFullYear(), startDate.getMonth(), startDate.getDate() + i));\r\n\r\n days[i] = {\r\n dateString: day.toDateString(),\r\n dayOfWeek: day.getDay(),\r\n dayOfMonth: day.getDate()\r\n };\r\n\r\n let start = DateHelper.getMonday(day);\r\n start.setHours(0, 0, 1, 0);\r\n start = new Date(start.getTime() - (start.getTimezoneOffset() * 60000));\r\n\r\n const end = DateHelper.addDays(DateHelper.getMonday(day), 6);\r\n end.setHours(23, 59, 59, 0);\r\n\r\n const week: Week = {\r\n weekNumber: DateHelper.getWeekNumber(day),\r\n startDate: start,\r\n endDate: end\r\n };\r\n\r\n if (weeks.findIndex(w => w.weekNumber === week.weekNumber) === -1) {\r\n weeks.push(week);\r\n }\r\n }\r\n return {\r\n startDate,\r\n endDate,\r\n days,\r\n weekDayIndexes: days.map((day, index) => !DateHelper.isWeekend(day) ? index : -1).filter(index => index !== -1),\r\n month: startDate.getMonth() +1,\r\n year: startDate.getFullYear(),\r\n weeks: weeks\r\n };\r\n }\r\n\r\n static formatDayOfWeek(day: Day): string {\r\n switch (day.dayOfWeek) {\r\n case 0:\r\n return 'SUN';\r\n case 1:\r\n return 'MON';\r\n case 2:\r\n return 'TUE';\r\n case 3:\r\n return 'WED';\r\n case 4:\r\n return 'THU';\r\n case 5:\r\n return 'FRI';\r\n case 6:\r\n return 'SAT';\r\n default:\r\n throw RangeError('Invalid day of week.');\r\n }\r\n }\r\n\r\n static formatDayOfMonth(day: Day): string {\r\n return ('0' + day.dayOfMonth).slice(-2);\r\n }\r\n\r\n static isWeekend(day: Day): boolean {\r\n return day.dayOfWeek === 0 || day.dayOfWeek === 6;\r\n }\r\n\r\n static monthName(month: number): string {\r\n return DateHelper.months[month -1];\r\n }\r\n\r\n static isToday(day: Day): boolean {\r\n return day.dateString === new Date().toDateString();\r\n }\r\n\r\n static getMonday(date: Date): Date {\r\n date = this.getNormalizedDate(date);\r\n const day = date.getDay() || 7;\r\n\r\n if(day !== 1) {\r\n date.setHours(-24 * (day - 1));\r\n }\r\n\r\n return date;\r\n }\r\n\r\n static addDays(date: Date, days: number): Date {\r\n const day = this.getNormalizedDate(date);\r\n day.setDate(day.getDate() + days);\r\n return day;\r\n }\r\n\r\n static addHours(date: Date, hours: number): Date {\r\n const day = this.getNormalizedDate(date);\r\n day.setHours(day.getHours() + hours);\r\n return day;\r\n }\r\n\r\n static addMinutes(date: Date, minutes: number): Date {\r\n const day = this.getNormalizedDate(date);\r\n day.setMinutes(day.getMinutes() + minutes);\r\n return day;\r\n }\r\n\r\n static getWeekNumber(date: Date): number {\r\n // Copy date so don't modify original\r\n date = this.getNormalizedDate(date);\r\n\r\n // Set to nearest Thursday: current date + 4 - current day number\r\n // Make Sunday's day number 7\r\n date.setDate(date.getDate() + 4 - (date.getDay()||7));\r\n // Get first day of year\r\n const yearStart: any= this.getNormalizedDate(new Date(date.getFullYear(),0,1));\r\n // Calculate full weeks to nearest Thursday\r\n const weekNo = Math.ceil((((date as unknown as number - yearStart) / 86400000) + 1)/7);\r\n // Return array of year and week number\r\n return weekNo;\r\n }\r\n\r\n static getFullFormattedDate(date: Date, separator?: string): string {\r\n separator = separator === undefined ? '' : separator;\r\n const pad = (n: number) => n < 10 ? '0' + n : n;\r\n const newDate = this.getNormalizedDate(date);\r\n const locale = 'en-us';\r\n const month = newDate.toLocaleString(locale, { month: 'long' });\r\n\r\n return [pad(newDate.getDate()), month, newDate.getFullYear()].join(separator);\r\n }\r\n\r\n static getFormattedDate(date: Date, separator?: string): string {\r\n separator = separator === undefined ? '' : separator;\r\n const pad = (n: number) => n < 10 ? '0' + n : n;\r\n const newDate = this.getNormalizedDate(date);\r\n return [pad(newDate.getDate()), pad(newDate.getMonth() + 1), newDate.getFullYear()].join(separator);\r\n }\r\n\r\n static getFormattedDateWithTime(date: Date, separator?: string): string {\r\n separator = separator === undefined ? '' : separator;\r\n const pad = (n: number) => n < 10 ? '0' + n : n;\r\n\r\n const newDate = new Date(date);\r\n\r\n const formattedDate = [pad(newDate.getDate()), pad(newDate.getMonth() + 1), newDate.getFullYear()].join(separator);\r\n const formattedTime = [pad(newDate.getHours()), pad(newDate.getMinutes())].join(':');\r\n\r\n return `${formattedDate} ${formattedTime}`;\r\n }\r\n\r\n static getIsoFormattedDate(date: Date, separator?: string): string {\r\n separator = separator === undefined ? '' : separator;\r\n const pad = (n: number) => n < 10 ? '0' + n : n;\r\n const newDate = this.getNormalizedDate(date);\r\n return [newDate.getFullYear(), pad(newDate.getMonth() + 1), pad(newDate.getDate())].join(separator);\r\n }\r\n\r\n static addMonths(date: Date, months: number): Date {\r\n date = this.getNormalizedDate(date);\r\n date.setMonth(date.getMonth() + months);\r\n\r\n return date;\r\n }\r\n\r\n static firstDateOfMonth(date: Date): Date {\r\n return this.getNormalizedDate(new Date(date.getFullYear(), date.getMonth(), 1, date.getHours(), date.getMinutes(), date.getSeconds()));\r\n }\r\n\r\n static lastDateOfMonth(date: Date): Date {\r\n return this.getNormalizedDate(new Date(date.getFullYear(), date.getMonth() + 1, 0, date.getHours(), date.getMinutes(), date.getSeconds()));\r\n }\r\n\r\n static firstDateOfWeek(date: Date): Date {\r\n return this.getNormalizedDate(new Date(date.getFullYear(), date.getMonth(),1));\r\n }\r\n\r\n static getMondayOfGivenWeek = (dayOfTheWeek: Date) => {\r\n const first = dayOfTheWeek.getDate() - dayOfTheWeek.getDay() + 1;\r\n\r\n const monday = new Date(dayOfTheWeek.setDate(first));\r\n return monday;\r\n };\r\n\r\n static isBetweenDates(beginDate: Date, endDate: Date, date: Date): boolean {\r\n this.resetTime(beginDate);\r\n this.resetTime(endDate);\r\n this.resetTime(date);\r\n\r\n return date.valueOf() >= beginDate.valueOf() && date.valueOf() <= endDate.valueOf();\r\n }\r\n\r\n static resetTime(date: Date) {\r\n date.setHours(0);\r\n date.setMinutes(0);\r\n date.setSeconds(0);\r\n date.setMilliseconds(0);\r\n\r\n return date;\r\n }\r\n\r\n static resetTimeZoneOffset(date: Date) : Date {\r\n return new Date(date.getTime() - date.getTimezoneOffset()*60*1000);\r\n }\r\n\r\n static getDay(date: Date) {\r\n const day = this.getNormalizedDate(new Date(date));\r\n\r\n return {\r\n dateString: day.toDateString(),\r\n dayOfWeek: day.getDay(),\r\n dayOfMonth: day.getDate()\r\n };\r\n }\r\n\r\n static getDayFromDateString(dateString: string) {\r\n const day = this.getNormalizedDate(new Date(dateString));\r\n\r\n return {\r\n dateString: day.toDateString(),\r\n dayOfWeek: day.getDay(),\r\n dayOfMonth: day.getDate()\r\n };\r\n }\r\n\r\n static isExpiring(expiresOn: Date): boolean {\r\n return expiresOn >= new Date()\r\n && expiresOn <= DateHelper.addMinutes(new Date(), 10);\r\n }\r\n\r\n static isExpired(expiresOn: Date): boolean {\r\n return new Date() > expiresOn;\r\n }\r\n\r\n static getFirstWeekday = (days: Day[]): Day => {\r\n for (const day of days) {\r\n if(!DateHelper.isWeekend(day)) return day;\r\n }\r\n\r\n return days[0];\r\n };\r\n\r\n static periodContainsFirstOfMonth = (period: Period):boolean => period.days.find(e => e.dayOfMonth === 1) !== undefined;\r\n\r\n static getThisMonth = (): number => DateHelper.getNormalizedDate(new Date()).getMonth() +1;\r\n static getThisYear = (): number => DateHelper.getNormalizedDate(new Date()).getFullYear();\r\n\r\n static isSamePeriod = (period: Period, otherPeriod: Period) => period.month === otherPeriod.month && period.year === otherPeriod.year;\r\n}\r\n\r\nexport default DateHelper;\r\n","import { defaultOptions, serify } from '@karmaniverous/serify-deserify';\r\nimport DateHelper from '../helpers/dateHelper';\r\n\r\nimport { Period } from '../typescript/dateTypes';\r\nimport {StoreState} from '../typescript/storeTypes';\r\n\r\nexport const InitialState: StoreState = {\r\n user: {\r\n authenticatedUser: {\r\n token: '',\r\n username: '',\r\n isEmployee: false,\r\n hasActivePayroll: false,\r\n expiresOn: '',\r\n scheme: ''\r\n },\r\n impersonatedUser: {\r\n id: 0,\r\n employeeId: 0,\r\n firstName: '',\r\n lastName: '',\r\n nickName: '',\r\n username: '',\r\n employer: '',\r\n employerId: -1,\r\n useSigningHub: false,\r\n _links: []\r\n },\r\n authenticationError: '',\r\n employee: {\r\n id: 0,\r\n employeeId: 0,\r\n firstName: '',\r\n lastName: '',\r\n nickName: '',\r\n username: '',\r\n employer: '',\r\n employerId: -1,\r\n useSigningHub: false,\r\n _links: []\r\n },\r\n permissions: [],\r\n visibleUsers: [],\r\n visibleSuppliers: [],\r\n invoiceViewerSuppliers: [],\r\n userGroups: []\r\n },\r\n timesheet: {\r\n period: serify(DateHelper.getPeriod(DateHelper.firstDateOfMonth(new Date()), DateHelper.lastDateOfMonth(new Date())), defaultOptions) as Period,\r\n timesheetCodes: [],\r\n incompleteMonths: [],\r\n signingHubOverview: []\r\n },\r\n settings: {\r\n hideWeekends: false,\r\n monthViewSelected: true,\r\n showCommentTooltips: false,\r\n firstNameLastName: false,\r\n defaultContractHours: 38,\r\n defaultOrderBy: 'tscode',\r\n defaultCompanyForTemplate: null,\r\n defaultCompanyTemplateProject: null,\r\n timesheetCodeOrder: true,\r\n lastSeenReleaseNotes: 0\r\n },\r\n timesheetsFromClient: {},\r\n assignedTimesheetCodes: [],\r\n tsCodes: [],\r\n mostRecentTsCodes: [],\r\n suppliers: {\r\n suppliers: [],\r\n allSuppliers: []\r\n },\r\n calls: {\r\n timesheetCompletionCalled: false,\r\n loginRequested: false,\r\n completeTimesheetOpen: false,\r\n exportMonthlyOpen: false,\r\n changeUserOpen: false,\r\n profileOpen: false,\r\n settingsOpen: false,\r\n reportRequested: false,\r\n validateActualsRequested: false,\r\n processImportActualsRequested: false,\r\n invoiceRequested: false,\r\n invoiceNumbersRequested: false\r\n },\r\n maintenanceDetails: {\r\n isInMaintenanceMode: false,\r\n isLatestVersion: true,\r\n maintenanceScheduleStartTime: new Date('1970-01-01T00:00:00.0000000Z'),\r\n maintenanceScheduleEndTime: new Date('1970-01-01T00:00:00.0000000Z')\r\n },\r\n validatedActuals: {\r\n actuals: [],\r\n errorMessage: ''\r\n },\r\n releaseNotes: {\r\n application: '',\r\n notes: '',\r\n versionNumber: ''\r\n },\r\n invoiceDetails: {\r\n invoice: {\r\n fileName: '',\r\n base64: ''\r\n },\r\n sentInvoices: [],\r\n invoiceNumbers: []\r\n },\r\n reporting: {\r\n supplierEmployees: [],\r\n timeLeftOnOrder: {\r\n tsCodeName: '',\r\n consultants: '',\r\n icPartner: '',\r\n orderNumber: '',\r\n orderLineNumber: '',\r\n actualHoursOnOrder: 0,\r\n extraHoursOnOrder: 0,\r\n standbyHoursOnOrder: 0,\r\n interventionHoursOnOrder: 0,\r\n daysOnOrder: 0,\r\n hoursForCalculation: 0,\r\n isHourPrice: false,\r\n actualPrice: 0,\r\n currency: ''\r\n },\r\n icPartnersOnTsCode: []\r\n },\r\n userPresets: {\r\n activePreset: {\r\n location: '',\r\n name: '',\r\n data: undefined\r\n },\r\n presets: []\r\n },\r\n documents:{},\r\n projects: {\r\n project: {\r\n id: 0,\r\n timesheetCodes: [],\r\n name: '',\r\n yourReference: '',\r\n ourReference: '',\r\n contractReference: '',\r\n internalProjectManager: {\r\n id: 0,\r\n firstName: '',\r\n employer: '',\r\n lastName: '',\r\n username: '',\r\n nickName: '',\r\n groups: []\r\n },\r\n externalProjectManager: '',\r\n clientName: '',\r\n isOld: false\r\n },\r\n projects: []\r\n },\r\n group: {\r\n groups: []\r\n }\r\n};\r\n","export const MessageTypes = {\r\n INFO: 'INFO',\r\n ERROR: 'ERROR',\r\n QUESTION_RELEASENOTES: 'QUESTION_RELEASENOTES'\r\n};\r\n\r\nexport const Messages = {\r\n InactivePayroll: {type: MessageTypes.INFO, message: 'Your payroll is inactive, please contact your timesheet admin and ask them to correct your payroll data in Cronos Central / TIA.'},\r\n DeletedDocumentSuccessfully: {type: MessageTypes.INFO, message: 'The selected document was successfully deleted.'},\r\n UploadedDocumentSuccessfully: {type: MessageTypes.INFO, message: 'The selected document was successfully uploaded.'}\r\n};\r\n","import Cookies from 'js-cookie';\r\n\r\nclass CookieHelper {\r\n\r\n static sessionCookiePaths = {\r\n 'user.impersonatedUser' : { name: 'timesheetapp_user_impersonateduser'}\r\n };\r\n\r\n static cookiePaths = {\r\n 'user.authenticatedUser' : { name: 'timesheetapp_user_authenticateduser'},\r\n 'user.employee.username' : { name: 'timesheetapp_user_employee'},\r\n 'settings' : { name: 'timesheetapp_settings'},\r\n };\r\n\r\n static expiresIn2Hours = 0.083;\r\n static expiresIn1Year = 365;\r\n\r\n static isInPaths(paths: any, name: string): boolean {\r\n for(const prop in paths) {\r\n if (paths[prop].name === name) {return true;}\r\n }\r\n return false;\r\n }\r\n\r\n static getPaths(): any {\r\n return Object.assign({}, {...this.cookiePaths}, {...this.sessionCookiePaths});\r\n }\r\n\r\n static getCookie(name: string): any {\r\n return Cookies.get(name);\r\n }\r\n\r\n static setCookie(name: string, value: string) {\r\n if (value === undefined || value === null) {\r\n Cookies.remove(name);\r\n return;\r\n }\r\n\r\n if(this.isInPaths(this.sessionCookiePaths, name)) {\r\n Cookies.set(name, value, {expires: this.expiresIn2Hours});\r\n return;\r\n }\r\n if(this.isInPaths(this.cookiePaths, name)) {\r\n Cookies.set(name, value, {expires: this.expiresIn1Year});\r\n }\r\n }\r\n}\r\n\r\nexport default CookieHelper;\r\n","export const ActionTypes = {\r\n FORCE_REFRESH_TOKEN_REQUESTED: 'FORCE_REFRESH_TOKEN_REQUESTED',\r\n\r\n USER_ADFS_LOGIN_REQUESTED: 'USER_ADFS_LOGIN_REQUESTED',\r\n USER_ADFS_LOGIN_SUCCEEDED: 'USER_ADFS_LOGIN_SUCCEEDED',\r\n USER_ADFS_LOGIN_FAILED: 'USER_ADFS_LOGIN_FAILED',\r\n\r\n USER_LOGIN_REQUESTED: 'USER_LOGIN_REQUESTED',\r\n USER_LOGIN_SUCCEEDED: 'USER_LOGIN_SUCCEEDED',\r\n USER_LOGIN_FAILED: 'USER_LOGIN_FAILED',\r\n\r\n USER_LOGOUT: 'USER_LOGOUT',\r\n\r\n PERMISSIONS_REQUESTED: 'PERMISSIONS_REQUESTED',\r\n PERMISSIONS_SUCCEEDED: 'PERMISSIONS_SUCCEEDED',\r\n PERMISSIONS_FAILED: 'PERMISSIONS_FAILED',\r\n\r\n VISIBLE_USERS_REQUESTED: 'VISIBLE_USERS_REQUESTED',\r\n VISIBLE_USERS_SUCCEEDED: 'VISIBLE_USERS_SUCCEEDED',\r\n VISIBLE_USERS_FAILED: 'VISIBLE_USERS_FAILED',\r\n\r\n VISIBLE_SUPPLIERS_REQUESTED : 'VISIBLE_SUPPLIERS_REQUESTED',\r\n VISIBLE_SUPPLIERS_SUCCEEDED : 'VISIBLE_SUPPLIERS_SUCCEEDED',\r\n VISIBLE_SUPPLIERS_FAILED : 'VISIBLE_SUPPLIERS_FAILED',\r\n\r\n INVOICEVIEWER_SUPPLIERS_REQUESTED : 'INVOICEVIEWER_SUPPLIERS_REQUESTED',\r\n INVOICEVIEWER_SUPPLIERS_SUCCEEDED : 'INVOICEVIEWER_SUPPLIERS_SUCCEEDED',\r\n INVOICEVIEWER_SUPPLIERS_FAILED : 'INVOICEVIEWER_SUPPLIERS_FAILED',\r\n\r\n USER_GROUPS_REQUESTED: 'USER_GROUPS_REQUESTED',\r\n USER_GROUPS_SUCCEEDED: 'USER_GROUPS_SUCCEEDED',\r\n USER_GROUPS_FAILED : 'USER_GROUPS_FAILED',\r\n\r\n CHANGE_USER_REQUESTED: 'CHANGE_USER_REQUESTED',\r\n\r\n RESET_PASSWORD_REQUESTED: 'RESET_PASSWORD_REQUESTED',\r\n RESET_PASSWORD_SUCCEEDED: 'RESET_PASSWORD_SUCCEEDED',\r\n\r\n USER_REQUESTED: 'USER_REQUESTED',\r\n USER_SUCCEEDED: 'USER_SUCCEEDED',\r\n USER_FAILED: 'USER_FAILED',\r\n\r\n TIMESHEET_REQUESTED: 'TIMESHEET_REQUESTED',\r\n TIMESHEET_REQUEST_SUCCEEDED: 'TIMESHEET_REQUEST_SUCCEEDED',\r\n TIMESHEET_REQUEST_FAILED: 'TIMESHEET_REQUEST_FAILED',\r\n\r\n ADD_ENTRY_REQUESTED: 'ADD_ENTRY_REQUESTED',\r\n ADD_ENTRY_SUCCEEDED: 'ADD_ENTRY_SUCCEEDED',\r\n ADD_ENTRY_FAILED: 'ADD_ENTRY_FAILED',\r\n\r\n UPDATE_ENTRY_REQUESTED: 'UPDATE_ENTRY_REQUESTED',\r\n UPDATE_ENTRY_SUCCEEDED: 'UPDATE_ENTRY_SUCCEEDED',\r\n UPDATE_ENTRY_FAILED: 'UPDATE_ENTRY_FAILED',\r\n\r\n DELETE_ENTRY_REQUESTED: 'DELETE_ENTRY_REQUESTED',\r\n DELETE_ENTRY_SUCCEEDED: 'DELETE_ENTRY_SUCCEEDED',\r\n DELETE_ENTRY_FAILED: 'DELETE_ENTRY_FAILED',\r\n\r\n UPDATE_SETTING: 'UPDATE_SETTING',\r\n\r\n OPEN_EXPORT_MONTHLY: 'OPEN_EXPORT_MONTHLY',\r\n OPEN_TIMESHEET_COMPLETE: 'OPEN_TIMESHEET_COMPLETE',\r\n CLOSE_HEADER_SCREENS: 'CLOSE_HEADER_SCREENS',\r\n OPEN_CHANGE_USER: 'OPEN_CHANGE_USER',\r\n OPEN_SETTINGS: 'OPEN_SETTINGS',\r\n OPEN_PROFILE: 'OPEN_PROFILE',\r\n\r\n TSCODES_REQUESTED: 'TSCODES_REQUESTED',\r\n TSCODES_SUCCEEDED: 'TSCODES_SUCCEEDED',\r\n TSCODES_FAILED: 'TSCODES_FAILED',\r\n\r\n GET_TIMESHEET_APPROVERS_REQUESTED: 'GET_TIMESHEET_APPROVERS_REQUESTED',\r\n GET_TIMESHEET_APPROVERS_SUCCEEDED: 'GET_TIMESHEET_APPROVERS_SUCCEEDED',\r\n GET_TIMESHEET_APPROVERS_FAILED: 'GET_TIMESHEET_APPROVERS_FAILED',\r\n\r\n TIMESHEET_COMPLETE_REQUESTED: 'TIMESHEET_COMPLETE_REQUESTED',\r\n TIMESHEET_COMPLETE_SUCCEEDED: 'TIMESHEET_COMPLETE_SUCCEEDED',\r\n TIMESHEET_COMPLETE_FAILED: 'TIMESHEET_COMPLETE_FAILED',\r\n\r\n TIMESHEETCODE_COMPLETE_REQUESTED: 'TIMESHEETCODE_COMPLETE_REQUESTED',\r\n TIMESHEETCODE_COMPLETE_SUCCEEDED: 'TIMESHEETCODE_COMPLETE_SUCCEEDED',\r\n TIMESHEETCODE_COMPLETE_FAILED: 'TIMESHEETCODE_COMPLETE_FAILED',\r\n\r\n TIMESHEETCODE_INCOMPLETE_REQUESTED: 'TIMESHEETCODE_INCOMPLETE_REQUESTED',\r\n TIMESHEETCODE_INCOMPLETE_SUCCEEDED: 'TIMESHEETCODE_INCOMPLETE_SUCCEEDED',\r\n TIMESHEETCODE_INCOMPLETE_FAILED: 'TIMESHEETCODE_INCOMPLETE_FAILED',\r\n\r\n TIMESHEETCODE_DELETE_REQUESTED: 'TIMESHEETCODE_DELETE_REQUESTED',\r\n TIMESHEETCODE_DELETE_SUCCEEDED: 'TIMESHEETCODE_DELETE_SUCCEEDED',\r\n TIMESHEETCODE_DELETE_FAILED: 'TIMESHEETCODE_DELETE_FAILED',\r\n\r\n TIMESHEET_INCOMPLETE_REQUESTED: 'TIMESHEET_INCOMPLETE_REQUESTED',\r\n TIMESHEET_INCOMPLETE_SUCCEEDED: 'TIMESHEET_INCOMPLETE_SUCCEEDED',\r\n TIMESHEET_INCOMPLETE_FAILED: 'TIMESHEET_INCOMPLETE_FAILED',\r\n\r\n ADD_ASSIGNMENT_REQUESTED: 'ADD_ASSIGNMENT_REQUESTED',\r\n ADD_ASSIGNMENT_SUCCEEDED: 'ADD_ASSIGNMENT_SUCCEEDED',\r\n ADD_ASSIGNMENT_FAILED: 'ADD_ASSIGNMENT_FAILED',\r\n\r\n TIMESHEET_CODE_EXPAND: 'TIMESHEET_CODE_EXPAND',\r\n\r\n GET_TSCODES_ICPARTNERS_REQUESTED: 'GET_TSCODES_ICPARTNERS_REQUESTED',\r\n GET_TSCODES_ICPARTNERS_SUCCEEDED: 'GET_TSCODES_ICPARTNERS_SUCCEEDED',\r\n GET_TSCODES_ICPARTNERS_FAILED: 'GET_TSCODES_ICPARTNERS_FAILED',\r\n\r\n MOST_RECENT_TSCODES_REQUESTED: 'MOST_RECENT_TSCODES_REQUESTED',\r\n MOST_RECENT_TSCODES_SUCCEEDED: 'MOST_RECENT_TSCODES_SUCCEEDED',\r\n MOST_RECENT_TSCODES_FAILED: 'MOST_RECENT_TSCODES_FAILED',\r\n\r\n CLEAR_TSCODES_REQUESTED: 'CLEAR_TSCODES_REQUESTED',\r\n\r\n SUPPLIERS_REQUESTED: 'SUPPLIERS_REQUESTED',\r\n SUPPLIERS_SUCCEEDED: 'SUPPLIERS_SUCCEEDED',\r\n SUPPLIERS_FAILED: 'SUPPLIERS_FAILED',\r\n\r\n\r\n GET_ALL_SUPPLIERS_REQUESTED: 'GET_ALL_SUPPLIERS_REQUESTED',\r\n GET_ALL_SUPPLIERS_SUCCEEDED: 'GET_ALL_SUPPLIERS_SUCCEEDED',\r\n GET_ALL_SUPPLIERS_FAILED: 'GET_ALL_SUPPLIERS_FAILED',\r\n\r\n SUPPLIERS_EMPLOYEES_REQUESTED: 'SUPPLIERS_EMPLOYEES_REQUESTED',\r\n SUPPLIERS_EMPLOYEES_SUCCEEDED: 'SUPPLIERS_EMPLOYEES_SUCCEEDED',\r\n SUPPLIERS_EMPLOYEES_FAILED: 'SUPPLIERS_EMPLOYEES_FAILED',\r\n\r\n CLEAR_SUPPLIERS_REQUESTED: 'CLEAR_SUPPLIERS_REQUESTED',\r\n CLEAR_SUPPLIERS_EMPLOYEES_REQUESTED: 'CLEAR_SUPPLIERS_EMPLOYEES_REQUESTED',\r\n\r\n EXPORT_MONTHLY_TIMESHEET_REQUESTED: 'EXPORT_MONTHLY_TIMESHEET_REQUESTED',\r\n EXPORT_MONTHLY_TIMESHEET_SUCCEEDED: 'EXPORT_MONTHLY_TIMESHEET_SUCCEEDED',\r\n EXPORT_MONTHLY_TIMESHEET_FAILED: 'EXPORT_MONTHLY_TIMESHEET_FAILED',\r\n\r\n EXPORT_MONTHLY_TIMESHEET_EXCEL_REQUESTED: 'EXPORT_MONTHLY_TIMESHEET_EXCEL_REQUESTED',\r\n EXPORT_MONTHLY_TIMESHEET_EXCEL_SUCCEEDED: 'EXPORT_MONTHLY_TIMESHEET_EXCEL_SUCCEEDED',\r\n EXPORT_MONTHLY_TIMESHEET_EXCEL_FAILED: 'EXPORT_MONTHLY_TIMESHEET_EXCEL_FAILED',\r\n\r\n EXPORT_WEEKLY_TIMESHEET_REQUESTED: 'EXPORT_WEEKLY_TIMESHEET_REQUESTED',\r\n EXPORT_WEEKLY_TIMESHEET_SUCCEEDED: 'EXPORT_WEEKLY_TIMESHEET_SUCCEEDED',\r\n EXPORT_WEEKLY_TIMESHEET_FAILED: 'EXPORT_WEEKLY_TIMESHEET_FAILED',\r\n\r\n EXPORT_WEEKLY_TIMESHEET_EXCEL_REQUESTED: 'EXPORT_WEEKLY_TIMESHEET_EXCEL_REQUESTED',\r\n EXPORT_WEEKLY_TIMESHEET_EXCEL_SUCCEEDED: 'EXPORT_WEEKLY_TIMESHEET_EXCEL_SUCCEEDED',\r\n EXPORT_WEEKLY_TIMESHEET_EXCEL_FAILED: 'EXPORT_WEEKLY_TIMESHEET_EXCEL_FAILED',\r\n\r\n CHECK_VERSION_REQUESTED: 'CHECK_VERSION_REQUESTED',\r\n CHECK_VERSION_SUCCEEDED: 'CHECK_VERSION_SUCCEEDED',\r\n CHECK_VERSION_FAILED: 'CHECK_VERSION_FAILED',\r\n\r\n GET_INCOMPLETE_TIMESHEETS_REQUESTED: 'GET_INCOMPLETE_TIMESHEETS_REQUESTED',\r\n GET_INCOMPLETE_TIMESHEETS_SUCCEEDED: 'GET_INCOMPLETE_TIMESHEETS_SUCCEEDED',\r\n GET_INCOMPLETE_TIMESHEETS_FAILED: 'GET_INCOMPLETE_TIMESHEETS_FAILED',\r\n\r\n MAINTENANCE_DETAILS_REQUESTED: 'MAINTENANCE_DETAILS_REQUESTED',\r\n MAINTENANCE_DETAILS_SUCCEEDED: 'MAINTENANCE_DETAILS_SUCCEEDED',\r\n MAINTENANCE_DETAILS_FAILED: 'MAINTENANCE_DETAILS_FAILED',\r\n\r\n SHOW_TOAST_MESSAGE: 'SHOW_TOAST_MESSAGE',\r\n DISMISS_TOAST_MESSAGE: 'DISMISS_TOAST_MESSAGE',\r\n\r\n EXPORT_ACTUALS_PDF_REQUESTED: 'EXPORT_ACTUALS_PDF_REQUESTED',\r\n EXPORT_ACTUALS_PDF_SUCCEEDED: 'EXPORT_ACTUALS_PDF_SUCCEEDED',\r\n EXPORT_ACTUALS_PDF_FAILED: 'EXPORT_ACTUALS_PDF_FAILED',\r\n\r\n EXPORT_ACTUALS_CSV_REQUESTED: 'EXPORT_ACTUALS_CSV_REQUESTED',\r\n EXPORT_ACTUALS_CSV_SUCCEEDED: 'EXPORT_ACTUALS_CSV_SUCCEEDED',\r\n EXPORT_ACTUALS_CSV_FAILED: 'EXPORT_ACTUALS_CSV_FAILED',\r\n\r\n EXPORT_ACTUALS_EXCEL_REQUESTED: 'EXPORT_ACTUALS_EXCEL_REQUESTED',\r\n EXPORT_ACTUALS_EXCEL_SUCCEEDED: 'EXPORT_ACTUALS_EXCEL_SUCCEEDED',\r\n EXPORT_ACTUALS_EXCEL_FAILED: 'EXPORT_ACTUALS_EXCEL_FAILED',\r\n\r\n EXPORT_TIMESHEETS_PDF_REQUESTED: 'EXPORT_TIMESHEETS_PDF_REQUESTED',\r\n EXPORT_TIMESHEETS_PDF_SUCCEEDED: 'EXPORT_TIMESHEETS_PDF_SUCCEEDED',\r\n EXPORT_TIMESHEETS_PDF_FAILED: 'EXPORT_TIMESHEETS_PDF_FAILED',\r\n\r\n EXPORT_TIMESHEETS_LANDSCAPE_PDF_REQUESTED: 'EXPORT_TIMESHEETS_LANDSCAPE_PDF_REQUESTED',\r\n EXPORT_TIMESHEETS_LANDSCAPE_PDF_SUCCEEDED: 'EXPORT_TIMESHEETS_LANDSCAPE_PDF_SUCCEEDED',\r\n EXPORT_TIMESHEETS_LANDSCAPE_PDF_FAILED: 'EXPORT_TIMESHEETS_LANDSCAPE_PDF_FAILED',\r\n\r\n EXPORT_TIMESHEETS_WEEKLY_PDF_REQUESTED: 'EXPORT_TIMESHEETS_WEEKLY_PDF_REQUESTED',\r\n EXPORT_TIMESHEETS_WEEKLY_PDF_SUCCEEDED: 'EXPORT_TIMESHEETS_WEEKLY_PDF_SUCCEEDED',\r\n EXPORT_TIMESHEETS_WEEKLY_PDF_FAILED: 'EXPORT_TIMESHEETS_WEEKLY_PDF_FAILED',\r\n\r\n EXPORT_TIMESHEETS_WEEKLY_EXCEL_REQUESTED: 'EXPORT_TIMESHEETS_WEEKLY_EXCEL_REQUESTED',\r\n EXPORT_TIMESHEETS_WEEKLY_EXCEL_SUCCEEDED: 'EXPORT_TIMESHEETS_WEEKLY_EXCEL_SUCCEEDED',\r\n EXPORT_TIMESHEETS_WEEKLY_EXCEL_FAILED: 'EXPORT_TIMESHEETS_WEEKLY_EXCEL_FAILED',\r\n\r\n EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_REQUESTED: 'EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_REQUESTED',\r\n EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_SUCCEEDED: 'EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_SUCCEEDED',\r\n EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_FAILED: 'EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_FAILED',\r\n\r\n VALIDATE_ACTUALS_REQUESTED: 'VALIDATE_ACTUALS_REQUESTED',\r\n VALIDATE_ACTUALS_SUCCEEDED: 'VALIDATE_ACTUALS_SUCCEEDED',\r\n VALIDATE_ACTUALS_FAILED: 'VALIDATE_ACTUALS_FAILED',\r\n CLEAR_VALIDATED_ACTUALS_REQUESTED: 'CLEAR_VALIDATED_ACTUALS_REQUESTED',\r\n\r\n PROCESS_IMPORT_ACTUALS_REQUESTED: 'PROCESS_IMPORT_ACTUALS_REQUESTED',\r\n PROCESS_IMPORT_ACTUALS_SUCCEEDED: 'PROCESS_IMPORT_ACTUALS_SUCCEEDED',\r\n PROCESS_IMPORT_ACTUALS_FAILED: 'PROCESS_IMPORT_ACTUALS_FAILED',\r\n\r\n GET_RELEASE_NOTES_REQUESTED: 'GET_RELEASE_NOTES_REQUESTED',\r\n GET_RELEASE_NOTES_SUCCEEDED: 'GET_RELEASE_NOTES_SUCCEEDED',\r\n GET_RELEASE_NOTES_FAILED: 'GET_RELEASE_NOTES_FAILED',\r\n\r\n SEARCH_INVOICE_REQUESTED: 'SEARCH_INVOICE_REQUESTED',\r\n SEARCH_INVOICE_SUCCEEDED: 'SEARCH_INVOICE_SUCCEEDED',\r\n SEARCH_INVOICE_FAILED: 'SEARCH_INVOICE_FAILED',\r\n\r\n GET_SUPPLIER_INVOICENUMBERS_REQUESTED: 'GET_SUPPLIER_INVOICENUMBERS_REQUESTED',\r\n GET_SUPPLIER_INVOICENUMBERS_SUCCEEDED: 'GET_SUPPLIER_INVOICENUMBERS_SUCCEEDED',\r\n GET_SUPPLIER_INVOICENUMBERS_FAILED: 'GET_SUPPLIER_INVOICENUMBERS_FAILED',\r\n\r\n CLEAR_INVOICE_REQUESTED: 'CLEAR_INVOICE_REQUESTED',\r\n\r\n CLEAR_SENT_INVOICES_REQUESTED: 'CLEAR_SENT_INVOICES_REQUESTED',\r\n\r\n GET_SENT_INVOICES_REQUESTED: 'GET_SENT_INVOICES_REQUESTED',\r\n GET_SENT_INVOICES_SUCCEEDED: 'GET_SENT_INVOICES_SUCCEEDED',\r\n GET_SENT_INVOICES_FAILED: 'GET_SENT_INVOICES_FAILED',\r\n\r\n GET_ASSIGNED_TIMESHEET_CODES_REQUESTED: 'GET_ASSIGNED_TIMESHEET_CODES_REQUESTED',\r\n GET_ASSIGNED_TIMESHEET_CODES_SUCCEEDED: 'GET_ASSIGNED_TIMESHEET_CODES_SUCCEEDED',\r\n GET_ASSIGNED_TIMESHEET_CODES_FAILED: 'GET_ASSIGNED_TIMESHEET_CODES_FAILED',\r\n\r\n UPLOAD_CLIENTTIMESHEET_REQUESTED: 'UPLOAD_CLIENTTIMESHEET_REQUESTED',\r\n UPLOAD_CLIENTTIMESHEET_SUCCEEDED: 'UPLOAD_CLIENTTIMESHEET_SUCCEEDED',\r\n UPLOAD_CLIENTTIMESHEET_FAILED: 'UPLOAD_CLIENTTIMESHEET_FAILED',\r\n\r\n SEND_MONTHLY_TO_SIGNING_HUB_REQUESTED: 'SEND_MONTHLY_TO_SIGNING_HUB_REQUESTED',\r\n SEND_MONTHLY_TO_SIGNING_HUB_SUCCEEDED: 'SEND_MONTHLY_TO_SIGNING_HUB_SUCCEEDED',\r\n SEND_MONTHLY_TO_SIGNING_HUB_FAILED: 'SEND_MONTHLY_TO_SIGNING_HUB_FAILED',\r\n\r\n SEND_MONTHLY_TO_SIGNING_HUB_IMPERSONATED_REQUESTED: 'SEND_MONTHLY_TO_SIGNING_HUB_IMPERSONATED_REQUESTED',\r\n SEND_MONTHLY_TO_SIGNING_HUB_IMPERSONATED_SUCCEEDED: 'SEND_MONTHLY_TO_SIGNING_HUB_IMPERSONATED_SUCCEEDED',\r\n SEND_MONTHLY_TO_SIGNING_HUB_IMPERSONATED_FAILED: 'SEND_MONTHLY_TO_SIGNING_HUB_IMPERSONATED_FAILED',\r\n\r\n SEND_WEEKLY_TO_SIGNING_HUB_REQUESTED: 'SEND_WEEKLY_TO_SIGNING_HUB_REQUESTED',\r\n SEND_WEEKLY_TO_SIGNING_HUB_SUCCEEDED: 'SEND_WEEKLY_TO_SIGNING_HUB_SUCCEEDED',\r\n SEND_WEEKLY_TO_SIGNING_HUB_FAILED: 'SEND_WEEKLY_TO_SIGNING_HUB_FAILED',\r\n\r\n SEND_WEEKLY_TO_SIGNING_HUB_IMPERSONATED_REQUESTED: 'SEND_WEEKLY_TO_SIGNING_HUB_IMPERSONATED_REQUESTED',\r\n SEND_WEEKLY_TO_SIGNING_HUB_IMPERSONATED_SUCCEEDED: 'SEND_WEEKLY_TO_SIGNING_HUB_IMPERSONATED_SUCCEEDED',\r\n SEND_WEEKLY_TO_SIGNING_HUB_IMPERSONATED_FAILED: 'SEND_WEEKLY_TO_SIGNING_HUB_IMPERSONATED_FAILED',\r\n\r\n CANCEL_SIGNING_HUB_QUEUE_REQUESTED: 'CANCEL_SIGNING_HUB_QUEUE_REQUESTED',\r\n CANCEL_SIGNING_HUB_QUEUE_SUCCEEDED: 'CANCEL_SIGNING_HUB_QUEUE_SUCCEEDED',\r\n CANCEL_SIGNING_HUB_QUEUE_FAILED: 'CANCEL_SIGNING_HUB_QUEUE_FAILED',\r\n\r\n CLEAR_INVOICE_NUMBERS_REQUESTED: 'CLEAR_INVOICENUMBERS_REQUESTED',\r\n CLEAR_INVOICE_NUMBERS_SUCCEEDED: 'CLEAR_INVOICE_NUMBERS_SUCCEEDED',\r\n\r\n SEARCH_INVOICENUMBERS_REQUESTED : 'SEARCH_INVOICENUMBERS_REQUESTED',\r\n SEARCH_INVOICENUMBERS_SUCCEEDED : 'SEARCH_INVOICENUMBERS_SUCCEEDED',\r\n SEARCH_INVOICENUMBERS_FAILED : 'SEARCH_INVOICENUMBERS_FAILED',\r\n\r\n GET_INVOICE_REQUESTED : 'GET_INVOICE_REQUESTED',\r\n GET_INVOICE_SUCCEEDED : 'GET_INVOICE_SUCCEEDED',\r\n GET_INVOICE_FAILED : 'GET_INVOICE_FAILED',\r\n\r\n GET_PRESETS_REQUESTED: 'GET_PRESETS_REQUESTED',\r\n GET_PRESETS_SUCCEEDED: 'GET_PRESETS_SUCCEEDED',\r\n GET_PRESETS_FAILED: 'GET_PRESETS_FAILED',\r\n\r\n LOAD_PRESET_REQUESTED: 'LOAD_PRESET_REQUESTED',\r\n\r\n SAVE_PRESET_REQUESTED: 'SAVE_PRESET_REQUESTED',\r\n SAVE_PRESET_SUCCEEDED: 'SAVE_PRESET_SUCCEEDED',\r\n SAVE_PRESET_FAILED: 'SAVE_PRESET_FAILED',\r\n\r\n DELETE_PRESET_REQUESTED: 'DELETE_PRESET_REQUESTED',\r\n DELETE_PRESET_SUCCEEDED: 'DELETE_PRESET_SUCCEEDED',\r\n DELETE_PRESET_FAILED: 'DELETE_PRESET_FAILED',\r\n\r\n CLEAR_ACTIVE_PRESET_REQUESTED: 'CLEAR_ACTIVE_PRESET_REQUESTED',\r\n\r\n CLEAR_TIME_LEFT_ON_ORDER_REQUESTED: 'CLEAR_TIME_LEFT_ON_ORDER_REQUESTED',\r\n CLEAR_TIME_LEFT_ON_ORDER_SUCCEEDED: 'CLEAR_TIME_LEFT_ON_ORDER_SUCCEEDED',\r\n\r\n POST_GET_TIME_LEFT_ON_ORDER_REQUESTED: 'POST_GET_TIME_LEFT_ON_ORDER_REQUESTED',\r\n POST_GET_TIME_LEFT_ON_ORDER_SUCCEEDED: 'POST_GET_TIME_LEFT_ON_ORDER_SUCCEEDED',\r\n POST_GET_TIME_LEFT_ON_ORDER_FAILED: 'POST_GET_TIME_LEFT_ON_ORDER_FAILED',\r\n\r\n GET_TIMESHEETS_FROM_CLIENT_INFO_REQUESTED: 'GET_TIMESHEETS_FROM_CLIENT_INFO_REQUESTED',\r\n GET_TIMESHEETS_FROM_CLIENT_INFO_SUCCEEDED: 'GET_TIMESHEETS_FROM_CLIENT_INFO_SUCCEEDED',\r\n GET_TIMESHEETS_FROM_CLIENT_INFO_FAILED: 'GET_TIMESHEETS_FROM_CLIENT_INFO_FAILED',\r\n\r\n GET_ASSIGNMENTDOCUMENT_REQUESTED: 'GET_ASSIGNMENTDOCUMENT_REQUESTED',\r\n GET_ASSIGNMENTDOCUMENT_SUCCEEDED: 'GET_ASSIGNMENTDOCUMENT_SUCCEEDED',\r\n GET_ASSIGNMENTDOCUMENT_FAILED: 'GET_ASSIGNMENTDOCUMENT_FAILED',\r\n\r\n DELETE_ASSIGNMENTDOCUMENT_REQUESTED : 'DELETE_ASSIGNMENTDOCUMENT_REQUESTED',\r\n DELETE_ASSIGNMENTDOCUMENT_SUCCEEDED : 'DELETE_ASSIGNMENTDOCUMENT_SUCCEEDED',\r\n DELETE_ASSIGNMENTDOCUMENT_FAILED : 'DELETE_ASSIGNMENTDOCUMENT_FAILED',\r\n\r\n GET_SIGNINGHUB_OVERVIEW_REQUESTED: 'GET_SIGNINGHUB_OVERVIEW_REQUESTED',\r\n GET_SIGNINGHUB_OVERVIEW_SUCCEEDED: 'GET_SIGNINGHUB_OVERVIEW_SUCCEEDED',\r\n GET_SIGNINGHUB_OVERVIEW_FAILED: 'GET_SIGNINGHUB_OVERVIEW_FAILED',\r\n\r\n CLEAR_SIGNINGHUB_OVERVIEW_REQUESTED: 'CLEAR_SIGNINGHUB_OVERVIEW_REQUESTED',\r\n\r\n GET_ALL_PROJECTS_REQUESTED: 'GET_ALL_PROJECTS_REQUESTED',\r\n GET_ALL_PROJECTS_SUCCEEDED: 'GET_ALL_PROJECTS_SUCCEEDED',\r\n GET_ALL_PROJECTS_FAILED: 'GET_ALL_PROJECTS_FAILED',\r\n\r\n GENERATE_PROJECT_REPORT_REQUESTED: 'GENERATE_PROJECT_REPORT_REQUESTED',\r\n GENERATE_PROJECT_REPORT_SUCCEEDED: 'GENERATE_PROJECT_REPORT_SUCCEEDED',\r\n GENERATE_PROJECT_REPORT_FAILED: 'GENERATE_PROJECT_REPORT_FAILED',\r\n CLEAR_PROJECTS_REQUESTED: 'CLEAR_PROJECTS_REQUESTED',\r\n\r\n GET_GROUPS_REQUESTED: 'GET_GROUPS_REQUESTED',\r\n GET_GROUPS_SUCCEEDED: 'GET_GROUPS_SUCCEEDED',\r\n GET_GROUPS_FAILED: 'GET_GROUPS_FAILED'\r\n};\r\n","import {StoreSettings, StoreUser, StoreVisibleUser} from '../typescript/storeTypes';\r\n\r\nclass UserHelper {\r\n static isImpersonating(user: StoreUser): boolean {\r\n return user.employee.username !== user.impersonatedUser.username;\r\n }\r\n\r\n static getDefaultCompanyForTemplate = (user: StoreUser, settings: StoreSettings) => {\r\n if(UserHelper.isImpersonating(user)) {\r\n const impersonatedUser = (user.impersonatedUser as unknown as StoreVisibleUser);\r\n return { id: impersonatedUser.employerId, name: impersonatedUser.employer, isWritable: impersonatedUser.isWritable};\r\n }\r\n\r\n if(settings.defaultCompanyForTemplate) {\r\n return settings.defaultCompanyForTemplate;\r\n }\r\n\r\n return null;\r\n };\r\n\r\n static getDefaultCompanyNameForTemplate = (user: StoreUser, settings: StoreSettings) => {\r\n if(UserHelper.isImpersonating(user)) {\r\n return user.impersonatedUser.employer;\r\n }\r\n\r\n if(settings.defaultCompanyForTemplate && settings.defaultCompanyForTemplate.name)\r\n {\r\n return settings.defaultCompanyForTemplate.name;\r\n }\r\n return '';\r\n };\r\n}\r\n\r\nexport default UserHelper;\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {StoreAssignment, StoreUser} from '../typescript/storeTypes';\r\nimport {TimesheetCode} from '../typescript/timesheetTypes';\r\nimport UserHelper from '../helpers/userHelper';\r\n\r\nexport function addAssignment(assignment: StoreAssignment, user: StoreUser): Action {\r\n const payload = Object.assign({}, assignment, { useUsername: UserHelper.isImpersonating(user)});\r\n return {type: ActionTypes.ADD_ASSIGNMENT_REQUESTED, payload: payload };\r\n}\r\n\r\nexport function completeTimesheetCode(timesheetCodeToComplete: TimesheetCode, user: StoreUser): Action {\r\n const payload = Object.assign({}, timesheetCodeToComplete, { useUsername: UserHelper.isImpersonating(user)});\r\n return {type: ActionTypes.TIMESHEETCODE_COMPLETE_REQUESTED, payload: payload};\r\n}\r\n\r\nexport function incompleteTimesheetCode(timesheetCodeToIncomplete: TimesheetCode, user: StoreUser): Action {\r\n const payload = Object.assign({}, timesheetCodeToIncomplete, { useUsername: UserHelper.isImpersonating(user)});\r\n return {type: ActionTypes.TIMESHEETCODE_INCOMPLETE_REQUESTED, payload: payload};\r\n}\r\n\r\nexport function deleteTimesheetCode(timesheetCodeToDelete: TimesheetCode, user: StoreUser): Action {\r\n const payload = Object.assign({}, timesheetCodeToDelete, { useUsername: UserHelper.isImpersonating(user)});\r\n return {type: ActionTypes.TIMESHEETCODE_DELETE_REQUESTED, payload: payload};\r\n}\r\n\r\nexport function getAssignedTimesheetCodes(username: string, month: number, year: number): Action {\r\n const payload = Object.assign({}, { username: username, month: month, year: year});\r\n return {type: ActionTypes.GET_ASSIGNED_TIMESHEET_CODES_REQUESTED, payload: payload};\r\n}\r\n\r\nexport function getTimesheetsFromClientInfo(assignmentId: number): Action {\r\n return {type: ActionTypes.GET_TIMESHEETS_FROM_CLIENT_INFO_REQUESTED, payload: assignmentId};\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\n\r\nexport function getTsCodes(search: string, page = 1, showOldAndReadOnly = false, showAllAliases = false, month: number = (new Date().getMonth() + 1), year: number = new Date().getFullYear()): Action {\r\n return {type: ActionTypes.TSCODES_REQUESTED, payload: {search: search, page: page, showOldAndReadOnly: showOldAndReadOnly, showAllAliases: showAllAliases, month: month, year: year}};\r\n}\r\n\r\nexport function getMostRecentTsCodes(username: string, month: number, year: number): Action {\r\n return {type: ActionTypes.MOST_RECENT_TSCODES_REQUESTED, payload: {username: username, month: month, year: year}};\r\n}\r\n\r\nexport function getTsCodesIcPartners(tscodeId: string): Action {\r\n return {type: ActionTypes.GET_TSCODES_ICPARTNERS_REQUESTED, payload: tscodeId};\r\n}\r\n\r\nexport function clearTsCodes(): Action {\r\n return {type: ActionTypes.CLEAR_TSCODES_REQUESTED, payload: ''};\r\n}\r\n","import { defaultOptions, deserify } from '@karmaniverous/serify-deserify';\r\n\r\nclass DeserifyHelper {\r\n static deserify(object: T) {\r\n return deserify(object, defaultOptions) as T;\r\n }\r\n}\r\n\r\nexport default DeserifyHelper;\r\n","import {AnyAction, Dispatch,bindActionCreators} from 'redux';\r\nimport {ConnectedProps, connect} from 'react-redux';\r\nimport { Period } from '../typescript/dateTypes';\r\nimport {addAssignment} from '../../src/actions/assignmentActions';\r\nimport {getMostRecentTsCodes} from '../../src/actions/tsCodeActions';\r\nimport DateHelper from '../../src/helpers/dateHelper';\r\nimport DeserifyHelper from '../helpers/DeserifyHelper';\r\nimport React from 'react';\r\n\r\nimport {StoreState} from '../typescript/storeTypes';\r\n\r\nexport class EmptyTimesheetToast extends React.PureComponent {\r\n addAssignments = () => {\r\n this.props.mostRecentTsCodes.forEach(tsCode => {\r\n const assignment = {\r\n username: this.props.user.impersonatedUser.username,\r\n tsCodeId: tsCode.id,\r\n name: tsCode.name,\r\n description: tsCode.description,\r\n month: this.props.period.month,\r\n year: this.props.period.year,\r\n internalApprovers: tsCode.internalApprovers,\r\n customerApprovers: tsCode.customerApprovers,\r\n internalApprovalType: tsCode.internalApprovalType,\r\n customerApprovalType: tsCode.customerApprovalType,\r\n isBillable: tsCode.isBillable,\r\n comments: ''\r\n };\r\n this.props.addAssignment(assignment, this.props.user);\r\n });\r\n };\r\n\r\n componentDidMount() {\r\n const month = DateHelper.addMonths(this.props.period.startDate, -1);\r\n this.props.getMostRecentTsCodes(this.props.user.impersonatedUser.username,\r\n month.getMonth() + 1,\r\n month.getFullYear());\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n
Copy timesheet codes of previous month?
\r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nconst connector = connect(mapStateToProps, mapDispatchToProps);\r\n\r\ntype MappedProps = ConnectedProps;\r\n\r\ntype Props = MappedProps;\r\n\r\nfunction mapStateToProps(state: StoreState) {\r\n return {\r\n period: DeserifyHelper.deserify(state.timesheet.period),\r\n user: state.user,\r\n mostRecentTsCodes: state.mostRecentTsCodes\r\n };\r\n}\r\n\r\nfunction mapDispatchToProps(dispatch: Dispatch) {\r\n return bindActionCreators({getMostRecentTsCodes, addAssignment}, dispatch);\r\n}\r\n\r\nexport default connector(EmptyTimesheetToast);\r\n","import { Message } from '../typescript/messageTypes';\r\nimport {MessageTypes} from '../types/messageTypes';\r\nimport { UpdateOptions, toast } from 'react-toastify';\r\nimport EmptyTimesheetToast from '../common/EmptyTimesheetToast';\r\nimport React from 'react';\r\n\r\nclass MessageHelper {\r\n static isActive(toastId: string|number): boolean {\r\n return toast.isActive(toastId);\r\n }\r\n\r\n static showMessage(message: Message, id: string|number = 0, autoClose: number|false|undefined = undefined): string|number {\r\n toast.dismiss(id);\r\n\r\n switch(message.type) {\r\n case MessageTypes.INFO:\r\n id = toast.info(message.message, {\r\n type: 'info',\r\n className: 'toastify info',\r\n bodyClassName: 'toastify-body info',\r\n autoClose: autoClose,\r\n icon: false\r\n });\r\n break;\r\n case MessageTypes.ERROR:\r\n id = toast.error(message.message, {\r\n type: 'error',\r\n className: 'toastify error',\r\n bodyClassName: 'toastify-body error',\r\n autoClose: autoClose,\r\n icon: false\r\n });\r\n break;\r\n case MessageTypes.QUESTION_RELEASENOTES:\r\n id = toast.info(message.message, {\r\n type: 'info',\r\n className: 'toastify info',\r\n bodyClassName: 'toastify-body info',\r\n autoClose: autoClose,\r\n icon: false\r\n });\r\n break;\r\n }\r\n\r\n return id;\r\n }\r\n\r\n static showEmptyTimesheetMessage(id: string|number = 0): string|number {\r\n toast.dismiss(id);\r\n\r\n id = toast.info(, {\r\n type: 'info',\r\n className: 'toastify info',\r\n bodyClassName: 'toastify-body info',\r\n icon: false\r\n });\r\n\r\n return id;\r\n }\r\n\r\n static dismiss(toastId?: number|string): void {\r\n toast.dismiss(toastId);\r\n }\r\n\r\n static update(toastId: string|number, options?: UpdateOptions): void {\r\n toast.update(toastId, options);\r\n }\r\n}\r\n\r\nexport default MessageHelper;\r\n","import { MessageType } from './typescript/messageTypes';\r\n\r\nexport default class CustomError extends Error {\r\n messageType: MessageType;\r\n status: number;\r\n\r\n constructor(messageType: MessageType, message: string) {\r\n super(message);\r\n this.messageType = messageType;\r\n this.status = 0;\r\n }\r\n}\r\n","import { MessageTypes } from '../types/messageTypes';\r\nimport CustomError from '../customError';\r\nimport MessageHelper from './messageHelper';\r\n\r\nclass ErrorHelper {\r\n static getCustomWebsiteErrorFunction() {\r\n return (error: any) => {\r\n throw this.GetCustomErrorObject(error);\r\n };\r\n }\r\n\r\n static showMessageNoRethrow(error: any) {\r\n const customError = this.GetCustomErrorObject(error);\r\n MessageHelper.showMessage({type: customError.messageType, message: customError.message});\r\n }\r\n\r\n static showMessageOnNoContent(customError: CustomError) {\r\n if(customError.messageType === MessageTypes.INFO)\r\n {\r\n MessageHelper.showMessage({type: customError.messageType, message: customError.message});\r\n }\r\n }\r\n\r\n static errorHasStatusCode(error: any, ...statusCodes: number[]) : boolean {\r\n return statusCodes.map(s => s?.toString()).includes(error?.toString()) ||\r\n statusCodes.map(s => s?.toString()).includes(error?.status?.toString()) ||\r\n statusCodes.map(s => s?.toString()).includes(error?.message?.toString());\r\n }\r\n\r\n private static GetCustomErrorObject(error: any) : CustomError\r\n {\r\n const customError = new CustomError(MessageTypes.ERROR, 'Unknown error occurred.');\r\n if(error) {\r\n if(error.status) customError.status = error.status;\r\n const response = error.response;\r\n if(response) {\r\n if(response.body) {\r\n if(response.body.error) {\r\n customError.message = response.body.error;\r\n return customError;\r\n }\r\n if(response.body.errors) {\r\n customError.message = response.body.errors.map((e: { message: any }) => e.message).join('\\r\\n');\r\n return customError;\r\n }\r\n }\r\n\r\n if(response.noContent | response.badRequest | response.notFound) {\r\n customError.messageType = MessageTypes.INFO;\r\n\r\n if(response.noContent) {\r\n customError.message = 'No content';\r\n return customError;\r\n }\r\n\r\n if(response.badRequest) {\r\n customError.message = 'Bad request';\r\n return customError;\r\n }\r\n\r\n if(response.notFound) {\r\n customError.message ='Not found';\r\n return customError;\r\n }\r\n }\r\n\r\n if(error.status) {\r\n customError.message = error.status;\r\n return customError;\r\n }\r\n } else if(error.status) {\r\n customError.status = error.status;\r\n if(error.message) customError.message = error.message;\r\n if(!error.message) customError.message = error.status;\r\n return customError;\r\n } else if(error.message) {\r\n customError.message = error.message;\r\n return customError;\r\n }\r\n }\r\n return customError;\r\n }\r\n}\r\n\r\nexport default ErrorHelper;\r\n","import * as SuperAgent from 'superagent';\r\nimport {Action, Store} from 'redux';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport DateHelper from '../helpers/dateHelper';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nimport {SecureToken} from '../typescript/requestTypes';\r\nimport {StoreState} from '../typescript/storeTypes';\r\n\r\n\r\n//#region API environment variables\r\n\r\nif (!process.env.API_KEY || !process.env.API_ENDPOINT || !process.env.RESET_PASSWORD_ENDPOINT)\r\n throw new Error('API environment variables are not defined.');\r\n\r\nconst API_KEY = process.env.API_KEY;\r\nconst API_ENDPOINT = process.env.API_ENDPOINT;\r\nconst RESET_PASSWORD_ENDPOINT = process.env.RESET_PASSWORD_ENDPOINT;\r\n\r\n//#endregion API environment variables\r\n\r\nexport default class AuthorizedRequest {\r\n static store: Store;\r\n static setStore(store: Store>): void {\r\n AuthorizedRequest.store = store;\r\n }\r\n\r\n static getAccessToken(): SecureToken {\r\n let tokenResult = AuthorizedRequest.store.getState().user.authenticatedUser;\r\n if (tokenResult.token === '' || tokenResult.token === undefined)\r\n {\r\n return tokenResult;\r\n }\r\n\r\n const expiresOn = new Date(tokenResult.expiresOn);\r\n if (DateHelper.isExpired(expiresOn)) {\r\n AuthorizedRequest.store.dispatch({type: ActionTypes.USER_LOGIN_FAILED, payload: null});\r\n return tokenResult;\r\n }\r\n if (DateHelper.isExpiring(expiresOn)) {\r\n AuthorizedRequest.getRefreshToken(tokenResult).then((result: SecureToken) => {\r\n tokenResult = result;\r\n AuthorizedRequest.store.dispatch({type: ActionTypes.USER_LOGIN_SUCCEEDED, payload: tokenResult});\r\n });\r\n }\r\n\r\n return {\r\n token: tokenResult.token,\r\n username: tokenResult.username,\r\n isEmployee: tokenResult.isEmployee,\r\n hasActivePayroll: tokenResult.hasActivePayroll,\r\n expiresOn: expiresOn.toISOString(),\r\n scheme: tokenResult.scheme\r\n };\r\n }\r\n\r\n static forceRefreshToken(): void {\r\n let tokenResult = AuthorizedRequest.store.getState().user.authenticatedUser;\r\n if (tokenResult.token === '' || tokenResult.token === undefined) return;\r\n\r\n AuthorizedRequest.getRefreshToken(tokenResult).then((result: SecureToken) => {\r\n tokenResult = result;\r\n AuthorizedRequest.store.dispatch({type: ActionTypes.USER_LOGIN_SUCCEEDED, payload: tokenResult});\r\n });\r\n }\r\n\r\n static getRefreshToken(token: SecureToken) {\r\n const request = SuperAgent.post(API_ENDPOINT + 'token/refresh');\r\n request.set('Content-Type', 'application/json');\r\n request.set('X-ApiKey', API_KEY);\r\n request.set('Authorization', token.scheme + ' ' + token.token);\r\n\r\n return request\r\n .send({})\r\n .ok(res => res.status === 200)\r\n .then(response => {\r\n return response.body;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static setRequestHeaders(request: SuperAgent.Request, content?: boolean) {\r\n const accessToken = AuthorizedRequest.getAccessToken();\r\n if (content) request.set('Content-Type', 'application/json');\r\n request.set('X-ignorehateoas', '1');\r\n request.set('X-ApiKey', API_KEY);\r\n request.set('Authorization', accessToken.scheme + ' ' + accessToken.token);\r\n }\r\n\r\n static getAuthorizedRequest(resource: string) {\r\n const request = SuperAgent.get(API_ENDPOINT + resource);\r\n this.setRequestHeaders(request);\r\n return request;\r\n }\r\n\r\n static postAuthorizedRequest(resource: string, data: Record): SuperAgent.SuperAgentRequest {\r\n const request = SuperAgent.post(API_ENDPOINT + resource);\r\n this.setRequestHeaders(request, true);\r\n return request.send(data);\r\n }\r\n\r\n static putAuthorizedRequest(resource: string, data: Record) {\r\n const request = SuperAgent.put(API_ENDPOINT + resource);\r\n this.setRequestHeaders(request, true);\r\n return request.send(data);\r\n }\r\n\r\n static deleteAuthorizedRequest(resource: string) {\r\n const request = SuperAgent.del(API_ENDPOINT + resource);\r\n this.setRequestHeaders(request, true);\r\n return request;\r\n }\r\n\r\n static resetPassword(emailAddress: string) {\r\n const request = SuperAgent.post(RESET_PASSWORD_ENDPOINT);\r\n return request.send({userName: emailAddress});\r\n }\r\n}\r\n","import {StoreAssignment} from '../typescript/storeTypes';\r\nimport {TimesheetCode} from '../typescript/timesheetTypes';\r\nimport AuthorizedRequest from './authorizedRequests';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass AssignmentApi {\r\n static getAssignedTimesheetCodes(username: string, month: number, year: number) {\r\n return AuthorizedRequest.getAuthorizedRequest(`assignment/${encodeURIComponent(username)}/${month}/${year}`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n \r\n static getTimesheetsFromClientInfo(assignmentId: number) {\r\n return AuthorizedRequest.getAuthorizedRequest(`assignment/${assignmentId}/timesheetsfromclient`)\r\n .ok(res => res.status === 200)\r\n .then(response => {\r\n return {body: response.body, assignmentId: assignmentId};\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postAssignment(assignment: StoreAssignment) {\r\n return AuthorizedRequest.postAuthorizedRequest(`assignment/${encodeURIComponent(assignment.username)}`, assignment)\r\n .ok(res => res.status === 201)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postAssignmentCurrentUser(assignment: StoreAssignment) {\r\n return AuthorizedRequest.postAuthorizedRequest('assignment', assignment)\r\n .ok(res => res.status === 201)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postTimesheetCodeComplete(timesheetCodeToComplete: TimesheetCode) {\r\n return AuthorizedRequest.postAuthorizedRequest(`assignment/complete/${encodeURIComponent(timesheetCodeToComplete.username)}/${timesheetCodeToComplete.month}/${timesheetCodeToComplete.year}/${timesheetCodeToComplete.tsCodeId}`, {})\r\n .ok(res => res.status === 200)\r\n .then(() => { return; })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postTimesheetCodeCompleteCurrentUser(timesheetCodeToComplete: TimesheetCode) {\r\n return AuthorizedRequest.postAuthorizedRequest(`assignment/complete/${timesheetCodeToComplete.month}/${timesheetCodeToComplete.year}/${timesheetCodeToComplete.tsCodeId}`, {})\r\n .ok(res => res.status === 200)\r\n .then(() => { return; })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postTimesheetCodeIncomplete(timesheetCodeToIncomplete: TimesheetCode) {\r\n return AuthorizedRequest.postAuthorizedRequest(`assignment/incomplete/${encodeURIComponent(timesheetCodeToIncomplete.username)}/${timesheetCodeToIncomplete.month}/${timesheetCodeToIncomplete.year}/${timesheetCodeToIncomplete.tsCodeId}`,{})\r\n .ok(res => res.status === 200)\r\n .then(() => { return; })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postTimesheetCodeIncompleteCurrentUser(timesheetCodeToIncomplete: TimesheetCode) {\r\n return AuthorizedRequest.postAuthorizedRequest(`assignment/incomplete/${timesheetCodeToIncomplete.month}/${timesheetCodeToIncomplete.year}/${timesheetCodeToIncomplete.tsCodeId}`,{})\r\n .ok(res => res.status === 200)\r\n .then(() => { return; })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static deleteTimesheetCode(timesheetCodeToDelete: TimesheetCode) {\r\n return AuthorizedRequest.deleteAuthorizedRequest(`assignment/${encodeURIComponent(timesheetCodeToDelete.username)}/${timesheetCodeToDelete.month}/${timesheetCodeToDelete.year}/${timesheetCodeToDelete.tsCodeId}`)\r\n .ok(res => res.status === 200)\r\n .then(() => { return; })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static deleteTimesheetCodeCurrentUser(timesheetCodeToDelete: TimesheetCode) {\r\n return AuthorizedRequest.deleteAuthorizedRequest(`assignment/${timesheetCodeToDelete.month}/${timesheetCodeToDelete.year}/${timesheetCodeToDelete.tsCodeId}`)\r\n .ok(res => res.status === 200)\r\n .then(() => { return; })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default AssignmentApi;\r\n","import {ActionTypes} from '../types/actionTypes';\r\nimport {call, put, takeEvery} from 'redux-saga/effects';\r\nimport DeserifyHelper from '../helpers/DeserifyHelper';\r\nimport assignmentApi from '../api/assignmentApi';\r\n\r\nimport {Action} from '../typescript/actionTypes';\r\n\r\nfunction* postAssignment(action: Action): Generator {\r\n try {\r\n let result;\r\n if(action.payload.useUsername)\r\n {\r\n result = yield call(assignmentApi.postAssignment, DeserifyHelper.deserify(action.payload));\r\n }\r\n else {\r\n result = yield call(assignmentApi.postAssignmentCurrentUser, DeserifyHelper.deserify(action.payload));\r\n }\r\n\r\n action.payload.assignmentIds = [result.id];\r\n action.payload.commentMandatory = result.commentMandatory;\r\n\r\n yield put({type: ActionTypes.ADD_ASSIGNMENT_SUCCEEDED, payload: action.payload});\r\n } catch (e) {\r\n yield put({type: ActionTypes.ADD_ASSIGNMENT_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* postTimesheetCodeComplete(action: Action): Generator {\r\n try {\r\n if(action.payload.useUsername)\r\n {\r\n yield call(assignmentApi.postTimesheetCodeComplete, DeserifyHelper.deserify(action.payload));\r\n }\r\n else {\r\n yield call(assignmentApi.postTimesheetCodeCompleteCurrentUser, DeserifyHelper.deserify(action.payload));\r\n }\r\n\r\n yield put({type: ActionTypes.TIMESHEETCODE_COMPLETE_SUCCEEDED, payload: action.payload});\r\n } catch (e) {\r\n yield put({type: ActionTypes.TIMESHEETCODE_COMPLETE_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* postTimesheetCodeIncomplete(action: Action): Generator {\r\n try {\r\n if(action.payload.useUsername)\r\n {\r\n yield call(assignmentApi.postTimesheetCodeIncomplete, DeserifyHelper.deserify(action.payload));\r\n }\r\n else {\r\n yield call(assignmentApi.postTimesheetCodeIncompleteCurrentUser, DeserifyHelper.deserify(action.payload));\r\n }\r\n\r\n yield put({type: ActionTypes.TIMESHEETCODE_INCOMPLETE_SUCCEEDED, payload: action.payload});\r\n } catch (e) {\r\n yield put({type: ActionTypes.TIMESHEETCODE_INCOMPLETE_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* deleteTimesheetCode(action: Action): Generator {\r\n try {\r\n if(action.payload.useUsername)\r\n {\r\n yield call(assignmentApi.deleteTimesheetCode, DeserifyHelper.deserify(action.payload));\r\n }\r\n else {\r\n yield call(assignmentApi.deleteTimesheetCodeCurrentUser, DeserifyHelper.deserify(action.payload));\r\n }\r\n yield put({type: ActionTypes.TIMESHEETCODE_DELETE_SUCCEEDED, payload: action.payload});\r\n } catch (e) {\r\n yield put({type: ActionTypes.TIMESHEETCODE_DELETE_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* getAssignedTimesheetCodes(action: Action): Generator {\r\n try {\r\n yield put({\r\n type: ActionTypes.GET_ASSIGNED_TIMESHEET_CODES_SUCCEEDED,\r\n payload: yield call(assignmentApi.getAssignedTimesheetCodes, action.payload.username, action.payload.month, action.payload.year)\r\n });\r\n } catch (e) {\r\n yield put({type: ActionTypes.GET_ASSIGNED_TIMESHEET_CODES_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* getTimesheetsFromClientInfo(action: Action): Generator {\r\n try {\r\n yield put({\r\n type: ActionTypes.GET_TIMESHEETS_FROM_CLIENT_INFO_SUCCEEDED,\r\n payload: yield call(assignmentApi.getTimesheetsFromClientInfo, DeserifyHelper.deserify(action.payload))\r\n });\r\n } catch (e) {\r\n yield put({type: ActionTypes.GET_TIMESHEETS_FROM_CLIENT_INFO_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* assignmentSaga(): Generator {\r\n yield takeEvery(ActionTypes.ADD_ASSIGNMENT_REQUESTED, postAssignment);\r\n yield takeEvery(ActionTypes.TIMESHEETCODE_COMPLETE_REQUESTED, postTimesheetCodeComplete);\r\n yield takeEvery(ActionTypes.TIMESHEETCODE_INCOMPLETE_REQUESTED, postTimesheetCodeIncomplete);\r\n yield takeEvery(ActionTypes.TIMESHEETCODE_DELETE_REQUESTED, deleteTimesheetCode);\r\n yield takeEvery(ActionTypes.GET_ASSIGNED_TIMESHEET_CODES_REQUESTED, getAssignedTimesheetCodes);\r\n yield takeEvery(ActionTypes.GET_TIMESHEETS_FROM_CLIENT_INFO_REQUESTED, getTimesheetsFromClientInfo);\r\n}\r\n\r\nexport default assignmentSaga;\r\n","import AuthorizedRequest from './authorizedRequests';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass DocumentApi {\r\n static getAssignmentDocument(payload: any) {\r\n return AuthorizedRequest.getAuthorizedRequest(`document/assignmentdocument/${payload.assignmentDocumentId}`)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => {\r\n const customResponse = {\r\n blob: response.body,\r\n fileName: payload.filename\r\n };\r\n return customResponse;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n static deleteAssignmentDocument(payload: any) {\r\n return AuthorizedRequest.deleteAuthorizedRequest(`document/assignmentdocument/${payload.assignmentDocumentId}`)\r\n .ok(res => res.status === 200)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default DocumentApi;\r\n","import {ActionTypes} from '../types/actionTypes';\r\nimport {call, put, takeEvery} from 'redux-saga/effects';\r\nimport documentApi from '../api/documentApi';\r\n\r\nimport {Action} from '../typescript/actionTypes';\r\nimport { Messages } from '../types/messageTypes';\r\nimport { blobToBase64 } from 'file64';\r\nimport MessageHelper from '../helpers/messageHelper';\r\n\r\nfunction* getAssignmentDocument(action: Action): Generator {\r\n try {\r\n const result = yield call(documentApi.getAssignmentDocument, action.payload);\r\n\r\n let base64;\r\n yield blobToBase64(result.blob).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.GET_ASSIGNMENTDOCUMENT_SUCCEEDED, payload: { fileName: action.payload.filename, base64: base64}});\r\n } catch (e) {\r\n yield put({type: ActionTypes.GET_ASSIGNMENTDOCUMENT_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* deleteAssignmentDocument(action: Action): Generator {\r\n try {\r\n yield call(documentApi.deleteAssignmentDocument, action.payload);\r\n\r\n MessageHelper.showMessage(Messages.DeletedDocumentSuccessfully);\r\n yield put({type: ActionTypes.DELETE_ASSIGNMENTDOCUMENT_SUCCEEDED, payload: action.payload});\r\n } catch (e) {\r\n yield put({type: ActionTypes.DELETE_ASSIGNMENTDOCUMENT_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* documentSaga(): Generator {\r\n yield takeEvery(ActionTypes.GET_ASSIGNMENTDOCUMENT_REQUESTED, getAssignmentDocument);\r\n yield takeEvery(ActionTypes.DELETE_ASSIGNMENTDOCUMENT_REQUESTED, deleteAssignmentDocument);\r\n}\r\n\r\nexport default documentSaga;\r\n","import AuthorizedRequest from './authorizedRequests';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass GroupApi {\r\n static getGroups(): Promise {\r\n return AuthorizedRequest.getAuthorizedRequest('group')\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default GroupApi;\r\n","import {ActionTypes} from '../types/actionTypes';\r\nimport {call, put, takeEvery} from 'redux-saga/effects';\r\nimport groupApi from '../api/groupApi';\r\n\r\nfunction* getGroups(): Generator {\r\n try {\r\n const groups = yield call(groupApi.getGroups);\r\n yield put({type: ActionTypes.GET_GROUPS_SUCCEEDED, payload: groups});\r\n } catch (e) {\r\n yield put({type: ActionTypes.GET_GROUPS_FAILED, payload: null});\r\n }\r\n}\r\n\r\nfunction* groupSaga(): Generator {\r\n yield takeEvery(ActionTypes.GET_GROUPS_REQUESTED, getGroups);\r\n}\r\n\r\nexport default groupSaga;\r\n","import AuthorizedRequest from './authorizedRequests';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass ImportApi {\r\n static postValidateActuals(actuals: Record) {\r\n return AuthorizedRequest.postAuthorizedRequest('import/actuals', actuals)\r\n .ok(res => res.status === 200)\r\n .then(response => {\r\n return response.body;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postProcessImportActuals(importId: string) {\r\n return AuthorizedRequest.postAuthorizedRequest(`import/actuals/${importId}/process`, {})\r\n .ok(res => res.status === 200)\r\n .then(response => {\r\n return response.body;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default ImportApi;\r\n","import {ActionTypes} from '../types/actionTypes';\r\nimport {call, put, takeEvery} from 'redux-saga/effects';\r\nimport DeserifyHelper from '../helpers/DeserifyHelper';\r\nimport importApi from '../api/importApi';\r\n\r\nimport {Action} from '../typescript/actionTypes';\r\n\r\n\r\nfunction* validateActuals(action: Action): Generator {\r\n try {\r\n const validatedActuals = yield call(importApi.postValidateActuals, DeserifyHelper.deserify(action.payload));\r\n\r\n yield put({type: ActionTypes.VALIDATE_ACTUALS_SUCCEEDED, payload: {actuals: validatedActuals, errorMessage: ''}});\r\n } catch (e) {\r\n yield put({type: ActionTypes.VALIDATE_ACTUALS_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* processImportActuals(action: Action): Generator {\r\n try {\r\n yield call(importApi.postProcessImportActuals, action.payload.importId);\r\n\r\n yield put({type: ActionTypes.PROCESS_IMPORT_ACTUALS_SUCCEEDED, payload: null});\r\n } catch (e) {\r\n yield put({type: ActionTypes.PROCESS_IMPORT_ACTUALS_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* importSaga(): Generator {\r\n yield takeEvery(ActionTypes.VALIDATE_ACTUALS_REQUESTED, validateActuals);\r\n yield takeEvery(ActionTypes.PROCESS_IMPORT_ACTUALS_REQUESTED, processImportActuals);\r\n}\r\n\r\nexport default importSaga;\r\n","import { Filter, SortingStyle } from '../typescript/sentInvoiceTypes';\r\nimport AuthorizedRequest from './authorizedRequests';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass InvoiceApi {\r\n static searchInvoice(invoiceNumber: string) {\r\n return AuthorizedRequest.getAuthorizedRequest(`invoice/search?invoiceNumber=${btoa(invoiceNumber)}`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getInvoice(invoiceId: string, invoiceNumber: string) {\r\n return AuthorizedRequest.getAuthorizedRequest(`invoice/${invoiceId}/duplicate`)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => {\r\n const customResponse = {\r\n fileName: `${invoiceNumber.replace(/\\//g,'_')}.pdf`,\r\n blob: response.body\r\n };\r\n return customResponse;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getSentInvoices(icPartnerId: number, page: number, invoiceDateRangeStart: string, invoiceDateRangeEnd: string, filter: Filter, sortingStyle: SortingStyle) {\r\n let parameters = '';\r\n parameters += `&invoicedaterangestart=${invoiceDateRangeStart}&invoicedaterangeend=${invoiceDateRangeEnd}`;\r\n if(filter.supplier) {\r\n parameters += `&supplier=${btoa(filter.supplier)}`;\r\n }\r\n if(filter.invoicenumber) {\r\n parameters += `&invoicenumber=${btoa(filter.invoicenumber)}`;\r\n }\r\n if(filter.customer) {\r\n parameters += `&customer=${btoa(filter.customer)}`;\r\n }\r\n if(filter.amount) {\r\n parameters += `&amount=${filter.amount}`;\r\n }\r\n if(filter.paid) {\r\n parameters += `&paid=${parseInt(filter.paid) > 0 ? '1' : '0'}`;\r\n }\r\n if(sortingStyle.sortBy) {\r\n parameters += `&sortby=${sortingStyle.sortBy}`;\r\n }\r\n if(sortingStyle.sortOrder) {\r\n parameters += `&sortorder=${sortingStyle.sortOrder}`;\r\n }\r\n\r\n\r\n return AuthorizedRequest.getAuthorizedRequest(`invoice/sentinvoices/${icPartnerId}?page=${page}${parameters}`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static searchInvoiceNumber(invoiceNumber: string, page = 1) {\r\n if (!invoiceNumber) return new Promise(() => { return; }).then(() => []);\r\n return AuthorizedRequest.getAuthorizedRequest(`invoice/searchinvoicenumber/${page}/${encodeURIComponent(btoa(invoiceNumber.padEnd(5, '%')))}`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getTsCodes(search: string, page = 1, month: number = (new Date().getMonth() +1 ), year: number = new Date().getFullYear(), showOldAndReadOnly = false, showAllAliases = false) {\r\n if (!search) return new Promise(() => { return; }).then(() => []);\r\n return AuthorizedRequest.getAuthorizedRequest(`timesheetcode/search?page=${page}&name=${encodeURIComponent(search.padEnd(5, '%'))}&month=${month}&year=${year}&showOldAndReadOnly=${showOldAndReadOnly ? '1' : '0'}&showAllAliases=${showAllAliases ? '1' : '0'}`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default InvoiceApi;\r\n","import {ActionTypes} from '../types/actionTypes';\r\nimport {call, put, takeEvery} from 'redux-saga/effects';\r\n\r\nimport {Action} from '../typescript/actionTypes';\r\nimport { blobToBase64 } from 'file64';\r\nimport DeserifyHelper from '../helpers/DeserifyHelper';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\nimport invoiceApi from '../api/invoiceApi';\r\n\r\nfunction* searchInvoice(action: Action): Generator {\r\n try {\r\n const invoice = yield call(invoiceApi.searchInvoice, action.payload.invoiceNumber);\r\n const pdf = yield call(invoiceApi.getInvoice, invoice.id, action.payload.invoiceNumber);\r\n\r\n let base64;\r\n yield blobToBase64(pdf.blob).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.SEARCH_INVOICE_SUCCEEDED, payload: {pdf: {fileName: pdf.fileName, base64 : base64, download: action.payload.download}}});\r\n } catch (e) {\r\n ErrorHelper.showMessageOnNoContent(e);\r\n yield put({type: ActionTypes.SEARCH_INVOICE_FAILED, payload: null});\r\n }\r\n}\r\n\r\nfunction* getSentInvoices(action: Action): Generator {\r\n try {\r\n const payload = DeserifyHelper.deserify(action.payload);\r\n const sortingStyle = { sortOrder: payload.sortOrder, sortBy: payload.sortBy };\r\n const sentInvoices = yield call(invoiceApi.getSentInvoices, payload.icPartnerId, payload.page, payload.invoiceDateRangeStart, payload.invoiceDateRangeEnd, payload, sortingStyle);\r\n\r\n yield put({type: ActionTypes.GET_SENT_INVOICES_SUCCEEDED, payload: sentInvoices});\r\n } catch (e) {\r\n const sentInvoices: any[] = [];\r\n yield put({type: ActionTypes.GET_SENT_INVOICES_FAILED, payload: sentInvoices});\r\n }\r\n}\r\n\r\nfunction* searchInvoiceNumbers(action: Action): Generator {\r\n try {\r\n const invoiceNumbers = yield call(invoiceApi.searchInvoiceNumber, action.payload.invoiceNumber, action.payload.page);\r\n yield put({type: ActionTypes.SEARCH_INVOICENUMBERS_SUCCEEDED, payload: invoiceNumbers});\r\n } catch (e) {\r\n const invoiceNumbers: any[] = [];\r\n yield put({type: ActionTypes.SEARCH_INVOICENUMBERS_FAILED, payload: invoiceNumbers});\r\n }\r\n}\r\n\r\nfunction* clearInvoiceNumbers(): Generator {\r\n yield put({type: ActionTypes.CLEAR_INVOICE_NUMBERS_SUCCEEDED});\r\n}\r\n\r\nfunction* getInvoice(action: Action): Generator {\r\n try {\r\n const pdf = yield call(invoiceApi.getInvoice, action.payload.invoiceId, action.payload.invoiceNumber);\r\n\r\n let base64;\r\n yield blobToBase64(pdf.blob).then(r => base64 = r);\r\n yield put({type: ActionTypes.GET_INVOICE_SUCCEEDED, payload: {pdf: {fileName: pdf.fileName, base64 : base64}}});\r\n } catch (e) {\r\n ErrorHelper.showMessageOnNoContent(e);\r\n\r\n yield put({type: ActionTypes.GET_INVOICE_FAILED, payload: null});\r\n }\r\n}\r\n\r\nfunction* invoiceSaga(): Generator {\r\n yield takeEvery(ActionTypes.SEARCH_INVOICE_REQUESTED, searchInvoice);\r\n yield takeEvery(ActionTypes.GET_SENT_INVOICES_REQUESTED, getSentInvoices);\r\n yield takeEvery(ActionTypes.SEARCH_INVOICENUMBERS_REQUESTED, searchInvoiceNumbers);\r\n yield takeEvery(ActionTypes.CLEAR_INVOICE_NUMBERS_REQUESTED, clearInvoiceNumbers);\r\n yield takeEvery(ActionTypes.GET_INVOICE_REQUESTED, getInvoice);\r\n}\r\n\r\nexport default invoiceSaga;\r\n","import AuthorizedRequest from './authorizedRequests';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass MaintenanceApi {\r\n static getMaintenanceDetails() {\r\n return AuthorizedRequest.getAuthorizedRequest('settings/maintenancemode')\r\n .ok(res => res.status === 200)\r\n .then(response => {\r\n return response.body;\r\n }).catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static checkVersion() {\r\n let version = '';\r\n if(process.env.BUILD_VERSION && process.env.BUILD_VERSION !== null) {\r\n version = process.env.BUILD_VERSION;\r\n }\r\n\r\n return AuthorizedRequest.getAuthorizedRequest(`settings/version/website/islatest/${version}`)\r\n .ok(res => res.status === 200)\r\n .then(response => {\r\n return response.body;\r\n }).catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default MaintenanceApi;\r\n","import {ActionTypes} from '../types/actionTypes';\r\nimport {call, put, takeEvery} from 'redux-saga/effects';\r\nimport maintenanceApi from '../api/maintenanceApi';\r\n\r\nfunction* getMaintenanceDetails(): Generator {\r\n try {\r\n const maintenanceDetails = yield call(maintenanceApi.getMaintenanceDetails);\r\n yield put({type: ActionTypes.MAINTENANCE_DETAILS_SUCCEEDED, payload: maintenanceDetails});\r\n } catch (e) {\r\n yield put({type: ActionTypes.MAINTENANCE_DETAILS_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* checkVersion(): Generator {\r\n try {\r\n const isLatest = yield call(maintenanceApi.checkVersion);\r\n yield put({type: ActionTypes.CHECK_VERSION_SUCCEEDED, payload: isLatest});\r\n } catch (e) {\r\n yield put({type: ActionTypes.CHECK_VERSION_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* maintenanceSaga(): Generator {\r\n yield takeEvery(ActionTypes.MAINTENANCE_DETAILS_REQUESTED, getMaintenanceDetails);\r\n yield takeEvery(ActionTypes.CHECK_VERSION_REQUESTED, checkVersion);\r\n}\r\n\r\nexport default maintenanceSaga;\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {put, takeEvery} from 'redux-saga/effects';\r\n\r\nimport { StoreSavedPreset } from '../typescript/storeTypes';\r\nimport DeserifyHelper from '../helpers/DeserifyHelper';\r\n\r\nconst storage = window.localStorage;\r\n\r\nfunction* getPresets(): Generator {\r\n try {\r\n const savedPresets = getSavedPresetsFromLocalStorage();\r\n yield put({type: ActionTypes.GET_PRESETS_SUCCEEDED, payload: savedPresets});\r\n } catch (e) {\r\n yield put({type: ActionTypes.GET_PRESETS_FAILED, payload: []});\r\n }\r\n}\r\n\r\nfunction* savePreset(action: Action): Generator {\r\n try {\r\n const payload = DeserifyHelper.deserify(action.payload);\r\n const savedPresets = getSavedPresetsFromLocalStorage();\r\n const foundPreset = savedPresets.find((p: StoreSavedPreset) => comparePresets(p, payload));\r\n if(foundPreset) {\r\n foundPreset.data = payload.data;\r\n } else {\r\n const presetToSave = {\r\n location: payload.location.toLowerCase(),\r\n name: payload.name.toLowerCase(),\r\n data: payload.data\r\n };\r\n savedPresets.push(presetToSave);\r\n }\r\n\r\n savePresetsToLocalStorage(savedPresets);\r\n yield put({type: ActionTypes.SAVE_PRESET_SUCCEEDED, payload: savedPresets});\r\n } catch (e) {\r\n yield put({type: ActionTypes.SAVE_PRESET_FAILED, payload: []});\r\n }\r\n}\r\n\r\nfunction* deletePreset(action: Action): Generator {\r\n try {\r\n const savedPresets = getSavedPresetsFromLocalStorage();\r\n const savedPresetWithoutPresetToDelete = savedPresets.filter((p: StoreSavedPreset) => !comparePresets(p, action.payload));\r\n\r\n savePresetsToLocalStorage(savedPresetWithoutPresetToDelete);\r\n yield put({type: ActionTypes.DELETE_PRESET_SUCCEEDED, payload: savedPresetWithoutPresetToDelete});\r\n } catch (e) {\r\n yield put({type: ActionTypes.DELETE_PRESET_FAILED, payload: undefined});\r\n }\r\n}\r\n\r\nfunction getSavedPresetsFromLocalStorage() {\r\n const savedPresets = storage.getItem('savedPresets');\r\n return savedPresets !== null ? JSON.parse(savedPresets) : [];\r\n}\r\n\r\nfunction savePresetsToLocalStorage(presets: StoreSavedPreset[]) {\r\n if(presets === null) {\r\n presets = [];\r\n }\r\n storage.setItem('savedPresets', JSON.stringify(presets));\r\n}\r\n\r\nfunction comparePresets(preset1: StoreSavedPreset, preset2: StoreSavedPreset) {\r\n return preset1.location.toLowerCase() === preset2.location.toLowerCase() && preset1.name.toLowerCase() === preset2.name.toLowerCase();\r\n}\r\n\r\nfunction* presetSaga(): Generator {\r\n yield takeEvery(ActionTypes.GET_PRESETS_REQUESTED, getPresets);\r\n yield takeEvery(ActionTypes.SAVE_PRESET_REQUESTED, savePreset);\r\n yield takeEvery(ActionTypes.DELETE_PRESET_REQUESTED, deletePreset);\r\n}\r\n\r\nexport default presetSaga;\r\n","import {ProjectBasedTimesheetReportType} from '../typescript/reportTypes';\r\nimport AuthorizedRequest from './authorizedRequests';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass ProjectApi {\r\n static getAllProjects(){\r\n return AuthorizedRequest.getAuthorizedRequest('project')\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static generateProjectReport(project: ProjectBasedTimesheetReportType){\r\n return AuthorizedRequest.postAuthorizedRequest(`project/${project.id}/report`, project)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default ProjectApi;\r\n","import {ActionTypes} from '../types/actionTypes';\r\nimport {call, put, takeEvery} from 'redux-saga/effects';\r\nimport projectApi from '../api/projectApi';\r\n\r\nimport {Action} from '../typescript/actionTypes';\r\nimport { MessageTypes } from '../types/messageTypes';\r\nimport DeserifyHelper from '../helpers/DeserifyHelper';\r\nimport MessageHelper from '../helpers/messageHelper';\r\n\r\nfunction* getAllProjects(): Generator {\r\n try {\r\n const projects = yield call(projectApi.getAllProjects);\r\n yield put({type: ActionTypes.GET_ALL_PROJECTS_SUCCEEDED, payload: projects});\r\n } catch (e) {\r\n const projects: any[] = [];\r\n yield put({type: ActionTypes.GET_ALL_PROJECTS_FAILED, payload: projects});\r\n }\r\n}\r\n\r\nfunction* generateProjectReport(action: Action): Generator {\r\n try {\r\n yield call(projectApi.generateProjectReport, DeserifyHelper.deserify(action.payload));\r\n MessageHelper.showMessage({type: MessageTypes.INFO, message: 'Report successfully added to mail queue.'});\r\n yield put({type: ActionTypes.GENERATE_PROJECT_REPORT_SUCCEEDED, payload: null});\r\n } catch (e) {\r\n const report: any[] = [];\r\n yield put({type: ActionTypes.GENERATE_PROJECT_REPORT_FAILED, payload: report});\r\n }\r\n}\r\n\r\nfunction* projectSaga(): Generator {\r\n yield takeEvery(ActionTypes.GET_ALL_PROJECTS_REQUESTED, getAllProjects);\r\n yield takeEvery(ActionTypes.GENERATE_PROJECT_REPORT_REQUESTED, generateProjectReport);\r\n}\r\nexport default projectSaga;\r\n","import AuthorizedRequest from './authorizedRequests';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass ReleaseNoteApi {\r\n static getReleaseNotes() {\r\n return AuthorizedRequest.getAuthorizedRequest('releasenote')\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default ReleaseNoteApi;\r\n","import {ActionTypes} from '../types/actionTypes';\r\nimport {call, put, takeEvery} from 'redux-saga/effects';\r\nimport releaseNoteApi from '../api/releaseNoteApi';\r\n\r\nfunction* getReleaseNotes(): Generator {\r\n try {\r\n const releaseNotes = yield call(releaseNoteApi.getReleaseNotes);\r\n yield put({type: ActionTypes.GET_RELEASE_NOTES_SUCCEEDED, payload: releaseNotes});\r\n } catch (e) {\r\n const releaseNotes = [] as any[];\r\n yield put({type: ActionTypes.GET_RELEASE_NOTES_FAILED, payload: releaseNotes});\r\n }\r\n}\r\n\r\nfunction* releaseNoteSaga(): Generator {\r\n yield takeEvery(ActionTypes.GET_RELEASE_NOTES_REQUESTED, getReleaseNotes);\r\n}\r\n\r\nexport default releaseNoteSaga;\r\n","import {ActualsReportType, TimeLeftOnOrderType, TimesheetsLandscapeReportType, TimesheetsReportType, TimesheetsWeeklyReportType} from '../typescript/reportTypes';\r\nimport AuthorizedRequest from './authorizedRequests';\r\nimport DateHelper from '../helpers/dateHelper';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass ReportApi {\r\n static exportActualsPdf(actuals: ActualsReportType) {\r\n return AuthorizedRequest.postAuthorizedRequest(`reports/actuals/pdf?orderby=${actuals.orderBy}`, actuals)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => {\r\n const customResponse = {\r\n fileName: `Actuals_${DateHelper.getIsoFormattedDate(actuals.startDate, '-')}_${DateHelper.getIsoFormattedDate(actuals.endDate,'-')}.pdf`,\r\n blob: response.body\r\n };\r\n return customResponse;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getTimeLeftOnOrder(timeLeftOnOrder: TimeLeftOnOrderType) {\r\n return AuthorizedRequest.postAuthorizedRequest('reports/order/timeleft', timeLeftOnOrder)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static exportActualsCsv(actuals: ActualsReportType) {\r\n return AuthorizedRequest.postAuthorizedRequest(`reports/actuals/csv?orderby=${actuals.orderBy}`, actuals)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => {\r\n const customResponse = {\r\n fileName: `Actuals_${DateHelper.getIsoFormattedDate(actuals.startDate, '-')}_${DateHelper.getIsoFormattedDate(actuals.endDate,'-')}.csv`,\r\n blob: response.body\r\n };\r\n return customResponse;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static exportActualsExcel(actuals: ActualsReportType) {\r\n return AuthorizedRequest.postAuthorizedRequest(`reports/actuals/excel?orderby=${actuals.orderBy}`, actuals)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => {\r\n const customResponse = {\r\n fileName: `Actuals_${DateHelper.getIsoFormattedDate(actuals.startDate, '-')}_${DateHelper.getIsoFormattedDate(actuals.endDate,'-')}.xlsx`,\r\n blob: response.body\r\n };\r\n return customResponse;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static exportTimesheetsPdf(timesheets: TimesheetsReportType) {\r\n return AuthorizedRequest.postAuthorizedRequest('reports/timesheets/pdf', timesheets)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => {\r\n const customResponse = {\r\n fileName: `Timesheets_${timesheets.month}_${timesheets.year}.pdf`,\r\n blob: response.body\r\n };\r\n return customResponse;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static exportTimesheetsWeeklyPdf(timesheets: TimesheetsWeeklyReportType) {\r\n return AuthorizedRequest.postAuthorizedRequest('reports/timesheetsweekly/pdf', timesheets)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => {\r\n const customResponse = {\r\n fileName: `Timesheets_${DateHelper.getIsoFormattedDate(timesheets.startDate, '-')}.pdf`,\r\n blob: response.body\r\n };\r\n return customResponse;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static exportTimesheetsWeeklyExcel(timesheets: TimesheetsWeeklyReportType) {\r\n return AuthorizedRequest.postAuthorizedRequest('reports/timesheetsweekly/excel', timesheets)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => {\r\n const customResponse = {\r\n fileName: `Timesheets_${DateHelper.getIsoFormattedDate(timesheets.startDate, '-')}.xlsx`,\r\n blob: response.body\r\n };\r\n return customResponse;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static exportTimesheetsLandscapePdf(timesheets: TimesheetsLandscapeReportType) {\r\n return AuthorizedRequest.postAuthorizedRequest('reports/timesheetslandscape/pdf', timesheets)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => {\r\n const customResponse = {\r\n fileName: `Timesheets_Landscape_${timesheets.month}_${timesheets.year}.pdf`,\r\n blob: response.body\r\n };\r\n return customResponse;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static exportTimesheetsLandscapeExcel(timesheets: TimesheetsLandscapeReportType) {\r\n return AuthorizedRequest.postAuthorizedRequest('reports/timesheetslandscape/excel', timesheets)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => {\r\n const customResponse = {\r\n fileName: `Timesheets_Landscape_${timesheets.month}_${timesheets.year}.xlsx`,\r\n blob: response.body\r\n };\r\n return customResponse;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default ReportApi;\r\n","import {ActionTypes} from '../types/actionTypes';\r\nimport {call, put, takeEvery} from 'redux-saga/effects';\r\n\r\nimport {Action} from '../typescript/actionTypes';\r\nimport { blobToBase64 } from 'file64';\r\nimport DeserifyHelper from '../helpers/DeserifyHelper';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\nimport reportApi from '../api/reportApi';\r\n\r\nfunction* exportActualsCsv(action: Action): Generator {\r\n try {\r\n const result = yield call(reportApi.exportActualsCsv, DeserifyHelper.deserify(action.payload));\r\n\r\n let base64;\r\n yield blobToBase64(result.blob).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.EXPORT_ACTUALS_CSV_SUCCEEDED, payload: {blob: base64, fileName: result.fileName}});\r\n } catch (e) {\r\n ErrorHelper.showMessageOnNoContent(e);\r\n yield put({type: ActionTypes.EXPORT_ACTUALS_CSV_FAILED, payload: null});\r\n }\r\n}\r\n\r\nfunction* exportActualsPdf(action: Action): Generator {\r\n try {\r\n const result = yield call(reportApi.exportActualsPdf, DeserifyHelper.deserify(action.payload));\r\n\r\n let base64;\r\n yield blobToBase64(result.blob).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.EXPORT_ACTUALS_PDF_SUCCEEDED, payload: {blob: base64, fileName: result.fileName}});\r\n } catch (e) {\r\n ErrorHelper.showMessageOnNoContent(e);\r\n yield put({type: ActionTypes.EXPORT_ACTUALS_PDF_FAILED, payload: null});\r\n }\r\n}\r\n\r\nfunction* exportActualsExcel(action: Action): Generator {\r\n try {\r\n const result = yield call(reportApi.exportActualsExcel, DeserifyHelper.deserify(action.payload));\r\n\r\n let base64;\r\n yield blobToBase64(result.blob).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.EXPORT_ACTUALS_EXCEL_SUCCEEDED, payload: {blob: base64, fileName: result.fileName}});\r\n } catch (e) {\r\n ErrorHelper.showMessageOnNoContent(e);\r\n yield put({type: ActionTypes.EXPORT_ACTUALS_EXCEL_FAILED, payload: null});\r\n }\r\n}\r\n\r\nfunction* exportTimesheetsPdf(action: Action): Generator {\r\n try {\r\n const result = yield call(reportApi.exportTimesheetsPdf, DeserifyHelper.deserify(action.payload));\r\n\r\n let base64;\r\n yield blobToBase64(result.blob).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.EXPORT_TIMESHEETS_PDF_SUCCEEDED, payload: {blob: base64, fileName: result.fileName}});\r\n } catch (e) {\r\n ErrorHelper.showMessageOnNoContent(e);\r\n yield put({type: ActionTypes.EXPORT_TIMESHEETS_PDF_FAILED, payload: null});\r\n }\r\n}\r\n\r\nfunction* exportTimesheetsLandscapePdf(action: Action): Generator {\r\n try {\r\n const result = yield call(reportApi.exportTimesheetsLandscapePdf, DeserifyHelper.deserify(action.payload));\r\n\r\n let base64;\r\n yield blobToBase64(result.blob).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_PDF_SUCCEEDED, payload: {blob: base64, fileName: result.fileName}});\r\n } catch (e) {\r\n ErrorHelper.showMessageOnNoContent(e);\r\n yield put({type: ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_PDF_FAILED, payload: null});\r\n }\r\n}\r\n\r\nfunction* exportTimesheetsWeeklyPdf(action: Action): Generator {\r\n try {\r\n const result = yield call(reportApi.exportTimesheetsWeeklyPdf, DeserifyHelper.deserify(action.payload));\r\n\r\n let base64;\r\n yield blobToBase64(result.blob).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.EXPORT_TIMESHEETS_WEEKLY_PDF_SUCCEEDED, payload: {blob: base64, fileName: result.fileName}});\r\n } catch (e) {\r\n ErrorHelper.showMessageOnNoContent(e);\r\n yield put({type: ActionTypes.EXPORT_TIMESHEETS_WEEKLY_PDF_FAILED, payload: null});\r\n }\r\n}\r\n\r\nfunction* exportTimesheetsWeeklyExcel(action: Action): Generator {\r\n try {\r\n const result = yield call(reportApi.exportTimesheetsWeeklyExcel, DeserifyHelper.deserify(action.payload));\r\n\r\n let base64;\r\n yield blobToBase64(result.blob).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.EXPORT_TIMESHEETS_WEEKLY_EXCEL_SUCCEEDED, payload: {blob: base64, fileName: result.fileName}});\r\n } catch (e) {\r\n ErrorHelper.showMessageOnNoContent(e);\r\n yield put({type: ActionTypes.EXPORT_TIMESHEETS_WEEKLY_EXCEL_FAILED, payload: null});\r\n }\r\n}\r\n\r\nfunction* exportTimesheetsLandscapeExcel(action: Action): Generator {\r\n try {\r\n const result = yield call(reportApi.exportTimesheetsLandscapeExcel, DeserifyHelper.deserify(action.payload));\r\n\r\n let base64;\r\n yield blobToBase64(result.blob).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_SUCCEEDED, payload: {blob: base64, fileName: result.fileName}});\r\n } catch (e) {\r\n ErrorHelper.showMessageOnNoContent(e);\r\n yield put({type: ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_FAILED, payload: null});\r\n }\r\n}\r\n\r\nfunction* postGetTimeLeftOnOrder(action: Action): Generator {\r\n try {\r\n const result = yield call(reportApi.getTimeLeftOnOrder, DeserifyHelper.deserify(action.payload));\r\n\r\n yield put({type: ActionTypes.POST_GET_TIME_LEFT_ON_ORDER_SUCCEEDED, payload: result});\r\n } catch (e) {\r\n ErrorHelper.showMessageOnNoContent(e);\r\n yield put({type: ActionTypes.POST_GET_TIME_LEFT_ON_ORDER_FAILED, payload: null});\r\n }\r\n}\r\n\r\nfunction* clearTimeLeftOnOrder(): Generator {\r\n yield put({type: ActionTypes.CLEAR_TIME_LEFT_ON_ORDER_SUCCEEDED, payload: null});\r\n}\r\n\r\nfunction* reportSaga(): Generator {\r\n yield takeEvery(ActionTypes.EXPORT_ACTUALS_CSV_REQUESTED, exportActualsCsv);\r\n yield takeEvery(ActionTypes.EXPORT_ACTUALS_EXCEL_REQUESTED, exportActualsExcel);\r\n yield takeEvery(ActionTypes.EXPORT_ACTUALS_PDF_REQUESTED, exportActualsPdf);\r\n yield takeEvery(ActionTypes.EXPORT_TIMESHEETS_PDF_REQUESTED, exportTimesheetsPdf);\r\n yield takeEvery(ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_PDF_REQUESTED, exportTimesheetsLandscapePdf);\r\n yield takeEvery(ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_REQUESTED, exportTimesheetsLandscapeExcel);\r\n yield takeEvery(ActionTypes.EXPORT_TIMESHEETS_WEEKLY_PDF_REQUESTED, exportTimesheetsWeeklyPdf);\r\n yield takeEvery(ActionTypes.EXPORT_TIMESHEETS_WEEKLY_EXCEL_REQUESTED, exportTimesheetsWeeklyExcel);\r\n yield takeEvery(ActionTypes.POST_GET_TIME_LEFT_ON_ORDER_REQUESTED, postGetTimeLeftOnOrder);\r\n yield takeEvery(ActionTypes.CLEAR_TIME_LEFT_ON_ORDER_REQUESTED, clearTimeLeftOnOrder);\r\n}\r\n\r\nexport default reportSaga;\r\n","import {combineReducers} from 'redux';\r\nimport assignedTimesheetCodes from './assignedTimesheetCodesReducer';\r\nimport calls from './callsReducer';\r\nimport documents from './documentReducer';\r\nimport group from './groupReducer';\r\nimport invoiceDetails from './invoiceReducer';\r\nimport maintenanceDetails from './maintenanceReducer';\r\nimport mostRecentTsCodes from './mostRecentTsCodeReducer';\r\nimport projects from './projectReducer';\r\nimport releaseNotes from './releaseNoteReducer';\r\nimport reporting from './reportReducer';\r\nimport settings from './settingsReducer';\r\nimport suppliers from './supplierReducer';\r\nimport timesheet from './timesheetReducer';\r\nimport timesheetsFromClient from './timesheetsFromClientReducer';\r\nimport tsCodes from './tsCodeReducer';\r\nimport user from './userReducer';\r\nimport userPresets from './presetReducer';\r\nimport validatedActuals from './validatedActualsReducer';\r\n\r\nconst rootReducer = combineReducers({\r\n user,\r\n timesheet,\r\n settings,\r\n tsCodes,\r\n mostRecentTsCodes,\r\n calls,\r\n suppliers,\r\n reporting,\r\n maintenanceDetails,\r\n validatedActuals,\r\n releaseNotes,\r\n invoiceDetails,\r\n assignedTimesheetCodes,\r\n userPresets,\r\n timesheetsFromClient,\r\n documents,\r\n projects,\r\n group\r\n});\r\n\r\nexport default rootReducer;\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport {StoreInvoiceViewerSupplier, StoreUser, StoreVisibleSupplier} from '../typescript/storeTypes';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nexport default function (state: StoreUser = InitialState.user, action: Action): StoreUser {\r\n const logoutUser = () => {\r\n return Object.assign({}, state, {\r\n authenticatedUser: InitialState.user.authenticatedUser,\r\n employee: InitialState.user.employee,\r\n impersonatedUser: InitialState.user.impersonatedUser,\r\n visibleUsers: InitialState.user.visibleUsers,\r\n permissions: InitialState.user.permissions,\r\n visibleSuppliers: InitialState.user.visibleSuppliers,\r\n invoiceViewerSuppliers: InitialState.user.invoiceViewerSuppliers\r\n });\r\n };\r\n\r\n switch (action.type) {\r\n case ActionTypes.USER_LOGOUT: {\r\n return logoutUser();\r\n }\r\n case ActionTypes.USER_ADFS_LOGIN_SUCCEEDED:\r\n case ActionTypes.USER_LOGIN_SUCCEEDED: {\r\n return Object.assign({}, state, {\r\n authenticatedUser: action.payload,\r\n authenticationError: ''\r\n });\r\n }\r\n case ActionTypes.USER_ADFS_LOGIN_FAILED:\r\n case ActionTypes.USER_LOGIN_FAILED: {\r\n return Object.assign({}, logoutUser(), {authenticationError: action.payload});\r\n }\r\n case ActionTypes.USER_SUCCEEDED: {\r\n return Object.assign({}, state, {\r\n employee: action.payload,\r\n impersonatedUser: action.payload\r\n });\r\n }\r\n case ActionTypes.PERMISSIONS_SUCCEEDED: {\r\n return Object.assign({}, state, {permissions: action.payload});\r\n }\r\n case ActionTypes.VISIBLE_USERS_SUCCEEDED: {\r\n return Object.assign({}, state, {visibleUsers: action.payload});\r\n }\r\n case ActionTypes.VISIBLE_SUPPLIERS_SUCCEEDED: {\r\n (action.payload as StoreVisibleSupplier[]).sort((sup1: StoreVisibleSupplier, sup2: StoreVisibleSupplier) => {\r\n if(sup1.name.toLowerCase() > sup2.name.toLowerCase()) return 1;\r\n if(sup1.name.toLowerCase() < sup2.name.toLowerCase()) return -1;\r\n return 0;\r\n });\r\n\r\n return Object.assign({}, state, {visibleSuppliers: action.payload});\r\n }\r\n case ActionTypes.INVOICEVIEWER_SUPPLIERS_SUCCEEDED: {\r\n (action.payload as StoreInvoiceViewerSupplier[]).sort((sup1: StoreInvoiceViewerSupplier, sup2: StoreInvoiceViewerSupplier) => {\r\n if(sup1.name.toLowerCase() > sup2.name.toLowerCase()) return 1;\r\n if(sup1.name.toLowerCase() < sup2.name.toLowerCase()) return -1;\r\n return 0;\r\n });\r\n\r\n return Object.assign({}, state, {invoiceViewerSuppliers: action.payload});\r\n }\r\n\r\n case ActionTypes.USER_GROUPS_SUCCEEDED: {\r\n return Object.assign({}, state, {userGroups: action.payload});\r\n }\r\n\r\n case ActionTypes.CHANGE_USER_REQUESTED: {\r\n return Object.assign({}, state, {impersonatedUser: action.payload});\r\n }\r\n case ActionTypes.TIMESHEET_REQUEST_FAILED:\r\n case ActionTypes.ADD_ENTRY_FAILED:\r\n case ActionTypes.DELETE_ENTRY_FAILED:\r\n case ActionTypes.EXPORT_MONTHLY_TIMESHEET_EXCEL_FAILED:\r\n case ActionTypes.EXPORT_MONTHLY_TIMESHEET_FAILED:\r\n case ActionTypes.EXPORT_WEEKLY_TIMESHEET_FAILED:\r\n case ActionTypes.MOST_RECENT_TSCODES_FAILED:\r\n case ActionTypes.PERMISSIONS_FAILED:\r\n case ActionTypes.SUPPLIERS_FAILED:\r\n case ActionTypes.TIMESHEET_COMPLETE_FAILED:\r\n case ActionTypes.TIMESHEET_INCOMPLETE_FAILED:\r\n case ActionTypes.TIMESHEETCODE_COMPLETE_FAILED:\r\n case ActionTypes.TIMESHEETCODE_DELETE_FAILED:\r\n case ActionTypes.TIMESHEETCODE_INCOMPLETE_FAILED:\r\n case ActionTypes.SUPPLIERS_EMPLOYEES_FAILED:\r\n case ActionTypes.TSCODES_FAILED:\r\n case ActionTypes.UPDATE_ENTRY_FAILED:\r\n case ActionTypes.USER_FAILED:\r\n case ActionTypes.VISIBLE_USERS_FAILED:\r\n case ActionTypes.VISIBLE_SUPPLIERS_FAILED:\r\n case ActionTypes.INVOICEVIEWER_SUPPLIERS_FAILED:\r\n case ActionTypes.ADD_ASSIGNMENT_FAILED:\r\n case ActionTypes.MAINTENANCE_DETAILS_FAILED:\r\n case ActionTypes.CHECK_VERSION_FAILED:\r\n case ActionTypes.USER_GROUPS_FAILED: {\r\n if(ErrorHelper.errorHasStatusCode(action.payload, 401, 503)) {\r\n return logoutUser();\r\n }\r\n return state;\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport { base64ToBlob } from 'file64';\r\nimport {saveAs} from 'file-saver';\r\n\r\nimport DateHelper from '../helpers/dateHelper';\r\n\r\nimport {AddedAssignment} from '../typescript/assignmentTypes';\r\nimport {StoreMonthYear, StoreSigningHubOverview, StoreTimesheet, StoreTimesheetCode} from '../typescript/storeTypes';\r\nimport { defaultOptions, serify } from '@karmaniverous/serify-deserify';\r\n\r\n\r\n\r\nexport default function (state: StoreTimesheet = InitialState.timesheet, action: Action): StoreTimesheet {\r\n switch (action.type) {\r\n case ActionTypes.TIMESHEET_REQUEST_SUCCEEDED: {\r\n const timesheet: StoreTimesheet = action.payload;\r\n return Object.assign({}, timesheet, {\r\n incompleteMonths: [...state.incompleteMonths],\r\n timesheetCodes: timesheet.timesheetCodes.map(timesheetCode => {\r\n const maxModDate = new Date(Math.max.apply(null, timesheetCode.entries.slice().map(t => new Date(t.modDate)) as unknown as number[]));\r\n\r\n return Object.assign(timesheetCode, {\r\n expanded: false,\r\n entries: timesheetCode.entries.map(entry => {\r\n return Object.assign(entry, {\r\n date: DateHelper.createDateFromServerDate(entry.date).toDateString(),\r\n totalHours: entry.normalHours + entry.extraHours + entry.standByHours + entry.interventionHours\r\n });\r\n }),\r\n modDate: serify(DateHelper.isInvalidDate(maxModDate) ? new Date() : maxModDate, defaultOptions)\r\n });\r\n }),\r\n signingHubOverview: [...state.signingHubOverview]\r\n });\r\n }\r\n case ActionTypes.TIMESHEET_COMPLETE_SUCCEEDED: {\r\n //Remove month from incompletes if neccessary\r\n const completedMonthIndex = state.incompleteMonths.findIndex(im => im.month === state.period.month && im.year === state.period.year);\r\n const incompletedMonths = [...state.incompleteMonths];\r\n if (completedMonthIndex !== -1) {\r\n incompletedMonths.splice(completedMonthIndex, 1);\r\n }\r\n\r\n let updatedState = Object.assign({}, state, {\r\n timesheetCodes: state.timesheetCodes.map(timesheetCode => Object.assign({}, timesheetCode,\r\n {\r\n entries: timesheetCode.entries.map(entry => Object.assign({}, entry, {completed: true}))\r\n })),\r\n incompleteMonths: incompletedMonths\r\n });\r\n\r\n updatedState = Object.assign({}, updatedState, {\r\n timesheetCodes: updatedState.timesheetCodes.map(timesheetCode =>\r\n {\r\n const completedMonths: StoreMonthYear[] = [];\r\n if (timesheetCode.entries.length > 0) {\r\n timesheetCode.entries.forEach(function(entry) {\r\n if(entry.completed && completedMonths.findIndex(cm => cm.month === DateHelper.getNormalizedDate(new Date(entry.date)).getMonth()+1 && cm.year === DateHelper.getNormalizedDate(new Date(entry.date)).getFullYear()) === -1) {\r\n completedMonths.push({month: DateHelper.getNormalizedDate(new Date(entry.date)).getMonth()+1, year: DateHelper.getNormalizedDate(new Date(entry.date)).getFullYear()});\r\n }\r\n });\r\n }\r\n else {\r\n completedMonths.push({month: state.period.month, year: state.period.year});\r\n }\r\n return Object.assign({}, timesheetCode, {completedMonths: completedMonths});\r\n }\r\n )\r\n });\r\n\r\n return updatedState;\r\n }\r\n case ActionTypes.TIMESHEET_INCOMPLETE_SUCCEEDED: {\r\n let updatedState = Object.assign({}, state, {\r\n timesheetCodes: state.timesheetCodes.map(timesheetCode => Object.assign({}, timesheetCode, {\r\n entries: timesheetCode.entries.map(entry => Object.assign({}, entry, {completed: false}))\r\n })),\r\n });\r\n\r\n updatedState = Object.assign({}, updatedState, {\r\n timesheetCodes: updatedState.timesheetCodes.map(timesheetCode =>\r\n {\r\n const completedMonths: StoreMonthYear[] = [];\r\n if (timesheetCode.entries.length > 0) {\r\n timesheetCode.entries.forEach(function(entry) {\r\n if(entry.completed && completedMonths.findIndex(cm => cm.month === DateHelper.getNormalizedDate(new Date(entry.date)).getMonth()+1 && cm.year === DateHelper.getNormalizedDate(new Date(entry.date)).getFullYear()) === -1) {\r\n completedMonths.push({month: DateHelper.getNormalizedDate(new Date(entry.date)).getMonth()+1, year: DateHelper.getNormalizedDate(new Date(entry.date)).getFullYear()});\r\n }\r\n });\r\n }\r\n\r\n return Object.assign({}, timesheetCode, {completedMonths: completedMonths});\r\n }\r\n )\r\n });\r\n\r\n return updatedState;\r\n }\r\n case ActionTypes.TIMESHEETCODE_COMPLETE_SUCCEEDED: {\r\n const updatedTsCodeIndex = state.timesheetCodes.findIndex(timesheetCode => timesheetCode.id === action.payload.tsCodeId);\r\n\r\n const updatedState = Object.assign({}, state, {timesheetCodes: [...state.timesheetCodes]});\r\n\r\n updatedState.timesheetCodes[updatedTsCodeIndex] = Object.assign({}, updatedState.timesheetCodes[updatedTsCodeIndex], {\r\n entries: updatedState.timesheetCodes[updatedTsCodeIndex].entries.map(entry => Object.assign({}, entry, {completed: true})),\r\n completedMonths: [{month: state.period.month, year: state.period.year}]\r\n });\r\n\r\n return updatedState;\r\n }\r\n case ActionTypes.TIMESHEETCODE_INCOMPLETE_SUCCEEDED: {\r\n const updatedTsCodeIndex = state.timesheetCodes.findIndex(timesheetCode => timesheetCode.id === action.payload.tsCodeId);\r\n\r\n const updatedState = Object.assign({}, state, {timesheetCodes: [...state.timesheetCodes]});\r\n const index = updatedState.timesheetCodes[updatedTsCodeIndex].completedMonths.findIndex(cm => cm.month === state.period.month && cm.year === state.period.year);\r\n\r\n const completedMonths = updatedState.timesheetCodes[updatedTsCodeIndex].completedMonths.slice();\r\n if (index !== -1) {\r\n completedMonths.splice(index, 1);\r\n }\r\n updatedState.timesheetCodes[updatedTsCodeIndex] = Object.assign({}, updatedState.timesheetCodes[updatedTsCodeIndex], {\r\n entries: updatedState.timesheetCodes[updatedTsCodeIndex].entries.map(entry => Object.assign({}, entry, {completed: false})),\r\n completedMonths: completedMonths\r\n });\r\n\r\n return updatedState;\r\n }\r\n case ActionTypes.TIMESHEETCODE_DELETE_SUCCEEDED: {\r\n const deletedTsCodeIndex = state.timesheetCodes.findIndex(timesheetCode => timesheetCode.id === action.payload.tsCodeId);\r\n\r\n const updatedState = Object.assign({}, state, {timesheetCodes: [...state.timesheetCodes]});\r\n updatedState.timesheetCodes.splice(deletedTsCodeIndex, 1);\r\n\r\n return updatedState;\r\n }\r\n case ActionTypes.USER_LOGOUT: {\r\n return Object.assign({}, state, {timesheetCodes: []});\r\n }\r\n case ActionTypes.ADD_ENTRY_SUCCEEDED: {\r\n const updatedTsCodeIndex = state.timesheetCodes.findIndex(timesheetCode => timesheetCode.id === action.payload.entryInfo.tsCodeId);\r\n\r\n const updatedState = Object.assign({}, state, {timesheetCodes: [...state.timesheetCodes]});\r\n updatedState.timesheetCodes[updatedTsCodeIndex] = Object.assign({}, updatedState.timesheetCodes[updatedTsCodeIndex], {\r\n entries: [...updatedState.timesheetCodes[updatedTsCodeIndex].entries, action.payload.entry]\r\n });\r\n\r\n return updatedState;\r\n }\r\n case ActionTypes.UPDATE_ENTRY_SUCCEEDED: {\r\n const updatedTsCodeIndex = state.timesheetCodes.findIndex(timesheetCode => timesheetCode.id === action.payload.entryInfo.tsCodeId);\r\n const updatedEntryIndex = state.timesheetCodes[updatedTsCodeIndex].entries.findIndex(entry => entry.id === action.payload.entry.id);\r\n\r\n const updatedState = Object.assign({}, state, {timesheetCodes: [...state.timesheetCodes]});\r\n updatedState.timesheetCodes[updatedTsCodeIndex] = Object.assign({}, updatedState.timesheetCodes[updatedTsCodeIndex], {\r\n entries: [...updatedState.timesheetCodes[updatedTsCodeIndex].entries]\r\n });\r\n updatedState.timesheetCodes[updatedTsCodeIndex].entries[updatedEntryIndex] = action.payload.entry;\r\n\r\n return updatedState;\r\n }\r\n case ActionTypes.DELETE_ENTRY_SUCCEEDED: {\r\n const updatedTsCodeIndex = state.timesheetCodes.findIndex(timesheetCode => timesheetCode.id === action.payload.tsCodeId);\r\n const deletedEntryIndex = state.timesheetCodes[updatedTsCodeIndex].entries.findIndex(entry => entry.id === action.payload.entryId);\r\n\r\n const updatedState = Object.assign({}, state, {timesheetCodes: [...state.timesheetCodes]});\r\n updatedState.timesheetCodes[updatedTsCodeIndex] = Object.assign({}, updatedState.timesheetCodes[updatedTsCodeIndex], {\r\n entries: [...updatedState.timesheetCodes[updatedTsCodeIndex].entries]\r\n });\r\n\r\n updatedState.timesheetCodes[updatedTsCodeIndex].entries.splice(deletedEntryIndex, 1);\r\n\r\n return updatedState;\r\n }\r\n case ActionTypes.ADD_ASSIGNMENT_SUCCEEDED: {\r\n const assignment: AddedAssignment = action.payload;\r\n const newTsCode: StoreTimesheetCode = {\r\n id: assignment.tsCodeId,\r\n assignmentIds: assignment.assignmentIds,\r\n name: assignment.name,\r\n description: assignment.description,\r\n internalApprovers: assignment.internalApprovers,\r\n customerApprovers: assignment.customerApprovers,\r\n isReadOnly: false,\r\n isTsCodeActive: true,\r\n expanded: false,\r\n isVacationOrIllness: false,\r\n isHoliday: false,\r\n isBillable: assignment.isBillable,\r\n internalApprovalType: assignment.internalApprovalType,\r\n customerApprovalType: assignment.customerApprovalType,\r\n entries: [],\r\n completedMonths: [],\r\n commentMandatory: assignment.commentMandatory,\r\n modDate: new Date()\r\n };\r\n\r\n const firstReadOnlyTimesheetCodeIndex = state.timesheetCodes.findIndex(timesheetCode => timesheetCode.isReadOnly);\r\n let timesheetCodeIndex = state.timesheetCodes.findIndex(timesheetCode => timesheetCode.name >= newTsCode.name);\r\n const updatedState = Object.assign({}, state, {timesheetCodes: [...state.timesheetCodes]});\r\n\r\n if (firstReadOnlyTimesheetCodeIndex !== -1 && timesheetCodeIndex === -1) {\r\n timesheetCodeIndex = firstReadOnlyTimesheetCodeIndex;\r\n }\r\n\r\n if (timesheetCodeIndex === -1) {\r\n updatedState.timesheetCodes.push(newTsCode);\r\n }\r\n else {\r\n updatedState.timesheetCodes.splice(timesheetCodeIndex, 0, newTsCode);\r\n }\r\n\r\n return updatedState;\r\n }\r\n case ActionTypes.TIMESHEET_CODE_EXPAND: {\r\n const updatedTsCodeIndex = state.timesheetCodes.findIndex(timesheetCode => timesheetCode.id === action.payload.id);\r\n\r\n const updatedState = Object.assign({}, state, {timesheetCodes: [...state.timesheetCodes]});\r\n updatedState.timesheetCodes[updatedTsCodeIndex] = Object.assign({}, updatedState.timesheetCodes[updatedTsCodeIndex], {\r\n expanded: !updatedState.timesheetCodes[updatedTsCodeIndex].expanded\r\n });\r\n\r\n return updatedState;\r\n }\r\n case ActionTypes.GET_INCOMPLETE_TIMESHEETS_SUCCEEDED: {\r\n const updatedState = Object.assign({}, state, {incompleteMonths: action.payload});\r\n return updatedState;\r\n }\r\n case ActionTypes.EXPORT_MONTHLY_TIMESHEET_SUCCEEDED: {\r\n base64ToBlob(action.payload).then(r => saveAs(r, 'Monthly_Export.pdf'));\r\n return state;\r\n }\r\n case ActionTypes.EXPORT_MONTHLY_TIMESHEET_EXCEL_SUCCEEDED: {\r\n base64ToBlob(action.payload).then(r => saveAs(r, 'Monthly_Export.xlsx'));\r\n return state;\r\n }\r\n case ActionTypes.EXPORT_WEEKLY_TIMESHEET_SUCCEEDED: {\r\n base64ToBlob(action.payload).then(r => saveAs(r, 'Weekly_Export.pdf'));\r\n return state;\r\n }\r\n case ActionTypes.EXPORT_WEEKLY_TIMESHEET_EXCEL_SUCCEEDED: {\r\n base64ToBlob(action.payload).then(r => saveAs(r, 'Weekly_Export.xlsx'));\r\n return state;\r\n }\r\n case ActionTypes.EXPORT_ACTUALS_PDF_SUCCEEDED:\r\n case ActionTypes.EXPORT_ACTUALS_CSV_SUCCEEDED:\r\n case ActionTypes.EXPORT_ACTUALS_EXCEL_SUCCEEDED:\r\n case ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_PDF_SUCCEEDED:\r\n case ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_SUCCEEDED:\r\n case ActionTypes.EXPORT_TIMESHEETS_WEEKLY_PDF_SUCCEEDED:\r\n case ActionTypes.EXPORT_TIMESHEETS_WEEKLY_EXCEL_SUCCEEDED:\r\n case ActionTypes.EXPORT_TIMESHEETS_PDF_SUCCEEDED: {\r\n base64ToBlob(action.payload.blob).then(r => saveAs(r, action.payload.fileName));\r\n return state;\r\n }\r\n case ActionTypes.TIMESHEET_REQUEST_FAILED: {\r\n return Object.assign({}, state, {period: action.payload.period, timesheetCodes: []});\r\n }\r\n case ActionTypes.GET_SIGNINGHUB_OVERVIEW_SUCCEEDED: {\r\n const overview: StoreSigningHubOverview[] = action.payload;\r\n\r\n const updatedState = Object.assign({}, state, {signingHubOverview: overview});\r\n\r\n return updatedState;\r\n }\r\n case ActionTypes.GET_SIGNINGHUB_OVERVIEW_FAILED:\r\n case ActionTypes.CLEAR_SIGNINGHUB_OVERVIEW_REQUESTED: {\r\n const updatedState = Object.assign({}, state, {signingHubOverview: [] });\r\n\r\n return updatedState;\r\n }\r\n case ActionTypes.CANCEL_SIGNING_HUB_QUEUE_SUCCEEDED: {\r\n //const updatedIndex = state.signingHubOverview.findIndex(sho => sho.signingHubQueueId === action.payload);\r\n //const updatedOverviewItem = Object.assign({}, state.signingHubOverview[updatedIndex]);\r\n //updatedOverviewItem.status = 'Cancelling';\r\n //\r\n //const updatedState = Object.assign({}, state)\r\n//\r\n //return updatedState;\r\n\r\n const updatedTsCodeIndex = state.signingHubOverview.findIndex(sho => sho.signingHubQueueId === action.payload);\r\n\r\n const updatedState = Object.assign({}, state, {signingHubOverview: [...state.signingHubOverview]});\r\n updatedState.signingHubOverview[updatedTsCodeIndex] = Object.assign({}, updatedState.signingHubOverview[updatedTsCodeIndex], {\r\n status: 'Cancelling'\r\n });\r\n\r\n return updatedState;\r\n }\r\n default: {\r\n return state;\r\n }\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport {StoreSettings} from '../typescript/storeTypes';\r\n\r\nexport default function (state: StoreSettings = InitialState.settings, action: Action): StoreSettings {\r\n switch (action.type) {\r\n case ActionTypes.UPDATE_SETTING: {\r\n return Object.assign({}, state, action.payload);\r\n }\r\n default: {\r\n return state;\r\n }\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport {StoreTsCodes} from '../typescript/storeTypes';\r\n\r\nexport default function (state: StoreTsCodes = InitialState.tsCodes, action: Action): StoreTsCodes {\r\n switch (action.type) {\r\n case ActionTypes.TSCODES_SUCCEEDED: {\r\n return (action.payload as StoreTsCodes);\r\n }\r\n case ActionTypes.CLEAR_TSCODES_REQUESTED: {\r\n return InitialState.tsCodes;\r\n }\r\n default: {\r\n return state;\r\n }\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport {StoreTsCodes} from '../typescript/storeTypes';\r\n\r\nexport default function (state: StoreTsCodes = InitialState.mostRecentTsCodes, action: Action): StoreTsCodes {\r\n switch (action.type) {\r\n case ActionTypes.MOST_RECENT_TSCODES_SUCCEEDED: {\r\n return (action.payload as StoreTsCodes);\r\n }\r\n default: {\r\n return state;\r\n }\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport {StoreCalls} from '../typescript/storeTypes';\r\n\r\nexport default function (state: StoreCalls = InitialState.calls, action: Action): StoreCalls {\r\n switch (action.type) {\r\n case ActionTypes.TIMESHEET_COMPLETE_REQUESTED:\r\n case ActionTypes.TIMESHEET_INCOMPLETE_REQUESTED:\r\n case ActionTypes.TIMESHEETCODE_COMPLETE_REQUESTED:\r\n case ActionTypes.TIMESHEETCODE_INCOMPLETE_REQUESTED: {\r\n return Object.assign({}, state, {timesheetCompletionCalled: true});\r\n }\r\n case ActionTypes.TIMESHEETCODE_COMPLETE_SUCCEEDED:\r\n case ActionTypes.TIMESHEETCODE_INCOMPLETE_SUCCEEDED:\r\n case ActionTypes.TIMESHEET_COMPLETE_SUCCEEDED:\r\n case ActionTypes.TIMESHEET_INCOMPLETE_SUCCEEDED:\r\n case ActionTypes.TIMESHEET_COMPLETE_FAILED:\r\n case ActionTypes.TIMESHEET_INCOMPLETE_FAILED:\r\n case ActionTypes.TIMESHEETCODE_COMPLETE_FAILED:\r\n case ActionTypes.TIMESHEETCODE_INCOMPLETE_FAILED: {\r\n return Object.assign({}, state, {timesheetCompletionCalled: false});\r\n }\r\n case ActionTypes.USER_ADFS_LOGIN_REQUESTED:\r\n case ActionTypes.USER_LOGIN_REQUESTED: {\r\n return Object.assign({}, state, {loginRequested: true});\r\n }\r\n case ActionTypes.OPEN_EXPORT_MONTHLY: {\r\n return Object.assign({}, state, {exportMonthlyOpen: true});\r\n }\r\n case ActionTypes.OPEN_TIMESHEET_COMPLETE: {\r\n return Object.assign({}, state, {completeTimesheetOpen: true});\r\n }\r\n case ActionTypes.OPEN_CHANGE_USER: {\r\n return Object.assign({}, state, {changeUserOpen: true});\r\n }\r\n case ActionTypes.OPEN_SETTINGS: {\r\n return Object.assign({}, state, {settingsOpen: true});\r\n }\r\n case ActionTypes.OPEN_PROFILE: {\r\n return Object.assign({}, state, {profileOpen: true});\r\n }\r\n case ActionTypes.CLOSE_HEADER_SCREENS: {\r\n return Object.assign({}, state, {exportMonthlyOpen: false, completeTimesheetOpen: false, changeUserOpen: false, profileOpen: false, settingsOpen:false});\r\n }\r\n case ActionTypes.USER_LOGIN_SUCCEEDED:\r\n case ActionTypes.USER_ADFS_LOGIN_SUCCEEDED:\r\n case ActionTypes.USER_ADFS_LOGIN_FAILED:\r\n case ActionTypes.USER_LOGIN_FAILED: {\r\n return Object.assign({}, state, {loginRequested: false});\r\n }\r\n case ActionTypes.EXPORT_ACTUALS_CSV_REQUESTED:\r\n case ActionTypes.EXPORT_ACTUALS_EXCEL_REQUESTED:\r\n case ActionTypes.EXPORT_ACTUALS_PDF_REQUESTED:\r\n case ActionTypes.EXPORT_TIMESHEETS_PDF_REQUESTED:\r\n case ActionTypes.EXPORT_TIMESHEETS_WEEKLY_PDF_REQUESTED:\r\n case ActionTypes.EXPORT_TIMESHEETS_WEEKLY_EXCEL_REQUESTED:\r\n case ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_PDF_REQUESTED:\r\n case ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_REQUESTED:\r\n case ActionTypes.GENERATE_PROJECT_REPORT_REQUESTED: {\r\n return Object.assign({}, state, {reportRequested: true});\r\n }\r\n case ActionTypes.EXPORT_ACTUALS_CSV_SUCCEEDED:\r\n case ActionTypes.EXPORT_ACTUALS_CSV_FAILED:\r\n case ActionTypes.EXPORT_ACTUALS_EXCEL_SUCCEEDED:\r\n case ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_PDF_SUCCEEDED:\r\n case ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_PDF_FAILED:\r\n case ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_SUCCEEDED:\r\n case ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_FAILED:\r\n case ActionTypes.EXPORT_TIMESHEETS_WEEKLY_PDF_SUCCEEDED:\r\n case ActionTypes.EXPORT_TIMESHEETS_WEEKLY_PDF_FAILED:\r\n case ActionTypes.EXPORT_TIMESHEETS_WEEKLY_EXCEL_SUCCEEDED:\r\n case ActionTypes.EXPORT_TIMESHEETS_WEEKLY_EXCEL_FAILED:\r\n case ActionTypes.EXPORT_TIMESHEETS_PDF_SUCCEEDED:\r\n case ActionTypes.EXPORT_TIMESHEETS_PDF_FAILED:\r\n case ActionTypes.EXPORT_ACTUALS_EXCEL_FAILED:\r\n case ActionTypes.EXPORT_ACTUALS_PDF_SUCCEEDED:\r\n case ActionTypes.EXPORT_ACTUALS_PDF_FAILED:\r\n case ActionTypes.GENERATE_PROJECT_REPORT_SUCCEEDED:\r\n case ActionTypes.GENERATE_PROJECT_REPORT_FAILED: {\r\n return Object.assign({}, state, {reportRequested: false});\r\n }\r\n case ActionTypes.VALIDATE_ACTUALS_REQUESTED: {\r\n return Object.assign({}, state, {validateActualsRequested: true});\r\n }\r\n case ActionTypes.VALIDATE_ACTUALS_SUCCEEDED:\r\n case ActionTypes.VALIDATE_ACTUALS_FAILED: {\r\n return Object.assign({}, state, {validateActualsRequested: false});\r\n }\r\n case ActionTypes.PROCESS_IMPORT_ACTUALS_REQUESTED: {\r\n return Object.assign({}, state, {processImportActualsRequested: true});\r\n }\r\n case ActionTypes.PROCESS_IMPORT_ACTUALS_SUCCEEDED:\r\n case ActionTypes.PROCESS_IMPORT_ACTUALS_FAILED: {\r\n return Object.assign({}, state, {processImportActualsRequested: false});\r\n }\r\n case ActionTypes.SEARCH_INVOICE_REQUESTED: {\r\n return Object.assign({}, state, {invoiceRequested: !action.payload.download});\r\n }\r\n case ActionTypes.SEARCH_INVOICE_SUCCEEDED:\r\n case ActionTypes.SEARCH_INVOICE_FAILED: {\r\n return Object.assign({}, state, {invoiceRequested: false});\r\n }\r\n case ActionTypes.GET_SUPPLIER_INVOICENUMBERS_REQUESTED: {\r\n return Object.assign({}, state, {invoiceNumbersRequested: true});\r\n }\r\n case ActionTypes.GET_SUPPLIER_INVOICENUMBERS_SUCCEEDED:\r\n case ActionTypes.GET_SUPPLIER_INVOICENUMBERS_FAILED: {\r\n return Object.assign({}, state, {invoiceNumbersRequested: false});\r\n }\r\n default: {\r\n return state;\r\n }\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport {StoreSupplier, StoreSuppliers} from '../typescript/storeTypes';\r\n\r\nexport default function (state: StoreSuppliers = InitialState.suppliers, action: Action): StoreSuppliers {\r\n switch (action.type) {\r\n case ActionTypes.SUPPLIERS_SUCCEEDED: {\r\n return Object.assign({}, state, { suppliers: action.payload as StoreSupplier[] });\r\n }\r\n case ActionTypes.GET_ALL_SUPPLIERS_SUCCEEDED: {\r\n return Object.assign({}, state, { allSuppliers: action.payload as StoreSupplier[] });\r\n }\r\n case ActionTypes.CLEAR_SUPPLIERS_REQUESTED: {\r\n return Object.assign({}, state, { suppliers: [] as StoreSupplier[] });\r\n }\r\n default: {\r\n return state;\r\n }\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport {StoreReporting} from '../typescript/storeTypes';\r\n\r\nexport default function (state: StoreReporting = InitialState.reporting, action: Action): StoreReporting {\r\n switch (action.type) {\r\n case ActionTypes.SUPPLIERS_EMPLOYEES_SUCCEEDED: {\r\n return Object.assign({}, state, {supplierEmployees: action.payload});\r\n }\r\n case ActionTypes.POST_GET_TIME_LEFT_ON_ORDER_SUCCEEDED: {\r\n return Object.assign({}, state, {timeLeftOnOrder: action.payload});\r\n }\r\n case ActionTypes.CLEAR_TIME_LEFT_ON_ORDER_SUCCEEDED: {\r\n return Object.assign({}, state, {timeLeftOnOrder: InitialState.reporting.timeLeftOnOrder, icPartnersOnTsCode: InitialState.reporting.icPartnersOnTsCode});\r\n }\r\n case ActionTypes.GET_TSCODES_ICPARTNERS_SUCCEEDED: {\r\n return Object.assign({}, state, {icPartnersOnTsCode: action.payload});\r\n }\r\n case ActionTypes.SUPPLIERS_EMPLOYEES_FAILED:\r\n case ActionTypes.CLEAR_SUPPLIERS_EMPLOYEES_REQUESTED: {\r\n return Object.assign({}, state, {supplierEmployees: []});\r\n }\r\n default: {\r\n return state;\r\n }\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport {StoreMaintenanceDetails} from '../typescript/storeTypes';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nexport default function (state: StoreMaintenanceDetails = InitialState.maintenanceDetails, action: Action): StoreMaintenanceDetails {\r\n\r\n switch (action.type) {\r\n case ActionTypes.MAINTENANCE_DETAILS_SUCCEEDED: {\r\n return Object.assign({}, state, {\r\n isInMaintenanceMode: action.payload.isInMaintenanceMode,\r\n maintenanceScheduleStartTime: action.payload.maintenanceScheduleStartTime,\r\n maintenanceScheduleEndTime: action.payload.maintenanceScheduleEndTime\r\n });\r\n }\r\n case ActionTypes.MAINTENANCE_DETAILS_FAILED: {\r\n const pattern = /\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z/g;\r\n\r\n const startDateMatch = pattern.exec(action.payload);\r\n if(startDateMatch !== null)\r\n {\r\n const endDateMatch = pattern.exec(action.payload);\r\n\r\n const startTime = new Date(startDateMatch as any);\r\n const endTime = new Date(endDateMatch as any);\r\n\r\n return Object.assign({}, state, {\r\n isInMaintenanceMode: true,\r\n maintenanceScheduleStartTime: new Date(startTime),\r\n maintenanceScheduleEndTime: new Date(endTime),\r\n isLatestVersion: true\r\n });\r\n }\r\n return state;\r\n }\r\n case ActionTypes.CHECK_VERSION_SUCCEEDED: {\r\n return Object.assign({}, state, {isLatestVersion: action.payload.isLatest});\r\n }\r\n case ActionTypes.TIMESHEET_REQUEST_FAILED:\r\n case ActionTypes.ADD_ENTRY_FAILED:\r\n case ActionTypes.DELETE_ENTRY_FAILED:\r\n case ActionTypes.EXPORT_MONTHLY_TIMESHEET_EXCEL_FAILED:\r\n case ActionTypes.EXPORT_MONTHLY_TIMESHEET_FAILED:\r\n case ActionTypes.EXPORT_WEEKLY_TIMESHEET_FAILED:\r\n case ActionTypes.MOST_RECENT_TSCODES_FAILED:\r\n case ActionTypes.PERMISSIONS_FAILED:\r\n case ActionTypes.SUPPLIERS_FAILED:\r\n case ActionTypes.TIMESHEET_COMPLETE_FAILED:\r\n case ActionTypes.TIMESHEET_INCOMPLETE_FAILED:\r\n case ActionTypes.TIMESHEETCODE_COMPLETE_FAILED:\r\n case ActionTypes.TIMESHEETCODE_DELETE_FAILED:\r\n case ActionTypes.TIMESHEETCODE_INCOMPLETE_FAILED:\r\n case ActionTypes.SUPPLIERS_EMPLOYEES_FAILED:\r\n case ActionTypes.TSCODES_FAILED:\r\n case ActionTypes.UPDATE_ENTRY_FAILED:\r\n case ActionTypes.USER_FAILED:\r\n case ActionTypes.VISIBLE_USERS_FAILED:\r\n case ActionTypes.VISIBLE_SUPPLIERS_FAILED:\r\n case ActionTypes.ADD_ASSIGNMENT_FAILED: {\r\n if(ErrorHelper.errorHasStatusCode(action.payload, 503)) {\r\n return Object.assign({}, state, {isInMaintenanceMode: true});\r\n }\r\n\r\n return state;\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport {StoreActualsToValidate} from '../typescript/storeTypes';\r\n\r\nexport default function (state: StoreActualsToValidate = InitialState.validatedActuals, action: Action): StoreActualsToValidate {\r\n\r\n switch (action.type) {\r\n case ActionTypes.VALIDATE_ACTUALS_SUCCEEDED: {\r\n return (action.payload as StoreActualsToValidate);\r\n }\r\n case ActionTypes.VALIDATE_ACTUALS_FAILED: {\r\n return Object.assign({}, state, {errorMessage: `Something went wrong (${action.payload})`});\r\n }\r\n case ActionTypes.CLEAR_VALIDATED_ACTUALS_REQUESTED:\r\n case ActionTypes.PROCESS_IMPORT_ACTUALS_SUCCEEDED: {\r\n return InitialState.validatedActuals;\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport {StoreReleaseNotes} from '../typescript/storeTypes';\r\n\r\nexport default function (state: StoreReleaseNotes = InitialState.releaseNotes, action: Action): StoreReleaseNotes {\r\n switch (action.type) {\r\n case ActionTypes.GET_RELEASE_NOTES_SUCCEEDED: {\r\n return Object.assign({}, state, action.payload);\r\n }\r\n default: {\r\n return state;\r\n }\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport { base64ToBlob } from 'file64';\r\nimport {saveAs} from 'file-saver';\r\n\r\nimport {StoreInvoiceDetails, StoreSentInvoice} from '../typescript/storeTypes';\r\n\r\nexport default function (state: StoreInvoiceDetails = InitialState.invoiceDetails, action: Action): StoreInvoiceDetails {\r\n\r\n switch (action.type) {\r\n case ActionTypes.SEARCH_INVOICE_SUCCEEDED: {\r\n if(action.payload.download) {\r\n base64ToBlob(action.payload.pdf.base64).then(r => saveAs(r, action.payload.pdf.fileName));\r\n return state;\r\n }\r\n return Object.assign({}, state, {invoice: action.payload.pdf});\r\n }\r\n case ActionTypes.CLEAR_INVOICE_REQUESTED: {\r\n return Object.assign({}, state, {invoice: InitialState.invoiceDetails.invoice});\r\n }\r\n case ActionTypes.CLEAR_SENT_INVOICES_REQUESTED: {\r\n return Object.assign({}, state, {sentInvoices: []});\r\n }\r\n case ActionTypes.GET_SENT_INVOICES_SUCCEEDED: {\r\n const newSentInvoices = state.sentInvoices.slice() as StoreSentInvoice[];\r\n\r\n (action.payload as StoreSentInvoice[]).filter(i => !newSentInvoices.some(inv => inv.invoiceId === i.invoiceId)).map(i => newSentInvoices.push(i));\r\n\r\n return Object.assign({}, state, {sentInvoices: newSentInvoices});\r\n }\r\n case ActionTypes.SEARCH_INVOICENUMBERS_SUCCEEDED: {\r\n return Object.assign({}, state, {invoiceNumbers: action.payload});\r\n }\r\n case ActionTypes.SEARCH_INVOICENUMBERS_FAILED: {\r\n return Object.assign({}, state, {invoiceNumbers: action.payload});\r\n }\r\n case ActionTypes.CLEAR_INVOICE_NUMBERS_SUCCEEDED: {\r\n return Object.assign({}, state, {invoiceNumbers: []});\r\n }\r\n case ActionTypes.GET_INVOICE_SUCCEEDED: {\r\n base64ToBlob(action.payload.pdf.base64).then(r => saveAs(r, action.payload.pdf.fileName));\r\n\r\n return state;\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\n\r\nimport {StoreAssignmentModel} from '../typescript/storeTypes';\r\n\r\nexport default function (state: StoreAssignmentModel[] = InitialState.assignedTimesheetCodes, action: Action): StoreAssignmentModel[] {\r\n switch (action.type) {\r\n case ActionTypes.GET_ASSIGNED_TIMESHEET_CODES_SUCCEEDED: {\r\n return action.payload;\r\n }\r\n default: {\r\n return state;\r\n }\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport {StorePreset} from '../typescript/storeTypes';\r\n\r\nexport default function (state: StorePreset = InitialState.userPresets, action: Action): StorePreset {\r\n switch (action.type) {\r\n case ActionTypes.LOAD_PRESET_REQUESTED: {\r\n return Object.assign({}, state, {\r\n activePreset: action.payload\r\n });\r\n }\r\n case ActionTypes.GET_PRESETS_SUCCEEDED: {\r\n return Object.assign({}, state, {\r\n presets: action.payload\r\n });\r\n }\r\n case ActionTypes.GET_PRESETS_FAILED:{\r\n return Object.assign({}, state, {activePreset: {\r\n location: '',\r\n name: '',\r\n data: undefined\r\n }, presets: []});\r\n }\r\n case ActionTypes.CLEAR_ACTIVE_PRESET_REQUESTED: {\r\n return Object.assign({}, state, {activePreset: {\r\n location: '',\r\n name: '',\r\n data: undefined\r\n }});\r\n }\r\n default: {\r\n return state;\r\n }\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport {StoreTimesheetFromClient} from '../typescript/storeTypes';\r\n\r\nexport default function (state: {[assignmentId: number]: StoreTimesheetFromClient[]} = InitialState.timesheetsFromClient, action: Action): {[assignmentId: number]: StoreTimesheetFromClient[]} {\r\n switch (action.type) {\r\n case ActionTypes.GET_TIMESHEETS_FROM_CLIENT_INFO_SUCCEEDED: {\r\n return Object.assign([], state, {[action.payload.assignmentId]: action.payload.body});\r\n }\r\n case ActionTypes.DELETE_ASSIGNMENTDOCUMENT_SUCCEEDED: {\r\n const deletedAssignmentDocumentIndex = state[action.payload.assignmentId].findIndex(a => a.assignmentDocumentId === action.payload.assignmentDocumentId);\r\n\r\n const assignmentDocs = Object.assign([], state[action.payload.assignmentId]);\r\n assignmentDocs.splice(deletedAssignmentDocumentIndex, 1);\r\n return Object.assign([], state, {[action.payload.assignmentId]: assignmentDocs});\r\n }\r\n case ActionTypes.UPLOAD_CLIENTTIMESHEET_SUCCEEDED: {\r\n const newAssignmentDoc = {\r\n assignmentDocumentId: action.payload.assignmentDocumentId,\r\n assignmentId: action.payload.assignmentId,\r\n documentName: action.payload.documentName,\r\n uploadedOn: new Date()\r\n };\r\n const newDocs = Object.assign([], state[action.payload.assignmentId]);\r\n newDocs.push(newAssignmentDoc);\r\n return Object.assign([], state, {[action.payload.assignmentId]: newDocs});\r\n }\r\n default: {\r\n return state;\r\n }\r\n }\r\n}\r\n","import {ActionTypes} from '../types/actionTypes';\r\nimport { base64ToBlob } from 'file64';\r\nimport {saveAs} from 'file-saver';\r\n\r\nimport {Action} from '../typescript/actionTypes';\r\nimport {StoreEmptyObject} from '../typescript/storeTypes';\r\n\r\nexport default function (state: StoreEmptyObject = {}, action: Action): StoreEmptyObject {\r\n switch (action.type) {\r\n case ActionTypes.GET_ASSIGNMENTDOCUMENT_SUCCEEDED: {\r\n base64ToBlob(action.payload.base64).then(r => saveAs(r, action.payload.fileName));\r\n return state;\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\n\r\nimport {StoreProject, StoreProjects} from '../typescript/storeTypes';\r\n\r\n\r\nexport default function (state: StoreProjects = InitialState.projects, action: Action): StoreProjects {\r\n switch (action.type) {\r\n case ActionTypes.GET_ALL_PROJECTS_SUCCEEDED: {\r\n return Object.assign({}, state, { projects: action.payload as StoreProject[] });\r\n }\r\n case ActionTypes.CLEAR_PROJECTS_REQUESTED: {\r\n return Object.assign({}, state, { projects: [] as StoreProject[] });\r\n }\r\n default: {\r\n return state;\r\n }\r\n }\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {InitialState} from './initialState';\r\nimport {StoreGroups} from '../typescript/storeTypes';\r\n\r\nexport default function (state: StoreGroups = InitialState.group, action: Action): StoreGroups {\r\n switch (action.type) {\r\n case ActionTypes.GET_GROUPS_SUCCEEDED: {\r\n return {...state, groups: action.payload };\r\n }\r\n case ActionTypes.GET_GROUPS_FAILED:\r\n return {...state, groups: []};\r\n default:\r\n return state;\r\n }\r\n}\r\n","import {IsDuplicateSigningHubQueue, SigningHubObject} from '../typescript/signingHubTypes';\r\n\r\nimport AuthorizedRequest from './authorizedRequests';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass SigningHubApi {\r\n static sendMonthlyToSigningHub(monthlyTimesheetToSigningHub: SigningHubObject) {\r\n return AuthorizedRequest.postAuthorizedRequest('digitalsigning/monthly', monthlyTimesheetToSigningHub)\r\n .ok(res => res.status === 201)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static sendMonthlyToSigningHubImpersonated(payload: any) {\r\n return AuthorizedRequest.postAuthorizedRequest(`digitalsigning/monthly/${payload.username}` , payload.monthlyTimesheetToSigningHub)\r\n .ok(res => res.status === 201)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static sendWeeklyToSigningHub(weeklyTimesheetToSigningHub: SigningHubObject) {\r\n return AuthorizedRequest.postAuthorizedRequest('digitalsigning/weekly', weeklyTimesheetToSigningHub)\r\n .ok(res => res.status === 201)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static sendWeeklyToSigningHubImpersonated(payload: any) {\r\n return AuthorizedRequest.postAuthorizedRequest(`digitalsigning/weekly/${payload.username}` , payload.weeklyTimesheetToSigningHub)\r\n .ok(res => res.status === 201)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n\tstatic postIsDuplicateSigningHubQueue(isDuplicateSigningHubQueue: IsDuplicateSigningHubQueue) {\r\n return AuthorizedRequest.postAuthorizedRequest('digitalsigning/isduplicate', isDuplicateSigningHubQueue)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postCancelSigningHubQueue(signingHubQueueId: number) {\r\n return AuthorizedRequest.postAuthorizedRequest(`digitalsigning/${signingHubQueueId}/cancel`, {})\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default SigningHubApi;\r\n","import AuthorizedRequest from './authorizedRequests';\r\n\r\nimport {\r\n MonthlyTimesheetToExport,\r\n TimesheetToComplete,\r\n TimesheetToIncomplete,\r\n WeeklyTimesheetToExport\r\n} from '../typescript/timesheetTypes';\r\nimport {Period} from '../typescript/dateTypes';\r\nimport {StoreEmployee, StoreTimesheetEntry} from '../typescript/storeTypes';\r\nimport {TimesheetEntryInfo} from '../typescript/infoTypes';\r\nimport {UploadClientTimesheet} from '../typescript/uploadTypes';\r\nimport DateHelper from '../helpers/dateHelper';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass TimesheetApi {\r\n static getTimesheet(period: Period, employee: StoreEmployee) {\r\n const formattedStartDate = DateHelper.getIsoFormattedDate(period.startDate);\r\n const formattedEndDate = DateHelper.getIsoFormattedDate(period.endDate);\r\n\r\n return AuthorizedRequest.getAuthorizedRequest(`timesheet/period/${encodeURIComponent(employee.username)}/${formattedStartDate}/${formattedEndDate}`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postTimesheetEntry(entry: StoreTimesheetEntry, entryInfo: TimesheetEntryInfo) {\r\n const newEntry = {\r\n tsCodeId: entryInfo.tsCodeId,\r\n workDate: entryInfo.workDate,\r\n normalHours: entry.normalHours,\r\n extraHours: entry.extraHours,\r\n interventionHours: entry.interventionHours,\r\n standByHours: entry.standByHours,\r\n comments: entry.comments ? entry.comments : null\r\n };\r\n\r\n return AuthorizedRequest.postAuthorizedRequest(`timesheet/entry/${encodeURIComponent(entryInfo.username)}`, newEntry)\r\n .ok(res => res.status === 201)\r\n .then(response => Object.assign({}, entry, {id: response.body.id, date: newEntry.workDate, modDate: new Date()}))\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postTimesheetEntryCurrentUser(entry: StoreTimesheetEntry, entryInfo: TimesheetEntryInfo) {\r\n const newEntry = {\r\n tsCodeId: entryInfo.tsCodeId,\r\n workDate: entryInfo.workDate,\r\n normalHours: entry.normalHours,\r\n extraHours: entry.extraHours,\r\n interventionHours: entry.interventionHours,\r\n standByHours: entry.standByHours,\r\n comments: entry.comments ? entry.comments : null\r\n };\r\n\r\n return AuthorizedRequest.postAuthorizedRequest('timesheet/entry', newEntry)\r\n .ok(res => res.status === 201)\r\n .then(response => Object.assign({}, entry, {id: response.body.id, date: newEntry.workDate, modDate: new Date()}))\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static putTimesheetEntry(entry: StoreTimesheetEntry, entryInfo: TimesheetEntryInfo) {\r\n const updatedEntry = {\r\n normalHours: entry.normalHours,\r\n extraHours: entry.extraHours,\r\n interventionHours: entry.interventionHours,\r\n standByHours: entry.standByHours,\r\n comments: entry.comments ? entry.comments : null\r\n };\r\n\r\n return AuthorizedRequest.putAuthorizedRequest(`timesheet/entry/${encodeURIComponent(entryInfo.username)}/${entry.id}`, updatedEntry)\r\n .ok(res => res.status === 200)\r\n .then(() => Object.assign(entry, {modDate: new Date()}))\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static putTimesheetEntryCurrentUser(entry: StoreTimesheetEntry) {\r\n const updatedEntry = {\r\n normalHours: entry.normalHours,\r\n extraHours: entry.extraHours,\r\n interventionHours: entry.interventionHours,\r\n standByHours: entry.standByHours,\r\n comments: entry.comments ? entry.comments : null\r\n };\r\n\r\n return AuthorizedRequest.putAuthorizedRequest(`timesheet/entry/${entry.id}`, updatedEntry)\r\n .ok(res => res.status === 200)\r\n .then(() => Object.assign(entry, {modDate: new Date()}))\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static deleteTimesheetEntry(entry: StoreTimesheetEntry, entryInfo: TimesheetEntryInfo) {\r\n return AuthorizedRequest.deleteAuthorizedRequest(`timesheet/entry/${encodeURIComponent(entryInfo.username)}/${entry.id}`)\r\n .ok(res => res.status === 200)\r\n .then(() => {\r\n return entry.id;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static deleteTimesheetEntryCurrentUser(entry: StoreTimesheetEntry) {\r\n return AuthorizedRequest.deleteAuthorizedRequest(`timesheet/entry/${entry.id}`)\r\n .ok(res => res.status === 200)\r\n .then(() => {\r\n return entry.id;\r\n })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postTimesheetComplete(timesheetToComplete: TimesheetToComplete) {\r\n return AuthorizedRequest.postAuthorizedRequest(`timesheet/complete/${encodeURIComponent(timesheetToComplete.username)}/${timesheetToComplete.period.month}/${timesheetToComplete.period.year}`, {})\r\n .ok(res => res.status === 200)\r\n .then(() => { return; })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postTimesheetCompleteCurrentUser(timesheetToComplete: TimesheetToComplete) {\r\n return AuthorizedRequest.postAuthorizedRequest(`timesheet/complete/${timesheetToComplete.period.month}/${timesheetToComplete.period.year}`, {})\r\n .ok(res => res.status === 200)\r\n .then(() => { return; })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postTimesheetIncomplete(timesheetToIncomplete: TimesheetToIncomplete) {\r\n return AuthorizedRequest.postAuthorizedRequest(`timesheet/incomplete/${encodeURIComponent(timesheetToIncomplete.username)}/${timesheetToIncomplete.period.month}/${timesheetToIncomplete.period.year}`, {})\r\n .ok(res => res.status === 200)\r\n .then(() => { return; })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postTimesheetIncompleteCurrentUser(timesheetToIncomplete: TimesheetToIncomplete) {\r\n return AuthorizedRequest.postAuthorizedRequest(`timesheet/incomplete/${timesheetToIncomplete.period.month}/${timesheetToIncomplete.period.year}`, {})\r\n .ok(res => res.status === 200)\r\n .then(() => { return; })\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postExportMonthlyTimesheet(monthlyTimesheetToExport: MonthlyTimesheetToExport) {\r\n return AuthorizedRequest.postAuthorizedRequest('timesheet/export/pdf', monthlyTimesheetToExport)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postExportMonthlyTimesheetExcel(monthlyTimesheetToExport: MonthlyTimesheetToExport) {\r\n return AuthorizedRequest.postAuthorizedRequest('timesheet/export/excel', monthlyTimesheetToExport)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postExportWeeklyTimesheet(weeklyTimesheetToExport: WeeklyTimesheetToExport) {\r\n return AuthorizedRequest.postAuthorizedRequest('timesheet/exportweekly/pdf', weeklyTimesheetToExport)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postExportWeeklyTimesheetExcel(weeklyTimesheetToExport: WeeklyTimesheetToExport) {\r\n return AuthorizedRequest.postAuthorizedRequest('timesheet/exportweekly/excel', weeklyTimesheetToExport)\r\n .ok(res => res.status === 200)\r\n .responseType('blob')\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postClientTimesheet(clientTimesheet: UploadClientTimesheet) {\r\n return AuthorizedRequest.postAuthorizedRequest(`timesheet/timesheetclient/${encodeURIComponent(clientTimesheet.username)}`, clientTimesheet)\r\n .ok(res => res.status === 201)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static postClientTimesheetCurrentUser(clientTimesheet: UploadClientTimesheet) {\r\n return AuthorizedRequest.postAuthorizedRequest('timesheet/timesheetclient', clientTimesheet)\r\n .ok(res => res.status === 201)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getIncompleteTimesheets() {\r\n return AuthorizedRequest.getAuthorizedRequest('timesheet/incomplete')\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getSigningHubOverviewByAssignment(assignmentIds: number[]) {\r\n return AuthorizedRequest.getAuthorizedRequest(`digitalsigning/overview?assignmentIds=${assignmentIds.join(',')}`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default TimesheetApi;\r\n","import {call, put, takeEvery} from 'redux-saga/effects';\r\n\r\nimport {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport { IsDuplicateSigningHubQueue } from '../typescript/signingHubTypes';\r\nimport { MessageTypes } from '../types/messageTypes';\r\nimport DeserifyHelper from '../helpers/DeserifyHelper';\r\nimport MessageHelper from '../helpers/messageHelper';\r\nimport signingHubApi from '../api/signingHubApi';\r\nimport timesheetApi from '../api/timesheetApi';\r\n\r\nfunction* sendMonthlyToSigningHub(action: Action): Generator {\r\n try {\r\n const payload = DeserifyHelper.deserify(action.payload);\r\n yield isDuplicateSigningHubQueue({\r\n assignmentIds: payload.monthlyTimesheetToSigningHub.assignments,\r\n signingHubQueueModel: JSON.stringify(payload.monthlyTimesheetToSigningHub)\r\n });\r\n\r\n yield call(signingHubApi.sendMonthlyToSigningHub, payload.monthlyTimesheetToSigningHub);\r\n\r\n if(payload.monthlyTimesheetToSigningHub.saveSettings === true) {\r\n yield put({\r\n type: ActionTypes.TIMESHEET_REQUEST_SUCCEEDED,\r\n payload: {\r\n period: payload.period,\r\n timesheetCodes: yield call(timesheetApi.getTimesheet, payload.period, payload.employee)\r\n }\r\n });\r\n }\r\n\r\n showSubmitMessage();\r\n\r\n yield put({\r\n type: ActionTypes.SEND_MONTHLY_TO_SIGNING_HUB_SUCCEEDED,\r\n payload: {}\r\n });\r\n } catch (e: any) {\r\n yield put({type: ActionTypes.SEND_MONTHLY_TO_SIGNING_HUB_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* sendMonthlyToSigningHubImpersonated(action: Action): Generator {\r\n try {\r\n const payload = DeserifyHelper.deserify(action.payload);\r\n yield isDuplicateSigningHubQueue({\r\n assignmentIds: payload.monthlyTimesheetToSigningHub.assignments,\r\n signingHubQueueModel: JSON.stringify(payload.monthlyTimesheetToSigningHub)\r\n });\r\n\r\n yield call(signingHubApi.sendMonthlyToSigningHubImpersonated, {monthlyTimesheetToSigningHub: payload.monthlyTimesheetToSigningHub, username: payload.employee.username});\r\n\r\n if(payload.monthlyTimesheetToSigningHub.saveSettings === true) {\r\n yield put({\r\n type: ActionTypes.TIMESHEET_REQUEST_SUCCEEDED,\r\n payload: {\r\n period: payload.period,\r\n timesheetCodes: yield call(timesheetApi.getTimesheet, payload.period, payload.employee)\r\n }\r\n });\r\n }\r\n\r\n showSubmitMessage();\r\n\r\n yield put({\r\n type: ActionTypes.SEND_MONTHLY_TO_SIGNING_HUB_IMPERSONATED_SUCCEEDED,\r\n payload: {}\r\n });\r\n } catch (e: any) {\r\n yield put({type: ActionTypes.SEND_MONTHLY_TO_SIGNING_HUB_IMPERSONATED_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* sendWeeklyToSigningHub(action: Action): Generator {\r\n try {\r\n const payload = DeserifyHelper.deserify(action.payload);\r\n yield isDuplicateSigningHubQueue({\r\n assignmentIds: payload.weeklyTimesheetToSigningHub.assignments,\r\n signingHubQueueModel: JSON.stringify(payload.weeklyTimesheetToSigningHub)\r\n });\r\n\r\n yield call(signingHubApi.sendWeeklyToSigningHub, payload.weeklyTimesheetToSigningHub);\r\n\r\n if(payload.weeklyTimesheetToSigningHub.saveSettings === true) {\r\n yield put({\r\n type: ActionTypes.TIMESHEET_REQUEST_SUCCEEDED,\r\n payload: {\r\n period: payload.period,\r\n timesheetCodes: yield call(timesheetApi.getTimesheet, payload.period, payload.employee)\r\n }\r\n });\r\n }\r\n\r\n showSubmitMessage();\r\n\r\n yield put({\r\n type: ActionTypes.SEND_WEEKLY_TO_SIGNING_HUB_SUCCEEDED,\r\n payload: {}\r\n });\r\n } catch (e: any) {\r\n yield put({type: ActionTypes.SEND_WEEKLY_TO_SIGNING_HUB_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* sendWeeklyToSigningHubImpersonated(action: Action): Generator {\r\n try {\r\n const payload = DeserifyHelper.deserify(action.payload);\r\n yield isDuplicateSigningHubQueue({\r\n assignmentIds: payload.weeklyTimesheetToSigningHub.assignments,\r\n signingHubQueueModel: JSON.stringify(payload.weeklyTimesheetToSigningHub)\r\n });\r\n\r\n yield call(signingHubApi.sendWeeklyToSigningHubImpersonated, {weeklyTimesheetToSigningHub: payload.weeklyTimesheetToSigningHub, username: payload.employee.username});\r\n\r\n if(payload.weeklyTimesheetToSigningHub.saveSettings === true) {\r\n yield put({\r\n type: ActionTypes.TIMESHEET_REQUEST_SUCCEEDED,\r\n payload: {\r\n period: payload.period,\r\n timesheetCodes: yield call(timesheetApi.getTimesheet, payload.period, payload.employee)\r\n }\r\n });\r\n }\r\n\r\n showSubmitMessage();\r\n\r\n yield put({\r\n type: ActionTypes.SEND_WEEKLY_TO_SIGNING_HUB_IMPERSONATED_SUCCEEDED,\r\n payload: {}\r\n });\r\n } catch (e: any) {\r\n yield put({type: ActionTypes.SEND_WEEKLY_TO_SIGNING_HUB_IMPERSONATED_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* isDuplicateSigningHubQueue(isDuplicateSigningHubQueue: IsDuplicateSigningHubQueue): Generator {\r\n const response = yield call(signingHubApi.postIsDuplicateSigningHubQueue, isDuplicateSigningHubQueue);\r\n\r\n if(response && response.result === true) {\r\n const message = 'Digital signing failed. Request for approval with duplicate timesheet codes already exists. Retry is only allowed after 30 minutes.';\r\n MessageHelper.showMessage({type: MessageTypes.ERROR, message: message});\r\n throw new Error(message);\r\n }\r\n}\r\n\r\nfunction* cancelSigningHubQueue(action: Action): Generator {\r\n try{\r\n const response = yield call(signingHubApi.postCancelSigningHubQueue, action.payload);\r\n\r\n if(response && response.result === true) {\r\n const message = 'The signing process of the document was successfully canceled.';\r\n MessageHelper.showMessage({type: MessageTypes.INFO, message: message});\r\n }\r\n yield put({type: ActionTypes.CANCEL_SIGNING_HUB_QUEUE_SUCCEEDED, payload: action.payload});\r\n } catch(e) {\r\n yield put({type: ActionTypes.CANCEL_SIGNING_HUB_QUEUE_FAILED, payload: e.message});\r\n }\r\n\r\n}\r\n\r\nfunction showSubmitMessage() {\r\n MessageHelper.showMessage({type: MessageTypes.INFO, message: 'Digital signing request was submitted.'});\r\n}\r\n\r\nfunction* signingHubSaga(): Generator {\r\n yield takeEvery(ActionTypes.SEND_MONTHLY_TO_SIGNING_HUB_REQUESTED, sendMonthlyToSigningHub);\r\n yield takeEvery(ActionTypes.SEND_MONTHLY_TO_SIGNING_HUB_IMPERSONATED_REQUESTED, sendMonthlyToSigningHubImpersonated);\r\n yield takeEvery(ActionTypes.SEND_WEEKLY_TO_SIGNING_HUB_REQUESTED, sendWeeklyToSigningHub);\r\n yield takeEvery(ActionTypes.SEND_WEEKLY_TO_SIGNING_HUB_IMPERSONATED_REQUESTED, sendWeeklyToSigningHubImpersonated);\r\n yield takeEvery(ActionTypes.CANCEL_SIGNING_HUB_QUEUE_REQUESTED, cancelSigningHubQueue);\r\n}\r\n\r\nexport default signingHubSaga;\r\n","import {SuppliersEmployeesType} from '../typescript/supplierTypes';\r\nimport AuthorizedRequest from './authorizedRequests';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass SupplierApi {\r\n static getSuppliers(search: string, page = 1) {\r\n if (!search) return new Promise(() => { return; }).then(() => []);\r\n\r\n return AuthorizedRequest.getAuthorizedRequest(`supplier/search?page=${page}&name=${encodeURIComponent(search.padEnd(2, '%'))}`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getAllSuppliers() {\r\n return AuthorizedRequest.getAuthorizedRequest('supplier/suppliers')\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getSuppliersEmployees(data: SuppliersEmployeesType) {\r\n return AuthorizedRequest.getAuthorizedRequest(`supplier/${data.supplierId}/employees/${data.month}/${data.year}`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getInvoiceNumbers(supplierId: number, page = 1) {\r\n return AuthorizedRequest.getAuthorizedRequest(`supplier/${supplierId}/invoicenumbers?page=${page}`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default SupplierApi;\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {call, put, takeEvery} from 'redux-saga/effects';\r\nimport supplierApi from '../api/supplierApi';\r\n\r\nfunction* getSuppliers(action: Action): Generator {\r\n try {\r\n const suppliers = yield call(supplierApi.getSuppliers, action.payload);\r\n yield put({type: ActionTypes.SUPPLIERS_SUCCEEDED, payload: suppliers});\r\n } catch (e) {\r\n const suppliers: any[] = [];\r\n yield put({type: ActionTypes.SUPPLIERS_FAILED, payload: suppliers});\r\n }\r\n}\r\n\r\nfunction* getAllSuppliers(): Generator {\r\n try {\r\n const suppliers = yield call(supplierApi.getAllSuppliers);\r\n yield put({type: ActionTypes.GET_ALL_SUPPLIERS_SUCCEEDED, payload: suppliers});\r\n } catch (e) {\r\n const suppliers: any[] = [];\r\n yield put({type: ActionTypes.GET_ALL_SUPPLIERS_FAILED, payload: suppliers});\r\n }\r\n}\r\n\r\nfunction* getSuppliersEmployees(action: Action): Generator {\r\n try {\r\n\r\n const employees = yield call(supplierApi.getSuppliersEmployees, action.payload);\r\n yield put({type: ActionTypes.SUPPLIERS_EMPLOYEES_SUCCEEDED, payload: employees});\r\n } catch (e) {\r\n const employees: any[] = [];\r\n yield put({type: ActionTypes.SUPPLIERS_EMPLOYEES_FAILED, payload: employees});\r\n }\r\n}\r\n\r\nfunction* getInvoiceNumbers(action: Action): Generator {\r\n try {\r\n const invoiceNumbers = yield call(supplierApi.getInvoiceNumbers, action.payload.supplierId, action.payload.page);\r\n yield put({type: ActionTypes.GET_SUPPLIER_INVOICENUMBERS_SUCCEEDED, payload: invoiceNumbers});\r\n } catch (e) {\r\n const invoiceNumbers: any[] = [];\r\n yield put({type: ActionTypes.GET_SUPPLIER_INVOICENUMBERS_FAILED, payload: invoiceNumbers});\r\n }\r\n}\r\n\r\nfunction* supplierSaga(): Generator {\r\n yield takeEvery(ActionTypes.SUPPLIERS_REQUESTED, getSuppliers);\r\n yield takeEvery(ActionTypes.GET_ALL_SUPPLIERS_REQUESTED, getAllSuppliers);\r\n yield takeEvery(ActionTypes.SUPPLIERS_EMPLOYEES_REQUESTED, getSuppliersEmployees);\r\n yield takeEvery(ActionTypes.GET_SUPPLIER_INVOICENUMBERS_REQUESTED, getInvoiceNumbers);\r\n}\r\n\r\nexport default supplierSaga;\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {call, put, select, takeEvery} from 'redux-saga/effects';\r\n\r\nimport { Messages } from '../types/messageTypes';\r\nimport { Period } from '../typescript/dateTypes';\r\nimport { StoreState } from '../typescript/storeTypes';\r\nimport { blobToBase64 } from 'file64';\r\nimport DeserifyHelper from '../helpers/DeserifyHelper';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\nimport MessageHelper from '../helpers/messageHelper';\r\nimport timesheetApi from '../api/timesheetApi';\r\n\r\nfunction* getTimesheet(action: Action): Generator {\r\n try {\r\n yield put({\r\n type: ActionTypes.TIMESHEET_REQUEST_SUCCEEDED,\r\n payload: {\r\n period: action.payload.period,\r\n timesheetCodes: yield call(timesheetApi.getTimesheet, DeserifyHelper.deserify(action.payload.period), action.payload.employee)\r\n }\r\n });\r\n\r\n const settings = yield select((state: StoreState) => state.settings);\r\n\r\n if (settings.monthViewSelected && action.payload.period.days.length === 7) {\r\n yield put({type: ActionTypes.UPDATE_SETTING, payload: {monthViewSelected: false}});\r\n\r\n } else if (!settings.monthViewSelected && action.payload.period.days.length !== 7) {\r\n yield put({type: ActionTypes.UPDATE_SETTING, payload: {monthViewSelected: true}});\r\n }\r\n }\r\n catch (e) {\r\n ErrorHelper.showMessageNoRethrow(e);\r\n yield put({type: ActionTypes.TIMESHEET_REQUEST_FAILED, payload: {\r\n period: action.payload.period\r\n }});\r\n }\r\n}\r\n\r\nfunction* postTimesheetEntry(action: Action): Generator {\r\n try {\r\n let entry;\r\n if(action.payload.useUsername)\r\n {\r\n entry = yield call(timesheetApi.postTimesheetEntry, action.payload.entry, action.payload.entryInfo);\r\n } else {\r\n entry = yield call(timesheetApi.postTimesheetEntryCurrentUser, action.payload.entry, action.payload.entryInfo);\r\n }\r\n yield put({\r\n type: ActionTypes.ADD_ENTRY_SUCCEEDED,\r\n payload: {entry: entry, entryInfo: action.payload.entryInfo}\r\n });\r\n } catch (e) {\r\n yield put({type: ActionTypes.ADD_ENTRY_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* putTimesheetEntry(action: Action): Generator {\r\n try {\r\n let entry;\r\n if(action.payload.useUsername)\r\n {\r\n entry = yield call(timesheetApi.putTimesheetEntry, action.payload.entry, action.payload.entryInfo);\r\n } else {\r\n entry = yield call(timesheetApi.putTimesheetEntryCurrentUser, action.payload.entry);\r\n }\r\n yield put({\r\n type: ActionTypes.UPDATE_ENTRY_SUCCEEDED,\r\n payload: {entry: entry, entryInfo: action.payload.entryInfo}\r\n });\r\n } catch (e) {\r\n yield put({type: ActionTypes.UPDATE_ENTRY_FAILED, payload: e.message});\r\n ErrorHelper.showMessageNoRethrow(e);\r\n }\r\n}\r\n\r\nfunction* deleteTimesheetEntry(action: Action): Generator {\r\n try {\r\n if(action.payload.useUsername)\r\n {\r\n yield call(timesheetApi.deleteTimesheetEntry, action.payload.entry, action.payload.entryInfo);\r\n } else {\r\n yield call(timesheetApi.deleteTimesheetEntryCurrentUser, action.payload.entry);\r\n }\r\n\r\n yield put({\r\n type: ActionTypes.DELETE_ENTRY_SUCCEEDED,\r\n payload: {entryId: action.payload.entry.id, tsCodeId: action.payload.entryInfo.tsCodeId}\r\n });\r\n } catch (e) {\r\n yield put({type: ActionTypes.DELETE_ENTRY_FAILED, payload: e.message});\r\n ErrorHelper.showMessageNoRethrow(e);\r\n }\r\n}\r\n\r\nfunction* postTimesheetComplete(action: Action): Generator {\r\n try {\r\n if(action.payload.useUsername)\r\n {\r\n yield call(timesheetApi.postTimesheetComplete, action.payload);\r\n }\r\n else {\r\n yield call(timesheetApi.postTimesheetCompleteCurrentUser, action.payload);\r\n }\r\n yield put({type: ActionTypes.TIMESHEET_COMPLETE_SUCCEEDED, payload: null});\r\n } catch (e) {\r\n yield put({type: ActionTypes.TIMESHEET_COMPLETE_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* postTimesheetIncomplete(action: Action): Generator {\r\n try {\r\n if(action.payload.useUsername)\r\n {\r\n yield call(timesheetApi.postTimesheetIncomplete, action.payload);\r\n }\r\n else {\r\n yield call(timesheetApi.postTimesheetIncompleteCurrentUser, action.payload);\r\n }\r\n yield put({type: ActionTypes.TIMESHEET_INCOMPLETE_SUCCEEDED, payload: null});\r\n } catch (e) {\r\n yield put({type: ActionTypes.TIMESHEET_INCOMPLETE_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* postExportMonthlyTimesheet(action: Action): Generator {\r\n try {\r\n const exportedTimesheet = yield call(timesheetApi.postExportMonthlyTimesheet, DeserifyHelper.deserify(action.payload));\r\n if(exportedTimesheet.size === 0) return; //this happens when it mails\r\n\r\n let base64;\r\n yield blobToBase64(exportedTimesheet).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.EXPORT_MONTHLY_TIMESHEET_SUCCEEDED, payload: base64});\r\n } catch (e) {\r\n yield put({type: ActionTypes.EXPORT_MONTHLY_TIMESHEET_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* postExportMonthlyTimesheetExcel(action: Action): Generator {\r\n try {\r\n const exportedTimesheet = yield call(timesheetApi.postExportMonthlyTimesheetExcel, DeserifyHelper.deserify(action.payload));\r\n if(exportedTimesheet.size === 0) return; //this happens when it mails\r\n\r\n let base64;\r\n yield blobToBase64(exportedTimesheet).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.EXPORT_MONTHLY_TIMESHEET_EXCEL_SUCCEEDED, payload: base64});\r\n } catch (e) {\r\n yield put({type: ActionTypes.EXPORT_MONTHLY_TIMESHEET_EXCEL_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* postExportWeeklyTimesheet(action: Action): Generator {\r\n try {\r\n const exportedTimesheet = yield call(timesheetApi.postExportWeeklyTimesheet, DeserifyHelper.deserify(action.payload));\r\n if(exportedTimesheet.size === 0) return; //this happens when it mails\r\n\r\n let base64;\r\n yield blobToBase64(exportedTimesheet).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.EXPORT_WEEKLY_TIMESHEET_SUCCEEDED, payload: base64});\r\n } catch (e) {\r\n yield put({type: ActionTypes.EXPORT_WEEKLY_TIMESHEET_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* postExportWeeklyTimesheetExcel(action: Action): Generator {\r\n try {\r\n const exportedTimesheet = yield call(timesheetApi.postExportWeeklyTimesheetExcel, DeserifyHelper.deserify(action.payload));\r\n if(exportedTimesheet.size === 0) return; //this happens when it mails\r\n\r\n let base64;\r\n yield blobToBase64(exportedTimesheet).then(r => base64 = r);\r\n\r\n yield put({type: ActionTypes.EXPORT_WEEKLY_TIMESHEET_EXCEL_SUCCEEDED, payload: base64});\r\n } catch (e) {\r\n yield put({type: ActionTypes.EXPORT_WEEKLY_TIMESHEET_EXCEL_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* getIncompleteTimesheets(): Generator {\r\n try {\r\n const incompleteMonths = yield call(timesheetApi.getIncompleteTimesheets);\r\n yield put({type: ActionTypes.GET_INCOMPLETE_TIMESHEETS_SUCCEEDED, payload: incompleteMonths});\r\n } catch (e) {\r\n yield put({type: ActionTypes.GET_INCOMPLETE_TIMESHEETS_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* postClientTimesheet(action: Action): Generator {\r\n try {\r\n let result: any = undefined;\r\n\r\n if(action.payload.useUsername)\r\n {\r\n result = yield call(timesheetApi.postClientTimesheet, action.payload);\r\n }\r\n else {\r\n result = yield call(timesheetApi.postClientTimesheetCurrentUser, action.payload);\r\n }\r\n\r\n MessageHelper.showMessage(Messages.UploadedDocumentSuccessfully);\r\n yield put({type: ActionTypes.UPLOAD_CLIENTTIMESHEET_SUCCEEDED, payload: Object.assign({}, action.payload, {assignmentDocumentId: result.id})});\r\n } catch (e) {\r\n yield put({type: ActionTypes.UPLOAD_CLIENTTIMESHEET_FAILED, payload: e.message});\r\n\r\n ErrorHelper.showMessageNoRethrow(e);\r\n }\r\n}\r\n\r\nfunction* getSigningHubOverview(action: Action): Generator {\r\n try {\r\n const assignmentIds = action.payload;\r\n\r\n const overview = yield call(timesheetApi.getSigningHubOverviewByAssignment, assignmentIds);\r\n yield put({type: ActionTypes.GET_SIGNINGHUB_OVERVIEW_SUCCEEDED, payload: overview});\r\n } catch (e) {\r\n yield put({type: ActionTypes.GET_SIGNINGHUB_OVERVIEW_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* timesheetSaga(): Generator {\r\n yield takeEvery(ActionTypes.TIMESHEET_REQUESTED, getTimesheet);\r\n yield takeEvery(ActionTypes.ADD_ENTRY_REQUESTED, postTimesheetEntry);\r\n yield takeEvery(ActionTypes.UPDATE_ENTRY_REQUESTED, putTimesheetEntry);\r\n yield takeEvery(ActionTypes.DELETE_ENTRY_REQUESTED, deleteTimesheetEntry);\r\n yield takeEvery(ActionTypes.TIMESHEET_COMPLETE_REQUESTED, postTimesheetComplete);\r\n yield takeEvery(ActionTypes.TIMESHEET_INCOMPLETE_REQUESTED, postTimesheetIncomplete);\r\n yield takeEvery(ActionTypes.EXPORT_MONTHLY_TIMESHEET_REQUESTED, postExportMonthlyTimesheet);\r\n yield takeEvery(ActionTypes.EXPORT_MONTHLY_TIMESHEET_EXCEL_REQUESTED, postExportMonthlyTimesheetExcel);\r\n yield takeEvery(ActionTypes.EXPORT_WEEKLY_TIMESHEET_REQUESTED, postExportWeeklyTimesheet);\r\n yield takeEvery(ActionTypes.EXPORT_WEEKLY_TIMESHEET_EXCEL_REQUESTED, postExportWeeklyTimesheetExcel);\r\n yield takeEvery(ActionTypes.UPLOAD_CLIENTTIMESHEET_REQUESTED, postClientTimesheet);\r\n yield takeEvery(ActionTypes.GET_INCOMPLETE_TIMESHEETS_REQUESTED, getIncompleteTimesheets);\r\n yield takeEvery(ActionTypes.GET_SIGNINGHUB_OVERVIEW_REQUESTED, getSigningHubOverview);\r\n}\r\n\r\nexport default timesheetSaga;\r\n","import AuthorizedRequest from './authorizedRequests';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass TsCodeApi {\r\n static getTsCodes(search: string, page = 1, month: number = (new Date().getMonth() +1 ), year: number = new Date().getFullYear(), showOldAndReadOnly = false, showAllAliases = false) {\r\n if (!search) return new Promise(() => { return; }).then(() => []);\r\n return AuthorizedRequest.getAuthorizedRequest(`timesheetcode/search?page=${page}&name=${encodeURIComponent(search.padEnd(5, '%'))}&month=${month}&year=${year}&showOldAndReadOnly=${showOldAndReadOnly ? '1' : '0'}&showAllAliases=${showAllAliases ? '1' : '0'}`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getMostRecentTsCodes(username: string, month: number, year: number) {\r\n if (!username) return new Promise(() => { return; }).then(() => []);\r\n return AuthorizedRequest.getAuthorizedRequest(`timesheetcode/recent/${encodeURIComponent(username)}/${month}/${year}`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getTsCodesIcPartners(tsCodeId: string) {\r\n return AuthorizedRequest.getAuthorizedRequest(`timesheetcode/${tsCodeId}/icpartnersonorder`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default TsCodeApi;\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {call, put, takeEvery, takeLatest } from 'redux-saga/effects';\r\nimport tsCodeApi from '../api/tsCodeApi';\r\n\r\nimport { InitialState } from '../reducers/initialState';\r\nimport { StoreTsCodes } from '../typescript/storeTypes';\r\n\r\nfunction* getTsCodes(action: Action): Generator {\r\n try {\r\n const tsCodes = yield call(tsCodeApi.getTsCodes, action.payload.search, action.payload.page, action.payload.month, action.payload.year, action.payload.showOldAndReadOnly, action.payload.showAllAliases);\r\n if(action.payload.page === 1){\r\n yield put({type: ActionTypes.CLEAR_TSCODES_REQUESTED, payload: null});\r\n }\r\n yield put({type: ActionTypes.TSCODES_SUCCEEDED, payload: tsCodes});\r\n } catch (e) {\r\n const tsCodes: any[] = [];\r\n yield put({type: ActionTypes.TSCODES_FAILED, payload: tsCodes});\r\n }\r\n}\r\n\r\nfunction* getMostRecentTsCodes(action: Action): Generator {\r\n try {\r\n const tsCodes = yield call(tsCodeApi.getMostRecentTsCodes, action.payload.username, action.payload.month, action.payload.year);\r\n yield put({type: ActionTypes.MOST_RECENT_TSCODES_SUCCEEDED, payload: tsCodes});\r\n } catch (e) {\r\n const tsCodes: any[] = [];\r\n yield put({type: ActionTypes.MOST_RECENT_TSCODES_FAILED, payload: tsCodes});\r\n }\r\n}\r\n\r\nfunction* getTsCodesIcPartners(action: Action): Generator {\r\n try {\r\n yield put({type: ActionTypes.POST_GET_TIME_LEFT_ON_ORDER_SUCCEEDED, payload: InitialState.reporting.timeLeftOnOrder});\r\n if (action.payload === '0') {\r\n yield put({type: ActionTypes.GET_TSCODES_ICPARTNERS_SUCCEEDED, payload: []});\r\n yield put({type: ActionTypes.POST_GET_TIME_LEFT_ON_ORDER_SUCCEEDED, payload: InitialState.reporting.timeLeftOnOrder});\r\n return;\r\n }\r\n\r\n const icPartners = yield call(tsCodeApi.getTsCodesIcPartners, action.payload);\r\n yield put({type: ActionTypes.GET_TSCODES_ICPARTNERS_SUCCEEDED, payload: icPartners});\r\n yield put({type: ActionTypes.POST_GET_TIME_LEFT_ON_ORDER_SUCCEEDED, payload: InitialState.reporting.timeLeftOnOrder});\r\n } catch (e) {\r\n const icPartners = [] as StoreTsCodes;\r\n yield put({type: ActionTypes.GET_TSCODES_ICPARTNERS_FAILED, payload: icPartners});\r\n }\r\n}\r\n\r\nfunction* tsCodeSaga(): Generator {\r\n yield takeLatest(ActionTypes.TSCODES_REQUESTED, getTsCodes);\r\n yield takeEvery(ActionTypes.MOST_RECENT_TSCODES_REQUESTED, getMostRecentTsCodes);\r\n yield takeEvery(ActionTypes.GET_TSCODES_ICPARTNERS_REQUESTED, getTsCodesIcPartners);\r\n}\r\n\r\nexport default tsCodeSaga;\r\n","import {AdfsTokenModel, UserCredentials} from '../typescript/userTypes';\r\nimport AuthorizedRequest from './authorizedRequests';\r\nimport ErrorHelper from '../helpers/errorHelper';\r\n\r\nclass UserApi {\r\n static loginUser(user: UserCredentials): Promise {\r\n user.username = user.username.toLowerCase().indexOf('iconos\\\\') !== -1 ? user.username.substring(user.username.indexOf('\\\\') + 1, user.username.length) : user.username;\r\n if (user.username.indexOf('@cronos.be') !== -1) {\r\n user.username = user.username.replace('@cronos.be', '');\r\n }\r\n return AuthorizedRequest.postAuthorizedRequest('token', user)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static loginAdfsUser(token: AdfsTokenModel): Promise {\r\n return AuthorizedRequest.postAuthorizedRequest('token/adfs', token)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static forceRefreshToken(): void {\r\n AuthorizedRequest.forceRefreshToken();\r\n }\r\n\r\n static getUser(username: string): Promise {\r\n return AuthorizedRequest.getAuthorizedRequest(`user/${encodeURIComponent(username)}`)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getPermissions(): Promise {\r\n return AuthorizedRequest.getAuthorizedRequest('permission/authPermissions')\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getVisibleUsers(): Promise {\r\n return AuthorizedRequest.getAuthorizedRequest('user')\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getVisibleSuppliers(): Promise {\r\n return AuthorizedRequest.getAuthorizedRequest('user/allvisiblecompanies')\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getInvoiceViewerSuppliers(): Promise {\r\n return AuthorizedRequest.getAuthorizedRequest('user/invoiceviewersuppliers')\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static getActiveUsersWithGroups(groupIds?: number[]): Promise {\r\n const url = groupIds === undefined ? 'user/groups' : `user/groups?groupIds=${groupIds.join(',')}`;\r\n\r\n return AuthorizedRequest.getAuthorizedRequest(url)\r\n .ok(res => res.status === 200)\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n\r\n static resetPassword(emailAddress: string): Promise {\r\n return AuthorizedRequest.resetPassword(emailAddress)\r\n .ok(res => {\r\n return res.status === 200;\r\n })\r\n .then(response => response.body)\r\n .catch(ErrorHelper.getCustomWebsiteErrorFunction());\r\n }\r\n}\r\n\r\nexport default UserApi;\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {call, put, takeEvery} from 'redux-saga/effects';\r\nimport userApi from '../api/userApi';\r\n\r\nimport { MessageTypes } from '../types/messageTypes';\r\nimport { StoreVisibleUser } from '../typescript/storeTypes';\r\nimport MessageHelper from '../helpers/messageHelper';\r\n\r\n\r\nfunction* loginUser(action: Action): Generator {\r\n try {\r\n const user = yield call(userApi.loginUser, action.payload);\r\n\r\n localStorage.setItem('login_Username', action.payload.username.toUpperCase());\r\n yield put({type: ActionTypes.USER_LOGIN_SUCCEEDED, payload: user});\r\n } catch (e) {\r\n yield put({type: ActionTypes.USER_LOGIN_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* loginAdfsUser(action: Action): Generator {\r\n try {\r\n const user = yield call(userApi.loginAdfsUser, action.payload);\r\n\r\n localStorage.setItem('login_Username', user.username.toUpperCase());\r\n yield put({type: ActionTypes.USER_ADFS_LOGIN_SUCCEEDED, payload: user});\r\n } catch (e) {\r\n yield put({type: ActionTypes.USER_ADFS_LOGIN_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* forceRefreshToken(): Generator {\r\n try {\r\n yield call(userApi.forceRefreshToken);\r\n } catch (e) {\r\n yield put({type: ActionTypes.USER_LOGIN_FAILED, payload: e});\r\n }\r\n}\r\n\r\nfunction* getUser(action: Action): Generator {\r\n try {\r\n const user = yield call(userApi.getUser, action.payload);\r\n yield put({type: ActionTypes.USER_SUCCEEDED, payload: user});\r\n } catch (e) {\r\n yield put({type: ActionTypes.USER_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* resetPassword(action: Action): Generator {\r\n try {\r\n const result = yield call(userApi.resetPassword, action.payload);\r\n MessageHelper.showMessage({type: MessageTypes.INFO, message: result.notification});\r\n\r\n yield put({type: ActionTypes.RESET_PASSWORD_SUCCEEDED, payload: null});\r\n } catch (e) {\r\n //do nothing yet\r\n }\r\n}\r\n\r\nfunction* getPermissions(): Generator {\r\n try {\r\n const permissions = yield call(userApi.getPermissions);\r\n yield put({type: ActionTypes.PERMISSIONS_SUCCEEDED, payload: permissions});\r\n } catch (e) {\r\n yield put({type: ActionTypes.PERMISSIONS_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* getVisibleUsers(): Generator {\r\n try {\r\n const visibleUsers = yield call(userApi.getVisibleUsers);\r\n\r\n const filtered = visibleUsers.filter((e: StoreVisibleUser) => e.username !== '');\r\n\r\n yield put({type: ActionTypes.VISIBLE_USERS_SUCCEEDED, payload: filtered});\r\n } catch (e) {\r\n yield put({type: ActionTypes.VISIBLE_USERS_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* getVisibleSuppliers(): Generator {\r\n try {\r\n const visibleSuppliers = yield call(userApi.getVisibleSuppliers);\r\n yield put({type: ActionTypes.VISIBLE_SUPPLIERS_SUCCEEDED, payload: visibleSuppliers});\r\n } catch (e) {\r\n yield put({type: ActionTypes.VISIBLE_SUPPLIERS_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* getInvoiceViewerSuppliers(): Generator {\r\n try {\r\n const suppliers = yield call(userApi.getInvoiceViewerSuppliers);\r\n yield put({type: ActionTypes.INVOICEVIEWER_SUPPLIERS_SUCCEEDED, payload: suppliers});\r\n } catch (e) {\r\n yield put({type: ActionTypes.INVOICEVIEWER_SUPPLIERS_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* getActiveUsersWithGroups(action: Action): Generator {\r\n try {\r\n const userGroups = yield call(userApi.getActiveUsersWithGroups, action.payload);\r\n yield put({type: ActionTypes.USER_GROUPS_SUCCEEDED, payload: userGroups});\r\n } catch (e) {\r\n yield put({type: ActionTypes.USER_GROUPS_FAILED, payload: e.message});\r\n }\r\n}\r\n\r\nfunction* userSaga(): Generator {\r\n yield takeEvery(ActionTypes.FORCE_REFRESH_TOKEN_REQUESTED, forceRefreshToken);\r\n yield takeEvery(ActionTypes.USER_LOGIN_REQUESTED, loginUser);\r\n yield takeEvery(ActionTypes.USER_ADFS_LOGIN_REQUESTED, loginAdfsUser);\r\n yield takeEvery(ActionTypes.USER_REQUESTED, getUser);\r\n yield takeEvery(ActionTypes.PERMISSIONS_REQUESTED, getPermissions);\r\n yield takeEvery(ActionTypes.VISIBLE_USERS_REQUESTED, getVisibleUsers);\r\n yield takeEvery(ActionTypes.VISIBLE_SUPPLIERS_REQUESTED, getVisibleSuppliers);\r\n yield takeEvery(ActionTypes.INVOICEVIEWER_SUPPLIERS_REQUESTED, getInvoiceViewerSuppliers);\r\n yield takeEvery(ActionTypes.RESET_PASSWORD_REQUESTED, resetPassword);\r\n yield takeEvery(ActionTypes.USER_GROUPS_REQUESTED, getActiveUsersWithGroups);\r\n}\r\n\r\nexport default userSaga;\r\n","import { configureStore } from '@reduxjs/toolkit';\r\nimport reduxCookiesMiddleware, { getStateFromCookies } from 'redux-cookies-middleware';\r\n\r\nimport {InitialState} from '../reducers/initialState';\r\nimport {MessageTypes} from '../types/messageTypes';\r\n\r\nimport {\r\n createReduxMiddleware,\r\n defaultOptions,\r\n } from '@karmaniverous/serify-deserify';\r\nimport CookieHelper from '../helpers/cookieHelper';\r\nimport CustomError from '../customError';\r\nimport MessageHelper from '../helpers/messageHelper';\r\nimport assignmentSaga from '../sagas/assignmentSaga';\r\nimport createSagaMiddleware from 'redux-saga';\r\nimport documentSaga from '../sagas/documentSaga';\r\nimport groupSaga from '../sagas/groupSaga';\r\nimport importSaga from '../sagas/importSaga';\r\nimport invoiceSaga from '../sagas/invoiceSaga';\r\nimport maintenanceSaga from '../sagas/maintenanceSaga';\r\nimport presetSaga from '../sagas/presetSaga';\r\nimport projectSaga from '../sagas/projectSaga';\r\nimport reduxCatch from 'redux-catch';\r\nimport releaseNoteSaga from '../sagas/releaseNoteSaga';\r\nimport reportSaga from '../sagas/reportSaga';\r\nimport rootReducer from '../reducers/rootReducer';\r\nimport signingHubSaga from '../sagas/signingHubSaga';\r\nimport supplierSaga from '../sagas/supplierSaga';\r\nimport timesheetSaga from '../sagas/timesheetSaga';\r\nimport tsCodeSaga from '../sagas/tsCodeSaga';\r\nimport userSaga from '../sagas/userSaga';\r\n\r\n\r\nlet initialState = Object.assign({}, JSON.parse(JSON.stringify(InitialState)), {timesheet: InitialState.timesheet});\r\n\r\nconst paths = CookieHelper.getPaths();\r\n\r\ninitialState = getStateFromCookies(initialState, paths, (name: string) => CookieHelper.getCookie(name));\r\n\r\nfunction errorHandler(error: Error|CustomError) {\r\n const customError = error as CustomError;\r\n if(customError?.messageType) {\r\n MessageHelper.showMessage({type: customError.messageType, message: customError.message});\r\n return;\r\n }\r\n const err = error as Error;\r\n if(err?.message) {\r\n MessageHelper.showMessage({type: MessageTypes.ERROR, message: err.message});\r\n }\r\n}\r\n\r\nconst sagaMiddleware = createSagaMiddleware();\r\nconst serifyMiddleware = createReduxMiddleware(defaultOptions);\r\n\r\nexport const store = configureStore({\r\n reducer: rootReducer,\r\n middleware: (getDefaultMiddleware) => {\r\n const defaultMiddleware = getDefaultMiddleware();\r\n\r\n return defaultMiddleware.concat([\r\n reduxCookiesMiddleware(paths, { setCookie: (name: string, value: string) => CookieHelper.setCookie(name, value)}),\r\n reduxCatch(errorHandler),\r\n sagaMiddleware,\r\n serifyMiddleware\r\n ]);\r\n },\r\n preloadedState: initialState\r\n});\r\n\r\nsagaMiddleware.run(userSaga);\r\nsagaMiddleware.run(timesheetSaga);\r\nsagaMiddleware.run(signingHubSaga);\r\nsagaMiddleware.run(tsCodeSaga);\r\nsagaMiddleware.run(reportSaga);\r\nsagaMiddleware.run(assignmentSaga);\r\nsagaMiddleware.run(supplierSaga);\r\nsagaMiddleware.run(maintenanceSaga);\r\nsagaMiddleware.run(importSaga);\r\nsagaMiddleware.run(releaseNoteSaga);\r\nsagaMiddleware.run(invoiceSaga);\r\nsagaMiddleware.run(presetSaga);\r\nsagaMiddleware.run(documentSaga);\r\nsagaMiddleware.run(projectSaga);\r\nsagaMiddleware.run(groupSaga);\r\n","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../../node_modules/postcss-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./App.sass\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../../node_modules/postcss-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./App.sass\";\n export default content && content.locals ? content.locals : undefined;\n","export enum TimesheetCompleteStatus {\r\n Complete = 'Complete',\r\n PartiallyComplete = 'Partially Complete',\r\n Incomplete = 'Incomplete'\r\n}\r\n\r\nexport enum ApprovalTypes {\r\n None = 'None',\r\n All = 'All',\r\n One = 'One'\r\n}\r\n\r\nexport enum SigningHubStates {\r\n Initial = 'Initial',\r\n PackageCreated = 'PackageCreated',\r\n InProgress = 'InProgress',\r\n ConsultantApprovalCompleted = 'ConsultantApprovalCompleted',\r\n InternalApprovalCompleted = 'InternalApprovalCompleted',\r\n CustomerApprovalCompleted = 'CustomerApprovalCompleted',\r\n Completed = 'Completed',\r\n Declined = 'Declined',\r\n\r\n Error = 'Error',\r\n ErrorOnCreatingPackage = 'ErrorOnCreatingPackage',\r\n Cancelling = 'Cancelling',\r\n Cancelled = 'Cancelled'\r\n}\r\n\r\nexport enum Interval {\r\n EveryMinute = 1,\r\n Every10Minutes = 10,\r\n Every30Minutes = 30,\r\n EveryHour = 60\r\n}\r\n","export const PermissionTypes = {\r\n // AssignmentApi\r\n POST_ASSIGNMENT: 'PostAssignment',\r\n POST_ASSIGNMENT_CURRENT_USER: 'PostAssignmentCurrentUser',\r\n POST_ASSIGNMENT_COMPLETE: 'PostAssignmentComplete',\r\n POST_ASSIGNMENT_COMPLETE_CURRENT_USER: 'PostAssignmentCompleteForCurrentUser',\r\n POST_ASSIGNMENT_INCOMPLETE: 'PostAssignmentIncomplete',\r\n POST_ASSIGNMENT_INCOMPLETE_CURRENT_USER: 'PostAssignmentIncompleteForCurrentUser',\r\n DELETE_ASSIGNMENT: 'DeleteAssignment',\r\n DELETE_ASSIGNMENT_CURRENT_USER: 'DeleteAssignmentCurrentUser',\r\n\r\n // ImportApi\r\n POST_IMPORT_ACTUALS: 'PostImportActuals',\r\n POST_PROCESS_IMPORT_ACTUALS: 'PostProcessImportActuals',\r\n\r\n // MaintenanceApi\r\n\r\n // ReportApi\r\n POST_TIMESHEETS_LANDSCAPE_PDF: 'PostTimesheetsLandscapePdf',\r\n POST_TIMESHEETS_LANDSCAPE_EXCEL: 'PostTimesheetsLandscapeExcel',\r\n POST_ACTUALS_PDF: 'PostActualsPdf',\r\n POST_ACTUALS_CSV: 'PostActualsCsv',\r\n POST_ACTUALS_EXCEL: 'PostActualsExcel',\r\n POST_TIMESHEETS_PDF: 'PostTimesheetsPdf',\r\n POST_TIME_LEFT_ON_ORDER: 'PostTimeLeftOnOrder',\r\n POST_PROJECT_REPORT: 'PostProjectReport',\r\n POST_TIMESHEETS_WEEKLY_PDF: 'PostTimesheetsWeeklyPdf',\r\n POST_TIMESHEETS_WEEKLY_EXCEL: 'PostWeeklyTimesheetExportExcel',\r\n\r\n // SupplierApi\r\n SEARCH_SUPPLIER: 'SearchSupplier',\r\n\r\n // TimesheetApi\r\n GET_USER_TIMESHEET_PERIOD: 'GetUserTimesheetPeriod',\r\n POST_ACTUAL_WORK: 'PostActualWork',\r\n POST_ACTUAL_WORK_CURRENT_USER: 'PostActualWorkCurrentUser',\r\n PUT_ACTUAL_WORK: 'PutActualWork',\r\n PUT_ACTUAL_WORK_CURRENT_USER: 'PutActualWorkCurrentUser',\r\n DELETE_ACTUAL_WORK: 'DeleteActualWork',\r\n DELETE_ACTUAL_WORK_CURRENT_USER: 'DeleteActualWorkCurrentUser',\r\n POST_TIMESHEET_COMPLETE: 'PostTimesheetComplete',\r\n POST_TIMESHEET_COMPLETE_CURRENT_USER: 'PostTimesheetCompleteForCurrentUser',\r\n POST_TIMESHEET_INCOMPLETE: 'PostTimesheetIncomplete',\r\n POST_TIMESHEET_INCOMPLETE_CURRENT_USER: 'PostTimesheetIncompleteForCurrentUser',\r\n POST_TIMESHEET_EXPORT: 'PostTimesheetExport',\r\n POST_TIMESHEET_WEEKLY_EXPORT: 'PostTimesheetExportWeekly',\r\n POST_TIMESHEET_CLIENT: 'PostTimesheetClient',\r\n POST_TIMESHEET_CLIENT_CURRENT_USER: 'PostTimesheetClientForCurrentUser',\r\n POST_TIMESHEET_TO_SIGNING_HUB: 'PostTimesheetToSigningHub',\r\n POST_TIMESHEET_TO_SIGNING_HUB_FOR_CURRENT_USER: 'PostTimesheetToSigningHubForCurrentUser',\r\n POST_WEEKLY_TO_SIGNING_HUB: 'PostWeeklyTimesheetToSigningHub',\r\n POST_WEEKLY_TO_SIGNING_HUB_FOR_CURRENT_USER: 'PostWeeklyTimesheetToSigningHubForCurrentUser',\r\n\r\n // TsCodeApi\r\n SEARCH_TSCODE: 'SearchTsCode',\r\n GET_MOST_RECENT_TIMESHEET_CODES: 'GetMostRecentTsCodes',\r\n\r\n // UserApi\r\n GET_USER_BY_USERNAME: 'GetUserByUsername',\r\n GET_VISIBLE_SUPPLIERS:'GetVisibleCompaniesIncludingVisiblePersonCompanies',\r\n GET_INVOICEVIEWER_SUPPLIERS: 'GetInvoiceViewerSuppliers',\r\n\r\n // InvoiceApi\r\n SEARCH_INVOICE: 'SearchInvoice',\r\n\r\n // DigitalSigningApi\r\n POST_CANCEL_SIGNINGHUBQUEUE : 'PostCancelSigningHubQueue',\r\n\r\n // Projects\r\n GET_PROJECTS: 'GetAllProjects',\r\n\r\n // Groups\r\n GET_GROUPS: 'GetGroups'\r\n};\r\n","import { ConnectedProps, connect } from 'react-redux';\r\nimport { useLocation, useNavigate } from 'react-router-dom';\r\nimport React from 'react';\r\n\r\nexport interface WithRouterProps {\r\n location: ReturnType,\r\n navigate: ReturnType\r\n}\r\nconst mapStateToProps = (props: WithRouterProps) => (\r\n {\r\n location: props.location,\r\n navigate: props.navigate\r\n }\r\n);\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nconst connector = connect(mapStateToProps, mapDispatchToProps);\r\ntype MappedProps = ConnectedProps;\r\n\r\nexport function withRouter(Component: React.ComponentType) {\r\n function ComponentWithRouterProp(props: Omit) {\r\n const location = useLocation();\r\n const navigate = useNavigate();\r\n return ;\r\n }\r\n\r\n return ComponentWithRouterProp;\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\n\r\nexport function getMaintenanceDetails(): Action {\r\n return {type: ActionTypes.MAINTENANCE_DETAILS_REQUESTED, payload: null};\r\n}\r\n\r\nexport function checkVersion(): Action {\r\n return {type: ActionTypes.CHECK_VERSION_REQUESTED, payload: null};\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {AdfsTokenModel, UserCredentials} from '../typescript/userTypes';\r\nimport {StoreEmployee} from '../typescript/storeTypes';\r\n\r\n\r\nexport function loginUser(credentials: UserCredentials): Action {\r\n return {type: ActionTypes.USER_LOGIN_REQUESTED, payload: credentials};\r\n}\r\n\r\nexport function loginAdfsUser(token: AdfsTokenModel): Action {\r\n return {type: ActionTypes.USER_ADFS_LOGIN_REQUESTED, payload: token};\r\n}\r\n\r\nexport function forceRefreshToken(): Action {\r\n return {type: ActionTypes.FORCE_REFRESH_TOKEN_REQUESTED, payload: null};\r\n}\r\n\r\nexport function logoutUser(): Action {\r\n return {type: ActionTypes.USER_LOGOUT, payload: null};\r\n}\r\n\r\nexport function getUser(username: string): Action {\r\n return {type: ActionTypes.USER_REQUESTED, payload: username};\r\n}\r\n\r\nexport function getPermissions(): Action {\r\n return {type: ActionTypes.PERMISSIONS_REQUESTED, payload: null};\r\n}\r\n\r\nexport function getVisibleUsers(): Action {\r\n return {type: ActionTypes.VISIBLE_USERS_REQUESTED, payload: null};\r\n}\r\n\r\nexport function getVisibleSuppliers(): Action {\r\n return {type: ActionTypes.VISIBLE_SUPPLIERS_REQUESTED, payload: null};\r\n}\r\n\r\nexport function getInvoiceViewerSuppliers(): Action {\r\n return {type: ActionTypes.INVOICEVIEWER_SUPPLIERS_REQUESTED, payload: null};\r\n}\r\n\r\nexport function getActiveUsersWithGroups(groupIds?: number[]): Action {\r\n return {type: ActionTypes.USER_GROUPS_REQUESTED, payload: groupIds};\r\n}\r\n\r\nexport function changeUser(user: StoreEmployee): Action {\r\n return {type: ActionTypes.CHANGE_USER_REQUESTED, payload: user};\r\n}\r\n\r\nexport function resetPassword(username: string): Action {\r\n return {type: ActionTypes.RESET_PASSWORD_REQUESTED, payload: username};\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {\r\n MonthlyTimesheetToExport,\r\n TimesheetToComplete,\r\n TimesheetToIncomplete,\r\n WeeklyTimesheetToExport\r\n} from '../typescript/timesheetTypes';\r\nimport {Period} from '../typescript/dateTypes';\r\nimport {StoreEmployee, StoreTimesheetCode, StoreTimesheetEntry, StoreUser} from '../typescript/storeTypes';\r\nimport {TimesheetEntryInfo} from '../typescript/infoTypes';\r\nimport {UploadClientTimesheet} from '../typescript/uploadTypes';\r\nimport UserHelper from '../helpers/userHelper';\r\n\r\nexport function getTimesheet(period: Period, employee: StoreEmployee): Action {\r\n return {type: ActionTypes.TIMESHEET_REQUESTED, payload: {period, employee}};\r\n}\r\n\r\nexport function addEntry(entry: StoreTimesheetEntry, entryInfo: TimesheetEntryInfo, user: StoreUser) {\r\n const payload = Object.assign({}, {entry, entryInfo}, { useUsername: UserHelper.isImpersonating(user)});\r\n return {type: ActionTypes.ADD_ENTRY_REQUESTED, payload: payload};\r\n}\r\n\r\nexport function updateEntry(entry: StoreTimesheetEntry, entryInfo: TimesheetEntryInfo, user: StoreUser) {\r\n const payload = Object.assign({}, {entry, entryInfo}, { useUsername: UserHelper.isImpersonating(user)});\r\n return {type: ActionTypes.UPDATE_ENTRY_REQUESTED, payload: payload};\r\n}\r\n\r\nexport function deleteEntry(entry: StoreTimesheetEntry, entryInfo: TimesheetEntryInfo, user: StoreUser) {\r\n const payload = Object.assign({}, {entry, entryInfo}, { useUsername: UserHelper.isImpersonating(user)});\r\n return {type: ActionTypes.DELETE_ENTRY_REQUESTED, payload: payload};\r\n}\r\n\r\nexport function completeTimesheet(timesheetToComplete: TimesheetToComplete, user: StoreUser): Action {\r\n const payload = Object.assign({}, timesheetToComplete, {useUsername: UserHelper.isImpersonating(user)});\r\n return {type: ActionTypes.TIMESHEET_COMPLETE_REQUESTED, payload: payload};\r\n}\r\n\r\nexport function incompleteTimesheet(timesheetToIncomplete: TimesheetToIncomplete, user: StoreUser): Action {\r\n const payload = Object.assign({}, timesheetToIncomplete, {useUsername: UserHelper.isImpersonating(user)});\r\n return {type: ActionTypes.TIMESHEET_INCOMPLETE_REQUESTED, payload: payload};\r\n}\r\n\r\nexport function expandTimesheetCode(timesheetCode: StoreTimesheetCode): Action {\r\n return {type: ActionTypes.TIMESHEET_CODE_EXPAND, payload: timesheetCode};\r\n}\r\n\r\nexport function exportMonthlyTimesheet(monthlyTimesheetToExport: MonthlyTimesheetToExport): Action {\r\n return {type: ActionTypes.EXPORT_MONTHLY_TIMESHEET_REQUESTED, payload: monthlyTimesheetToExport};\r\n}\r\n\r\nexport function exportMonthlyTimesheetExcel(monthlyTimesheetToExport: MonthlyTimesheetToExport): Action {\r\n return {type: ActionTypes.EXPORT_MONTHLY_TIMESHEET_EXCEL_REQUESTED, payload: monthlyTimesheetToExport};\r\n}\r\n\r\nexport function exportWeeklyTimesheet(weeklyTimesheetToExport: WeeklyTimesheetToExport): Action {\r\n return {type: ActionTypes.EXPORT_WEEKLY_TIMESHEET_REQUESTED, payload: weeklyTimesheetToExport};\r\n}\r\n\r\nexport function exportWeeklyTimesheetExcel(weeklyTimesheetToExport: WeeklyTimesheetToExport): Action {\r\n return {type: ActionTypes.EXPORT_WEEKLY_TIMESHEET_EXCEL_REQUESTED, payload: weeklyTimesheetToExport};\r\n}\r\n\r\nexport function uploadClientTimesheet(clientTimesheet: UploadClientTimesheet, user: StoreUser): Action {\r\n const payload = Object.assign({}, clientTimesheet, {useUsername: UserHelper.isImpersonating(user)});\r\n return {type: ActionTypes.UPLOAD_CLIENTTIMESHEET_REQUESTED, payload: payload};\r\n}\r\n\r\nexport function getIncompleteTimesheets(): Action {\r\n return {type: ActionTypes.GET_INCOMPLETE_TIMESHEETS_REQUESTED, payload: undefined};\r\n}\r\n\r\nexport function getSigningHubOverview(assignmentIds: number[]): Action {\r\n return {type: ActionTypes.GET_SIGNINGHUB_OVERVIEW_REQUESTED, payload: assignmentIds};\r\n}\r\n\r\nexport function clearSigningHubOverview(): Action {\r\n return {type: ActionTypes.CLEAR_SIGNINGHUB_OVERVIEW_REQUESTED, payload: null};\r\n}\r\n","import {Interval} from '../types/enumTypes';\r\nimport schedule, {Job} from 'node-schedule';\r\n\r\nclass CronHelper {\r\n static createNewJob(intervalInMinutes: Interval, cronFunction: () => void): Job {\r\n const rule = new schedule.RecurrenceRule();\r\n const startMinute = new Date().getMinutes();\r\n\r\n rule.minute = new Array(Math.ceil(60 / intervalInMinutes)).fill(0).map((_, i) => (startMinute + i * intervalInMinutes) % 60);\r\n\r\n return schedule.scheduleJob(rule, cronFunction);\r\n }\r\n\r\n static stopCronJob(cronJob: Job | undefined) {\r\n if(cronJob !== undefined) {\r\n cronJob.cancel();\r\n }\r\n }\r\n}\r\n\r\nexport default CronHelper;\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {StoreActuals} from '../typescript/storeTypes';\r\n\r\n\r\nexport function validateActuals(actuals: StoreActuals[]): Action {\r\n return {type: ActionTypes.VALIDATE_ACTUALS_REQUESTED, payload: actuals};\r\n}\r\n\r\nexport function clearValidatedActuals(): Action {\r\n return {type: ActionTypes.CLEAR_VALIDATED_ACTUALS_REQUESTED, payload: null};\r\n}\r\n\r\nexport function processImportActuals(importId: string): Action {\r\n return {type: ActionTypes.PROCESS_IMPORT_ACTUALS_REQUESTED, payload: {importId: importId}};\r\n}\r\n","export const LocationTypes = {\r\n HOME: '/',\r\n REPORTING_WILDCARD: '/reporting/*',\r\n REPORTING: '/reporting',\r\n REPORTING_ACTUALS: 'actuals',\r\n REPORTING_ACTUALS_FULL: '/reporting/actuals',\r\n REPORTING_TIMESHEETS: 'timesheets',\r\n REPORTING_TIMESHEETS_FULL: '/reporting/timesheets',\r\n REPORTING_WEEKLY_TIMESHEETS: 'timesheetsweekly',\r\n REPORTING_WEEKLY_TIMESHEETS_FULL: '/reporting/timesheetsweekly',\r\n REPORTING_LANDSCAPE_TIMESHEETS: 'timesheetslandscape',\r\n REPORTING_LANDSCAPE_TIMESHEETS_FULL: '/reporting/timesheetslandscape',\r\n REPORTING_TIME_LEFT_ON_ORDER: 'timeleftonorder',\r\n REPORTING_TIME_LEFT_ON_ORDER_FULL: '/reporting/timeleftonorder',\r\n REPORTING_PROJECT_TIMESHEET_REPORT: 'projecttimesheet',\r\n REPORTING_PROJECT_TIMESHEET_REPORT_FULL: '/reporting/projecttimesheet',\r\n IMPORT: '/import',\r\n IMPORT_ACTUALS: '/import/actuals',\r\n RELEASE_NOTES: '/releasenotes',\r\n SETTINGS: '/settings',\r\n ADFS_LOGIN: '/adfs/login',\r\n STS: process.env.STS_WEBSITE_ENDPOINT,\r\n STS_MOBILE: process.env.STS_MOBILE_ENDPOINT,\r\n INVOICE_VIEWER: '/invoiceviewer',\r\n ACCESSRIGHTS: process.env.ACCESSRIGHTS_REDIRECT_URI\r\n};\r\n\r\nexport const ValidRedirects = {\r\n ForSTS: [\r\n LocationTypes.HOME,\r\n LocationTypes.REPORTING,\r\n LocationTypes.REPORTING_ACTUALS_FULL,\r\n LocationTypes.REPORTING_TIMESHEETS_FULL,\r\n LocationTypes.REPORTING_WEEKLY_TIMESHEETS_FULL,\r\n LocationTypes.REPORTING_LANDSCAPE_TIMESHEETS_FULL,\r\n LocationTypes.REPORTING_TIME_LEFT_ON_ORDER_FULL,\r\n LocationTypes.REPORTING_PROJECT_TIMESHEET_REPORT_FULL,\r\n LocationTypes.IMPORT_ACTUALS,\r\n LocationTypes.RELEASE_NOTES,\r\n LocationTypes.INVOICE_VIEWER],\r\n ForWebsite: [\r\n LocationTypes.HOME,\r\n LocationTypes.REPORTING,\r\n LocationTypes.REPORTING_ACTUALS_FULL,\r\n LocationTypes.REPORTING_TIMESHEETS_FULL,\r\n LocationTypes.REPORTING_WEEKLY_TIMESHEETS_FULL,\r\n LocationTypes.REPORTING_LANDSCAPE_TIMESHEETS_FULL,\r\n LocationTypes.REPORTING_TIME_LEFT_ON_ORDER_FULL,\r\n LocationTypes.REPORTING_PROJECT_TIMESHEET_REPORT_FULL,\r\n LocationTypes.IMPORT,\r\n LocationTypes.IMPORT_ACTUALS,\r\n LocationTypes.SETTINGS,\r\n LocationTypes.ADFS_LOGIN,\r\n LocationTypes.RELEASE_NOTES,\r\n LocationTypes.INVOICE_VIEWER\r\n ]\r\n};\r\n","class FileHelper {\r\n static enableReadAsBinaryStringOnFileReaderForLegacy() { // Internet Explorer\r\n if (FileReader.prototype.readAsBinaryString === undefined) {\r\n FileReader.prototype.readAsBinaryString = (fileData) => {\r\n let binary = '';\r\n const pt = (): any => this;\r\n const reader = new FileReader();\r\n reader.onload = () => {\r\n const bytes = new Uint8Array(reader.result as any);\r\n const length = bytes.byteLength;\r\n for (let i = 0; i < length; i++) {\r\n binary += String.fromCharCode(bytes[i]);\r\n }\r\n //this.result - readonly so assign content to another property\r\n pt().content = binary;\r\n pt().onload();\r\n };\r\n reader.readAsArrayBuffer(fileData);\r\n };\r\n }\r\n }\r\n}\r\n\r\nexport default FileHelper;\r\n","class FloatHelper {\r\n static toFixedFloat = (number: number|undefined, numberOfDecimals = 2): number|undefined => {\r\n if(number === undefined || number.toString() === '') return undefined;\r\n return parseFloat(Number(number).toFixed(numberOfDecimals));\r\n };\r\n}\r\n\r\nexport default FloatHelper;\r\n","import { StoreActuals } from '../../../../typescript/storeTypes';\r\nimport React from 'react';\r\n\r\nexport class ImportActualsRow extends React.Component {\r\n\r\n render() {\r\n return (\r\n
\r\n
{this.props.row.username}
\r\n
{this.props.row.tsCode}
\r\n
{this.props.row.workDay}
\r\n
{this.props.row.workMonth}
\r\n
{this.props.row.workYear}
\r\n
{this.props.row.actualHours}
\r\n
{this.props.row.extraHours}
\r\n
{this.props.row.standByHours}
\r\n
{this.props.row.interventionHours}
\r\n
{this.props.row.comments}
\r\n
{this.props.row.processStatus}
\r\n
\r\n );\r\n }\r\n}\r\n\r\ntype Props = {\r\n row: StoreActuals\r\n};\r\n\r\nexport default ImportActualsRow;\r\n","import React from 'react';\r\n\r\nclass ImportActualsTemplateLegend extends React.PureComponent {\r\n state: State = {\r\n isLegendTooltipOpen: false\r\n };\r\n\r\n render() {\r\n return (\r\n
\r\n
this.setState({isLegendTooltipOpen: !this.state.isLegendTooltipOpen})} >\r\n
Need some help ?
\r\n \r\n
\r\n {this.state.isLegendTooltipOpen ?\r\n
\r\n
\r\n
Username
\r\n
TsCode
\r\n
WorkDay
\r\n
WorkMonth
\r\n
WorkYear
\r\n
ActualHours
\r\n
ExtraHours
\r\n
StandbyHours
\r\n
InterventionHours
\r\n
Comments
\r\n
\r\n
\r\n
user_name
\r\n
DCG-TsCode-Name
\r\n
10
\r\n
02
\r\n
{new Date().getFullYear()}
\r\n
7.6
\r\n
1.0
\r\n
3.33
\r\n
0.5
\r\n
a comment
\r\n
\r\n
\r\n
user_name
\r\n
DCG-TsCode-Name
\r\n
11
\r\n
02
\r\n
{new Date().getFullYear()}
\r\n
\r\n
8
\r\n
\r\n
99.99
\r\n
\r\n
\r\n
\r\n
\r\n
Required
\r\n
Required
\r\n
Required
\r\n
Required
\r\n
Required
\r\n
Required *
\r\n
Required *
\r\n
Required *
\r\n
Required *
\r\n
Optional
\r\n
\r\n
* A minimum of 1 of the 4 columns is required.
\r\n
* A maximum amount of 2 numbers is permitted for the decimal and whole part of hours. (eg. 99.99)
\r\n
\r\n
Example document
\r\n
\r\n
\r\n
\r\n : null}\r\n
\r\n );\r\n }\r\n}\r\n\r\ntype State = {\r\n isLegendTooltipOpen: boolean\r\n};\r\n\r\nexport default ImportActualsTemplateLegend;\r\n","class NumberHelper {\r\n static getAmountOfDecimals = (value: number|undefined): number => {\r\n if(value === undefined || value === null || isNaN(value)) return 0;\r\n \r\n if (Math.floor(value) === value) return 0;\r\n \r\n const str = value.toString();\r\n \r\n if(str.includes('.')) {\r\n return str.split('.')[1].length;\r\n } else {\r\n return 0;\r\n }\r\n };\r\n \r\n static getAmountOfIntegers = (value: number|undefined): number => {\r\n if(value === undefined || value === null || isNaN(value)) return 0;\r\n\r\n return Math.floor(value).toString().length;\r\n };\r\n}\r\n\r\nexport default NumberHelper;\r\n","class ObjectHelper {\r\n static deepClone(object: any) {\r\n return JSON.parse(JSON.stringify(object));\r\n }\r\n\r\n static toCamel(object: any): Record {\r\n let newO: any, origKey, newKey, value;\r\n if (object instanceof Array) {\r\n newO = [];\r\n for (origKey in object) {\r\n value = object[origKey];\r\n if (typeof value === 'object') {\r\n value = this.toCamel(value);\r\n }\r\n newO.push(value);\r\n }\r\n } else {\r\n newO = {};\r\n for (origKey in object) {\r\n if (Object.prototype.hasOwnProperty.call(object, origKey)) {\r\n newKey = (origKey.charAt(0).toLowerCase() + origKey.slice(1) || origKey).toString();\r\n value = object[origKey];\r\n if (value instanceof Array || (value !== null && value.constructor === Object)) {\r\n value = this.toCamel(value);\r\n }\r\n newO[newKey] = value;\r\n }\r\n }\r\n }\r\n return newO;\r\n }\r\n\r\n static findDuplicate = (objects: Record[], compare: (obj1: Record, obj2: Record) => boolean): any[] => {\r\n const duplicates = objects.map((o, i) => {\r\n if (objects.find((e, ind) => {\r\n if(i > ind) {\r\n return compare(o, e);\r\n }})) {\r\n return o;\r\n }\r\n }).filter(obj => obj !== undefined);\r\n\r\n return duplicates;\r\n };\r\n\r\n static findDuplicates = (objects: Record[], compare: (obj1: Record, obj2: Record) => boolean): any[] => {\r\n const duplicates: any[] = [];\r\n objects.forEach(obj => {\r\n if (duplicates.indexOf(obj) === -1)\r\n {\r\n const foundObjects = objects.filter(obj2 => compare(obj, obj2));\r\n if (foundObjects.length > 1) {\r\n foundObjects.forEach(fo => duplicates.push(fo));\r\n }\r\n }\r\n });\r\n return duplicates;\r\n };\r\n\r\n static charAt = (obj: any, pos: number): string => {\r\n if(typeof obj !== 'undefined' && obj !== null && typeof obj === 'string')\r\n {\r\n return obj.toString().charAt(pos);\r\n }\r\n return '';\r\n };\r\n\r\n static isEmpty = (obj: any): boolean => {\r\n let isEmpty = true;\r\n const entries = Object.entries(obj);\r\n if(entries.length > 0) {\r\n for(const [val] of entries) {\r\n if(Array.isArray(val)) {\r\n if(val.length > 0) {\r\n isEmpty = false;\r\n break;\r\n }\r\n } else {\r\n\r\n if(!(Object.keys(val).length === 0 && val.constructor === Object)) {\r\n isEmpty = false;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n return isEmpty;\r\n };\r\n\r\n static deepEqual(object1: any, object2: any): boolean {\r\n const keys1 = Object.keys(object1);\r\n const keys2 = Object.keys(object2);\r\n \r\n if (keys1.length !== keys2.length) {\r\n return false;\r\n }\r\n \r\n for (const key of keys1) {\r\n const val1 = object1[key];\r\n const val2 = object2[key];\r\n const areObjects = this.isObject(val1) && this.isObject(val2);\r\n if (areObjects && !this.deepEqual(val1, val2) || !areObjects && val1 !== val2) {\r\n return false;\r\n }\r\n }\r\n \r\n return true;\r\n }\r\n \r\n static isObject(object: any): boolean {\r\n return object !== null && typeof object === 'object';\r\n }\r\n}\r\n\r\nexport default ObjectHelper;\r\n","import {StoreUser} from '../typescript/storeTypes';\r\n\r\nclass PermissionHelper {\r\n static hasPermission(user: StoreUser, ...permissionTypes: string[]): boolean {\r\n try {\r\n if(!user || !user.permissions || user.permissions.length === 0) {\r\n return false;\r\n }\r\n\r\n return user.permissions.find(p => permissionTypes.some(pt => pt === p)) !== undefined;\r\n } catch (error) {\r\n return false;\r\n }\r\n }\r\n}\r\n\r\nexport default PermissionHelper;\r\n","import { ProgressTrackerStep } from '../../../../typescript/importTypes';\r\nimport React from 'react';\r\n\r\nclass ProgressTracker extends React.Component {\r\n isFirstStep = (step: ProgressTrackerStep): boolean => {\r\n return this.props.steps.indexOf(step) === 0;\r\n };\r\n\r\n allowHover = (step: ProgressTrackerStep): boolean => {\r\n if(step.action) {\r\n return true;\r\n }\r\n\r\n return false;\r\n };\r\n\r\n // eslint-disable-next-line @typescript-eslint/ban-types\r\n executeStepAction = (func: Function | undefined | null): void => {\r\n if(func === undefined || func === null) return;\r\n func();\r\n };\r\n\r\n render() {\r\n return (\r\n
    \r\n {this.props.steps.map(s =>\r\n
  • this.executeStepAction(s.action)}>\r\n
    \r\n
    \r\n
    {this.props.showStartOver && this.isFirstStep(s) ? : null}{s.text}
    \r\n
    \r\n
  • \r\n )}\r\n
\r\n );\r\n }\r\n}\r\n\r\ntype Props = {\r\n steps: ProgressTrackerStep[],\r\n showStartOver: boolean\r\n};\r\n\r\nexport default ProgressTracker;\r\n","import {AnyAction, Dispatch, bindActionCreators} from 'redux';\r\nimport { ConnectedProps, connect } from 'react-redux';\r\nimport { StoreActuals, StoreState } from '../../../../typescript/storeTypes';\r\nimport { WithRouterProps, withRouter } from '../../../../common/WithRouter';\r\nimport { clearValidatedActuals, processImportActuals, validateActuals } from '../../../../actions/importActions';\r\n\r\nimport { LocationTypes } from '../../../../types/locationTypes';\r\nimport { PermissionTypes } from '../../../../types/permissionTypes';\r\nimport { ProgressTrackerStep } from '../../../../typescript/importTypes';\r\nimport { PropertyNameIndexer } from '../../../../typescript/customTypes';\r\n\r\nimport * as XLSX from 'xlsx';\r\nimport FileHelper from '../../../../helpers/fileHelper';\r\nimport FloatHelper from '../../../../helpers/floatHelper';\r\nimport ImportActualsRow from './ImportActualsRow';\r\nimport ImportActualsTemplateLegend from './ImportActualsTemplateLegend';\r\nimport MagicDropzone from 'react-magic-dropzone';\r\nimport NumberHelper from '../../../../helpers/numberHelper';\r\nimport ObjectHelper from '../../../../helpers/objectHelper';\r\nimport PermissionHelper from '../../../../helpers/permissionHelper';\r\nimport ProgressTracker from './ProgressTracker';\r\nimport React from 'react';\r\n\r\n\r\nexport class ImportActuals extends React.Component {\r\n state: State = {\r\n duplicates: [],\r\n steps: [ { text: 'Select an Excel document', isActive: true, isComplete: false, action: () => {this.resetSteps();} },\r\n { text: 'Validating Actuals', isActive: false, isComplete: false },\r\n { text: 'Import Actuals', isActive: false, isComplete: false },\r\n { text: 'Importing Actuals', isActive: false, isComplete: false },\r\n { text: 'Done', isActive: false, isComplete: false }\r\n ],\r\n nrOfRowsToImport: undefined,\r\n processImportActualsRequested: false\r\n };\r\n\r\n onDrop = (accepted: any): void => {\r\n FileHelper.enableReadAsBinaryStringOnFileReaderForLegacy();\r\n const reader = new FileReader();\r\n reader.onload = (e) => {\r\n let bstr;\r\n if(!e) {\r\n bstr = (reader as any).content;\r\n }\r\n else {\r\n if(e.target)\r\n {\r\n bstr = e.target.result;\r\n }\r\n }\r\n\r\n const wb = XLSX.read(bstr, {type:'binary'});\r\n /* Get first worksheet */\r\n const wsname = wb.SheetNames[0];\r\n const ws = wb.Sheets[wsname];\r\n\r\n /* Convert array of arrays */\r\n let data: StoreActuals[] = ObjectHelper.toCamel(XLSX.utils.sheet_to_json(ws, {header:0, })) as any;\r\n data = data.map(actual => ({\r\n ...actual,\r\n actualHours: FloatHelper.toFixedFloat(actual.actualHours),\r\n extraHours: FloatHelper.toFixedFloat(actual.extraHours),\r\n interventionHours: FloatHelper.toFixedFloat(actual.interventionHours),\r\n standByHours: FloatHelper.toFixedFloat(actual.standByHours)\r\n }));\r\n\r\n this.setState({steps: ImportActuals.nextStep(this.state.steps)});\r\n\r\n\r\n if (!this.verifyImportedData(data)) {\r\n return;\r\n }\r\n\r\n this.setState({nrOfRowsToImport: data.length});\r\n this.props.validateActuals(data);\r\n };\r\n this.props.clearValidatedActuals();\r\n this.setState({duplicates: [], nrOfRowsToImport: undefined, error: undefined});\r\n reader.readAsBinaryString(accepted[0].slice());\r\n };\r\n\r\n\r\n\r\n verifyImportedData = (rows: StoreActuals[]): boolean => {\r\n if (!rows || rows.length === 0) {\r\n this.setState({error: 'No valid rows were found. Unable to continue. Please check the provided template below for instructions.'});\r\n return false;\r\n }\r\n\r\n if (!this.verifyMissingColumns(rows)) {\r\n this.setState({error: 'One or more required columns are missing. Unable to continue. Please check the provided template below for instructions.'});\r\n return false;\r\n }\r\n\r\n const duplicates = this.sortRowsByDate(ObjectHelper.findDuplicates(rows, (r1, r2) => this.compareRows(r1 as StoreActuals,r2 as StoreActuals)));\r\n if (duplicates.length > 0) {\r\n this.setState({duplicates: duplicates,\r\n error: 'The following duplicates were found. Unable to continue.'}\r\n );\r\n return false;\r\n }\r\n\r\n for(let i = 0; i < rows.length; i++) {\r\n const row = rows[i];\r\n const rowIndex = i + 1;\r\n\r\n let isValid = true;\r\n isValid = isValid && this.sanitizeHoursProperty((row as PropertyNameIndexer), 'actualHours', rowIndex);\r\n isValid = isValid && this.sanitizeHoursProperty((row as PropertyNameIndexer), 'extraHours', rowIndex);\r\n isValid = isValid && this.sanitizeHoursProperty((row as PropertyNameIndexer), 'interventionHours', rowIndex);\r\n isValid = isValid && this.sanitizeHoursProperty((row as PropertyNameIndexer), 'standByHours', rowIndex);\r\n isValid = isValid && this.verifyTsCodeLength(row, rowIndex);\r\n\r\n if(!isValid) return false;\r\n }\r\n\r\n if(this.hasInvalidAmountOf(rows, NumberHelper.getAmountOfDecimals)) {\r\n this.setState({error: 'One or more hours have an invalid amount of decimals (more than 2). Unable to continue. Please check the provided template below for instructions.'});\r\n return false;\r\n }\r\n\r\n if(this.hasInvalidAmountOf(rows, NumberHelper.getAmountOfIntegers)) {\r\n this.setState({error: 'One or more hours have an invalid amount of whole numbers (more than 2). Unable to continue. Please check the provided template below for instructions.'});\r\n return false;\r\n }\r\n\r\n else {\r\n this.setState({error: undefined});\r\n }\r\n\r\n return true;\r\n };\r\n\r\n //Uren met een , omzetten naar een . indien nodig en daarna nakijken of de nieuwe uren geldige uren zijn.\r\n sanitizeHoursProperty = (row: PropertyNameIndexer, propertyName: string, rowIndex: number): boolean => {\r\n if(row[propertyName] && isNaN(row[propertyName])) {\r\n const hours = row[propertyName].toString().replace(/,/g,'.');\r\n if(hours.split('.').length > 2) {\r\n this.setState({error: `Invalid number format found for '${propertyName}' in row ${rowIndex}, the invalid value is: ${row[propertyName]}`});\r\n return false;\r\n }\r\n\r\n row[propertyName] = parseFloat(hours);\r\n }\r\n\r\n if(row[propertyName] < 0) {\r\n this.setState({error: `Negative number found for '${propertyName}' in row ${rowIndex}, the invalid value is: ${row[propertyName]}`});\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n hasInvalidAmountOf = (rows: StoreActuals[], getAmountOfFunction: (val: number|undefined) => number): boolean => {\r\n let isValid = true;\r\n for(const row of rows) {\r\n if(!isValid) return true;\r\n\r\n isValid = isValid && getAmountOfFunction(row.actualHours) <= 2;\r\n isValid = isValid && getAmountOfFunction(row.extraHours) <= 2;\r\n isValid = isValid && getAmountOfFunction(row.standByHours) <= 2;\r\n isValid = isValid && getAmountOfFunction(row.interventionHours) <= 2;\r\n }\r\n\r\n return !isValid;\r\n };\r\n\r\n verifyMissingColumns = (rows: StoreActuals[]): boolean => {\r\n if (rows.some(r => r.username === undefined\r\n || r.tsCode === undefined\r\n || r.workDay === undefined\r\n || r.workMonth === undefined\r\n || r.workYear === undefined\r\n || (r.actualHours === undefined\r\n && r.extraHours === undefined\r\n && r.standByHours === undefined\r\n && r.interventionHours === undefined))\r\n ) {\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n verifyTsCodeLength = (row: StoreActuals, rowIndex: number) : boolean => {\r\n if(row.tsCode.length > 50) {\r\n this.setState({error: `Length of 'TsCode' in row ${rowIndex} exceeds the maximum length of 50, the invalid value is: ${row.tsCode}`});\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n sortRowsByDate = (rows: StoreActuals[]): StoreActuals[] => {\r\n return rows.sort((r1: StoreActuals, r2: StoreActuals) => {\r\n const pad = (n: number) => n < 10 ? '0' + n : n;\r\n const day1 = `${r1.workYear}${pad(r1.workMonth)}${pad(r1.workDay)}`;\r\n const day2 = `${r2.workYear}${pad(r2.workMonth)}${pad(r2.workDay)}`;\r\n\r\n if (day1 < day2) return -1;\r\n if (day1 > day2) return 1;\r\n return 0;\r\n });\r\n };\r\n\r\n compareRows = (row1: StoreActuals, row2: StoreActuals): boolean => {\r\n return row1.username.toLocaleLowerCase() === row2.username.toLocaleLowerCase()\r\n && row1.tsCode.toLocaleLowerCase() === row2.tsCode.toLocaleLowerCase()\r\n && row1.workDay === row2.workDay\r\n && row1.workMonth === row2.workMonth\r\n && row1.workYear === row2.workYear;\r\n };\r\n\r\n checkForImportActualsToProcess = (): boolean => {\r\n return this.props.validatedActuals.actuals.some(va => va.processStatus === 'Ready to process');\r\n };\r\n\r\n processImportActuals = (): void => {\r\n const importId = this.props.validatedActuals.actuals[0].importId;\r\n this.setState({processImportActualsRequested: true});\r\n this.props.processImportActuals(importId);\r\n };\r\n\r\n resetSteps = (): void => {\r\n const steps = [ { text: 'Select an Excel document', isActive: true, isComplete: false, action: () => {this.resetSteps();} },\r\n { text: 'Validating Actuals', isActive: false, isComplete: false },\r\n { text: 'Import Actuals', isActive: false, isComplete: false },\r\n { text: 'Importing Actuals', isActive: false, isComplete: false },\r\n { text: 'Done', isActive: false, isComplete: false }\r\n ];\r\n this.props.clearValidatedActuals();\r\n this.setState({steps: steps, duplicates: [], nrOfRowsToImport: undefined, error: undefined, processImportActualsRequested: false});\r\n };\r\n\r\n static nextStep(steps:ProgressTrackerStep[]): ProgressTrackerStep[] {\r\n const newSteps = steps.slice();\r\n const activeStep = newSteps.findIndex(s => s.isActive);\r\n const nextStep = activeStep < newSteps.length -1 ? activeStep + 1 : undefined;\r\n for (let i = 0; i <= activeStep; i++) {\r\n if (i === 0) {\r\n newSteps[0].text = 'Start over';\r\n }\r\n newSteps[i].isActive = false;\r\n newSteps[i].isComplete = true;\r\n }\r\n\r\n if(nextStep) {\r\n newSteps[nextStep].isActive = true;\r\n }\r\n\r\n return newSteps;\r\n }\r\n\r\n isLastStep = (): boolean => {\r\n return this.state.steps[this.state.steps.length -1].isComplete;\r\n };\r\n\r\n static getDerivedStateFromProps(nextProps: Props, state: State) {\r\n let newState = {steps: state.steps.slice()};\r\n\r\n if (nextProps.validatedActuals.actuals.length > 0) {\r\n newState = {steps: ImportActuals.nextStep(state.steps)};\r\n }\r\n\r\n if (nextProps.validatedActuals.actuals.find(va => va.processStatus !== 'Ready to process') !== undefined) {\r\n newState = Object.assign(newState, {error: 'Rows in red will not be processed.'});\r\n } else {\r\n newState = Object.assign(newState, {error: state.error});\r\n }\r\n\r\n if (nextProps.processImportActualsRequested) {\r\n newState = Object.assign(newState, {steps: ImportActuals.nextStep(newState.steps)});\r\n }\r\n\r\n if (state.processImportActualsRequested && !nextProps.processImportActualsRequested) {\r\n newState = Object.assign(newState, {steps: ImportActuals.nextStep(state.steps)});\r\n }\r\n\r\n return newState;\r\n }\r\n\r\n componentDidUpdate(prevProps: Props): void {\r\n if(prevProps.user !== this.props.user) {\r\n const canOpenImportActuals = PermissionHelper.hasPermission(this.props.user, PermissionTypes.POST_IMPORT_ACTUALS);\r\n if(!canOpenImportActuals) {\r\n this.props.navigate(LocationTypes.HOME);\r\n }\r\n }\r\n }\r\n\r\n componentWillUnmount() {\r\n this.resetSteps();\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n
\r\n \r\n {this.state.error || this.props.validatedActuals.errorMessage ?\r\n
{this.state.error ? this.state.error : this.props.validatedActuals.errorMessage}
\r\n : null\r\n }\r\n\r\n
\r\n {this.checkForImportActualsToProcess() ?\r\n
\r\n \r\n {this.props.processImportActualsRequested ?\r\n
\r\n \r\n \r\n
\r\n : null}\r\n
\r\n : null}\r\n {this.props.validateActualsRequested ?\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
Validating {this.state.nrOfRowsToImport ? this.state.nrOfRowsToImport: ''} rows. Please wait...
\r\n
\r\n
\r\n :\r\n this.state.duplicates.length === 0 && this.props.validatedActuals.actuals.length === 0 && !this.isLastStep() ?\r\n \r\n
\r\n
\r\n
\r\n
Select an Excel (.xlsx) document or drag it here.
\r\n
\r\n
\r\n
\r\n : null\r\n }\r\n
\r\n {this.state.duplicates.length > 0 || this.props.validatedActuals.actuals.length > 0 ?\r\n
\r\n
Username
\r\n
TsCode
\r\n
Work Day
\r\n
Work Month
\r\n
Work Year
\r\n
Actual Hours
\r\n
Extra Hours
\r\n
Standby Hours
\r\n
Intervention Hours
\r\n
Comments
\r\n
Process Status
\r\n
: null\r\n }\r\n {(this.props.validatedActuals.actuals.length > 0 ? this.props.validatedActuals.actuals : this.state.duplicates).map((row: StoreActuals, i: number) =>\r\n \r\n )}\r\n {this.isLastStep() && !this.props.validatedActuals.errorMessage ?\r\n
\r\n
Import actuals succeeded.
\r\n
\r\n
Start over
\r\n
\r\n \r\n
\r\n
\r\n
\r\n : null }\r\n
\r\n
\r\n \r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nconst connector = connect(mapStateToProps, mapDispatchToProps);\r\n\r\ntype MappedProps = ConnectedProps;\r\n\r\ntype Props = MappedProps;\r\n\r\ntype State = {\r\n duplicates: StoreActuals[],\r\n steps: ProgressTrackerStep[],\r\n nrOfRowsToImport?: number,\r\n error?: string,\r\n processImportActualsRequested: boolean\r\n};\r\n\r\nfunction mapStateToProps(state: StoreState, props: WithRouterProps) {\r\n return {\r\n user: state.user,\r\n validatedActuals: state.validatedActuals,\r\n validateActualsRequested: state.calls.validateActualsRequested,\r\n processImportActualsRequested: state.calls.processImportActualsRequested,\r\n navigate: props.navigate // routed\r\n };\r\n}\r\n\r\nfunction mapDispatchToProps(dispatch: Dispatch) {\r\n return bindActionCreators({validateActuals, clearValidatedActuals, processImportActuals}, dispatch);\r\n}\r\n\r\nexport default withRouter(connector(ImportActuals));\r\n","import DateHelper from '../helpers/dateHelper';\r\nimport React from 'react';\r\n\r\nimport {StoreMonthYear} from '../typescript/storeTypes';\r\n\r\nexport class IncompleteMonthsToast extends React.PureComponent {\r\n sortIncompleteMonths = () => {\r\n const pad = (n: number) => n < 10 ? '0' + n : n;\r\n\r\n return this.props.incompleteMonths.slice().sort((m1: StoreMonthYear, m2: StoreMonthYear) => {\r\n if(`${m1.year}${pad(m1.month)}` < `${m2.year}${pad(m2.month)}`) return -1;\r\n if(`${m1.year}${pad(m1.month)}` > `${m2.year}${pad(m2.month)}`) return 1;\r\n return 0;\r\n });\r\n };\r\n\r\n getMonthButtons = (): React.ReactElement[] => {\r\n const buttons: React.ReactElement[] = [];\r\n\r\n this.sortIncompleteMonths().map((monthYear, index) => {\r\n const value = `Go to ${DateHelper.monthName(monthYear.month)} ${monthYear.year}`;\r\n buttons.push() => this.props.getTimesheet(monthYear.month, monthYear.year, event as unknown as Event)}/>);\r\n });\r\n\r\n return buttons;\r\n };\r\n\r\n render() {\r\n return (\r\n
\r\n
You've got some incomplete months:
\r\n {this.getMonthButtons()}\r\n
\r\n );\r\n }\r\n}\r\n\r\ntype Props = {\r\n incompleteMonths: StoreMonthYear[],\r\n getTimesheet: (month: number, year: number, event: Event) => void\r\n};\r\n\r\nexport default IncompleteMonthsToast;\r\n","export const FormatTypes = {\r\n DATE_FORMAT: 'dd/MM/yyyy',\r\n VALID_DATE_CHARS: /(\\d|\\/)/\r\n};\r\n","import { DateRange, DayPicker } from 'react-day-picker';\r\nimport { FormatTypes } from '../../../types/formatTypes';\r\nimport { format} from 'date-fns';\r\nimport { usePopper } from 'react-popper';\r\nimport FocusTrap from 'focus-trap-react';\r\nimport React, {useRef, useState} from 'react';\r\n\r\nexport default function DateRangePicker(props: Props) {\r\n const [range, setRange] = useState({from: props.defaultFromDate, to: props.defaultToDate});\r\n const [isPopperOpen, setIsPopperOpen] = useState(false);\r\n const [popperElement, setPopperElement] = useState(null);\r\n\r\n const buttonRef = useRef(null);\r\n const popperRef = useRef(null);\r\n\r\n const popper = usePopper(popperRef.current, popperElement, {\r\n placement: 'bottom-start'\r\n });\r\n\r\n const closePopper = () => {\r\n setIsPopperOpen(false);\r\n buttonRef?.current?.focus();\r\n };\r\n\r\n const handleButtonClick = () => {\r\n setIsPopperOpen(true);\r\n };\r\n\r\n const handleRangeSelect = (range: DateRange | undefined) => {\r\n setRange(range);\r\n\r\n if(!range?.from || !range?.to) {\r\n props.onDateRangeChange(undefined);\r\n return;\r\n }\r\n\r\n if(range?.from && range?.to) {\r\n props.onDateRangeChange(range);\r\n closePopper();\r\n }\r\n };\r\n\r\n const getFormattedValue = () => {\r\n if(!range?.from || !range?.to) return '';\r\n if(range.from && !range.to){\r\n return format(range.from, FormatTypes.DATE_FORMAT);\r\n }\r\n\r\n if(!range.from && range.to){\r\n return ` - ${format(range.to, FormatTypes.DATE_FORMAT)}`;\r\n }\r\n\r\n return `${format(range.from as Date, FormatTypes.DATE_FORMAT)} - ${format(range.to as Date, FormatTypes.DATE_FORMAT)}`;\r\n };\r\n\r\n return (\r\n
\r\n
\r\n \r\n \r\n
\r\n {isPopperOpen && (\r\n \r\n \r\n \r\n
\r\n )\r\n }\r\n
);\r\n}\r\n\r\ntype Props = {\r\n minDate: Date,\r\n maxDate: Date,\r\n defaultFromDate: Date,\r\n defaultToDate: Date,\r\n numberOfMonths: number,\r\n onDateRangeChange: (dateRange: DateRange| undefined) => void\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport { Filter } from '../typescript/sentInvoiceTypes';\r\n\r\nexport function searchInvoice(invoiceNumber: string, download: boolean): Action {\r\n return {type: ActionTypes.SEARCH_INVOICE_REQUESTED, payload: { invoiceNumber: invoiceNumber, download: download}};\r\n}\r\n\r\nexport function clearInvoice(): Action {\r\n return {type: ActionTypes.CLEAR_INVOICE_REQUESTED, payload: null};\r\n}\r\n\r\n\r\nexport function clearSentInvoices(): Action {\r\n return {type: ActionTypes.CLEAR_SENT_INVOICES_REQUESTED, payload: null};\r\n}\r\n\r\nexport function getSentInvoices(icPartnerId: number, page = 1, invoiceDateRangeStart: string, invoiceDateRangeEnd: string, filter: Filter, sortBy: string, sortOrder: string): Action {\r\n return {type: ActionTypes.GET_SENT_INVOICES_REQUESTED, payload: {\r\n icPartnerId: icPartnerId,\r\n page: page,\r\n invoiceDateRangeStart: invoiceDateRangeStart,\r\n invoiceDateRangeEnd: invoiceDateRangeEnd,\r\n supplier: filter.supplier,\r\n invoicenumber: filter.invoicenumber,\r\n customer: filter.customer,\r\n amount: filter.amount,\r\n paid: filter.paid,\r\n sortBy: sortBy,\r\n sortOrder: sortOrder\r\n }\r\n };\r\n}\r\n\r\nexport function searchInvoiceNumbers(invoiceNumber: string, page = 1): Action {\r\n return {type: ActionTypes.SEARCH_INVOICENUMBERS_REQUESTED, payload: {invoiceNumber: invoiceNumber, page: page}};\r\n}\r\n\r\nexport function clearInvoiceNumbers(): Action {\r\n return {type: ActionTypes.CLEAR_INVOICE_NUMBERS_REQUESTED, payload: undefined};\r\n}\r\n\r\nexport function getInvoice(invoiceId: number, invoiceNumber: string): Action {\r\n return {type: ActionTypes.GET_INVOICE_REQUESTED, payload: { invoiceId: invoiceId, invoiceNumber: invoiceNumber}};\r\n}\r\n","// eslint-disable-next-line import/no-unused-modules\r\nexport type Procedure = (...args: any[]) => void;\r\n\r\nclass ApiHelper {\r\n static debounce(func: F, wait: number, immediate = false):\r\n (this: ThisParameterType, ...args: Parameters) => void {\r\n\r\n let timeoutId: ReturnType | undefined;\r\n\r\n return function(this: ThisParameterType, ...args: Parameters) {\r\n // eslint-disable-next-line @typescript-eslint/no-this-alias\r\n const context = this;\r\n\r\n const later = function() {\r\n timeoutId = undefined;\r\n if (!immediate) {\r\n func.apply(context, args);\r\n }\r\n };\r\n\r\n const callNow = immediate && timeoutId === undefined;\r\n\r\n if (timeoutId !== undefined) {\r\n clearTimeout(timeoutId);\r\n }\r\n\r\n timeoutId = setTimeout(later, wait);\r\n\r\n if (callNow) {\r\n func.apply(context, args);\r\n }\r\n };\r\n }\r\n}\r\n\r\nexport default ApiHelper;\r\n","import {AnyAction, Dispatch,bindActionCreators} from 'redux';\r\nimport {ConnectedProps, connect} from 'react-redux';\r\nimport {clearInvoiceNumbers, getInvoice, searchInvoiceNumbers} from '../../../../actions/invoiceActions';\r\nimport ApiHelper from '../../../../helpers/apiHelper';\r\nimport Autosuggest, {GetSuggestionValue} from 'react-autosuggest';\r\nimport React from 'react';\r\n\r\nimport {StoreInvoiceNumber, StoreState} from '../../../../typescript/storeTypes';\r\n\r\nexport class SearchInvoiceNumber extends React.Component {\r\n autoSuggest: Autosuggest | undefined;\r\n static defaultState: State = {\r\n value: '',\r\n invoiceNumber: {\r\n id: 0,\r\n invoiceNumber: '',\r\n company : ''\r\n }\r\n };\r\n state = SearchInvoiceNumber.defaultState;\r\n searchInvoiceNumbers: (value: string) => void = ApiHelper.debounce(this.props.searchInvoiceNumbers, 500);\r\n\r\n onChange = (event: React.FormEvent & { currentTarget: HTMLElement }, {newValue}: {newValue: StoreInvoiceNumber|string}) => {\r\n if (newValue instanceof Object) {\r\n this.setState({ value: newValue.invoiceNumber, invoiceNumber: newValue });\r\n } else {\r\n const target = event.currentTarget as HTMLInputElement;\r\n this.setState({ value: target.value, invoiceNumber: {id: 0, invoiceNumber: '', company: ''} });\r\n }\r\n };\r\n\r\n downloadInvoice = () => {\r\n if(this.state.invoiceNumber.id > 0) {\r\n this.props.getInvoice(this.state.invoiceNumber.id, this.state.invoiceNumber.invoiceNumber);\r\n }\r\n };\r\n\r\n static getDerivedStateFromProps(nextProps: Props & MappedProps) {\r\n if(nextProps.invoiceNumbers.length === 1) {\r\n return {value: nextProps.invoiceNumbers[0].invoiceNumber, invoiceNumber: nextProps.invoiceNumbers[0]};\r\n }\r\n\r\n return null;\r\n }\r\n\r\n onKeyPress = (event: any): void => {\r\n if(document.activeElement !== (this.autoSuggest as any).input) return;\r\n if(event.charCode === 13 || event.which === 13 || event.keyCode === 13) {\r\n this.downloadInvoice();\r\n }\r\n };\r\n\r\n componentWillUnmount() {\r\n document.body.removeEventListener('keydown', this.onKeyPress);\r\n }\r\n\r\n componentDidMount() {\r\n document.body.addEventListener('keydown', this.onKeyPress);\r\n }\r\n\r\n onSuggestionsFetchRequested = ({value}: {value: string}) => this.searchInvoiceNumbers(value);\r\n getSuggestionValue: GetSuggestionValue = (invoiceNumber: StoreInvoiceNumber): any => invoiceNumber;\r\n renderSuggestion = (invoiceNumber: StoreInvoiceNumber) =>
{invoiceNumber.invoiceNumber} ({invoiceNumber.company})
;\r\n\r\n render() {\r\n const inputProps = {\r\n value: this.state.value,\r\n placeholder: 'Invoice# eg VF/CRO/18/....',\r\n onChange: (event: React.FormEvent, newValue: {newValue: any}) => this.onChange(event, newValue)\r\n };\r\n\r\n return (\r\n
\r\n
\r\n ) => this.autoSuggest = el} suggestions={this.props.invoiceNumbers}\r\n onSuggestionsClearRequested={this.props.clearInvoiceNumbers}\r\n onSuggestionsFetchRequested={this.onSuggestionsFetchRequested}\r\n getSuggestionValue={this.getSuggestionValue}\r\n renderSuggestion={this.renderSuggestion}\r\n inputProps={inputProps}/>\r\n
\r\n \r\n
);\r\n }\r\n}\r\n\r\nconst connector = connect(mapStateToProps, mapDispatchToProps);\r\n\r\ntype MappedProps = ConnectedProps;\r\n\r\ntype Props = {\r\n autoFocus: boolean\r\n};\r\n\r\ntype State = {\r\n value: string,\r\n invoiceNumber: StoreInvoiceNumber\r\n};\r\n\r\nfunction mapStateToProps(state: StoreState) {\r\n return {\r\n invoiceNumbers: state.invoiceDetails.invoiceNumbers,\r\n calls: state.calls,\r\n };\r\n}\r\n\r\nfunction mapDispatchToProps(dispatch: Dispatch) {\r\n return bindActionCreators({getInvoice, searchInvoiceNumbers, clearInvoiceNumbers}, dispatch);\r\n}\r\n\r\nexport default connector(SearchInvoiceNumber);\r\n","class FormatHelper {\r\n static getFormatted2DecimalNumber(numberToFormat: number): number {\r\n return (Math.round(numberToFormat * 100)) / 100;\r\n }\r\n}\r\n\r\nexport default FormatHelper;\r\n","import React from 'react';\r\n\r\nclass TextInput extends React.PureComponent {\r\n isReadOnly = () => {\r\n return (this.props.readOnly === undefined || this.props.readOnly === false) ? false : true;\r\n };\r\n\r\n render() {\r\n const wrapperClass = `form-group${this.props.error ? ' has-error' : ''}`;\r\n return (\r\n
\r\n {this.props.label &&\r\n }\r\n \r\n {this.props.error &&
{this.props.error}
}\r\n
\r\n );\r\n }\r\n}\r\n\r\ntype Props = {\r\n id?: string,\r\n name: string,\r\n label?: string,\r\n labelExtra?: any,\r\n value?: string,\r\n placeholder?: string,\r\n onChange(event: React.ChangeEvent): void,\r\n error?: string,\r\n password?: boolean,\r\n autoFocus?: boolean,\r\n readOnly?: boolean,\r\n disabled?: boolean,\r\n search?: boolean,\r\n required?: boolean,\r\n onKeyUp?: (event: React.SyntheticEvent & {keyCode: number}) => void\r\n};\r\n\r\nexport default TextInput;\r\n","import { Action } from '../../../../typescript/actionTypes';\r\nimport { Filter } from '../../../../typescript/sentInvoiceTypes';\r\nimport { StoreSentInvoice } from '../../../../typescript/storeTypes';\r\nimport ApiHelper from '../../../../helpers/apiHelper';\r\nimport DateHelper from '../../../../helpers/dateHelper';\r\nimport FormatHelper from '../../../../helpers/formatHelper';\r\nimport InfiniteScroll from 'react-infinite-scroller';\r\nimport React from 'react';\r\nimport TextInput from '../../../../common/TextInput';\r\n\r\nclass SentInvoice extends React.Component {\r\n state: State = {\r\n currentPage: 1,\r\n sortBy: 'invoicedate',\r\n sortOrder: 'desc',\r\n filter: {\r\n supplier: '',\r\n invoicenumber: '',\r\n customer: '',\r\n amount: '',\r\n paid: ''\r\n }\r\n };\r\n\r\n callResetSentInvoices = (): void => {\r\n this.props.clearSentInvoices();\r\n this.setState({currentPage: 1}, () => {\r\n if(this.props.supplierId === 0 || this.props.invoiceDateRangeStart === null || this.props.invoiceDateRangeEnd === null) return;\r\n this.props.getSentInvoices(this.props.supplierId, 1, this.props.invoiceDateRangeStart, this.props.invoiceDateRangeEnd, this.state.filter, this.state.sortBy, this.state.sortOrder);\r\n });\r\n };\r\n\r\n fetchSentInvoices = (): void => {\r\n const pageToUse = this.state.currentPage + 1;\r\n\r\n this.setState({currentPage: pageToUse}, () => {\r\n this.props.getSentInvoices(this.props.supplierId, pageToUse, this.props.invoiceDateRangeStart, this.props.invoiceDateRangeEnd, this.state.filter, this.state.sortBy, this.state.sortOrder);\r\n });\r\n };\r\n\r\n changeFilteringDebounce: () => void = ApiHelper.debounce(() => this.changeFiltering(), 500);\r\n\r\n changeFiltering = () => {\r\n localStorage.setItem('sentInvoice_Filter', JSON.stringify(this.state.filter));\r\n\r\n this.callResetSentInvoices();\r\n };\r\n\r\n changeSorting = (sortBy: string) => {\r\n let sortOrder = this.state.sortOrder;\r\n if(this.state.sortBy === sortBy) {\r\n sortOrder = this.state.sortOrder === 'desc' ? 'asc' : 'desc';\r\n } else {\r\n sortOrder = 'asc';\r\n }\r\n localStorage.setItem('sentInvoice_SortBy', sortBy);\r\n localStorage.setItem('sentInvoice_SortOrder', sortOrder);\r\n this.props.clearSentInvoices();\r\n this.setState({currentPage: 1, sortOrder: sortOrder, sortBy: sortBy}, () => {\r\n this.props.getSentInvoices(this.props.supplierId, 1, this.props.invoiceDateRangeStart, this.props.invoiceDateRangeEnd, this.state.filter, this.state.sortBy, this.state.sortOrder);\r\n });\r\n };\r\n\r\n renderHeaderReadonlyItem = (name: string, title: string) => {\r\n return (\r\n
\r\n this.changeSorting(name)}/>\r\n
this.changeSorting(name)}>{title}
\r\n
\r\n );\r\n };\r\n\r\n renderFilterPlaceholder = (name: string) => {\r\n return (\r\n
\r\n );\r\n };\r\n\r\n renderFilterTextBox = (name: string) => {\r\n return (\r\n
\r\n
\r\n & { currentTarget: HTMLInputElement }) => {\r\n const filter = Object.assign({}, this.state.filter);\r\n filter[name] = event.currentTarget.value;\r\n this.setState({filter: filter} as any, this.changeFilteringDebounce);\r\n }}/>\r\n
\r\n
\r\n );\r\n };\r\n\r\n renderFilterCheckbox = (name: string) => {\r\n return (\r\n
\r\n
\r\n
{\r\n const filter = Object.assign({}, this.state.filter);\r\n if(filter[name] === '1')\r\n {\r\n filter[name] = '0';\r\n } else if(filter[name] === '0') {\r\n filter[name] = '';\r\n } else {\r\n filter[name] = '1';\r\n }\r\n this.setState({filter: filter} as any, this.changeFilteringDebounce);\r\n }} >{this.state.filter[name] === '' ? 'ALL' :\r\n (this.state.filter[name] === '1' ?\r\n :\r\n )\r\n }
\r\n
\r\n
\r\n );\r\n };\r\n\r\n sortInvoices = (): StoreSentInvoice[] => {\r\n const sentInvoices = this.props.sentInvoices.slice();\r\n\r\n sentInvoices.sort((i1,i2) => i1.currentCount - i2.currentCount);\r\n\r\n return sentInvoices;\r\n };\r\n\r\n hasMoreSentInvoices = (): boolean => {\r\n if(this.props.sentInvoices.length === 0) return false;\r\n\r\n const currentCount = Math.max(...this.props.sentInvoices.map(i => i.currentCount));\r\n const totalCount = this.props.sentInvoices[0].totalCount;\r\n\r\n return currentCount < totalCount;\r\n };\r\n\r\n componentDidMount() {\r\n const localStorageItem = localStorage.getItem('sentInvoice_Filter');\r\n const filter = JSON.parse(localStorageItem as string);\r\n if(filter && filter !== this.state.filter) {\r\n // eslint-disable-next-line react/no-did-mount-set-state\r\n this.setState({filter: filter});\r\n }\r\n\r\n const sortBy = localStorage.getItem('sentInvoice_SortBy');\r\n if(sortBy && sortBy !== this.state.sortBy) {\r\n // eslint-disable-next-line react/no-did-mount-set-state\r\n this.setState({sortBy: sortBy});\r\n }\r\n const sortOrder = localStorage.getItem('sentInvoice_SortOrder');\r\n if(sortOrder && sortOrder !== this.state.sortOrder) {\r\n // eslint-disable-next-line react/no-did-mount-set-state\r\n this.setState({sortOrder: sortOrder});\r\n }\r\n }\r\n\r\n componentWillUnmount() {\r\n this.props.clearSentInvoices();\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n \r\n {this.props.supplierId > 0 ?\r\n \r\n
\r\n {this.renderHeaderReadonlyItem('invoicedate', 'Invoice Date')}\r\n {this.renderHeaderReadonlyItem('supplier', 'Supplier')}\r\n {this.renderHeaderReadonlyItem('invoicenumber', 'Invoice Number')}\r\n {this.renderHeaderReadonlyItem('customer', 'Customer')}\r\n {this.renderHeaderReadonlyItem('amount', 'Amount')}\r\n {this.renderHeaderReadonlyItem('paid', 'Paid')}\r\n
\r\n
\r\n {this.renderFilterPlaceholder('invoicedate')}\r\n {this.renderFilterTextBox('supplier')}\r\n {this.renderFilterTextBox('invoicenumber')}\r\n {this.renderFilterTextBox('customer')}\r\n {this.renderFilterTextBox('amount')}\r\n {this.renderFilterCheckbox('paid')}\r\n
\r\n
: null}\r\n {this.props.sentInvoices.length > 0 ?\r\n
\r\n
}\r\n hasMore={this.hasMoreSentInvoices()}\r\n pageStart={1}\r\n initialLoad={false}\r\n useWindow={false}\r\n >\r\n {this.sortInvoices().map(i =>\r\n
this.props.getInvoice(i.invoiceId, i.invoiceNumber)} className=\"sent-invoice__list-item\">\r\n
{DateHelper.getFormattedDate(i.invoiceDate, '/')}
\r\n
{i.supplier}
\r\n
{i.invoiceNumber}
\r\n
{i.customer}
\r\n
{FormatHelper.getFormatted2DecimalNumber(i.amount)}€
\r\n
{i.paid ? : }
\r\n
this.props.getInvoice(i.invoiceId, i.invoiceNumber)}>\r\n \r\n
\r\n
\r\n )}\r\n \r\n
\r\n : null }\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\ntype Props = {\r\n supplierId: number,\r\n sentInvoices: StoreSentInvoice[],\r\n invoiceDateRangeStart: string,\r\n invoiceDateRangeEnd: string,\r\n\r\n getSentInvoices(supplierId: number, page: number, invoiceDateRangeStart: string, invoiceDateRangeEnd: string, filter: Filter, sortBy: string, sortOrder: string): Action,\r\n getInvoice(invoiceId: number, invoiceNumber: string): Action,\r\n clearSentInvoices(): Action\r\n};\r\n\r\ntype State = {\r\n currentPage: number,\r\n sortBy: string,\r\n sortOrder: string,\r\n filter: Filter\r\n};\r\n\r\nexport default SentInvoice;\r\n","import { AnyAction, Dispatch ,bindActionCreators} from 'redux';\r\nimport { ConnectedProps, connect } from 'react-redux';\r\nimport { LocationTypes } from '../../../../types/locationTypes';\r\nimport { PermissionTypes } from '../../../../types/permissionTypes';\r\nimport { WithRouterProps, withRouter } from '../../../../common/WithRouter';\r\nimport DateRangePicker from '../../common/DateRangePicker';\r\nimport React from 'react';\r\nimport ScrollBar from 'react-custom-scrollbars-2';\r\nimport SearchInvoiceNumber from './SearchInvoiceNumber';\r\nimport SentInvoice from './SentInvoice';\r\nimport moment from 'moment';\r\n\r\nimport { DateRange } from 'react-day-picker';\r\nimport { StoreInvoiceViewerSupplier, StoreState } from '../../../../typescript/storeTypes';\r\nimport { clearInvoice, clearSentInvoices, getInvoice, getSentInvoices, searchInvoice } from '../../../../actions/invoiceActions';\r\nimport { getInvoiceViewerSuppliers } from '../../../../actions/userActions';\r\nimport PermissionHelper from '../../../../helpers/permissionHelper';\r\nimport TextInput from '../../../../common/TextInput';\r\n\r\nexport class InvoiceViewer extends React.Component {\r\n minDate = moment();\r\n maxDate = moment();\r\n state: State = {\r\n selectedSupplierId: 0,\r\n selectedInvoiceNumber: '',\r\n currentPage: 1,\r\n companyFilterValue: '',\r\n getInvoiceViewerSuppliersCalled: false,\r\n invoiceDateRangeStart: this.minDate.add(-2, 'months').endOf('month'),\r\n invoiceDateRangeEnd: this.maxDate,\r\n focusedInput: null\r\n };\r\n sentInvoice = React.createRef();\r\n\r\n onChange = (event: React.SyntheticEvent & { currentTarget: HTMLInputElement }): void => {\r\n this.setState({selectedInvoiceNumber: event.currentTarget.value});\r\n };\r\n\r\n searchInvoice = (invoiceNumber: string, download: boolean) => {\r\n if(invoiceNumber) {\r\n this.props.searchInvoice(invoiceNumber, download);\r\n }\r\n };\r\n\r\n resetSentInvoices = () => {\r\n this.props.clearInvoice();\r\n (this.sentInvoice.current as SentInvoice).callResetSentInvoices();\r\n };\r\n\r\n onFilterClick = () => {\r\n if((document.getElementById('js-invoice-viewer__title') as HTMLDivElement).style.visibility === 'hidden') {\r\n (document.getElementById('js-invoice-viewer__title') as HTMLDivElement).style.visibility = 'visible';\r\n (document.getElementById('js-invoice-viewer__filter__input') as HTMLDivElement).style.visibility = 'hidden';\r\n this.setState({companyFilterValue: ''});\r\n\r\n const filterElement = document.getElementsByClassName('fa-times')[0];\r\n filterElement.classList.remove('fa-times');\r\n filterElement.classList.add('fa-filter');\r\n } else {\r\n (document.getElementById('js-invoice-viewer__title') as HTMLDivElement).style.visibility = 'hidden';\r\n (document.getElementById('js-invoice-viewer__filter__input') as HTMLDivElement).style.visibility = 'visible';\r\n ((document.getElementById('js-invoice-viewer__filter__input') as HTMLDivElement).children[0].children[0] as HTMLInputElement).focus();\r\n\r\n const filterElement = document.getElementsByClassName('fa-filter')[0];\r\n filterElement.classList.remove('fa-filter');\r\n filterElement.classList.add('fa-times');\r\n }\r\n };\r\n\r\n getFilteredList = () => {\r\n if(this.props.user.invoiceViewerSuppliers.length === 0 || this.state.companyFilterValue === '') {\r\n return this.props.user.invoiceViewerSuppliers;\r\n }\r\n return this.props.user.invoiceViewerSuppliers.filter(ivs => ivs.name.toLowerCase().indexOf(this.state.companyFilterValue.toLowerCase()) !== -1);\r\n };\r\n\r\n static selectSupplierListItem = (props: Props, state: State, invoiceViewerSupplier: StoreInvoiceViewerSupplier) => {\r\n if(props.calls.invoiceRequested || state.selectedSupplierId === invoiceViewerSupplier.id) return state;\r\n\r\n props.clearSentInvoices();\r\n\r\n return Object.assign(state, {selectedSupplierId: invoiceViewerSupplier.id});\r\n };\r\n\r\n static getDerivedStateFromProps(nextProps: Props & MappedProps, prevState: State) {\r\n let state = null;\r\n if(PermissionHelper.hasPermission(nextProps.user, PermissionTypes.GET_INVOICEVIEWER_SUPPLIERS)) {\r\n if(nextProps.user.invoiceViewerSuppliers.length === 0 && !prevState.getInvoiceViewerSuppliersCalled) {\r\n nextProps.getInvoiceViewerSuppliers();\r\n\r\n state = { getInvoiceViewerSuppliersCalled: true };\r\n }\r\n }\r\n\r\n if(nextProps.user.invoiceViewerSuppliers && nextProps.user.invoiceViewerSuppliers.length === 1) {\r\n state = Object.assign(InvoiceViewer.selectSupplierListItem(nextProps, prevState, nextProps.user.invoiceViewerSuppliers[0]), state === null ? {} : state);\r\n }\r\n\r\n return state;\r\n }\r\n\r\n componentDidUpdate(prevProps: Props): void {\r\n if(prevProps.user !== this.props.user) {\r\n const canSearchInvoice = PermissionHelper.hasPermission(this.props.user, PermissionTypes.SEARCH_INVOICE);\r\n if(!canSearchInvoice) {\r\n this.props.navigate(LocationTypes.HOME);\r\n return;\r\n }\r\n }\r\n }\r\n\r\n componentDidMount() {\r\n if(PermissionHelper.hasPermission(this.props.user, PermissionTypes.GET_INVOICEVIEWER_SUPPLIERS) && this.props.user.invoiceViewerSuppliers.length < 1) {\r\n this.props.getInvoiceViewerSuppliers();\r\n }\r\n }\r\n\r\n componentWillUnmount() {\r\n this.props.clearInvoice();\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
Period
\r\n
\r\n {\r\n const start = range?.from === undefined ? this.state.invoiceDateRangeStart : moment(range?.from) as moment.Moment;\r\n const end = range?.to === undefined ? this.state.invoiceDateRangeEnd : moment(range?.to) as moment.Moment;\r\n this.setState({ invoiceDateRangeStart: start, invoiceDateRangeEnd: end }, () => {\r\n this.resetSentInvoices();\r\n });\r\n }}\r\n />\r\n
\r\n
\r\n
\r\n
\r\n
Companies
\r\n
\r\n & { currentTarget: HTMLInputElement }) => this.setState({companyFilterValue: event.currentTarget.value})}/>\r\n
\r\n {this.props.user.invoiceViewerSuppliers.length > 1 ?\r\n
\r\n \r\n
\r\n : null}\r\n
\r\n
\r\n \r\n {this.getFilteredList().map(s =>\r\n
this.setState(InvoiceViewer.selectSupplierListItem(this.props, this.state, s), () => this.resetSentInvoices())}>\r\n {s.name}\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nconst connector = connect(mapStateToProps, mapDispatchToProps);\r\n\r\ntype MappedProps = ConnectedProps;\r\n\r\ntype Props = MappedProps;\r\n\r\ntype State = {\r\n selectedSupplierId: number,\r\n selectedInvoiceNumber: string,\r\n currentPage: number,\r\n companyFilterValue: string,\r\n getInvoiceViewerSuppliersCalled: boolean,\r\n invoiceDateRangeStart: moment.Moment,\r\n invoiceDateRangeEnd: moment.Moment,\r\n focusedInput: 'startDate' | 'endDate' | null\r\n};\r\n\r\nfunction mapStateToProps(state: StoreState, props: WithRouterProps) {\r\n return {\r\n user: state.user,\r\n calls: state.calls,\r\n invoiceDetails: state.invoiceDetails,\r\n navigate: props.navigate // routed\r\n };\r\n}\r\n\r\nfunction mapDispatchToProps(dispatch: Dispatch) {\r\n return bindActionCreators({searchInvoice, getSentInvoices, clearInvoice, clearSentInvoices, getInvoiceViewerSuppliers, getInvoice}, dispatch);\r\n}\r\n\r\nexport default withRouter(connector(InvoiceViewer));\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {SuppliersEmployeesType} from '../typescript/supplierTypes';\r\n\r\n\r\nexport function getSuppliers(search: string): Action {\r\n return {type: ActionTypes.SUPPLIERS_REQUESTED, payload: search};\r\n}\r\n\r\nexport function getAllSuppliers(): Action {\r\n return {type: ActionTypes.GET_ALL_SUPPLIERS_REQUESTED, payload: null};\r\n}\r\n\r\nexport function getSuppliersEmployees(params: SuppliersEmployeesType): Action {\r\n return {type: ActionTypes.SUPPLIERS_EMPLOYEES_REQUESTED, payload: params};\r\n}\r\n\r\nexport function clearSuppliersEmployees(): Action {\r\n return {type: ActionTypes.CLEAR_SUPPLIERS_EMPLOYEES_REQUESTED, payload: null};\r\n}\r\n\r\nexport function clearSuppliers(): Action {\r\n return {type: ActionTypes.CLEAR_SUPPLIERS_REQUESTED, payload: null};\r\n}\r\n\r\nexport function getInvoiceNumbers(supplierId: number, page: number): Action {\r\n return {type: ActionTypes.GET_SUPPLIER_INVOICENUMBERS_REQUESTED, payload: {supplierId: supplierId, page: page}};\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\n\r\nexport function getReleaseNotes(): Action {\r\n return {type: ActionTypes.GET_RELEASE_NOTES_REQUESTED, payload: ''};\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\n\r\n\r\nexport function updateSetting(name: string, value: any): Action {\r\n return {type: ActionTypes.UPDATE_SETTING, payload: {[name]: value}};\r\n}\r\n","class ComponentHelper {\r\n static createStateErrorsObject(state: any): any {\r\n return Object.keys(state).reduce((acc, key) => Object.assign(acc, {[key]: undefined}), {});\r\n }\r\n}\r\n\r\nexport default ComponentHelper;\r\n","import React from 'react';\r\n\r\nclass Modal extends React.PureComponent {\r\n static defaultProps = {\r\n className: ''\r\n };\r\n\r\n render() {\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n {this.props.children}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\ntype Props = {\r\n children: React.ReactElement[] | React.ReactElement,\r\n className: string\r\n};\r\n\r\nexport default Modal;\r\n","class EmailHelper {\r\n static isValidEmailAddress(emailaddress: string): boolean {\r\n const rx = /^(([^<>()\\\\[\\]\\\\.,;:\\s@\\\\\"]+(\\.[^<>()\\\\[\\]\\\\.,;:\\s@\\\\\"]+)*)|(\\\\\".+\\\\\"))@(([^<>()[\\]\\\\.,;:\\s@\\\\\"]+\\.)+[^<>()[\\]\\\\.,;:\\s@\\\\\"]{2,})$/i;\r\n return rx.test(emailaddress.toLowerCase());\r\n }\r\n\r\n static addCronosEmailIfNeeded = (email: string): string => !EmailHelper.isValidEmailAddress(email) ? email + '@cronos.be' : email;\r\n\r\n static isCronosEmailAddress = (emailaddress: string): boolean =>\r\n EmailHelper.isValidEmailAddress(emailaddress) && emailaddress.search('@cronos.be') > 0;\r\n\r\n}\r\n\r\nexport default EmailHelper;\r\n","class WindowHelper {\r\n static getWindowLocation = (): Location => {\r\n return window.location;\r\n };\r\n\r\n static setWindowLocation = (location: string) => {\r\n if(window.location.pathname !== location) {\r\n window.location.assign(location);\r\n return;\r\n }\r\n };\r\n\r\n static isElementInViewport = (el: any): boolean => {\r\n const rect = el.getBoundingClientRect(),\r\n vWidth = window.innerWidth,\r\n vHeight = window.innerHeight,\r\n efp = (x: number, y: number) => document.elementFromPoint(x, y);\r\n\r\n // Return false if it's not in the viewport\r\n if (rect.right < 0 || rect.bottom < 0\r\n || rect.left > vWidth || rect.top > vHeight)\r\n return false;\r\n\r\n // Return true if any of its four corners are visible\r\n return (\r\n el.contains(efp(rect.left, rect.top))\r\n || el.contains(efp(rect.right, rect.top))\r\n || el.contains(efp(rect.right, rect.bottom))\r\n || el.contains(efp(rect.left, rect.bottom))\r\n );\r\n };\r\n}\r\n\r\nexport default WindowHelper;\r\n","import Modal from './../../../../common/Modal';\r\nimport React from 'react';\r\nimport TextInput from './../../../../common/TextInput';\r\n\r\nimport EmailHelper from '../../../../helpers/emailHelper';\r\nimport MessageHelper from '../../../../helpers/messageHelper';\r\n\r\nimport {LocationTypes, ValidRedirects} from '../../../../types/locationTypes';\r\nimport {MappedUserCredentials, UserCredentials} from '../../../../typescript/userTypes';\r\nimport {MessageTypes} from '../../../../types/messageTypes';\r\nimport WindowHelper from '../../../../helpers/windowHelper';\r\n\r\nexport class LoginModal extends React.PureComponent {\r\n popupId: string|number = 9999;\r\n state = {\r\n credentialsLogin: !!process.env.USECREDENTIALLOGIN,\r\n cronosEmailAddress: ''\r\n };\r\n\r\n openLocalLogin = () => this.setState({credentialsLogin: true});\r\n closeLocalLogin = () => this.setState({credentialsLogin: false});\r\n openStsLogin = (cronosEmailAddress: string) => {\r\n this.setState({cronosEmailAddress: cronosEmailAddress});\r\n };\r\n\r\n login = (email: string): void => {\r\n email = EmailHelper.addCronosEmailIfNeeded(email).toLocaleLowerCase();\r\n\r\n if(!EmailHelper.isValidEmailAddress(email)) {\r\n this.popupId = MessageHelper.showMessage({type: MessageTypes.INFO, message: 'Invalid email address'}, this.popupId);\r\n return;\r\n }\r\n\r\n if(EmailHelper.isCronosEmailAddress(email)) {\r\n this.openStsLogin(email);\r\n } else {\r\n this.openLocalLogin();\r\n }\r\n };\r\n\r\n render() {\r\n if(this.state.cronosEmailAddress !== '') {\r\n const helper = WindowHelper.getWindowLocation();\r\n if(ValidRedirects.ForSTS.includes(helper.pathname.toLocaleLowerCase())) {\r\n window.location.assign(LocationTypes.STS && LocationTypes.STS.replace('{{USERNAME}}', this.state.cronosEmailAddress).replace('{{STATE}}', helper.pathname));\r\n return;\r\n }\r\n }\r\n\r\n return (\r\n \r\n { this.state.credentialsLogin ?\r\n
\r\n {!!this.props.authenticationError &&\r\n
}\r\n
\r\n \r\n
\r\n (Not you?)
)}\r\n value={this.props.credentials.username}\r\n onChange={this.props.onChange}\r\n error={this.props.credentialsErrors.username}\r\n autoFocus={this.props.credentials.username ? false : true}\r\n disabled={process.env.USECREDENTIALLOGIN === undefined}\r\n />\r\n \r\n
\r\n
\r\n
this.props.resetPassword(this.props.credentials.username)}>Forgot Password?
\r\n
\r\n
\r\n \r\n
\r\n
\r\n :\r\n
\r\n
\r\n
\r\n
\r\n
Sign in
\r\n \r\n this.login(this.props.credentials.username)}/>\r\n
\r\n
\r\n }\r\n \r\n );\r\n }\r\n}\r\n\r\ntype Props = {\r\n credentials: UserCredentials,\r\n credentialsErrors: MappedUserCredentials,\r\n authenticationError: string,\r\n\r\n onChange: (event: React.SyntheticEvent & { currentTarget: HTMLInputElement }) => void,\r\n onSubmit: (event: React.MouseEvent) => void,\r\n updateSetting: (name: string, value: any) => void,\r\n resetPassword: (username: string) => void\r\n};\r\n\r\ntype State = {\r\n credentialsLogin: boolean,\r\n cronosEmailAddress: string\r\n};\r\n\r\nexport default (LoginModal);\r\n","import {AnyAction, Dispatch,bindActionCreators} from 'redux';\r\nimport {ConnectedProps, connect} from 'react-redux';\r\nimport { WithRouterProps, withRouter } from '../../../../common/WithRouter';\r\nimport {getAllSuppliers} from '../../../../actions/supplierActions';\r\nimport {getIncompleteTimesheets} from '../../../../actions/timesheetActions';\r\nimport {getPermissions, getUser, getVisibleUsers, loginAdfsUser, loginUser, resetPassword } from '../../../../actions/userActions';\r\nimport {getReleaseNotes} from '../../../../actions/releaseNotesActions';\r\nimport { queryString } from '../../../../esm';\r\nimport {updateSetting} from '../../../../actions/settingsActions';\r\nimport ComponentHelper from '../../../../helpers/componentHelper';\r\nimport LoginModal from './LoginModal';\r\nimport React from 'react';\r\n\r\nimport {MappedUserCredentials, UserCredentials} from '../../../../typescript/userTypes';\r\n\r\nimport { LocationTypes } from '../../../../types/locationTypes';\r\nimport {StoreCalls, StoreState, StoreUser} from '../../../../typescript/storeTypes';\r\nimport WindowHelper from '../../../../helpers/windowHelper';\r\n\r\nexport class Login extends React.Component {\r\n state: State = {\r\n calls: this.props.calls,\r\n user: this.props.user,\r\n credentials: {\r\n username: localStorage.getItem('login_Username') === null ? '' : (localStorage.getItem('login_Username') as any),\r\n password: ''\r\n },\r\n credentialsErrors: ComponentHelper.createStateErrorsObject({\r\n username: '',\r\n password: ''\r\n })\r\n };\r\n\r\n onChange = (event: React.SyntheticEvent & { currentTarget: HTMLInputElement }): void => {\r\n if (!this.props.calls.loginRequested) {\r\n const credentials = Object.assign({}, this.state.credentials);\r\n (credentials as {[key: string]: any})[event.currentTarget.name] = event.currentTarget.value;\r\n return this.setState({credentials});\r\n }\r\n };\r\n\r\n onSubmit = (event: React.MouseEvent): void => {\r\n event.preventDefault();\r\n\r\n if (!this.props.calls.loginRequested) {\r\n const errors = ComponentHelper.createStateErrorsObject(this.state.credentials);\r\n\r\n if (!this.state.credentials.username) errors.username = 'Please enter a username.';\r\n if (!this.state.credentials.password) errors.password = 'Please enter a password.';\r\n\r\n if (Object.keys(errors).find(key => errors[key])) {\r\n return this.setState({credentialsErrors: errors});\r\n } else {\r\n this.setState({credentialsErrors: errors});\r\n }\r\n\r\n this.props.loginUser(this.state.credentials);\r\n }\r\n };\r\n\r\n adfsReturnedCheck = () => {\r\n const windowLocation = WindowHelper.getWindowLocation();\r\n if(windowLocation.pathname.toLocaleLowerCase().endsWith(LocationTypes.ADFS_LOGIN.toLocaleLowerCase()) && !this.props.calls.loginRequested) {\r\n const item = queryString.parse(windowLocation.search);\r\n if(this.props.user.authenticatedUser.token === ''){\r\n this.props.loginAdfsUser({\r\n adfsToken: item.code as string,\r\n clientId: process.env.WEBSITE_CLIENT_ID,\r\n resource : 'http://localhost/TiaApiTest',\r\n redirectUri: process.env.WEBSITE_REDIRECT_URI\r\n });\r\n } else {\r\n if(item.state) {\r\n WindowHelper.setWindowLocation(item.state.toString());\r\n }\r\n }\r\n }\r\n };\r\n\r\n onComponentInit = (): void => {\r\n if (!this.props.calls.loginRequested && this.props.user.authenticatedUser.token && this.props.user.authenticatedUser.username !== '') {\r\n this.props.getUser(this.props.user.authenticatedUser.username);\r\n this.props.getPermissions();\r\n this.props.getVisibleUsers();\r\n this.props.getIncompleteTimesheets();\r\n this.getReleaseNotes();\r\n this.props.getAllSuppliers();\r\n }\r\n };\r\n\r\n getReleaseNotes = () => {\r\n if(this.props.settings.lastSeenReleaseNotes !== undefined) {\r\n const version = parseInt(process.env.BUILD_VERSION && process.env.BUILD_VERSION.replace(new RegExp('\\\\.','g'), ''));\r\n if (this.props.settings.lastSeenReleaseNotes < version) {\r\n this.props.getReleaseNotes();\r\n }\r\n } else {\r\n this.props.updateSetting('lastSeenReleaseNotes', 0);\r\n }\r\n };\r\n\r\n componentDidMount() {\r\n this.onComponentInit();\r\n }\r\n\r\n static getDerivedStateFromProps(nextProps: Props, prevState: State) {\r\n if (!nextProps.calls.loginRequested && prevState.calls.loginRequested) {\r\n if (nextProps.user.authenticatedUser.token !== '' && prevState.user.authenticatedUser.username)\r\n {\r\n return {credentials: {username: prevState.credentials.username, password: ''}};\r\n }\r\n }\r\n\r\n return null;\r\n }\r\n\r\n componentDidUpdate(prevProps: Props): void {\r\n if(this.props.user.authenticatedUser.token !== prevProps.user.authenticatedUser.token)\r\n {\r\n this.onComponentInit();\r\n }\r\n }\r\n\r\n render() {\r\n if(!this.props.user.authenticationError) {\r\n this.adfsReturnedCheck();\r\n }\r\n return this.props.user.authenticatedUser.token ? null : (\r\n
\r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\n\r\nconst connector = connect(mapStateToProps, mapDispatchToProps);\r\n\r\ntype MappedProps = ConnectedProps;\r\n\r\ntype Props = MappedProps;\r\n\r\ntype State = {\r\n calls: StoreCalls,\r\n user: StoreUser,\r\n credentials: UserCredentials,\r\n credentialsErrors: MappedUserCredentials\r\n};\r\n\r\nfunction mapStateToProps(state: StoreState, props: WithRouterProps) {\r\n return {\r\n user: state.user,\r\n calls: state.calls,\r\n settings: state.settings,\r\n releaseNotes: state.releaseNotes,\r\n location: props.location, // routed\r\n navigate: props.navigate, // routed\r\n };\r\n}\r\n\r\nfunction mapDispatchToProps(dispatch: Dispatch) {\r\n return bindActionCreators({\r\n loginUser,\r\n loginAdfsUser,\r\n getUser,\r\n getPermissions,\r\n getVisibleUsers,\r\n updateSetting,\r\n getReleaseNotes,\r\n getIncompleteTimesheets,\r\n getAllSuppliers,\r\n resetPassword\r\n }, dispatch);\r\n}\r\n\r\nexport default withRouter(connector(Login));\r\n","import {MaintenanceDetails} from '../typescript/maintenanceTypes';\r\nimport DateHelper from './dateHelper';\r\n\r\nclass MaintenanceHelper {\r\n static isMaintenanceModeConfigured = (maintenanceDetails: MaintenanceDetails): boolean => {\r\n const scheduleStartTime = new Date(maintenanceDetails.maintenanceScheduleStartTime);\r\n const now = new Date();\r\n\r\n return DateHelper.dayDiff(now, scheduleStartTime) === 0 && scheduleStartTime > now;\r\n };\r\n\r\n static getMaintenanceMessage = (maintenanceDetails: MaintenanceDetails): string => {\r\n return `The timesheet website will be under maintenance between ${DateHelper.getFormattedDateWithTime(maintenanceDetails.maintenanceScheduleStartTime,'/')} and ${DateHelper.getFormattedDateWithTime(maintenanceDetails.maintenanceScheduleEndTime,'/')}`;\r\n };\r\n}\r\n\r\nexport default MaintenanceHelper;\r\n","import * as React from 'react';\r\nimport { LocationTypes } from '../../../types/locationTypes';\r\nimport { Navigate } from 'react-router-dom';\r\nimport { StoreUser } from '../../../typescript/storeTypes';\r\nimport PermissionHelper from '../../../helpers/permissionHelper';\r\n\r\ninterface ProtectedRouteProps {\r\n user: StoreUser,\r\n permissionType: string,\r\n children: React.ReactNode\r\n}\r\n\r\nexport default function ProtectedRoute({ user, permissionType, children }: ProtectedRouteProps)\r\n{\r\n if (user.permissions.length > 0 && !PermissionHelper.hasPermission(user, permissionType)) {\r\n return (\r\n \r\n );\r\n } else {\r\n return <>{children};\r\n }\r\n}\r\n","import React from 'react';\r\n\r\n\r\nexport class RefreshToast extends React.PureComponent {\r\n refresh = () => {\r\n window.location.reload();\r\n };\r\n\r\n render() {\r\n return (\r\n
\r\n
You are currently running an outdated version of the website. Please refresh
\r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default RefreshToast;\r\n","import {AnyAction, Dispatch, bindActionCreators} from 'redux';\r\n\r\nimport {ConnectedProps, connect} from 'react-redux';\r\nimport { StoreState} from '../../../../typescript/storeTypes';\r\nimport {getReleaseNotes} from '../../../../actions/releaseNotesActions';\r\nimport React from 'react';\r\n\r\nimport MarkDown from 'react-markdown';\r\n\r\nexport class ReleaseNotes extends React.PureComponent {\r\n render() {\r\n return (\r\n
\r\n \r\n {this.props.notes}\r\n \r\n
\r\n );\r\n }\r\n\r\n componentDidMount() {\r\n this.props.getReleaseNotes();\r\n }\r\n}\r\n\r\nconst connector = connect(mapStateToProps, mapDispatchToProps);\r\n\r\ntype MappedProps = ConnectedProps;\r\n\r\ntype Props = MappedProps;\r\n\r\nfunction mapStateToProps(state: StoreState) {\r\n return {\r\n notes: state.releaseNotes.notes\r\n };\r\n}\r\n\r\nfunction mapDispatchToProps(dispatch: Dispatch) {\r\n return bindActionCreators({\r\n getReleaseNotes\r\n }, dispatch);\r\n}\r\n\r\nexport default connector(ReleaseNotes);\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\nimport {ActualsReportType, TimeLeftOnOrderType, TimesheetsLandscapeReportType, TimesheetsReportType, TimesheetsWeeklyReportType} from '../typescript/reportTypes';\r\n\r\n\r\nexport function exportActualsPdf(actualsReportType: ActualsReportType): Action {\r\n return {type: ActionTypes.EXPORT_ACTUALS_PDF_REQUESTED, payload: actualsReportType};\r\n}\r\n\r\nexport function exportActualsCsv(actualsReportType: ActualsReportType): Action {\r\n return {type: ActionTypes.EXPORT_ACTUALS_CSV_REQUESTED, payload: actualsReportType};\r\n}\r\n\r\nexport function exportActualsExcel(actualsReportType: ActualsReportType): Action {\r\n return {type: ActionTypes.EXPORT_ACTUALS_EXCEL_REQUESTED, payload: actualsReportType};\r\n}\r\n\r\nexport function exportTimesheetsPdf(timesheetsReportType: TimesheetsReportType): Action {\r\n return {type: ActionTypes.EXPORT_TIMESHEETS_PDF_REQUESTED, payload: timesheetsReportType};\r\n}\r\n\r\nexport function exportTimesheetsLandscapePdf(timesheetsLandscapeReportType: TimesheetsLandscapeReportType): Action {\r\n return {type: ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_PDF_REQUESTED, payload: timesheetsLandscapeReportType};\r\n}\r\n\r\nexport function exportTimesheetsLandscapeExcel(timesheetsLandscapeReportType: TimesheetsLandscapeReportType): Action {\r\n return {type: ActionTypes.EXPORT_TIMESHEETS_LANDSCAPE_EXCEL_REQUESTED, payload: timesheetsLandscapeReportType};\r\n}\r\n\r\nexport function exportTimesheetsWeeklyPdf(timesheetsWeeklyReportType: TimesheetsWeeklyReportType): Action {\r\n return {type: ActionTypes.EXPORT_TIMESHEETS_WEEKLY_PDF_REQUESTED, payload: timesheetsWeeklyReportType};\r\n}\r\n\r\nexport function exportTimesheetsWeeklyExcel(timesheetsWeeklyReportType: TimesheetsWeeklyReportType): Action {\r\n return {type: ActionTypes.EXPORT_TIMESHEETS_WEEKLY_EXCEL_REQUESTED, payload: timesheetsWeeklyReportType};\r\n}\r\n\r\nexport function getTimeLeftOnOrder(timeLeftOnOrderType: TimeLeftOnOrderType): Action {\r\n return {type: ActionTypes.POST_GET_TIME_LEFT_ON_ORDER_REQUESTED, payload: timeLeftOnOrderType};\r\n}\r\n\r\nexport function clearTimeLeftOnOrder(): Action {\r\n return {type: ActionTypes.CLEAR_TIME_LEFT_ON_ORDER_REQUESTED, payload: null};\r\n}\r\n","import {Action} from '../typescript/actionTypes';\r\nimport {ActionTypes} from '../types/actionTypes';\r\n\r\nexport function getGroups(groupIds?: number[]): Action {\r\n return {type: ActionTypes.GET_GROUPS_REQUESTED, payload: groupIds};\r\n}\r\n","import React from 'react';\r\nimport ScrollBar from 'react-custom-scrollbars-2';\r\n\r\nimport { SuggestionInfo } from '../../../../typescript/infoTypes';\r\nimport InfiniteScroll from 'react-infinite-scroller';\r\nimport TextInput from './../../../../common/TextInput';\r\n\r\nclass AutoSuggestList extends React.Component {\r\n static defaultProps = {\r\n pagingAllowedOnFetch: false,\r\n singleItemSelection: false,\r\n placeholder: 'search',\r\n clearPagingList: undefined\r\n };\r\n\r\n state: State = {\r\n value: '',\r\n sortAscending: true,\r\n totalCount: 0,\r\n firstSuggestionId: null,\r\n suggestionLength: 0,\r\n isLoading: false,\r\n pageLoaded: 0\r\n };\r\n\r\n static getDerivedStateFromProps(props: Props, state: State): State {\r\n\r\n const newSuggestions = props.suggestions;\r\n const hasNewSuggestions = newSuggestions && !!newSuggestions.length;\r\n const newFirstSuggestionId = hasNewSuggestions ? newSuggestions[0].id : null;\r\n const newTotalCount = hasNewSuggestions ? newSuggestions[0].totalCount : 0;\r\n const newSuggestionLength = hasNewSuggestions ? newSuggestions.length : 0;\r\n\r\n const hasDifferentTotalCount = newTotalCount !== state.totalCount;\r\n const hasDifferentFirstSuggestion = newFirstSuggestionId !== state.firstSuggestionId;\r\n const hasDifferentSuggestionLength = newSuggestionLength !== state.suggestionLength;\r\n const hasDifferentSuggestions = hasDifferentTotalCount || hasDifferentFirstSuggestion || hasDifferentSuggestionLength;\r\n\r\n return {\r\n ...state,\r\n totalCount: newTotalCount,\r\n firstSuggestionId: newFirstSuggestionId,\r\n suggestionLength: newSuggestionLength,\r\n isLoading: hasDifferentSuggestions || !state.value ? false : state.isLoading\r\n };\r\n }\r\n\r\n\r\n onChange = (event: React.SyntheticEvent & { currentTarget: HTMLInputElement }): void => {\r\n if(this.props.clearPagingList) this.props.clearPagingList();\r\n this.setState({value: event.currentTarget.value, pageLoaded: 0}, () => this.fetch());\r\n };\r\n\r\n getFilteredList = (props: Props): SuggestionInfo[] => {\r\n if (this.state.value === '' && props.suggestions.length > 0 && !props.showAllSuggestionsWhenEmptyFilterValue) {\r\n return [];\r\n }\r\n\r\n return props.suggestions.filter(this.withoutSelectedItems);\r\n };\r\n\r\n selectItems = (items: SuggestionInfo[]): void => {\r\n if(this.props.singleItemSelection) {\r\n this.props.selectSuggestion([items[0]]);\r\n return;\r\n }\r\n\r\n this.props.selectSuggestion(items);\r\n\r\n if(this.hasMoreItems())\r\n {\r\n this.fetch();\r\n }\r\n };\r\n\r\n deselectItems = (items: SuggestionInfo[]): void => {\r\n this.props.unSelectSuggestion(items.map(e => e.id));\r\n };\r\n\r\n reverseSort = (): void => {\r\n this.setState({sortAscending: !this.state.sortAscending});\r\n };\r\n\r\n getSortedItems = (): SuggestionInfo[] => {\r\n const sorted = this.getFilteredList(this.props).sort(function(item1, item2) {\r\n const value1 = item1.displayValue.toString().toLowerCase();\r\n const value2 = item2.displayValue.toString().toLowerCase();\r\n if(value1 < value2) return -1;\r\n if(value1 > value2) return 1;\r\n return 0;\r\n });\r\n\r\n if(!this.state.sortAscending) sorted.reverse();\r\n\r\n return sorted;\r\n };\r\n\r\n fetch = (): void => {\r\n this.setState(state => ({ isLoading: true, pageLoaded: state.pageLoaded + 1 }), () => {\r\n this.props.pagingAllowedOnFetch ?\r\n this.props.fetch(this.state.value, this.state.pageLoaded) :\r\n this.props.fetch(this.state.value);\r\n });\r\n };\r\n\r\n fetchWithRespectingLoading = () => {\r\n if(this.state.isLoading || !this.hasMoreItems())\r\n return;\r\n\r\n this.fetch();\r\n };\r\n\r\n selectAll = () => {\r\n this.selectItems(this.getSortedItems());\r\n };\r\n\r\n deselectAll = () => {\r\n this.deselectItems(this.props.selected);\r\n };\r\n\r\n withoutSelectedItems = (suggestion: SuggestionInfo) => this.props.selected.findIndex(selected => suggestion.id === selected.id) === -1;\r\n\r\n hasMoreItems = (): boolean => {\r\n if(!this.state.value) return false;\r\n if(!this.props.pagingAllowedOnFetch) return false;\r\n if(!this.props.suggestions || !this.props.suggestions.length) return false;\r\n\r\n\r\n const hasMoreToLoad = this.state.suggestionLength < this.state.totalCount && !this.state.isLoading;\r\n return hasMoreToLoad;\r\n };\r\n\r\n render() {\r\n return (\r\n
\r\n