@autologix-engineering/shared 1.2.378 → 1.2.380

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/package.json +1 -1
  2. package/src/index.d.ts +0 -1
  3. package/src/index.js +0 -1
  4. package/src/index.js.map +1 -1
  5. package/src/lib/commands/src/generate.pdf.invoice.d.ts +1 -0
  6. package/src/lib/commands/src/generate.pdf.invoice.js.map +1 -1
  7. package/src/lib/contract-state/src/index.d.ts +0 -2
  8. package/src/lib/contract-state/src/index.js +0 -2
  9. package/src/lib/contract-state/src/index.js.map +1 -1
  10. package/src/lib/data-transfer-objects/src/calculate.non.pool.ltr.invoice.data.dto.d.ts +0 -1
  11. package/src/lib/data-transfer-objects/src/calculate.non.pool.ltr.invoice.data.dto.js +0 -5
  12. package/src/lib/data-transfer-objects/src/calculate.non.pool.ltr.invoice.data.dto.js.map +1 -1
  13. package/src/lib/data-transfer-objects/src/command/add.ltr.vehicle.master.dto.d.ts +0 -1
  14. package/src/lib/data-transfer-objects/src/command/add.ltr.vehicle.master.dto.js +0 -5
  15. package/src/lib/data-transfer-objects/src/command/add.ltr.vehicle.master.dto.js.map +1 -1
  16. package/src/lib/data-transfer-objects/src/command/process.ext.request.trip.sheet.dto.d.ts +0 -1
  17. package/src/lib/data-transfer-objects/src/command/process.ext.request.trip.sheet.dto.js +1 -8
  18. package/src/lib/data-transfer-objects/src/command/process.ext.request.trip.sheet.dto.js.map +1 -1
  19. package/src/lib/data-transfer-objects/src/command/update.client.persona.contract.file.dto.d.ts +0 -6
  20. package/src/lib/data-transfer-objects/src/command/update.client.persona.contract.file.dto.js +1 -6
  21. package/src/lib/data-transfer-objects/src/command/update.client.persona.contract.file.dto.js.map +1 -1
  22. package/src/lib/data-transfer-objects/src/command/update.contract.terms.dto.d.ts +0 -8
  23. package/src/lib/data-transfer-objects/src/command/update.contract.terms.dto.js +1 -6
  24. package/src/lib/data-transfer-objects/src/command/update.contract.terms.dto.js.map +1 -1
  25. package/src/lib/data-transfer-objects/src/command/update.ltr.request.dto.d.ts +1 -1
  26. package/src/lib/data-transfer-objects/src/command/update.ltr.request.dto.js +0 -1
  27. package/src/lib/data-transfer-objects/src/command/update.ltr.request.dto.js.map +1 -1
  28. package/src/lib/data-transfer-objects/src/create.consolidated.invoice.dto.d.ts +0 -4
  29. package/src/lib/data-transfer-objects/src/create.consolidated.invoice.dto.js +1 -21
  30. package/src/lib/data-transfer-objects/src/create.consolidated.invoice.dto.js.map +1 -1
  31. package/src/lib/data-transfer-objects/src/create.dispatch.dto.d.ts +0 -4
  32. package/src/lib/data-transfer-objects/src/create.dispatch.dto.js +1 -21
  33. package/src/lib/data-transfer-objects/src/create.dispatch.dto.js.map +1 -1
  34. package/src/lib/data-transfer-objects/src/create.report.dto.js +1 -1
  35. package/src/lib/data-transfer-objects/src/create.report.dto.js.map +1 -1
  36. package/src/lib/data-transfer-objects/src/duties.query.dto.d.ts +0 -14
  37. package/src/lib/data-transfer-objects/src/duties.query.dto.js +0 -5
  38. package/src/lib/data-transfer-objects/src/duties.query.dto.js.map +1 -1
  39. package/src/lib/data-transfer-objects/src/gatekeeper/create.onboarding.user.dto.d.ts +0 -1
  40. package/src/lib/data-transfer-objects/src/gatekeeper/create.onboarding.user.dto.js +1 -8
  41. package/src/lib/data-transfer-objects/src/gatekeeper/create.onboarding.user.dto.js.map +1 -1
  42. package/src/lib/data-transfer-objects/src/gatekeeper/get.user.by.phone.dto.d.ts +0 -1
  43. package/src/lib/data-transfer-objects/src/gatekeeper/get.user.by.phone.dto.js +1 -8
  44. package/src/lib/data-transfer-objects/src/gatekeeper/get.user.by.phone.dto.js.map +1 -1
  45. package/src/lib/data-transfer-objects/src/gatekeeper/index.d.ts +0 -2
  46. package/src/lib/data-transfer-objects/src/gatekeeper/index.js +0 -2
  47. package/src/lib/data-transfer-objects/src/gatekeeper/index.js.map +1 -1
  48. package/src/lib/data-transfer-objects/src/gatekeeper/send.email.login.otp.dto.d.ts +0 -72
  49. package/src/lib/data-transfer-objects/src/gatekeeper/send.email.login.otp.dto.js +1 -36
  50. package/src/lib/data-transfer-objects/src/gatekeeper/send.email.login.otp.dto.js.map +1 -1
  51. package/src/lib/data-transfer-objects/src/get.ext.available.ratecards.dto.d.ts +5 -0
  52. package/src/lib/data-transfer-objects/src/get.ext.available.ratecards.dto.js +19 -0
  53. package/src/lib/data-transfer-objects/src/get.ext.available.ratecards.dto.js.map +1 -0
  54. package/src/lib/data-transfer-objects/src/get.ltr.vehicle.master.dto.d.ts +0 -1
  55. package/src/lib/data-transfer-objects/src/get.ltr.vehicle.master.dto.js +2 -9
  56. package/src/lib/data-transfer-objects/src/get.ltr.vehicle.master.dto.js.map +1 -1
  57. package/src/lib/data-transfer-objects/src/gst.dto.d.ts +4 -9
  58. package/src/lib/data-transfer-objects/src/gst.dto.js +1 -9
  59. package/src/lib/data-transfer-objects/src/gst.dto.js.map +1 -1
  60. package/src/lib/data-transfer-objects/src/index.d.ts +3 -19
  61. package/src/lib/data-transfer-objects/src/index.js +3 -19
  62. package/src/lib/data-transfer-objects/src/index.js.map +1 -1
  63. package/src/lib/data-transfer-objects/src/passenger.persona.custom.dto.d.ts +0 -1
  64. package/src/lib/data-transfer-objects/src/passenger.persona.custom.dto.js +1 -6
  65. package/src/lib/data-transfer-objects/src/passenger.persona.custom.dto.js.map +1 -1
  66. package/src/lib/data-transfer-objects/src/send.chauffeur.sms.dto.d.ts +2 -2
  67. package/src/lib/data-transfer-objects/src/send.chauffeur.sms.dto.js +7 -1
  68. package/src/lib/data-transfer-objects/src/send.chauffeur.sms.dto.js.map +1 -1
  69. package/src/lib/data-transfer-objects/src/submit.ltr.payout.rows.dto.d.ts +0 -15
  70. package/src/lib/data-transfer-objects/src/submit.ltr.payout.rows.dto.js +0 -5
  71. package/src/lib/data-transfer-objects/src/submit.ltr.payout.rows.dto.js.map +1 -1
  72. package/src/lib/data-transfer-objects/src/update.global.config.dto.d.ts +1 -5
  73. package/src/lib/data-transfer-objects/src/update.global.config.dto.js +1 -23
  74. package/src/lib/data-transfer-objects/src/update.global.config.dto.js.map +1 -1
  75. package/src/lib/enums/src/alert.command.types.js +1 -1
  76. package/src/lib/enums/src/alert.command.types.js.map +1 -1
  77. package/src/lib/enums/src/city.state.mapping.js +2 -2
  78. package/src/lib/enums/src/command.type.enum.d.ts +1 -8
  79. package/src/lib/enums/src/command.type.enum.js +1 -8
  80. package/src/lib/enums/src/command.type.enum.js.map +1 -1
  81. package/src/lib/enums/src/index.d.ts +1 -7
  82. package/src/lib/enums/src/index.js +1 -7
  83. package/src/lib/enums/src/index.js.map +1 -1
  84. package/src/lib/enums/src/model.enum.d.ts +1 -9
  85. package/src/lib/enums/src/model.enum.js +0 -8
  86. package/src/lib/enums/src/model.enum.js.map +1 -1
  87. package/src/lib/enums/src/others.default.data.js +0 -5
  88. package/src/lib/enums/src/others.default.data.js.map +1 -1
  89. package/src/lib/enums/src/query.type.enum.d.ts +2 -12
  90. package/src/lib/enums/src/query.type.enum.js +1 -12
  91. package/src/lib/enums/src/query.type.enum.js.map +1 -1
  92. package/src/lib/enums/src/report.module.type.enum.d.ts +1 -5
  93. package/src/lib/enums/src/report.module.type.enum.js +0 -4
  94. package/src/lib/enums/src/report.module.type.enum.js.map +1 -1
  95. package/src/lib/enums/src/state.full.name.number.code.map.js +0 -4
  96. package/src/lib/enums/src/state.full.name.number.code.map.js.map +1 -1
  97. package/src/lib/enums/src/trip.file.type.enum.d.ts +1 -2
  98. package/src/lib/enums/src/trip.file.type.enum.js +0 -1
  99. package/src/lib/enums/src/trip.file.type.enum.js.map +1 -1
  100. package/src/lib/models/src/auth.profile.model.d.ts +0 -13
  101. package/src/lib/models/src/auth.profile.model.js +0 -7
  102. package/src/lib/models/src/auth.profile.model.js.map +1 -1
  103. package/src/lib/models/src/ba.payout.row.model.d.ts +0 -24
  104. package/src/lib/models/src/ba.payout.row.model.js.map +1 -1
  105. package/src/lib/models/src/client.configuration.model.d.ts +1 -12
  106. package/src/lib/models/src/client.configuration.model.js +0 -5
  107. package/src/lib/models/src/client.configuration.model.js.map +1 -1
  108. package/src/lib/models/src/configurations.model.d.ts +2 -22
  109. package/src/lib/models/src/configurations.model.js +0 -15
  110. package/src/lib/models/src/configurations.model.js.map +1 -1
  111. package/src/lib/models/src/gst.model.d.ts +2 -12
  112. package/src/lib/models/src/gst.model.js +0 -1
  113. package/src/lib/models/src/gst.model.js.map +1 -1
  114. package/src/lib/models/src/index.d.ts +1 -10
  115. package/src/lib/models/src/index.js +1 -10
  116. package/src/lib/models/src/index.js.map +1 -1
  117. package/src/lib/models/src/ltr.payout.model.d.ts +2 -37
  118. package/src/lib/models/src/ltr.payout.model.js +0 -22
  119. package/src/lib/models/src/ltr.payout.model.js.map +1 -1
  120. package/src/lib/models/src/ltr.vehicle.master.model.d.ts +0 -2
  121. package/src/lib/models/src/ltr.vehicle.master.model.js +0 -1
  122. package/src/lib/models/src/ltr.vehicle.master.model.js.map +1 -1
  123. package/src/lib/models/src/passenger.persona.model.d.ts +2 -18
  124. package/src/lib/models/src/passenger.persona.model.js +0 -8
  125. package/src/lib/models/src/passenger.persona.model.js.map +1 -1
  126. package/src/lib/models/src/vehicle.association.file.model.d.ts +29 -4
  127. package/src/lib/models/src/vehicle.association.file.model.js +27 -3
  128. package/src/lib/models/src/vehicle.association.file.model.js.map +1 -1
  129. package/src/lib/models/src/vehicle.verification.log.model.d.ts +16 -1
  130. package/src/lib/models/src/vehicle.verification.log.model.js +15 -0
  131. package/src/lib/models/src/vehicle.verification.log.model.js.map +1 -1
  132. package/src/lib/models/src/white.label.config.model.d.ts +2 -6
  133. package/src/lib/models/src/white.label.config.model.js +0 -2
  134. package/src/lib/models/src/white.label.config.model.js.map +1 -1
  135. package/src/lib/routes/src/command.registry.routes.d.ts +0 -7
  136. package/src/lib/routes/src/command.registry.routes.js +0 -7
  137. package/src/lib/routes/src/command.registry.routes.js.map +1 -1
  138. package/src/lib/routes/src/gatekeeper.routes.d.ts +0 -2
  139. package/src/lib/routes/src/gatekeeper.routes.js +0 -2
  140. package/src/lib/routes/src/gatekeeper.routes.js.map +1 -1
  141. package/src/lib/routes/src/query.service.routes.d.ts +1 -11
  142. package/src/lib/routes/src/query.service.routes.js +1 -12
  143. package/src/lib/routes/src/query.service.routes.js.map +1 -1
  144. package/src/lib/utilities/src/index.d.ts +3 -8
  145. package/src/lib/utilities/src/index.js +3 -8
  146. package/src/lib/utilities/src/index.js.map +1 -1
  147. package/src/lib/utilities/src/insurer.match.d.ts +45 -0
  148. package/src/lib/utilities/src/insurer.match.js +55 -0
  149. package/src/lib/utilities/src/insurer.match.js.map +1 -0
  150. package/src/lib/utilities/src/invoice.generation.alert.util.d.ts +0 -1
  151. package/src/lib/utilities/src/invoice.generation.alert.util.js +2 -7
  152. package/src/lib/utilities/src/invoice.generation.alert.util.js.map +1 -1
  153. package/src/lib/utilities/src/pick.latest.numbered.invoice.d.ts +21 -0
  154. package/src/lib/utilities/src/pick.latest.numbered.invoice.js +52 -0
  155. package/src/lib/utilities/src/pick.latest.numbered.invoice.js.map +1 -0
  156. package/src/lib/view-models/src/index.d.ts +0 -2
  157. package/src/lib/view-models/src/index.js +0 -2
  158. package/src/lib/view-models/src/index.js.map +1 -1
  159. package/src/lib/view-models/src/public.config.d.ts +1 -5
  160. package/src/lib/contract-state/src/contract.date.change.display.d.ts +0 -27
  161. package/src/lib/contract-state/src/contract.date.change.display.js +0 -47
  162. package/src/lib/contract-state/src/contract.date.change.display.js.map +0 -1
  163. package/src/lib/contract-state/src/contract.date.change.window.d.ts +0 -63
  164. package/src/lib/contract-state/src/contract.date.change.window.js +0 -85
  165. package/src/lib/contract-state/src/contract.date.change.window.js.map +0 -1
  166. package/src/lib/data-transfer-objects/src/add.ltr.payout.rows.dto.d.ts +0 -86
  167. package/src/lib/data-transfer-objects/src/add.ltr.payout.rows.dto.js +0 -153
  168. package/src/lib/data-transfer-objects/src/add.ltr.payout.rows.dto.js.map +0 -1
  169. package/src/lib/data-transfer-objects/src/check.vehicle.allocation.conflicts.dto.d.ts +0 -19
  170. package/src/lib/data-transfer-objects/src/check.vehicle.allocation.conflicts.dto.js +0 -38
  171. package/src/lib/data-transfer-objects/src/check.vehicle.allocation.conflicts.dto.js.map +0 -1
  172. package/src/lib/data-transfer-objects/src/gatekeeper/get.registered.user.ltr.dto.d.ts +0 -7
  173. package/src/lib/data-transfer-objects/src/gatekeeper/get.registered.user.ltr.dto.js +0 -21
  174. package/src/lib/data-transfer-objects/src/gatekeeper/get.registered.user.ltr.dto.js.map +0 -1
  175. package/src/lib/data-transfer-objects/src/gatekeeper/send.ltr.sign.off.otp.dto.d.ts +0 -17
  176. package/src/lib/data-transfer-objects/src/gatekeeper/send.ltr.sign.off.otp.dto.js +0 -29
  177. package/src/lib/data-transfer-objects/src/gatekeeper/send.ltr.sign.off.otp.dto.js.map +0 -1
  178. package/src/lib/data-transfer-objects/src/get.contract.date.changes.dto.d.ts +0 -59
  179. package/src/lib/data-transfer-objects/src/get.contract.date.changes.dto.js +0 -98
  180. package/src/lib/data-transfer-objects/src/get.contract.date.changes.dto.js.map +0 -1
  181. package/src/lib/data-transfer-objects/src/get.ext.rate.card.dto.d.ts +0 -40
  182. package/src/lib/data-transfer-objects/src/get.ext.rate.card.dto.js +0 -75
  183. package/src/lib/data-transfer-objects/src/get.ext.rate.card.dto.js.map +0 -1
  184. package/src/lib/data-transfer-objects/src/get.ltr.booking.day.wise.logs.dto.d.ts +0 -29
  185. package/src/lib/data-transfer-objects/src/get.ltr.booking.day.wise.logs.dto.js +0 -32
  186. package/src/lib/data-transfer-objects/src/get.ltr.booking.day.wise.logs.dto.js.map +0 -1
  187. package/src/lib/data-transfer-objects/src/get.ltr.driver.bookings.dto.d.ts +0 -5
  188. package/src/lib/data-transfer-objects/src/get.ltr.driver.bookings.dto.js +0 -17
  189. package/src/lib/data-transfer-objects/src/get.ltr.driver.bookings.dto.js.map +0 -1
  190. package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.logs.dto.d.ts +0 -18
  191. package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.logs.dto.js +0 -33
  192. package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.logs.dto.js.map +0 -1
  193. package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.sign.off.preview.dto.d.ts +0 -24
  194. package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.sign.off.preview.dto.js +0 -33
  195. package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.sign.off.preview.dto.js.map +0 -1
  196. package/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.d.ts +0 -79
  197. package/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.js +0 -58
  198. package/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.js.map +0 -1
  199. package/src/lib/data-transfer-objects/src/get.ltr.payout.row.audit.dto.d.ts +0 -31
  200. package/src/lib/data-transfer-objects/src/get.ltr.payout.row.audit.dto.js +0 -42
  201. package/src/lib/data-transfer-objects/src/get.ltr.payout.row.audit.dto.js.map +0 -1
  202. package/src/lib/data-transfer-objects/src/get.ltr.sign.off.config.dto.d.ts +0 -20
  203. package/src/lib/data-transfer-objects/src/get.ltr.sign.off.config.dto.js +0 -20
  204. package/src/lib/data-transfer-objects/src/get.ltr.sign.off.config.dto.js.map +0 -1
  205. package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.entry.dto.d.ts +0 -44
  206. package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.entry.dto.js +0 -51
  207. package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.entry.dto.js.map +0 -1
  208. package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.month.dto.d.ts +0 -78
  209. package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.month.dto.js +0 -71
  210. package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.month.dto.js.map +0 -1
  211. package/src/lib/data-transfer-objects/src/update.ltr.log.confirmation.config.dto.d.ts +0 -6
  212. package/src/lib/data-transfer-objects/src/update.ltr.log.confirmation.config.dto.js +0 -20
  213. package/src/lib/data-transfer-objects/src/update.ltr.log.confirmation.config.dto.js.map +0 -1
  214. package/src/lib/data-transfer-objects/src/update.ltr.payout.rows.dto.d.ts +0 -18
  215. package/src/lib/data-transfer-objects/src/update.ltr.payout.rows.dto.js +0 -20
  216. package/src/lib/data-transfer-objects/src/update.ltr.payout.rows.dto.js.map +0 -1
  217. package/src/lib/data-transfer-objects/src/update.pickup.detection.config.dto.d.ts +0 -7
  218. package/src/lib/data-transfer-objects/src/update.pickup.detection.config.dto.js +0 -22
  219. package/src/lib/data-transfer-objects/src/update.pickup.detection.config.dto.js.map +0 -1
  220. package/src/lib/data-transfer-objects/src/update.vehicle.allocation.conflict.window.dto.d.ts +0 -15
  221. package/src/lib/data-transfer-objects/src/update.vehicle.allocation.conflict.window.dto.js +0 -29
  222. package/src/lib/data-transfer-objects/src/update.vehicle.allocation.conflict.window.dto.js.map +0 -1
  223. package/src/lib/enums/src/ltr.font.enum.d.ts +0 -5
  224. package/src/lib/enums/src/ltr.font.enum.js +0 -7
  225. package/src/lib/enums/src/ltr.font.enum.js.map +0 -1
  226. package/src/lib/enums/src/ltr.payout.enum.d.ts +0 -67
  227. package/src/lib/enums/src/ltr.payout.enum.js +0 -74
  228. package/src/lib/enums/src/ltr.payout.enum.js.map +0 -1
  229. package/src/lib/enums/src/otp.scope.enum.d.ts +0 -16
  230. package/src/lib/enums/src/otp.scope.enum.js +0 -18
  231. package/src/lib/enums/src/otp.scope.enum.js.map +0 -1
  232. package/src/lib/enums/src/pickup.detection.mode.enum.d.ts +0 -5
  233. package/src/lib/enums/src/pickup.detection.mode.enum.js +0 -7
  234. package/src/lib/enums/src/pickup.detection.mode.enum.js.map +0 -1
  235. package/src/lib/enums/src/retry.task.enum.d.ts +0 -28
  236. package/src/lib/enums/src/retry.task.enum.js +0 -31
  237. package/src/lib/enums/src/retry.task.enum.js.map +0 -1
  238. package/src/lib/enums/src/vehicle.allocation.conflict.enum.d.ts +0 -65
  239. package/src/lib/enums/src/vehicle.allocation.conflict.enum.js +0 -71
  240. package/src/lib/enums/src/vehicle.allocation.conflict.enum.js.map +0 -1
  241. package/src/lib/models/src/client.contract.date.change.model.d.ts +0 -80
  242. package/src/lib/models/src/client.contract.date.change.model.js +0 -25
  243. package/src/lib/models/src/client.contract.date.change.model.js.map +0 -1
  244. package/src/lib/models/src/configurations.activity.log.model.d.ts +0 -42
  245. package/src/lib/models/src/configurations.activity.log.model.js +0 -15
  246. package/src/lib/models/src/configurations.activity.log.model.js.map +0 -1
  247. package/src/lib/models/src/ltr.log.confirmation.model.d.ts +0 -30
  248. package/src/lib/models/src/ltr.log.confirmation.model.js +0 -15
  249. package/src/lib/models/src/ltr.log.confirmation.model.js.map +0 -1
  250. package/src/lib/models/src/ltr.payout.month.sign.off.model.d.ts +0 -85
  251. package/src/lib/models/src/ltr.payout.month.sign.off.model.js +0 -28
  252. package/src/lib/models/src/ltr.payout.month.sign.off.model.js.map +0 -1
  253. package/src/lib/models/src/ltr.payout.row.audit.model.d.ts +0 -44
  254. package/src/lib/models/src/ltr.payout.row.audit.model.js +0 -22
  255. package/src/lib/models/src/ltr.payout.row.audit.model.js.map +0 -1
  256. package/src/lib/models/src/ltr.payout.row.group.model.d.ts +0 -73
  257. package/src/lib/models/src/ltr.payout.row.group.model.js +0 -25
  258. package/src/lib/models/src/ltr.payout.row.group.model.js.map +0 -1
  259. package/src/lib/models/src/ltr.payout.row.image.model.d.ts +0 -34
  260. package/src/lib/models/src/ltr.payout.row.image.model.js +0 -11
  261. package/src/lib/models/src/ltr.payout.row.image.model.js.map +0 -1
  262. package/src/lib/models/src/ltr.sign.off.otp.model.d.ts +0 -40
  263. package/src/lib/models/src/ltr.sign.off.otp.model.js +0 -17
  264. package/src/lib/models/src/ltr.sign.off.otp.model.js.map +0 -1
  265. package/src/lib/models/src/retry.task.model.d.ts +0 -56
  266. package/src/lib/models/src/retry.task.model.js +0 -26
  267. package/src/lib/models/src/retry.task.model.js.map +0 -1
  268. package/src/lib/utilities/src/ba.payout.workshop.days.d.ts +0 -77
  269. package/src/lib/utilities/src/ba.payout.workshop.days.js +0 -109
  270. package/src/lib/utilities/src/ba.payout.workshop.days.js.map +0 -1
  271. package/src/lib/utilities/src/financial.year.d.ts +0 -83
  272. package/src/lib/utilities/src/financial.year.js +0 -145
  273. package/src/lib/utilities/src/financial.year.js.map +0 -1
  274. package/src/lib/utilities/src/ltr.cycle.month.index.d.ts +0 -14
  275. package/src/lib/utilities/src/ltr.cycle.month.index.js +0 -22
  276. package/src/lib/utilities/src/ltr.cycle.month.index.js.map +0 -1
  277. package/src/lib/utilities/src/ltr.payout.row.key.d.ts +0 -43
  278. package/src/lib/utilities/src/ltr.payout.row.key.js +0 -78
  279. package/src/lib/utilities/src/ltr.payout.row.key.js.map +0 -1
  280. package/src/lib/utilities/src/normalize.phone.number.d.ts +0 -17
  281. package/src/lib/utilities/src/normalize.phone.number.js +0 -45
  282. package/src/lib/utilities/src/normalize.phone.number.js.map +0 -1
  283. package/src/lib/utilities/src/parse.display.date.d.ts +0 -16
  284. package/src/lib/utilities/src/parse.display.date.js +0 -43
  285. package/src/lib/utilities/src/parse.display.date.js.map +0 -1
  286. package/src/lib/utilities/src/resolve.gst.state.d.ts +0 -23
  287. package/src/lib/utilities/src/resolve.gst.state.js +0 -38
  288. package/src/lib/utilities/src/resolve.gst.state.js.map +0 -1
  289. package/src/lib/view-models/src/ext.rate.card.d.ts +0 -114
  290. package/src/lib/view-models/src/ext.rate.card.js +0 -9
  291. package/src/lib/view-models/src/ext.rate.card.js.map +0 -1
  292. package/src/lib/view-models/src/vehicle.allocation.conflict.d.ts +0 -28
  293. package/src/lib/view-models/src/vehicle.allocation.conflict.js +0 -2
  294. package/src/lib/view-models/src/vehicle.allocation.conflict.js.map +0 -1
