@autologix-engineering/shared 1.2.380 → 1.2.381
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/lib/commands/src/generate.pdf.invoice.d.ts +0 -1
- package/src/lib/commands/src/generate.pdf.invoice.js.map +1 -1
- package/src/lib/contract-state/src/contract.date.change.display.d.ts +27 -0
- package/src/lib/contract-state/src/contract.date.change.display.js +47 -0
- package/src/lib/contract-state/src/contract.date.change.display.js.map +1 -0
- package/src/lib/contract-state/src/contract.date.change.window.d.ts +63 -0
- package/src/lib/contract-state/src/contract.date.change.window.js +85 -0
- package/src/lib/contract-state/src/contract.date.change.window.js.map +1 -0
- package/src/lib/contract-state/src/index.d.ts +2 -0
- package/src/lib/contract-state/src/index.js +2 -0
- package/src/lib/contract-state/src/index.js.map +1 -1
- package/src/lib/data-transfer-objects/src/add.ltr.payout.rows.dto.d.ts +86 -0
- package/src/lib/data-transfer-objects/src/add.ltr.payout.rows.dto.js +153 -0
- package/src/lib/data-transfer-objects/src/add.ltr.payout.rows.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/calculate.non.pool.ltr.invoice.data.dto.d.ts +1 -0
- package/src/lib/data-transfer-objects/src/calculate.non.pool.ltr.invoice.data.dto.js +5 -0
- package/src/lib/data-transfer-objects/src/calculate.non.pool.ltr.invoice.data.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/check.vehicle.allocation.conflicts.dto.d.ts +19 -0
- package/src/lib/data-transfer-objects/src/check.vehicle.allocation.conflicts.dto.js +38 -0
- package/src/lib/data-transfer-objects/src/check.vehicle.allocation.conflicts.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/command/add.business.associate.dto.d.ts +1 -0
- package/src/lib/data-transfer-objects/src/command/add.business.associate.dto.js +7 -1
- package/src/lib/data-transfer-objects/src/command/add.business.associate.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/command/add.ltr.vehicle.master.dto.d.ts +1 -0
- package/src/lib/data-transfer-objects/src/command/add.ltr.vehicle.master.dto.js +5 -0
- package/src/lib/data-transfer-objects/src/command/add.ltr.vehicle.master.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/command/process.ext.request.trip.sheet.dto.d.ts +1 -0
- package/src/lib/data-transfer-objects/src/command/process.ext.request.trip.sheet.dto.js +8 -1
- package/src/lib/data-transfer-objects/src/command/process.ext.request.trip.sheet.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/command/update.business.associate.dto.d.ts +1 -0
- package/src/lib/data-transfer-objects/src/command/update.business.associate.dto.js +7 -1
- package/src/lib/data-transfer-objects/src/command/update.business.associate.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/command/update.client.persona.contract.file.dto.d.ts +6 -0
- package/src/lib/data-transfer-objects/src/command/update.client.persona.contract.file.dto.js +6 -1
- package/src/lib/data-transfer-objects/src/command/update.client.persona.contract.file.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/command/update.contract.terms.dto.d.ts +8 -0
- package/src/lib/data-transfer-objects/src/command/update.contract.terms.dto.js +6 -1
- package/src/lib/data-transfer-objects/src/command/update.contract.terms.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/command/update.ltr.request.dto.d.ts +1 -1
- package/src/lib/data-transfer-objects/src/command/update.ltr.request.dto.js +1 -0
- package/src/lib/data-transfer-objects/src/command/update.ltr.request.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/create.consolidated.invoice.dto.d.ts +4 -0
- package/src/lib/data-transfer-objects/src/create.consolidated.invoice.dto.js +21 -1
- package/src/lib/data-transfer-objects/src/create.consolidated.invoice.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/create.dispatch.dto.d.ts +4 -0
- package/src/lib/data-transfer-objects/src/create.dispatch.dto.js +21 -1
- package/src/lib/data-transfer-objects/src/create.dispatch.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/create.ext.request.new.dto.d.ts +1 -0
- package/src/lib/data-transfer-objects/src/create.ext.request.new.dto.js +5 -0
- package/src/lib/data-transfer-objects/src/create.ext.request.new.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/create.report.dto.js +1 -1
- package/src/lib/data-transfer-objects/src/create.report.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/duties.query.dto.d.ts +14 -0
- package/src/lib/data-transfer-objects/src/duties.query.dto.js +5 -0
- package/src/lib/data-transfer-objects/src/duties.query.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/gatekeeper/create.onboarding.user.dto.d.ts +1 -0
- package/src/lib/data-transfer-objects/src/gatekeeper/create.onboarding.user.dto.js +8 -1
- package/src/lib/data-transfer-objects/src/gatekeeper/create.onboarding.user.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/gatekeeper/get.registered.user.ltr.dto.d.ts +7 -0
- package/src/lib/data-transfer-objects/src/gatekeeper/get.registered.user.ltr.dto.js +21 -0
- package/src/lib/data-transfer-objects/src/gatekeeper/get.registered.user.ltr.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/gatekeeper/get.user.by.phone.dto.d.ts +1 -0
- package/src/lib/data-transfer-objects/src/gatekeeper/get.user.by.phone.dto.js +8 -1
- package/src/lib/data-transfer-objects/src/gatekeeper/get.user.by.phone.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/gatekeeper/index.d.ts +2 -0
- package/src/lib/data-transfer-objects/src/gatekeeper/index.js +2 -0
- package/src/lib/data-transfer-objects/src/gatekeeper/index.js.map +1 -1
- package/src/lib/data-transfer-objects/src/gatekeeper/send.email.login.otp.dto.d.ts +72 -0
- package/src/lib/data-transfer-objects/src/gatekeeper/send.email.login.otp.dto.js +36 -1
- package/src/lib/data-transfer-objects/src/gatekeeper/send.email.login.otp.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/gatekeeper/send.ltr.sign.off.otp.dto.d.ts +17 -0
- package/src/lib/data-transfer-objects/src/gatekeeper/send.ltr.sign.off.otp.dto.js +29 -0
- package/src/lib/data-transfer-objects/src/gatekeeper/send.ltr.sign.off.otp.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.contract.date.changes.dto.d.ts +59 -0
- package/src/lib/data-transfer-objects/src/get.contract.date.changes.dto.js +98 -0
- package/src/lib/data-transfer-objects/src/get.contract.date.changes.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.ext.rate.card.dto.d.ts +40 -0
- package/src/lib/data-transfer-objects/src/get.ext.rate.card.dto.js +75 -0
- package/src/lib/data-transfer-objects/src/get.ext.rate.card.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.ltr.booking.day.wise.logs.dto.d.ts +29 -0
- package/src/lib/data-transfer-objects/src/get.ltr.booking.day.wise.logs.dto.js +32 -0
- package/src/lib/data-transfer-objects/src/get.ltr.booking.day.wise.logs.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.bookings.dto.d.ts +5 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.bookings.dto.js +17 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.bookings.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.logs.dto.d.ts +18 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.logs.dto.js +33 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.logs.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.sign.off.preview.dto.d.ts +24 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.sign.off.preview.dto.js +33 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.sign.off.preview.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.d.ts +79 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.js +58 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.ltr.payout.row.audit.dto.d.ts +31 -0
- package/src/lib/data-transfer-objects/src/get.ltr.payout.row.audit.dto.js +42 -0
- package/src/lib/data-transfer-objects/src/get.ltr.payout.row.audit.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.ltr.sign.off.config.dto.d.ts +20 -0
- package/src/lib/data-transfer-objects/src/get.ltr.sign.off.config.dto.js +20 -0
- package/src/lib/data-transfer-objects/src/get.ltr.sign.off.config.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.ltr.vehicle.master.dto.d.ts +1 -0
- package/src/lib/data-transfer-objects/src/get.ltr.vehicle.master.dto.js +9 -2
- package/src/lib/data-transfer-objects/src/get.ltr.vehicle.master.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/gst.dto.d.ts +9 -4
- package/src/lib/data-transfer-objects/src/gst.dto.js +9 -1
- package/src/lib/data-transfer-objects/src/gst.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/index.d.ts +19 -3
- package/src/lib/data-transfer-objects/src/index.js +19 -3
- package/src/lib/data-transfer-objects/src/index.js.map +1 -1
- package/src/lib/data-transfer-objects/src/passenger.persona.custom.dto.d.ts +1 -0
- package/src/lib/data-transfer-objects/src/passenger.persona.custom.dto.js +6 -1
- package/src/lib/data-transfer-objects/src/passenger.persona.custom.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.entry.dto.d.ts +44 -0
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.entry.dto.js +51 -0
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.entry.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.month.dto.d.ts +78 -0
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.month.dto.js +71 -0
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.month.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/submit.ltr.payout.rows.dto.d.ts +15 -0
- package/src/lib/data-transfer-objects/src/submit.ltr.payout.rows.dto.js +5 -0
- package/src/lib/data-transfer-objects/src/submit.ltr.payout.rows.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/update.global.config.dto.d.ts +5 -1
- package/src/lib/data-transfer-objects/src/update.global.config.dto.js +23 -1
- package/src/lib/data-transfer-objects/src/update.global.config.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/update.ltr.log.confirmation.config.dto.d.ts +6 -0
- package/src/lib/data-transfer-objects/src/update.ltr.log.confirmation.config.dto.js +20 -0
- package/src/lib/data-transfer-objects/src/update.ltr.log.confirmation.config.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/update.ltr.payout.rows.dto.d.ts +18 -0
- package/src/lib/data-transfer-objects/src/update.ltr.payout.rows.dto.js +20 -0
- package/src/lib/data-transfer-objects/src/update.ltr.payout.rows.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/update.pickup.detection.config.dto.d.ts +7 -0
- package/src/lib/data-transfer-objects/src/update.pickup.detection.config.dto.js +22 -0
- package/src/lib/data-transfer-objects/src/update.pickup.detection.config.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/update.vehicle.allocation.conflict.window.dto.d.ts +15 -0
- package/src/lib/data-transfer-objects/src/update.vehicle.allocation.conflict.window.dto.js +29 -0
- package/src/lib/data-transfer-objects/src/update.vehicle.allocation.conflict.window.dto.js.map +1 -0
- package/src/lib/enums/src/alert.command.types.js +1 -1
- package/src/lib/enums/src/alert.command.types.js.map +1 -1
- package/src/lib/enums/src/business.associate.default.fields.json.js +26 -18
- package/src/lib/enums/src/business.associate.default.fields.json.js.map +1 -1
- package/src/lib/enums/src/city.state.mapping.js +2 -2
- package/src/lib/enums/src/command.type.enum.d.ts +8 -1
- package/src/lib/enums/src/command.type.enum.js +8 -1
- package/src/lib/enums/src/command.type.enum.js.map +1 -1
- package/src/lib/enums/src/index.d.ts +8 -1
- package/src/lib/enums/src/index.js +8 -1
- package/src/lib/enums/src/index.js.map +1 -1
- package/src/lib/enums/src/login.variant.enum.d.ts +9 -0
- package/src/lib/enums/src/login.variant.enum.js +11 -0
- package/src/lib/enums/src/login.variant.enum.js.map +1 -0
- package/src/lib/enums/src/ltr.font.enum.d.ts +5 -0
- package/src/lib/enums/src/ltr.font.enum.js +7 -0
- package/src/lib/enums/src/ltr.font.enum.js.map +1 -0
- package/src/lib/enums/src/ltr.payout.enum.d.ts +67 -0
- package/src/lib/enums/src/ltr.payout.enum.js +74 -0
- package/src/lib/enums/src/ltr.payout.enum.js.map +1 -0
- package/src/lib/enums/src/model.enum.d.ts +9 -1
- package/src/lib/enums/src/model.enum.js +8 -0
- package/src/lib/enums/src/model.enum.js.map +1 -1
- package/src/lib/enums/src/others.default.data.js +5 -0
- package/src/lib/enums/src/others.default.data.js.map +1 -1
- package/src/lib/enums/src/otp.scope.enum.d.ts +16 -0
- package/src/lib/enums/src/otp.scope.enum.js +18 -0
- package/src/lib/enums/src/otp.scope.enum.js.map +1 -0
- package/src/lib/enums/src/pickup.detection.mode.enum.d.ts +5 -0
- package/src/lib/enums/src/pickup.detection.mode.enum.js +7 -0
- package/src/lib/enums/src/pickup.detection.mode.enum.js.map +1 -0
- package/src/lib/enums/src/query.type.enum.d.ts +12 -2
- package/src/lib/enums/src/query.type.enum.js +12 -1
- package/src/lib/enums/src/query.type.enum.js.map +1 -1
- package/src/lib/enums/src/report.module.type.enum.d.ts +5 -1
- package/src/lib/enums/src/report.module.type.enum.js +4 -0
- package/src/lib/enums/src/report.module.type.enum.js.map +1 -1
- package/src/lib/enums/src/retry.task.enum.d.ts +28 -0
- package/src/lib/enums/src/retry.task.enum.js +31 -0
- package/src/lib/enums/src/retry.task.enum.js.map +1 -0
- package/src/lib/enums/src/state.full.name.number.code.map.js +4 -0
- package/src/lib/enums/src/state.full.name.number.code.map.js.map +1 -1
- package/src/lib/enums/src/trip.file.type.enum.d.ts +2 -1
- package/src/lib/enums/src/trip.file.type.enum.js +1 -0
- package/src/lib/enums/src/trip.file.type.enum.js.map +1 -1
- package/src/lib/enums/src/vehicle.allocation.conflict.enum.d.ts +65 -0
- package/src/lib/enums/src/vehicle.allocation.conflict.enum.js +71 -0
- package/src/lib/enums/src/vehicle.allocation.conflict.enum.js.map +1 -0
- package/src/lib/models/src/auth.profile.model.d.ts +13 -0
- package/src/lib/models/src/auth.profile.model.js +7 -0
- package/src/lib/models/src/auth.profile.model.js.map +1 -1
- package/src/lib/models/src/ba.payout.row.model.d.ts +24 -0
- package/src/lib/models/src/ba.payout.row.model.js.map +1 -1
- package/src/lib/models/src/business.associate.model.d.ts +6 -1
- package/src/lib/models/src/business.associate.model.js +2 -0
- package/src/lib/models/src/business.associate.model.js.map +1 -1
- package/src/lib/models/src/client.configuration.model.d.ts +12 -1
- package/src/lib/models/src/client.configuration.model.js +5 -0
- package/src/lib/models/src/client.configuration.model.js.map +1 -1
- package/src/lib/models/src/client.contract.date.change.model.d.ts +80 -0
- package/src/lib/models/src/client.contract.date.change.model.js +25 -0
- package/src/lib/models/src/client.contract.date.change.model.js.map +1 -0
- package/src/lib/models/src/configurations.activity.log.model.d.ts +42 -0
- package/src/lib/models/src/configurations.activity.log.model.js +15 -0
- package/src/lib/models/src/configurations.activity.log.model.js.map +1 -0
- package/src/lib/models/src/configurations.model.d.ts +22 -2
- package/src/lib/models/src/configurations.model.js +15 -0
- package/src/lib/models/src/configurations.model.js.map +1 -1
- package/src/lib/models/src/gst.model.d.ts +12 -2
- package/src/lib/models/src/gst.model.js +1 -0
- package/src/lib/models/src/gst.model.js.map +1 -1
- package/src/lib/models/src/index.d.ts +10 -1
- package/src/lib/models/src/index.js +10 -1
- package/src/lib/models/src/index.js.map +1 -1
- package/src/lib/models/src/ltr.log.confirmation.model.d.ts +30 -0
- package/src/lib/models/src/ltr.log.confirmation.model.js +15 -0
- package/src/lib/models/src/ltr.log.confirmation.model.js.map +1 -0
- package/src/lib/models/src/ltr.payout.model.d.ts +37 -2
- package/src/lib/models/src/ltr.payout.model.js +22 -0
- package/src/lib/models/src/ltr.payout.model.js.map +1 -1
- package/src/lib/models/src/ltr.payout.month.sign.off.model.d.ts +85 -0
- package/src/lib/models/src/ltr.payout.month.sign.off.model.js +28 -0
- package/src/lib/models/src/ltr.payout.month.sign.off.model.js.map +1 -0
- package/src/lib/models/src/ltr.payout.row.audit.model.d.ts +44 -0
- package/src/lib/models/src/ltr.payout.row.audit.model.js +22 -0
- package/src/lib/models/src/ltr.payout.row.audit.model.js.map +1 -0
- package/src/lib/models/src/ltr.payout.row.group.model.d.ts +73 -0
- package/src/lib/models/src/ltr.payout.row.group.model.js +25 -0
- package/src/lib/models/src/ltr.payout.row.group.model.js.map +1 -0
- package/src/lib/models/src/ltr.payout.row.image.model.d.ts +34 -0
- package/src/lib/models/src/ltr.payout.row.image.model.js +11 -0
- package/src/lib/models/src/ltr.payout.row.image.model.js.map +1 -0
- package/src/lib/models/src/ltr.sign.off.otp.model.d.ts +40 -0
- package/src/lib/models/src/ltr.sign.off.otp.model.js +17 -0
- package/src/lib/models/src/ltr.sign.off.otp.model.js.map +1 -0
- package/src/lib/models/src/ltr.vehicle.master.model.d.ts +2 -0
- package/src/lib/models/src/ltr.vehicle.master.model.js +1 -0
- package/src/lib/models/src/ltr.vehicle.master.model.js.map +1 -1
- package/src/lib/models/src/passenger.persona.model.d.ts +18 -2
- package/src/lib/models/src/passenger.persona.model.js +8 -0
- package/src/lib/models/src/passenger.persona.model.js.map +1 -1
- package/src/lib/models/src/request.model.d.ts +2 -0
- package/src/lib/models/src/request.model.js +1 -0
- package/src/lib/models/src/request.model.js.map +1 -1
- package/src/lib/models/src/retry.task.model.d.ts +56 -0
- package/src/lib/models/src/retry.task.model.js +26 -0
- package/src/lib/models/src/retry.task.model.js.map +1 -0
- package/src/lib/models/src/white.label.config.model.d.ts +6 -2
- package/src/lib/models/src/white.label.config.model.js +2 -0
- package/src/lib/models/src/white.label.config.model.js.map +1 -1
- package/src/lib/routes/src/command.registry.routes.d.ts +7 -0
- package/src/lib/routes/src/command.registry.routes.js +7 -0
- package/src/lib/routes/src/command.registry.routes.js.map +1 -1
- package/src/lib/routes/src/gatekeeper.routes.d.ts +2 -0
- package/src/lib/routes/src/gatekeeper.routes.js +2 -0
- package/src/lib/routes/src/gatekeeper.routes.js.map +1 -1
- package/src/lib/routes/src/query.service.routes.d.ts +11 -1
- package/src/lib/routes/src/query.service.routes.js +12 -1
- package/src/lib/routes/src/query.service.routes.js.map +1 -1
- package/src/lib/utilities/src/ba.payout.workshop.days.d.ts +77 -0
- package/src/lib/utilities/src/ba.payout.workshop.days.js +109 -0
- package/src/lib/utilities/src/ba.payout.workshop.days.js.map +1 -0
- package/src/lib/utilities/src/financial.year.d.ts +83 -0
- package/src/lib/utilities/src/financial.year.js +145 -0
- package/src/lib/utilities/src/financial.year.js.map +1 -0
- package/src/lib/utilities/src/index.d.ts +9 -2
- package/src/lib/utilities/src/index.js +9 -2
- package/src/lib/utilities/src/index.js.map +1 -1
- package/src/lib/utilities/src/invoice.generation.alert.util.d.ts +1 -0
- package/src/lib/utilities/src/invoice.generation.alert.util.js +7 -2
- package/src/lib/utilities/src/invoice.generation.alert.util.js.map +1 -1
- package/src/lib/utilities/src/ltr.cycle.month.index.d.ts +14 -0
- package/src/lib/utilities/src/ltr.cycle.month.index.js +22 -0
- package/src/lib/utilities/src/ltr.cycle.month.index.js.map +1 -0
- package/src/lib/utilities/src/ltr.payout.row.key.d.ts +43 -0
- package/src/lib/utilities/src/ltr.payout.row.key.js +78 -0
- package/src/lib/utilities/src/ltr.payout.row.key.js.map +1 -0
- package/src/lib/utilities/src/normalize.phone.number.d.ts +17 -0
- package/src/lib/utilities/src/normalize.phone.number.js +45 -0
- package/src/lib/utilities/src/normalize.phone.number.js.map +1 -0
- package/src/lib/utilities/src/parse.display.date.d.ts +16 -0
- package/src/lib/utilities/src/parse.display.date.js +43 -0
- package/src/lib/utilities/src/parse.display.date.js.map +1 -0
- package/src/lib/utilities/src/resolve.gst.state.d.ts +23 -0
- package/src/lib/utilities/src/resolve.gst.state.js +38 -0
- package/src/lib/utilities/src/resolve.gst.state.js.map +1 -0
- package/src/lib/utilities/src/vendor.operations.log.d.ts +28 -0
- package/src/lib/utilities/src/vendor.operations.log.js +128 -0
- package/src/lib/utilities/src/vendor.operations.log.js.map +1 -0
- package/src/lib/view-models/src/ext.rate.card.d.ts +114 -0
- package/src/lib/view-models/src/ext.rate.card.js +9 -0
- package/src/lib/view-models/src/ext.rate.card.js.map +1 -0
- package/src/lib/view-models/src/index.d.ts +2 -0
- package/src/lib/view-models/src/index.js +2 -0
- package/src/lib/view-models/src/index.js.map +1 -1
- package/src/lib/view-models/src/public.config.d.ts +6 -1
- package/src/lib/view-models/src/vehicle.allocation.conflict.d.ts +28 -0
- package/src/lib/view-models/src/vehicle.allocation.conflict.js +2 -0
- package/src/lib/view-models/src/vehicle.allocation.conflict.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.ext.available.ratecards.dto.d.ts +0 -5
- package/src/lib/data-transfer-objects/src/get.ext.available.ratecards.dto.js +0 -19
- package/src/lib/data-transfer-objects/src/get.ext.available.ratecards.dto.js.map +0 -1
- package/src/lib/utilities/src/pick.latest.numbered.invoice.d.ts +0 -21
- package/src/lib/utilities/src/pick.latest.numbered.invoice.js +0 -52
- package/src/lib/utilities/src/pick.latest.numbered.invoice.js.map +0 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { BookingStatus } from './booking.status.enum';
|
|
2
|
+
import { TripStatus } from './trip.status.enum';
|
|
3
|
+
/**
|
|
4
|
+
* AD-3373 — why a vehicle allocation was flagged.
|
|
5
|
+
*
|
|
6
|
+
* The reason is carried on every conflict rather than inferred by the client,
|
|
7
|
+
* because the three rules read very differently to a dispatcher: "this car is
|
|
8
|
+
* out on a job right now" is a hard operational clash, while "this car has a
|
|
9
|
+
* job starting in 90 minutes" is a heads-up about the next slot.
|
|
10
|
+
*/
|
|
11
|
+
export declare enum VehicleAllocationConflictReason {
|
|
12
|
+
/** The vehicle is on a duty whose trip is running at this moment. */
|
|
13
|
+
Ongoing = "Ongoing",
|
|
14
|
+
/**
|
|
15
|
+
* The vehicle is allocated to a duty whose pickup falls inside the
|
|
16
|
+
* configured window measured from now (default 2 hours).
|
|
17
|
+
*/
|
|
18
|
+
UpcomingWithinWindow = "UpcomingWithinWindow",
|
|
19
|
+
/**
|
|
20
|
+
* The vehicle is allocated to a duty whose pickup is close to the pickup of
|
|
21
|
+
* the duty being allocated. Anchored on the booking rather than on `now`,
|
|
22
|
+
* so allocating next Tuesday's duty still catches next Tuesday's clash.
|
|
23
|
+
*/
|
|
24
|
+
SamePickupSlot = "SamePickupSlot"
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* AD-3373 — default conflict window when a context has not configured one.
|
|
28
|
+
* 120 minutes = the 2 hours the ticket specifies. Overridable per context via
|
|
29
|
+
* ConfigurationField.VehicleAllocationConflictWindowMinutes.
|
|
30
|
+
*/
|
|
31
|
+
export declare const DEFAULT_VEHICLE_ALLOCATION_CONFLICT_WINDOW_MINUTES = 120;
|
|
32
|
+
/**
|
|
33
|
+
* Upper bound accepted for the configured window: 7 days. Past that the check
|
|
34
|
+
* flags essentially every allocation, which trains dispatchers to click through
|
|
35
|
+
* the warning without reading it — worse than having no warning at all.
|
|
36
|
+
*/
|
|
37
|
+
export declare const MAX_VEHICLE_ALLOCATION_CONFLICT_WINDOW_MINUTES = 10080;
|
|
38
|
+
/**
|
|
39
|
+
* How far either side of the pickup of the duty being allocated a second duty
|
|
40
|
+
* on the same vehicle counts as the same slot.
|
|
41
|
+
*
|
|
42
|
+
* 30 minutes, preserved from the check that shipped before AD-3373 so that
|
|
43
|
+
* behaviour does not regress for bookings outside the now-window. Deliberately
|
|
44
|
+
* NOT the configurable window: that one is anchored on `now` and answers "is
|
|
45
|
+
* this car about to be busy", this one is anchored on the booking and answers
|
|
46
|
+
* "is this car double-booked for this slot".
|
|
47
|
+
*/
|
|
48
|
+
export declare const VEHICLE_ALLOCATION_SAME_SLOT_TOLERANCE_MINUTES = 30;
|
|
49
|
+
/**
|
|
50
|
+
* Booking statuses in which a duty still holds its vehicle (AD-3373).
|
|
51
|
+
*
|
|
52
|
+
* Cancelled and Aborted are excluded on purpose — the ticket's whole point is
|
|
53
|
+
* to surface a real clash, and a duty nobody will run does not clash with
|
|
54
|
+
* anything. Fulfilled/Completed/Invoiced/Paid are excluded for the same reason:
|
|
55
|
+
* the vehicle has finished and been released. PendingApproval and NewRequest
|
|
56
|
+
* are excluded because no vehicle is allocated in those states; if one somehow
|
|
57
|
+
* is, the booking is not yet confirmed and warning on it would be noise.
|
|
58
|
+
*/
|
|
59
|
+
export declare const VEHICLE_ALLOCATION_CONFLICTING_BOOKING_STATUSES: BookingStatus[];
|
|
60
|
+
/**
|
|
61
|
+
* Trip statuses that mean the vehicle is physically out on a job right now.
|
|
62
|
+
* Same set the driver dispatch validation already uses, so the two checks
|
|
63
|
+
* cannot disagree about what "ongoing" means.
|
|
64
|
+
*/
|
|
65
|
+
export declare const VEHICLE_ALLOCATION_ONGOING_TRIP_STATUSES: TripStatus[];
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { BookingStatus } from './booking.status.enum';
|
|
2
|
+
import { TripStatus } from './trip.status.enum';
|
|
3
|
+
/**
|
|
4
|
+
* AD-3373 — why a vehicle allocation was flagged.
|
|
5
|
+
*
|
|
6
|
+
* The reason is carried on every conflict rather than inferred by the client,
|
|
7
|
+
* because the three rules read very differently to a dispatcher: "this car is
|
|
8
|
+
* out on a job right now" is a hard operational clash, while "this car has a
|
|
9
|
+
* job starting in 90 minutes" is a heads-up about the next slot.
|
|
10
|
+
*/
|
|
11
|
+
export var VehicleAllocationConflictReason;
|
|
12
|
+
(function (VehicleAllocationConflictReason) {
|
|
13
|
+
/** The vehicle is on a duty whose trip is running at this moment. */
|
|
14
|
+
VehicleAllocationConflictReason["Ongoing"] = "Ongoing";
|
|
15
|
+
/**
|
|
16
|
+
* The vehicle is allocated to a duty whose pickup falls inside the
|
|
17
|
+
* configured window measured from now (default 2 hours).
|
|
18
|
+
*/
|
|
19
|
+
VehicleAllocationConflictReason["UpcomingWithinWindow"] = "UpcomingWithinWindow";
|
|
20
|
+
/**
|
|
21
|
+
* The vehicle is allocated to a duty whose pickup is close to the pickup of
|
|
22
|
+
* the duty being allocated. Anchored on the booking rather than on `now`,
|
|
23
|
+
* so allocating next Tuesday's duty still catches next Tuesday's clash.
|
|
24
|
+
*/
|
|
25
|
+
VehicleAllocationConflictReason["SamePickupSlot"] = "SamePickupSlot";
|
|
26
|
+
})(VehicleAllocationConflictReason || (VehicleAllocationConflictReason = {}));
|
|
27
|
+
/**
|
|
28
|
+
* AD-3373 — default conflict window when a context has not configured one.
|
|
29
|
+
* 120 minutes = the 2 hours the ticket specifies. Overridable per context via
|
|
30
|
+
* ConfigurationField.VehicleAllocationConflictWindowMinutes.
|
|
31
|
+
*/
|
|
32
|
+
export const DEFAULT_VEHICLE_ALLOCATION_CONFLICT_WINDOW_MINUTES = 120;
|
|
33
|
+
/**
|
|
34
|
+
* Upper bound accepted for the configured window: 7 days. Past that the check
|
|
35
|
+
* flags essentially every allocation, which trains dispatchers to click through
|
|
36
|
+
* the warning without reading it — worse than having no warning at all.
|
|
37
|
+
*/
|
|
38
|
+
export const MAX_VEHICLE_ALLOCATION_CONFLICT_WINDOW_MINUTES = 10080;
|
|
39
|
+
/**
|
|
40
|
+
* How far either side of the pickup of the duty being allocated a second duty
|
|
41
|
+
* on the same vehicle counts as the same slot.
|
|
42
|
+
*
|
|
43
|
+
* 30 minutes, preserved from the check that shipped before AD-3373 so that
|
|
44
|
+
* behaviour does not regress for bookings outside the now-window. Deliberately
|
|
45
|
+
* NOT the configurable window: that one is anchored on `now` and answers "is
|
|
46
|
+
* this car about to be busy", this one is anchored on the booking and answers
|
|
47
|
+
* "is this car double-booked for this slot".
|
|
48
|
+
*/
|
|
49
|
+
export const VEHICLE_ALLOCATION_SAME_SLOT_TOLERANCE_MINUTES = 30;
|
|
50
|
+
/**
|
|
51
|
+
* Booking statuses in which a duty still holds its vehicle (AD-3373).
|
|
52
|
+
*
|
|
53
|
+
* Cancelled and Aborted are excluded on purpose — the ticket's whole point is
|
|
54
|
+
* to surface a real clash, and a duty nobody will run does not clash with
|
|
55
|
+
* anything. Fulfilled/Completed/Invoiced/Paid are excluded for the same reason:
|
|
56
|
+
* the vehicle has finished and been released. PendingApproval and NewRequest
|
|
57
|
+
* are excluded because no vehicle is allocated in those states; if one somehow
|
|
58
|
+
* is, the booking is not yet confirmed and warning on it would be noise.
|
|
59
|
+
*/
|
|
60
|
+
export const VEHICLE_ALLOCATION_CONFLICTING_BOOKING_STATUSES = [BookingStatus.Booked, BookingStatus.Allotted, BookingStatus.Dispatched];
|
|
61
|
+
/**
|
|
62
|
+
* Trip statuses that mean the vehicle is physically out on a job right now.
|
|
63
|
+
* Same set the driver dispatch validation already uses, so the two checks
|
|
64
|
+
* cannot disagree about what "ongoing" means.
|
|
65
|
+
*/
|
|
66
|
+
export const VEHICLE_ALLOCATION_ONGOING_TRIP_STATUSES = [
|
|
67
|
+
TripStatus.DriverOnTheWay,
|
|
68
|
+
TripStatus.DriverReached,
|
|
69
|
+
TripStatus.TripStarted,
|
|
70
|
+
];
|
|
71
|
+
//# sourceMappingURL=vehicle.allocation.conflict.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vehicle.allocation.conflict.enum.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/vehicle.allocation.conflict.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,+BAcX;AAdD,WAAY,+BAA+B;IAC1C,qEAAqE;IACrE,sDAAmB,CAAA;IACnB;;;OAGG;IACH,gFAA6C,CAAA;IAC7C;;;;OAIG;IACH,oEAAiC,CAAA;AAClC,CAAC,EAdW,+BAA+B,KAA/B,+BAA+B,QAc1C;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,kDAAkD,GAAG,GAAG,CAAC;AAEtE;;;;GAIG;AACH,MAAM,CAAC,MAAM,8CAA8C,GAAG,KAAK,CAAC;AAEpE;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,8CAA8C,GAAG,EAAE,CAAC;AAEjE;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,+CAA+C,GAC3D,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;AAE1E;;;;GAIG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAiB;IACrE,UAAU,CAAC,cAAc;IACzB,UAAU,CAAC,aAAa;IACxB,UAAU,CAAC,WAAW;CACtB,CAAC"}
|
|
@@ -10,6 +10,13 @@ export declare enum AuthProfileField {
|
|
|
10
10
|
UpdatedAt = "updatedAt",
|
|
11
11
|
HashedLoginOtp = "hshdLgnOtp",
|
|
12
12
|
LoginOtpExpiresAt = "lgnOtpExpAt",
|
|
13
|
+
/**
|
|
14
|
+
* A code scoped to confirming an LTR log, kept apart from the login and
|
|
15
|
+
* password-reset codes on purpose — see IAuthProfile.
|
|
16
|
+
*/
|
|
17
|
+
HashedSignOffOtp = "hshdSgnOffOtp",
|
|
18
|
+
SignOffOtpExpiresAt = "sgnOffOtpExpAt",
|
|
19
|
+
SignOffOtpSentAt = "sgnOffOtpSentAt",
|
|
13
20
|
PasswordHistory = "passwordHistory",
|
|
14
21
|
LastAuthAttemptAt = "lastAuthAttemptAt",
|
|
15
22
|
InvalidAuthAttempts = "invalidAuthAttempts"
|
|
@@ -23,6 +30,8 @@ export interface IAuthProfile {
|
|
|
23
30
|
isOtpValid: (otp: string) => boolean;
|
|
24
31
|
setLoginOtp: (otp: string) => void;
|
|
25
32
|
isLoginOtpValid: (otp: string) => boolean;
|
|
33
|
+
setSignOffOtp: (otp: string) => void;
|
|
34
|
+
isSignOffOtpValid: (otp: string) => boolean;
|
|
26
35
|
markAuthSuccess: () => void;
|
|
27
36
|
markAuthFailure: () => void;
|
|
28
37
|
hasExceededInvalidAuthAttempts: () => boolean;
|
|
@@ -37,6 +46,10 @@ export interface IAuthProfile {
|
|
|
37
46
|
[AuthProfileField.UpdatedAt]: Date;
|
|
38
47
|
[AuthProfileField.HashedLoginOtp]?: string;
|
|
39
48
|
[AuthProfileField.LoginOtpExpiresAt]?: Date;
|
|
49
|
+
[AuthProfileField.HashedSignOffOtp]?: string;
|
|
50
|
+
[AuthProfileField.SignOffOtpExpiresAt]?: Date;
|
|
51
|
+
/** When the last sign-off code was issued, for the resend cooldown. */
|
|
52
|
+
[AuthProfileField.SignOffOtpSentAt]?: Date;
|
|
40
53
|
[AuthProfileField.PasswordHistory]?: IPasswordHistory[];
|
|
41
54
|
[AuthProfileField.LastAuthAttemptAt]?: Date;
|
|
42
55
|
[AuthProfileField.InvalidAuthAttempts]?: number;
|
|
@@ -10,6 +10,13 @@ export var AuthProfileField;
|
|
|
10
10
|
AuthProfileField["UpdatedAt"] = "updatedAt";
|
|
11
11
|
AuthProfileField["HashedLoginOtp"] = "hshdLgnOtp";
|
|
12
12
|
AuthProfileField["LoginOtpExpiresAt"] = "lgnOtpExpAt";
|
|
13
|
+
/**
|
|
14
|
+
* A code scoped to confirming an LTR log, kept apart from the login and
|
|
15
|
+
* password-reset codes on purpose — see IAuthProfile.
|
|
16
|
+
*/
|
|
17
|
+
AuthProfileField["HashedSignOffOtp"] = "hshdSgnOffOtp";
|
|
18
|
+
AuthProfileField["SignOffOtpExpiresAt"] = "sgnOffOtpExpAt";
|
|
19
|
+
AuthProfileField["SignOffOtpSentAt"] = "sgnOffOtpSentAt";
|
|
13
20
|
AuthProfileField["PasswordHistory"] = "passwordHistory";
|
|
14
21
|
AuthProfileField["LastAuthAttemptAt"] = "lastAuthAttemptAt";
|
|
15
22
|
AuthProfileField["InvalidAuthAttempts"] = "invalidAuthAttempts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.profile.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/auth.profile.model.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"auth.profile.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/auth.profile.model.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,gBAqBX;AArBD,WAAY,gBAAgB;IAC3B,mDAA+B,CAAA;IAC/B,qDAAiC,CAAA;IACjC,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;IAC7B,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;IAC7B,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;IAC7B,qDAAiC,CAAA;IACjC;;;OAGG;IACH,sDAAkC,CAAA;IAClC,0DAAsC,CAAA;IACtC,wDAAoC,CAAA;IACpC,uDAAmC,CAAA;IACnC,2DAAuC,CAAA;IACvC,+DAA2C,CAAA;AAC5C,CAAC,EArBW,gBAAgB,KAAhB,gBAAgB,QAqB3B"}
|
|
@@ -36,6 +36,30 @@ export interface IWorkingDaysBreakdownData {
|
|
|
36
36
|
incentiveWorkingDays: number;
|
|
37
37
|
penaltyWorkingDays: number;
|
|
38
38
|
days: IWorkingDayBreakdown[];
|
|
39
|
+
/**
|
|
40
|
+
* AD-3288 — workshop days taken off the minimum before the per-day
|
|
41
|
+
* penalty is priced: IST calendar days inside (payout ∩ contract) covered
|
|
42
|
+
* by a maintenance Work Order's NRT on which the vehicle ran no duty.
|
|
43
|
+
* Optional: rows calculated before AD-3288 have no workshop data.
|
|
44
|
+
*/
|
|
45
|
+
workshopDaysExcluded?: number;
|
|
46
|
+
/** Every in-window workshop day, including ones a duty cancelled out. */
|
|
47
|
+
workshopDays?: IWorkshopDayBreakdown[];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* One workshop calendar day for a contract in the payout month, from the
|
|
51
|
+
* maintenance Work Order's NRT window. `hasDuty` days are NOT excluded — the
|
|
52
|
+
* vehicle ran that day, so the day already counts as an actual working day.
|
|
53
|
+
*/
|
|
54
|
+
export interface IWorkshopDayBreakdown {
|
|
55
|
+
/** IST calendar day, ISO date string (YYYY-MM-DD). */
|
|
56
|
+
date: string;
|
|
57
|
+
/** NRT numbers covering this day. */
|
|
58
|
+
nrtNumbers: string[];
|
|
59
|
+
/** Work Order numbers behind those NRTs. */
|
|
60
|
+
workOrderNumbers: string[];
|
|
61
|
+
/** true when a duty also ran that day, so the day is not excluded. */
|
|
62
|
+
hasDuty: boolean;
|
|
39
63
|
}
|
|
40
64
|
export declare enum BAPayoutRowField {
|
|
41
65
|
BAPayoutRowId = "baPayoutRowId",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ba.payout.row.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/ba.payout.row.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ba.payout.row.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/ba.payout.row.model.ts"],"names":[],"mappings":"AAqEA,MAAM,CAAN,IAAY,gBAgEX;AAhED,WAAY,gBAAgB;IAC3B,mDAA+B,CAAA;IAC/B,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,uBAAuB;IACvB,iCAAa,CAAA;IACb,yCAAqB,CAAA;IACrB,6CAAyB,CAAA;IACzB,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,qDAAiC,CAAA;IACjC,qDAAiC,CAAA;IACjC,uCAAmB,CAAA;IACnB,6CAAyB,CAAA;IACzB,2DAAuC,CAAA;IACvC,uDAAmC,CAAA;IACnC,+DAA2C,CAAA;IAC3C,+CAA2B,CAAA;IAC3B,+CAA2B,CAAA;IAC3B,YAAY;IACZ,2DAAuC,CAAA;IACvC,+DAA2C,CAAA;IAC3C,6CAAyB,CAAA;IACzB,iDAA6B,CAAA;IAC7B,2BAA2B;IAC3B,iEAA6C,CAAA;IAC7C,mEAA+C,CAAA;IAC/C,6BAAS,CAAA;IACT,yCAAqB,CAAA;IACrB,oDAAgC,CAAA;IAChC,2EAAuD,CAAA;IACvD,uEAAmD,CAAA;IACnD,2GAAuF,CAAA;IACvF,yDAAqC,CAAA;IACrC,mDAA+B,CAAA;IAC/B,2DAAuC,CAAA;IACvC,2CAAuB,CAAA;IACvB,2CAAuB,CAAA;IACvB,2EAAuD,CAAA;IACvD,2DAAuC,CAAA;IACvC,iDAA6B,CAAA;IAC7B,qEAAiD,CAAA;IACjD,2EAAuD,CAAA;IACvD,uDAAmC,CAAA;IACnC,uDAAmC,CAAA;IACnC,6CAA6C;IAC7C,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,2CAAuB,CAAA;IACvB,yCAAqB,CAAA;IACrB,+DAA2C,CAAA;IAC3C,+DAA2C,CAAA;IAC3C,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,+CAA2B,CAAA;IAC3B,mDAA+B,CAAA;IAC/B,uDAAmC,CAAA;IACnC,2CAAuB,CAAA;IACvB,mDAA+B,CAAA;IAC/B,2CAAuB,CAAA;IACvB,qFAAqF;IACrF,iEAA6C,CAAA;IAC7C,iFAAiF;IACjF,mDAA+B,CAAA;AAChC,CAAC,EAhEW,gBAAgB,KAAhB,gBAAgB,QAgE3B"}
|
|
@@ -5,6 +5,7 @@ import { IFile } from './file.model';
|
|
|
5
5
|
import { TypedModel } from './typed.model';
|
|
6
6
|
import { IBusinessAssociateActivityLog } from './business.associate.activity.log.model';
|
|
7
7
|
import { IBAContract } from './ba.contract.model';
|
|
8
|
+
import { ITdsConfig } from './tds.config.model';
|
|
8
9
|
export declare enum BusinessAssociateField {
|
|
9
10
|
BusinessAssociateId = "businessAssociateId",
|
|
10
11
|
BusinessAssociateCodeSeq = "businessAssociateCodeSeq",
|
|
@@ -29,7 +30,9 @@ export declare enum BusinessAssociateField {
|
|
|
29
30
|
ContractDetails = "cntrtDet",
|
|
30
31
|
PushToFinance = "pushToFinance",
|
|
31
32
|
FinanceAPIRemarks = "finAPIRemarks",
|
|
32
|
-
LocationCode = "locationCode"
|
|
33
|
+
LocationCode = "locationCode",
|
|
34
|
+
TdsConfig = "tdsConfig",
|
|
35
|
+
TdsConfigId = "tdsConfigId"
|
|
33
36
|
}
|
|
34
37
|
export interface IBusinessAssociate extends TypedModel {
|
|
35
38
|
modelType: ModelType;
|
|
@@ -57,4 +60,6 @@ export interface IBusinessAssociate extends TypedModel {
|
|
|
57
60
|
[BusinessAssociateField.PushToFinance]: string;
|
|
58
61
|
[BusinessAssociateField.FinanceAPIRemarks]: string;
|
|
59
62
|
[BusinessAssociateField.LocationCode]: string;
|
|
63
|
+
[BusinessAssociateField.TdsConfig]: ITdsConfig;
|
|
64
|
+
[BusinessAssociateField.TdsConfigId]: string;
|
|
60
65
|
}
|
|
@@ -24,5 +24,7 @@ export var BusinessAssociateField;
|
|
|
24
24
|
BusinessAssociateField["PushToFinance"] = "pushToFinance";
|
|
25
25
|
BusinessAssociateField["FinanceAPIRemarks"] = "finAPIRemarks";
|
|
26
26
|
BusinessAssociateField["LocationCode"] = "locationCode";
|
|
27
|
+
BusinessAssociateField["TdsConfig"] = "tdsConfig";
|
|
28
|
+
BusinessAssociateField["TdsConfigId"] = "tdsConfigId";
|
|
27
29
|
})(BusinessAssociateField || (BusinessAssociateField = {}));
|
|
28
30
|
//# sourceMappingURL=business.associate.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business.associate.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/business.associate.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"business.associate.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/business.associate.model.ts"],"names":[],"mappings":"AASA,MAAM,CAAN,IAAY,sBA2BX;AA3BD,WAAY,sBAAsB;IACjC,qEAA2C,CAAA;IAC3C,+EAAqD,CAAA;IACrD,yDAA+B,CAAA;IAC/B,6DAAmC,CAAA;IACnC,2DAAiC,CAAA;IACjC,iDAAuB,CAAA;IACvB,6CAAmB,CAAA;IACnB,iDAAuB,CAAA;IACvB,+CAAqB,CAAA;IACrB,uDAA6B,CAAA;IAC7B,yDAA+B,CAAA;IAC/B,iEAAuC,CAAA;IACvC,qDAA2B,CAAA;IAC3B,6DAAmC,CAAA;IACnC,iEAAuC,CAAA;IACvC,2CAAiB,CAAA;IACjB,6CAAmB,CAAA;IACnB,6CAAmB,CAAA;IACnB,iDAAuB,CAAA;IACvB,uDAA6B,CAAA;IAC7B,sDAA4B,CAAA;IAC5B,yDAA+B,CAAA;IAC/B,6DAAmC,CAAA;IACnC,uDAA6B,CAAA;IAC7B,iDAAuB,CAAA;IACvB,qDAA2B,CAAA;AAC5B,CAAC,EA3BW,sBAAsB,KAAtB,sBAAsB,QA2BjC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { AuthConfig, EscortModificationActors, OngoingTripChangesActors, OperationMode, PassengerBookerAss, PlacardField } from '../../enums/src/index';
|
|
1
|
+
import { AuthConfig, EscortModificationActors, LtrAppFont, OngoingTripChangesActors, OperationMode, PassengerBookerAss, PickupDetectionMode, PlacardField } from '../../enums/src/index';
|
|
2
2
|
import { TypedModel } from './typed.model';
|
|
3
3
|
import { IClientPersona } from './client.persona.model';
|
|
4
4
|
import { TripAuth } from './trip.auth.model';
|
|
5
|
+
import { LTRLogConfirmation } from './ltr.log.confirmation.model';
|
|
5
6
|
import { TripCutoff } from './trip.cutoff.model';
|
|
6
7
|
import { ComplianceVerification } from './compliance.verification.model';
|
|
7
8
|
import { TripAlerts } from './trip.alerts.model';
|
|
@@ -33,6 +34,7 @@ export declare enum ClientConfigurationField {
|
|
|
33
34
|
AllowPassengerToMakeChange = "alwPsngrMakeChng",
|
|
34
35
|
EscortInternationalPassenger = "escrtIntrntnalPsngr",
|
|
35
36
|
TripAuthentication = "tripAuth",
|
|
37
|
+
LTRLogConfirmation = "ltrLogConfirm",
|
|
36
38
|
BookingModificationConfig = "bkngModCfg",
|
|
37
39
|
BookingCreateConfig = "bkngCrtCfg",
|
|
38
40
|
BookingCancelConfig = "bkngCnclCfg",
|
|
@@ -67,9 +69,13 @@ export declare enum ClientConfigurationField {
|
|
|
67
69
|
LtrPeriod = "ltrPeriod",
|
|
68
70
|
SkipOTP = "skipOTP",
|
|
69
71
|
GeoFenceRadius = "geoFenceRadius",
|
|
72
|
+
PickupDetectionMode = "pkupDtctnMode",
|
|
73
|
+
PickupDetectionTimeMins = "pkupDtctnTimeMins",
|
|
70
74
|
PlacardImage = "placardImg",
|
|
71
75
|
PlacardImageId = "placardImgId",
|
|
72
76
|
PlacardFields = "placardFlds",
|
|
77
|
+
LtrAppOtpLength = "ltrOtpLength",
|
|
78
|
+
LtrAppFont = "ltrAppFont",
|
|
73
79
|
BookingCommunication = "bookingCommunication",
|
|
74
80
|
BillingCommunication = "billingCommunication"
|
|
75
81
|
}
|
|
@@ -97,6 +103,7 @@ export interface IClientConfiguraion extends TypedModel {
|
|
|
97
103
|
[ClientConfigurationField.AllowAnyTime]: boolean;
|
|
98
104
|
[ClientConfigurationField.FemaleAllowAnyTime]: boolean;
|
|
99
105
|
[ClientConfigurationField.TripAuthentication]: TripAuth;
|
|
106
|
+
[ClientConfigurationField.LTRLogConfirmation]?: LTRLogConfirmation;
|
|
100
107
|
[ClientConfigurationField.BookingModificationConfig]: TripCutoff;
|
|
101
108
|
[ClientConfigurationField.BookingCreateConfig]: TripCutoff;
|
|
102
109
|
[ClientConfigurationField.BookingCancelConfig]: TripCutoff;
|
|
@@ -131,9 +138,13 @@ export interface IClientConfiguraion extends TypedModel {
|
|
|
131
138
|
[ClientConfigurationField.LtrPeriod]?: number;
|
|
132
139
|
[ClientConfigurationField.SkipOTP]: boolean;
|
|
133
140
|
[ClientConfigurationField.GeoFenceRadius]?: number;
|
|
141
|
+
[ClientConfigurationField.PickupDetectionMode]?: PickupDetectionMode;
|
|
142
|
+
[ClientConfigurationField.PickupDetectionTimeMins]?: number;
|
|
134
143
|
[ClientConfigurationField.PlacardImage]?: IFile;
|
|
135
144
|
[ClientConfigurationField.PlacardImageId]?: string;
|
|
136
145
|
[ClientConfigurationField.PlacardFields]?: PlacardField[];
|
|
146
|
+
[ClientConfigurationField.LtrAppOtpLength]?: number;
|
|
147
|
+
[ClientConfigurationField.LtrAppFont]?: LtrAppFont;
|
|
137
148
|
[ClientConfigurationField.BookingCommunication]?: boolean;
|
|
138
149
|
[ClientConfigurationField.BillingCommunication]?: boolean;
|
|
139
150
|
}
|
|
@@ -23,6 +23,7 @@ export var ClientConfigurationField;
|
|
|
23
23
|
ClientConfigurationField["AllowPassengerToMakeChange"] = "alwPsngrMakeChng";
|
|
24
24
|
ClientConfigurationField["EscortInternationalPassenger"] = "escrtIntrntnalPsngr";
|
|
25
25
|
ClientConfigurationField["TripAuthentication"] = "tripAuth";
|
|
26
|
+
ClientConfigurationField["LTRLogConfirmation"] = "ltrLogConfirm";
|
|
26
27
|
ClientConfigurationField["BookingModificationConfig"] = "bkngModCfg";
|
|
27
28
|
ClientConfigurationField["BookingCreateConfig"] = "bkngCrtCfg";
|
|
28
29
|
ClientConfigurationField["BookingCancelConfig"] = "bkngCnclCfg";
|
|
@@ -57,9 +58,13 @@ export var ClientConfigurationField;
|
|
|
57
58
|
ClientConfigurationField["LtrPeriod"] = "ltrPeriod";
|
|
58
59
|
ClientConfigurationField["SkipOTP"] = "skipOTP";
|
|
59
60
|
ClientConfigurationField["GeoFenceRadius"] = "geoFenceRadius";
|
|
61
|
+
ClientConfigurationField["PickupDetectionMode"] = "pkupDtctnMode";
|
|
62
|
+
ClientConfigurationField["PickupDetectionTimeMins"] = "pkupDtctnTimeMins";
|
|
60
63
|
ClientConfigurationField["PlacardImage"] = "placardImg";
|
|
61
64
|
ClientConfigurationField["PlacardImageId"] = "placardImgId";
|
|
62
65
|
ClientConfigurationField["PlacardFields"] = "placardFlds";
|
|
66
|
+
ClientConfigurationField["LtrAppOtpLength"] = "ltrOtpLength";
|
|
67
|
+
ClientConfigurationField["LtrAppFont"] = "ltrAppFont";
|
|
63
68
|
ClientConfigurationField["BookingCommunication"] = "bookingCommunication";
|
|
64
69
|
ClientConfigurationField["BillingCommunication"] = "billingCommunication";
|
|
65
70
|
})(ClientConfigurationField || (ClientConfigurationField = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.configuration.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/client.configuration.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.configuration.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/client.configuration.model.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,wBAoEX;AApED,WAAY,wBAAwB;IACnC,2DAA+B,CAAA;IAC/B,uDAA2B,CAAA;IAC3B,2DAA+B,CAAA;IAC/B,wDAA4B,CAAA;IAC5B,qDAAyB,CAAA;IACzB,gEAAoC,CAAA;IACpC,qDAAyB,CAAA;IACzB,4DAAgC,CAAA;IAChC,qDAAyB,CAAA;IACzB,0EAA8C,CAAA;IAC9C,yDAA6B,CAAA;IAC7B,qDAAyB,CAAA;IACzB,0EAA8C,CAAA;IAC9C,mEAAuC,CAAA;IACvC,+EAAmD,CAAA;IACnD,uDAA2B,CAAA;IAC3B,iEAAqC,CAAA;IACrC,8DAAkC,CAAA;IAClC,yDAA6B,CAAA;IAC7B,gEAAoC,CAAA;IACpC,2EAA+C,CAAA;IAC/C,gFAAoD,CAAA;IACpD,2DAA+B,CAAA;IAC/B,gEAAoC,CAAA;IACpC,oEAAwC,CAAA;IACxC,8DAAkC,CAAA;IAClC,+DAAmC,CAAA;IACnC,kEAAsC,CAAA;IACtC,+CAAmB,CAAA;IACnB,sDAA0B,CAAA;IAC1B,uDAA2B,CAAA;IAC3B,8DAAkC,CAAA;IAClC,wEAA4C,CAAA;IAC5C,qDAAyB,CAAA;IACzB,2EAA+C,CAAA;IAC/C,uEAA2C,CAAA;IAC3C,yDAA6B,CAAA;IAC7B,qDAAyB,CAAA;IACzB,2EAA+C,CAAA;IAC/C,qDAAyB,CAAA;IACzB,qDAAyB,CAAA;IACzB,2DAA+B,CAAA;IAC/B,qEAAyC,CAAA;IACzC,uEAA2C,CAAA;IAC3C,6FAAiE,CAAA;IACjE,6DAAiC,CAAA;IACjC,oEAAwC,CAAA;IACxC,mDAAuB,CAAA;IACvB,yEAA6C,CAAA;IAC7C,mFAAuD,CAAA;IACvD,2DAA+B,CAAA;IAC/B,kDAAsB,CAAA;IACtB,uEAA2C,CAAA;IAC3C,qEAAyC,CAAA;IACzC,sEAA0C,CAAA;IAC1C,mDAAuB,CAAA;IACvB,+CAAmB,CAAA;IACnB,6DAAiC,CAAA;IACjC,iEAAqC,CAAA;IACrC,yEAA6C,CAAA;IAC7C,uDAA2B,CAAA;IAC3B,2DAA+B,CAAA;IAC/B,yDAA6B,CAAA;IAC7B,4DAAgC,CAAA;IAChC,qDAAyB,CAAA;IACzB,yEAA6C,CAAA;IAC7C,yEAA6C,CAAA;AAC9C,CAAC,EApEW,wBAAwB,KAAxB,wBAAwB,QAoEnC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { TermRentalType } from '../../enums/src/index';
|
|
2
|
+
import { IClientPersona } from './client.persona.model';
|
|
3
|
+
import { IContextPersona } from './context.persona.model';
|
|
4
|
+
import { IContractTerms } from './contract.terms.model';
|
|
5
|
+
import { TypedModel } from './typed.model';
|
|
6
|
+
export declare enum ClientContractDateChangeField {
|
|
7
|
+
ChangeId = "changeId",
|
|
8
|
+
ClientPersona = "cltPersona",
|
|
9
|
+
ClientPersonaId = "cltPersonaId",
|
|
10
|
+
ContractTerms = "ctTerms",
|
|
11
|
+
ContractTermsId = "ctTermsId",
|
|
12
|
+
RentalType = "rentalType",
|
|
13
|
+
ChangedAt = "changedAt",
|
|
14
|
+
WindowStartedAt = "windowStartedAt",
|
|
15
|
+
SeqInWindow = "seqInWindow",
|
|
16
|
+
OldStartDate = "oldStartDate",
|
|
17
|
+
NewStartDate = "newStartDate",
|
|
18
|
+
OldEndDate = "oldEndDate",
|
|
19
|
+
NewEndDate = "newEndDate",
|
|
20
|
+
ChangedBy = "changedBy",
|
|
21
|
+
ChangedByPhone = "chgPhone",
|
|
22
|
+
ChangedByEmail = "chgEmail",
|
|
23
|
+
ChangedByPersona = "chgBy",
|
|
24
|
+
ChangedByPersonaId = "chgById",
|
|
25
|
+
Overridden = "overridden",
|
|
26
|
+
WindowDays = "windowDays",
|
|
27
|
+
WindowLimit = "windowLimit"
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* One row per counted contract date change, bucketed by client and rental type.
|
|
31
|
+
*
|
|
32
|
+
* The rule this backs is a rolling budget: at most `windowLimit` date changes
|
|
33
|
+
* within `windowDays` days, counted across every contract of one client of one
|
|
34
|
+
* rental type. STR and LTR hold separate tallies under the same configured X
|
|
35
|
+
* and Y, so spending the STR budget never blocks an LTR change; the
|
|
36
|
+
* contract-file path, which has no rental type, counts in a third bucket of
|
|
37
|
+
* its own under NULL. The window is anchored on the first change; once it
|
|
38
|
+
* elapses the next change opens a fresh window.
|
|
39
|
+
*
|
|
40
|
+
* `windowStartedAt` is written at record time rather than derived on read, so
|
|
41
|
+
* the current window is a single "newest row" lookup instead of a walk over
|
|
42
|
+
* the whole history. Rows sharing a bucket and a `windowStartedAt` are one
|
|
43
|
+
* window.
|
|
44
|
+
*
|
|
45
|
+
* A change made while the rule is switched off is still recorded, with
|
|
46
|
+
* `windowStartedAt` and `seqInWindow` NULL: it is history, but it was counted
|
|
47
|
+
* into nothing. That keeps this table a complete record of who moved contract
|
|
48
|
+
* dates rather than a side effect of enforcement being configured — and
|
|
49
|
+
* evaluation ignores those rows, so switching the rule on later does not
|
|
50
|
+
* retroactively spend a client's budget on changes no rule governed.
|
|
51
|
+
*
|
|
52
|
+
* `windowDays` / `windowLimit` capture X and Y **as configured at the time**.
|
|
53
|
+
* They are audit only and never feed the decision — evaluation always reads
|
|
54
|
+
* the live `Configurations` values, so raising the limit unblocks immediately.
|
|
55
|
+
* Keeping the historical values here is what makes an after-the-fact reading
|
|
56
|
+
* of the log honest about the rule each change was measured against.
|
|
57
|
+
*/
|
|
58
|
+
export interface IClientContractDateChange extends TypedModel {
|
|
59
|
+
[ClientContractDateChangeField.ChangeId]: string;
|
|
60
|
+
[ClientContractDateChangeField.ClientPersona]: IClientPersona;
|
|
61
|
+
[ClientContractDateChangeField.ClientPersonaId]: string;
|
|
62
|
+
[ClientContractDateChangeField.ContractTerms]?: IContractTerms;
|
|
63
|
+
[ClientContractDateChangeField.ContractTermsId]?: string;
|
|
64
|
+
[ClientContractDateChangeField.RentalType]?: TermRentalType;
|
|
65
|
+
[ClientContractDateChangeField.ChangedAt]: Date;
|
|
66
|
+
[ClientContractDateChangeField.WindowStartedAt]?: Date;
|
|
67
|
+
[ClientContractDateChangeField.SeqInWindow]?: number;
|
|
68
|
+
[ClientContractDateChangeField.OldStartDate]?: Date;
|
|
69
|
+
[ClientContractDateChangeField.NewStartDate]?: Date;
|
|
70
|
+
[ClientContractDateChangeField.OldEndDate]?: Date;
|
|
71
|
+
[ClientContractDateChangeField.NewEndDate]?: Date;
|
|
72
|
+
[ClientContractDateChangeField.ChangedBy]: string;
|
|
73
|
+
[ClientContractDateChangeField.ChangedByPhone]?: string;
|
|
74
|
+
[ClientContractDateChangeField.ChangedByEmail]?: string;
|
|
75
|
+
[ClientContractDateChangeField.ChangedByPersona]?: IContextPersona;
|
|
76
|
+
[ClientContractDateChangeField.ChangedByPersonaId]?: string;
|
|
77
|
+
[ClientContractDateChangeField.Overridden]: boolean;
|
|
78
|
+
[ClientContractDateChangeField.WindowDays]?: number;
|
|
79
|
+
[ClientContractDateChangeField.WindowLimit]?: number;
|
|
80
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export var ClientContractDateChangeField;
|
|
2
|
+
(function (ClientContractDateChangeField) {
|
|
3
|
+
ClientContractDateChangeField["ChangeId"] = "changeId";
|
|
4
|
+
ClientContractDateChangeField["ClientPersona"] = "cltPersona";
|
|
5
|
+
ClientContractDateChangeField["ClientPersonaId"] = "cltPersonaId";
|
|
6
|
+
ClientContractDateChangeField["ContractTerms"] = "ctTerms";
|
|
7
|
+
ClientContractDateChangeField["ContractTermsId"] = "ctTermsId";
|
|
8
|
+
ClientContractDateChangeField["RentalType"] = "rentalType";
|
|
9
|
+
ClientContractDateChangeField["ChangedAt"] = "changedAt";
|
|
10
|
+
ClientContractDateChangeField["WindowStartedAt"] = "windowStartedAt";
|
|
11
|
+
ClientContractDateChangeField["SeqInWindow"] = "seqInWindow";
|
|
12
|
+
ClientContractDateChangeField["OldStartDate"] = "oldStartDate";
|
|
13
|
+
ClientContractDateChangeField["NewStartDate"] = "newStartDate";
|
|
14
|
+
ClientContractDateChangeField["OldEndDate"] = "oldEndDate";
|
|
15
|
+
ClientContractDateChangeField["NewEndDate"] = "newEndDate";
|
|
16
|
+
ClientContractDateChangeField["ChangedBy"] = "changedBy";
|
|
17
|
+
ClientContractDateChangeField["ChangedByPhone"] = "chgPhone";
|
|
18
|
+
ClientContractDateChangeField["ChangedByEmail"] = "chgEmail";
|
|
19
|
+
ClientContractDateChangeField["ChangedByPersona"] = "chgBy";
|
|
20
|
+
ClientContractDateChangeField["ChangedByPersonaId"] = "chgById";
|
|
21
|
+
ClientContractDateChangeField["Overridden"] = "overridden";
|
|
22
|
+
ClientContractDateChangeField["WindowDays"] = "windowDays";
|
|
23
|
+
ClientContractDateChangeField["WindowLimit"] = "windowLimit";
|
|
24
|
+
})(ClientContractDateChangeField || (ClientContractDateChangeField = {}));
|
|
25
|
+
//# sourceMappingURL=client.contract.date.change.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.contract.date.change.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/client.contract.date.change.model.ts"],"names":[],"mappings":"AAMA,MAAM,CAAN,IAAY,6BAsBX;AAtBD,WAAY,6BAA6B;IACxC,sDAAqB,CAAA;IACrB,6DAA4B,CAAA;IAC5B,iEAAgC,CAAA;IAChC,0DAAyB,CAAA;IACzB,8DAA6B,CAAA;IAC7B,0DAAyB,CAAA;IACzB,wDAAuB,CAAA;IACvB,oEAAmC,CAAA;IACnC,4DAA2B,CAAA;IAC3B,8DAA6B,CAAA;IAC7B,8DAA6B,CAAA;IAC7B,0DAAyB,CAAA;IACzB,0DAAyB,CAAA;IACzB,wDAAuB,CAAA;IACvB,4DAA2B,CAAA;IAC3B,4DAA2B,CAAA;IAC3B,2DAA0B,CAAA;IAC1B,+DAA8B,CAAA;IAC9B,0DAAyB,CAAA;IACzB,0DAAyB,CAAA;IACzB,4DAA2B,CAAA;AAC5B,CAAC,EAtBW,6BAA6B,KAA7B,6BAA6B,QAsBxC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IConfigurations } from './configurations.model';
|
|
2
|
+
import { TypedModel } from './typed.model';
|
|
3
|
+
export declare enum ConfigurationsActivityLogField {
|
|
4
|
+
LogId = "logId",
|
|
5
|
+
Configurations = "config",
|
|
6
|
+
ConfigurationsId = "configId",
|
|
7
|
+
Date = "date",
|
|
8
|
+
Field = "field",
|
|
9
|
+
OldValue = "old",
|
|
10
|
+
NewValue = "new",
|
|
11
|
+
EditedBy = "editedBy",
|
|
12
|
+
Action = "action",
|
|
13
|
+
EditedByPhone = "edPhone",
|
|
14
|
+
EditedByEmail = "edEmail"
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Audit trail for global configuration changes.
|
|
18
|
+
*
|
|
19
|
+
* Deliberately narrow: today only the two contract date-change throttle fields
|
|
20
|
+
* (`contractExtDays`, `contractExtLimit`) are logged here. They need it because
|
|
21
|
+
* raising the limit lifts a live block instantly and leaves no other trace —
|
|
22
|
+
* an easier bypass than the override permission, and one that would otherwise
|
|
23
|
+
* be invisible to the people the throttle exists to inform.
|
|
24
|
+
*
|
|
25
|
+
* Auditing the whole of `Configurations` is a much larger piece of work (the
|
|
26
|
+
* entity carries well over a hundred columns, several of them JSON), so this
|
|
27
|
+
* stays scoped until there is a reason to widen it. The shape matches the
|
|
28
|
+
* other activity logs so the existing viewers read it without special-casing.
|
|
29
|
+
*/
|
|
30
|
+
export interface IConfigurationsActivityLog extends TypedModel {
|
|
31
|
+
[ConfigurationsActivityLogField.LogId]: string;
|
|
32
|
+
[ConfigurationsActivityLogField.Configurations]: IConfigurations;
|
|
33
|
+
[ConfigurationsActivityLogField.ConfigurationsId]: string;
|
|
34
|
+
[ConfigurationsActivityLogField.Date]: Date;
|
|
35
|
+
[ConfigurationsActivityLogField.Field]: string;
|
|
36
|
+
[ConfigurationsActivityLogField.OldValue]: string;
|
|
37
|
+
[ConfigurationsActivityLogField.NewValue]: string;
|
|
38
|
+
[ConfigurationsActivityLogField.EditedBy]: string;
|
|
39
|
+
[ConfigurationsActivityLogField.Action]: string;
|
|
40
|
+
[ConfigurationsActivityLogField.EditedByPhone]: string;
|
|
41
|
+
[ConfigurationsActivityLogField.EditedByEmail]: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export var ConfigurationsActivityLogField;
|
|
2
|
+
(function (ConfigurationsActivityLogField) {
|
|
3
|
+
ConfigurationsActivityLogField["LogId"] = "logId";
|
|
4
|
+
ConfigurationsActivityLogField["Configurations"] = "config";
|
|
5
|
+
ConfigurationsActivityLogField["ConfigurationsId"] = "configId";
|
|
6
|
+
ConfigurationsActivityLogField["Date"] = "date";
|
|
7
|
+
ConfigurationsActivityLogField["Field"] = "field";
|
|
8
|
+
ConfigurationsActivityLogField["OldValue"] = "old";
|
|
9
|
+
ConfigurationsActivityLogField["NewValue"] = "new";
|
|
10
|
+
ConfigurationsActivityLogField["EditedBy"] = "editedBy";
|
|
11
|
+
ConfigurationsActivityLogField["Action"] = "action";
|
|
12
|
+
ConfigurationsActivityLogField["EditedByPhone"] = "edPhone";
|
|
13
|
+
ConfigurationsActivityLogField["EditedByEmail"] = "edEmail";
|
|
14
|
+
})(ConfigurationsActivityLogField || (ConfigurationsActivityLogField = {}));
|
|
15
|
+
//# sourceMappingURL=configurations.activity.log.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurations.activity.log.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/configurations.activity.log.model.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,8BAYX;AAZD,WAAY,8BAA8B;IACzC,iDAAe,CAAA;IACf,2DAAyB,CAAA;IACzB,+DAA6B,CAAA;IAC7B,+CAAa,CAAA;IACb,iDAAe,CAAA;IACf,kDAAgB,CAAA;IAChB,kDAAgB,CAAA;IAChB,uDAAqB,CAAA;IACrB,mDAAiB,CAAA;IACjB,2DAAyB,CAAA;IACzB,2DAAyB,CAAA;AAC1B,CAAC,EAZW,8BAA8B,KAA9B,8BAA8B,QAYzC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BookingType, DriverOwnershipType, DriverPersonaFileType, IntermediateStopsActors, OwnershipType, SmsServiceConfig, TimeUnit, TripConfigPreferences, UnpaidBookingLimitType } from '../../enums/src/index';
|
|
1
|
+
import { BookingType, DriverOwnershipType, DriverPersonaFileType, IntermediateStopsActors, OwnershipType, SmsServiceConfig, TimeUnit, TripAuthType, TripConfigPreferences, UnpaidBookingLimitType } from '../../enums/src/index';
|
|
2
2
|
import { IBillMatrix } from './bill.matrix.model';
|
|
3
3
|
import { IBusinessContextOwner } from './business.context.owner.model';
|
|
4
4
|
import { ICustomField } from './custom.field.model';
|
|
@@ -75,6 +75,17 @@ export declare enum ConfigurationField {
|
|
|
75
75
|
* only manual re-hits happen.
|
|
76
76
|
*/
|
|
77
77
|
ComplianceUtilisationWindowDays = "cmplUtilDays",
|
|
78
|
+
/**
|
|
79
|
+
* AD-3373 — how far ahead of NOW another duty on the same vehicle still
|
|
80
|
+
* counts as a clash worth warning about, in minutes.
|
|
81
|
+
*
|
|
82
|
+
* Null falls back to DEFAULT_VEHICLE_ALLOCATION_CONFLICT_WINDOW_MINUTES
|
|
83
|
+
* (120 = the ticket's 2 hours). Zero is meaningful and switches off only
|
|
84
|
+
* the look-ahead rule: a vehicle that is out on a running trip, or already
|
|
85
|
+
* booked for the same slot, still warns, because those are clashes no
|
|
86
|
+
* window setting should be able to hide.
|
|
87
|
+
*/
|
|
88
|
+
VehicleAllocationConflictWindowMinutes = "vhlAlocCnfWndw",
|
|
78
89
|
MarkTripAsCompletedOnPassengerDeboardingCorporate = "mrkCmpltdOnDbordCrprt",
|
|
79
90
|
MarkTripAsCompletedOnPassengerDeboardingNonCorporate = "mrkCmpltdOnDbordNnCrprt",
|
|
80
91
|
DriverSACCode = "driverSACCode",
|
|
@@ -140,6 +151,8 @@ export declare enum ConfigurationField {
|
|
|
140
151
|
WorkOrdersColumn = "wrkOrdrClmn",
|
|
141
152
|
DispatchColumn = "dispatchClmn",
|
|
142
153
|
ReservedWindowHours = "rsvdWndwHrs",
|
|
154
|
+
LocationRefreshOffDutyMins = "locRfrshOffDtyMins",
|
|
155
|
+
LocationStaleThresholdMins = "locStlThreshMins",
|
|
143
156
|
ComplianceExpiryBusinessTypes = "cmplExpBizTypes",
|
|
144
157
|
ComplianceExpiryComplianceTypes = "cmplExpCmplTypes",
|
|
145
158
|
LicenseExpiryDriverTypes = "licExpDvrTypes",
|
|
@@ -148,7 +161,9 @@ export declare enum ConfigurationField {
|
|
|
148
161
|
VerificationPendingDriverTypes = "verifPendDvrTypes",
|
|
149
162
|
SendBookingCreationAlertForFleetOperatorDuties = "sndBkngCrtnAlrtFoDuties",
|
|
150
163
|
SendBookingModificationAlertForFleetOperatorDuties = "sndBkngModAlrtFoDuties",
|
|
151
|
-
SendBookingCancellationAlertForFleetOperatorDuties = "sndBkngCnclAlrtFoDuties"
|
|
164
|
+
SendBookingCancellationAlertForFleetOperatorDuties = "sndBkngCnclAlrtFoDuties",
|
|
165
|
+
LTRSignOffMethod = "ltrSignOffMethod",
|
|
166
|
+
LTRAllowSkipOtp = "ltrAllowSkipOtp"
|
|
152
167
|
}
|
|
153
168
|
export interface IConfigurations extends TypedModel {
|
|
154
169
|
[ConfigurationField.ConfigurationId]: string;
|
|
@@ -204,6 +219,7 @@ export interface IConfigurations extends TypedModel {
|
|
|
204
219
|
[ConfigurationField.ComplianceWarningWindowDays]: number | null;
|
|
205
220
|
[ConfigurationField.ComplianceMaxGraceDays]: number | null;
|
|
206
221
|
[ConfigurationField.ComplianceUtilisationWindowDays]: number | null;
|
|
222
|
+
[ConfigurationField.VehicleAllocationConflictWindowMinutes]: number | null;
|
|
207
223
|
[ConfigurationField.MarkTripAsCompletedOnPassengerDeboardingCorporate]: boolean;
|
|
208
224
|
[ConfigurationField.MarkTripAsCompletedOnPassengerDeboardingNonCorporate]: boolean;
|
|
209
225
|
[ConfigurationField.DriverSACCode]: string;
|
|
@@ -266,6 +282,8 @@ export interface IConfigurations extends TypedModel {
|
|
|
266
282
|
[ConfigurationField.NrtColumn]: IDutyColumn[];
|
|
267
283
|
[ConfigurationField.DispatchColumn]: IDutyColumn[];
|
|
268
284
|
[ConfigurationField.ReservedWindowHours]?: number;
|
|
285
|
+
[ConfigurationField.LocationRefreshOffDutyMins]?: number;
|
|
286
|
+
[ConfigurationField.LocationStaleThresholdMins]?: number;
|
|
269
287
|
[ConfigurationField.ComplianceExpiryBusinessTypes]?: string[];
|
|
270
288
|
[ConfigurationField.ComplianceExpiryComplianceTypes]?: safetyAndComplianceFiled[];
|
|
271
289
|
[ConfigurationField.LicenseExpiryDriverTypes]?: DriverOwnershipType[];
|
|
@@ -275,6 +293,8 @@ export interface IConfigurations extends TypedModel {
|
|
|
275
293
|
[ConfigurationField.SendBookingCreationAlertForFleetOperatorDuties]: boolean;
|
|
276
294
|
[ConfigurationField.SendBookingModificationAlertForFleetOperatorDuties]: boolean;
|
|
277
295
|
[ConfigurationField.SendBookingCancellationAlertForFleetOperatorDuties]: boolean;
|
|
296
|
+
[ConfigurationField.LTRSignOffMethod]: TripAuthType;
|
|
297
|
+
[ConfigurationField.LTRAllowSkipOtp]: boolean;
|
|
278
298
|
}
|
|
279
299
|
export interface ISafetyAndCompliance {
|
|
280
300
|
[safetyAndComplianceFiled.RegistrationCertificate]: mandatoryOptional;
|