@@ -1,74 +0,0 @@
1
- /**
2
- * Lifecycle of a payout, and of each entry within it.
3
- *
4
- * Shared by LTRPayout and LTRPayoutRowGroup: an entry moves through the same
5
- * states as the payout it belongs to, so a second near-identical enum would
6
- * only invite the two to drift.
7
- */
8
- export var LTRPayoutStatus;
9
- (function (LTRPayoutStatus) {
10
- LTRPayoutStatus["Pending"] = "pending";
11
- LTRPayoutStatus["Draft"] = "draft";
12
- LTRPayoutStatus["Unsigned"] = "unsigned";
13
- LTRPayoutStatus["Signed"] = "signed";
14
- LTRPayoutStatus["Locked"] = "locked";
15
- })(LTRPayoutStatus || (LTRPayoutStatus = {}));
16
- export var LTRPayoutSignOffMethod;
17
- (function (LTRPayoutSignOffMethod) {
18
- LTRPayoutSignOffMethod["OTP"] = "otp";
19
- LTRPayoutSignOffMethod["Signature"] = "signature";
20
- LTRPayoutSignOffMethod["Both"] = "both";
21
- LTRPayoutSignOffMethod["None"] = "none";
22
- })(LTRPayoutSignOffMethod || (LTRPayoutSignOffMethod = {}));
23
- /** Only set while the payout is in `LTRPayoutStatus.Locked`. */
24
- export var LTRPayoutLockedReason;
25
- (function (LTRPayoutLockedReason) {
26
- LTRPayoutLockedReason["ExcelUploaded"] = "excel-uploaded";
27
- LTRPayoutLockedReason["Validated"] = "validated";
28
- })(LTRPayoutLockedReason || (LTRPayoutLockedReason = {}));
29
- /**
30
- * What an image attached to an entry depicts.
31
- *
32
- * The four odometer readings are fixed and are the only values the driver app
33
- * sends today. Expense proofs carry the expense's own name, which is
34
- * configurable per client, so the stored column is free text rather than a
35
- * database enum — see LTRPayoutRowImageField.Type.
36
- */
37
- export var LTRPayoutRowImageType;
38
- (function (LTRPayoutRowImageType) {
39
- LTRPayoutRowImageType["StartKM"] = "startKm";
40
- LTRPayoutRowImageType["EndKM"] = "endKm";
41
- LTRPayoutRowImageType["GarageStartKM"] = "garageStartKm";
42
- LTRPayoutRowImageType["GarageReturnKM"] = "garageReturnKm";
43
- })(LTRPayoutRowImageType || (LTRPayoutRowImageType = {}));
44
- /**
45
- * Where an entry came from. Drives editability in the LTR driver app: only
46
- * entries the driver made there can be edited from there.
47
- *
48
- * Rows written before LTRPayoutRowGroup existed have no group and so no source
49
- * at all. They are treated as admin-entered rather than assumed to be the
50
- * driver's — every row predating it came from an Excel upload or the webapp.
51
- */
52
- export var LTRPayoutRowSource;
53
- (function (LTRPayoutRowSource) {
54
- /** Entered by the driver in the LTR mobile app. The only editable case. */
55
- LTRPayoutRowSource["DriverApp"] = "driverApp";
56
- /** Typed into the webapp by an operations user. */
57
- LTRPayoutRowSource["WebApp"] = "webApp";
58
- /** Created by the payout Excel upload. */
59
- LTRPayoutRowSource["Upload"] = "upload";
60
- })(LTRPayoutRowSource || (LTRPayoutRowSource = {}));
61
- /**
62
- * Which date the driver app's entry list is ordered by.
63
- *
64
- * Both are already derived per entry from its rows: `StartDate` is the
65
- * earliest duty or garage start across them, `EndDate` the latest end. They
66
- * are not interchangeable once entries span several days — a 27th-29th entry
67
- * sorts above a 28th-only one by start, and below it by end.
68
- */
69
- export var LTRDriverPayoutSortKey;
70
- (function (LTRDriverPayoutSortKey) {
71
- LTRDriverPayoutSortKey["StartDate"] = "startDate";
72
- LTRDriverPayoutSortKey["EndDate"] = "endDate";
73
- })(LTRDriverPayoutSortKey || (LTRDriverPayoutSortKey = {}));
74
- //# sourceMappingURL=ltr.payout.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ltr.payout.enum.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/ltr.payout.enum.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,eAMX;AAND,WAAY,eAAe;IAC1B,sCAAmB,CAAA;IACnB,kCAAe,CAAA;IACf,wCAAqB,CAAA;IACrB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;AAClB,CAAC,EANW,eAAe,KAAf,eAAe,QAM1B;AAED,MAAM,CAAN,IAAY,sBAKX;AALD,WAAY,sBAAsB;IACjC,qCAAW,CAAA;IACX,iDAAuB,CAAA;IACvB,uCAAa,CAAA;IACb,uCAAa,CAAA;AACd,CAAC,EALW,sBAAsB,KAAtB,sBAAsB,QAKjC;AAED,gEAAgE;AAChE,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,yDAAgC,CAAA;IAChC,gDAAuB,CAAA;AACxB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC;AAED;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,wDAA+B,CAAA;IAC/B,0DAAiC,CAAA;AAClC,CAAC,EALW,qBAAqB,KAArB,qBAAqB,QAKhC;AAED;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC7B,2EAA2E;IAC3E,6CAAuB,CAAA;IACvB,mDAAmD;IACnD,uCAAiB,CAAA;IACjB,0CAA0C;IAC1C,uCAAiB,CAAA;AAClB,CAAC,EAPW,kBAAkB,KAAlB,kBAAkB,QAO7B;AAED;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IACjC,iDAAuB,CAAA;IACvB,6CAAmB,CAAA;AACpB,CAAC,EAHW,sBAAsB,KAAtB,sBAAsB,QAGjC"}
@@ -1,16 +0,0 @@
1
- /**
2
- * Which credential slot a generated one-time code is written to.
3
- *
4
- * The slots are deliberately separate: a code is only ever accepted by the flow
5
- * it was issued for. `Login` lands in `AuthProfile.hshdLgnOtp`, which
6
- * `verify_2fa_otp` accepts; `LTRSignOff` lands in `hshdSgnOffOtp`, which only
7
- * the LTR sign-off endpoints read.
8
- *
9
- * That separation matters because the LTR flow has a **renter read their code
10
- * aloud to a driver**. Issued in the login slot, that code would hand the driver
11
- * brief login access to the renter's account.
12
- */
13
- export declare enum OtpScope {
14
- Login = "login",
15
- LTRSignOff = "ltrSignOff"
16
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * Which credential slot a generated one-time code is written to.
3
- *
4
- * The slots are deliberately separate: a code is only ever accepted by the flow
5
- * it was issued for. `Login` lands in `AuthProfile.hshdLgnOtp`, which
6
- * `verify_2fa_otp` accepts; `LTRSignOff` lands in `hshdSgnOffOtp`, which only
7
- * the LTR sign-off endpoints read.
8
- *
9
- * That separation matters because the LTR flow has a **renter read their code
10
- * aloud to a driver**. Issued in the login slot, that code would hand the driver
11
- * brief login access to the renter's account.
12
- */
13
- export var OtpScope;
14
- (function (OtpScope) {
15
- OtpScope["Login"] = "login";
16
- OtpScope["LTRSignOff"] = "ltrSignOff";
17
- })(OtpScope || (OtpScope = {}));
18
- //# sourceMappingURL=otp.scope.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"otp.scope.enum.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/otp.scope.enum.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IACnB,2BAAe,CAAA;IACf,qCAAyB,CAAA;AAC1B,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB"}
@@ -1,5 +0,0 @@
1
- export declare enum PickupDetectionMode {
2
- RadiusOnly = "RadiusOnly",
3
- TimeOnly = "TimeOnly",
4
- Both = "Both"
5
- }
@@ -1,7 +0,0 @@
1
- export var PickupDetectionMode;
2
- (function (PickupDetectionMode) {
3
- PickupDetectionMode["RadiusOnly"] = "RadiusOnly";
4
- PickupDetectionMode["TimeOnly"] = "TimeOnly";
5
- PickupDetectionMode["Both"] = "Both";
6
- })(PickupDetectionMode || (PickupDetectionMode = {}));
7
- //# sourceMappingURL=pickup.detection.mode.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pickup.detection.mode.enum.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/pickup.detection.mode.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,gDAAyB,CAAA;IACzB,4CAAqB,CAAA;IACrB,oCAAa,CAAA;AACd,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B"}
@@ -1,28 +0,0 @@
1
- /**
2
- * Which operation a RetryTask row replays. The processor maps each type to a
3
- * handler, so adding a retryable operation means adding a type + handler rather
4
- * than another bespoke column/scan.
5
- */
6
- export declare enum RetryTaskType {
7
- /** Re-push an allocation to MMI after the original push failed. */
8
- MMIPush = "MMIPush",
9
- /** Re-attach an external duty slip that failed to upload on duty close. */
10
- ExtDutySlipUpload = "ExtDutySlipUpload"
11
- }
12
- export declare enum RetryTaskStatus {
13
- /** Waiting for its next attempt (see nextAttemptAt). */
14
- Pending = "Pending",
15
- /** Claimed by a processor tick; guards against double execution. */
16
- InProgress = "InProgress",
17
- /** Completed successfully — terminal. */
18
- Succeeded = "Succeeded",
19
- /** Gave up: hit maxAttempts, or failed in a way retrying can't fix. */
20
- Exhausted = "Exhausted",
21
- /**
22
- * The row's own data is unusable for its type — a required field is missing
23
- * or the payload doesn't match what the handler needs. Distinct from
24
- * Exhausted: nothing was ever attempted, because no number of attempts could
25
- * succeed. Retired without burning attempts or calling anything.
26
- */
27
- Blacklisted = "Blacklisted"
28
- }
@@ -1,31 +0,0 @@
1
- /**
2
- * Which operation a RetryTask row replays. The processor maps each type to a
3
- * handler, so adding a retryable operation means adding a type + handler rather
4
- * than another bespoke column/scan.
5
- */
6
- export var RetryTaskType;
7
- (function (RetryTaskType) {
8
- /** Re-push an allocation to MMI after the original push failed. */
9
- RetryTaskType["MMIPush"] = "MMIPush";
10
- /** Re-attach an external duty slip that failed to upload on duty close. */
11
- RetryTaskType["ExtDutySlipUpload"] = "ExtDutySlipUpload";
12
- })(RetryTaskType || (RetryTaskType = {}));
13
- export var RetryTaskStatus;
14
- (function (RetryTaskStatus) {
15
- /** Waiting for its next attempt (see nextAttemptAt). */
16
- RetryTaskStatus["Pending"] = "Pending";
17
- /** Claimed by a processor tick; guards against double execution. */
18
- RetryTaskStatus["InProgress"] = "InProgress";
19
- /** Completed successfully — terminal. */
20
- RetryTaskStatus["Succeeded"] = "Succeeded";
21
- /** Gave up: hit maxAttempts, or failed in a way retrying can't fix. */
22
- RetryTaskStatus["Exhausted"] = "Exhausted";
23
- /**
24
- * The row's own data is unusable for its type — a required field is missing
25
- * or the payload doesn't match what the handler needs. Distinct from
26
- * Exhausted: nothing was ever attempted, because no number of attempts could
27
- * succeed. Retired without burning attempts or calling anything.
28
- */
29
- RetryTaskStatus["Blacklisted"] = "Blacklisted";
30
- })(RetryTaskStatus || (RetryTaskStatus = {}));
31
- //# sourceMappingURL=retry.task.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"retry.task.enum.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/retry.task.enum.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,mEAAmE;IACnE,oCAAmB,CAAA;IACnB,2EAA2E;IAC3E,wDAAuC,CAAA;AACxC,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAED,MAAM,CAAN,IAAY,eAgBX;AAhBD,WAAY,eAAe;IAC1B,wDAAwD;IACxD,sCAAmB,CAAA;IACnB,oEAAoE;IACpE,4CAAyB,CAAA;IACzB,yCAAyC;IACzC,0CAAuB,CAAA;IACvB,uEAAuE;IACvE,0CAAuB,CAAA;IACvB;;;;;OAKG;IACH,8CAA2B,CAAA;AAC5B,CAAC,EAhBW,eAAe,KAAf,eAAe,QAgB1B"}
@@ -1,65 +0,0 @@
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[];
@@ -1,71 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,80 +0,0 @@
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
- }
@@ -1,25 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,42 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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
@@ -1 +0,0 @@
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,30 +0,0 @@
1
- import { TripAuthType } from '../../enums/src/trip.auth.type.enum';
2
- export declare enum LTRLogConfirmationField {
3
- ConfirmationType = "confirmationType",
4
- AllowSkipOtp = "allowSkipOtp"
5
- }
6
- /**
7
- * How a driver's completed LTR daily/monthly log is confirmed by the customer
8
- * before it moves to billing. Configured per client.
9
- *
10
- * `confirmationType` reuses TripAuthType — the four cases line up exactly:
11
- * Signature → customer signs on the driver's phone only
12
- * OTP → verification code sent to the customer only
13
- * Both → code first, then signature
14
- * None → no confirmation; the log is accepted on driver submit
15
- *
16
- * `allowSkipOtp` gates the "Skip OTP" link on the driver's code-entry screen.
17
- * Only meaningful when the flow includes an OTP step (OTP or Both).
18
- *
19
- * Absent config falls back to Signature, with skipping disallowed.
20
- * See LTR_LOG_CONFIRMATION_DEFAULT.
21
- */
22
- export interface LTRLogConfirmation {
23
- [LTRLogConfirmationField.ConfirmationType]: TripAuthType;
24
- [LTRLogConfirmationField.AllowSkipOtp]: boolean;
25
- }
26
- /**
27
- * Default applied when a client has no explicit config: the customer signs on
28
- * the driver's phone, with no verification code step.
29
- */
30
- export declare const LTR_LOG_CONFIRMATION_DEFAULT: LTRLogConfirmation;
@@ -1,15 +0,0 @@
1
- import { TripAuthType } from '../../enums/src/trip.auth.type.enum';
2
- export var LTRLogConfirmationField;
3
- (function (LTRLogConfirmationField) {
4
- LTRLogConfirmationField["ConfirmationType"] = "confirmationType";
5
- LTRLogConfirmationField["AllowSkipOtp"] = "allowSkipOtp";
6
- })(LTRLogConfirmationField || (LTRLogConfirmationField = {}));
7
- /**
8
- * Default applied when a client has no explicit config: the customer signs on
9
- * the driver's phone, with no verification code step.
10
- */
11
- export const LTR_LOG_CONFIRMATION_DEFAULT = {
12
- [LTRLogConfirmationField.ConfirmationType]: TripAuthType.Signature,
13
- [LTRLogConfirmationField.AllowSkipOtp]: false,
14
- };
15
- //# sourceMappingURL=ltr.log.confirmation.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ltr.log.confirmation.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/ltr.log.confirmation.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAClC,gEAAqC,CAAA;IACrC,wDAA6B,CAAA;AAC9B,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAuBD;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAuB;IAC/D,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,EAAE,YAAY,CAAC,SAAS;IAClE,CAAC,uBAAuB,CAAC,YAAY,CAAC,EAAE,KAAK;CAC7C,CAAC"}