@autologix-engineering/shared 1.2.353 → 1.2.355
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/lib/commands/src/generate.pdf.invoice.d.ts +1 -0
- package/src/lib/commands/src/generate.pdf.invoice.js.map +1 -1
- package/src/lib/contract-state/src/index.d.ts +0 -1
- package/src/lib/contract-state/src/index.js +0 -1
- package/src/lib/contract-state/src/index.js.map +1 -1
- package/src/lib/data-transfer-objects/src/calculate.non.pool.ltr.invoice.data.dto.d.ts +0 -1
- package/src/lib/data-transfer-objects/src/calculate.non.pool.ltr.invoice.data.dto.js +0 -5
- 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/command/add.ltr.vehicle.master.dto.d.ts +0 -1
- package/src/lib/data-transfer-objects/src/command/add.ltr.vehicle.master.dto.js +0 -5
- 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/index.d.ts +0 -4
- package/src/lib/data-transfer-objects/src/command/index.js +0 -4
- package/src/lib/data-transfer-objects/src/command/index.js.map +1 -1
- package/src/lib/data-transfer-objects/src/command/post.corporate.alerts.dto.js +0 -6
- package/src/lib/data-transfer-objects/src/command/post.corporate.alerts.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 +0 -1
- package/src/lib/data-transfer-objects/src/command/update.ltr.request.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/create.vendor.dto.d.ts +0 -1
- package/src/lib/data-transfer-objects/src/create.vendor.dto.js +1 -7
- package/src/lib/data-transfer-objects/src/create.vendor.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/duties.query.dto.d.ts +0 -14
- package/src/lib/data-transfer-objects/src/duties.query.dto.js +0 -5
- 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 +0 -1
- package/src/lib/data-transfer-objects/src/gatekeeper/create.onboarding.user.dto.js +1 -8
- 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.user.by.phone.dto.d.ts +0 -1
- package/src/lib/data-transfer-objects/src/gatekeeper/get.user.by.phone.dto.js +1 -8
- 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 +0 -2
- package/src/lib/data-transfer-objects/src/gatekeeper/index.js +0 -2
- 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 +0 -37
- package/src/lib/data-transfer-objects/src/gatekeeper/send.email.login.otp.dto.js +1 -36
- package/src/lib/data-transfer-objects/src/gatekeeper/send.email.login.otp.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/get.active.preferred.package.dto.d.ts +0 -1
- package/src/lib/data-transfer-objects/src/get.active.preferred.package.dto.js +1 -6
- package/src/lib/data-transfer-objects/src/get.active.preferred.package.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/get.ext.available.ratecards.dto.d.ts +5 -0
- package/src/lib/data-transfer-objects/src/get.ext.available.ratecards.dto.js +19 -0
- package/src/lib/data-transfer-objects/src/get.ext.available.ratecards.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.ltr.vehicle.master.dto.d.ts +0 -1
- package/src/lib/data-transfer-objects/src/get.ltr.vehicle.master.dto.js +2 -9
- 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 +4 -9
- package/src/lib/data-transfer-objects/src/gst.dto.js +1 -9
- package/src/lib/data-transfer-objects/src/gst.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/index.d.ts +2 -14
- package/src/lib/data-transfer-objects/src/index.js +2 -14
- 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 +0 -1
- package/src/lib/data-transfer-objects/src/passenger.persona.custom.dto.js +1 -6
- package/src/lib/data-transfer-objects/src/passenger.persona.custom.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/update.global.config.dto.d.ts +1 -10
- package/src/lib/data-transfer-objects/src/update.global.config.dto.js +2 -50
- package/src/lib/data-transfer-objects/src/update.global.config.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/update.vendor.city.status.dto.d.ts +20 -6
- package/src/lib/data-transfer-objects/src/update.vendor.city.status.dto.js +19 -6
- package/src/lib/data-transfer-objects/src/update.vendor.city.status.dto.js.map +1 -1
- 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/city.state.mapping.js +2 -2
- package/src/lib/enums/src/command.type.enum.d.ts +1 -12
- package/src/lib/enums/src/command.type.enum.js +1 -12
- package/src/lib/enums/src/command.type.enum.js.map +1 -1
- package/src/lib/enums/src/index.d.ts +0 -5
- package/src/lib/enums/src/index.js +0 -5
- package/src/lib/enums/src/index.js.map +1 -1
- package/src/lib/enums/src/internal.alert.type.map.js +0 -1
- package/src/lib/enums/src/internal.alert.type.map.js.map +1 -1
- package/src/lib/enums/src/internal.alert.type.variable.map.js +0 -7
- package/src/lib/enums/src/internal.alert.type.variable.map.js.map +1 -1
- package/src/lib/enums/src/internal.alert.types.enum.d.ts +1 -2
- package/src/lib/enums/src/internal.alert.types.enum.js +0 -1
- package/src/lib/enums/src/internal.alert.types.enum.js.map +1 -1
- package/src/lib/enums/src/model.enum.d.ts +0 -7
- package/src/lib/enums/src/model.enum.js +0 -7
- package/src/lib/enums/src/model.enum.js.map +1 -1
- package/src/lib/enums/src/others.default.data.js +0 -5
- package/src/lib/enums/src/others.default.data.js.map +1 -1
- package/src/lib/enums/src/query.type.enum.d.ts +1 -6
- package/src/lib/enums/src/query.type.enum.js +1 -6
- package/src/lib/enums/src/query.type.enum.js.map +1 -1
- package/src/lib/enums/src/report.command.types.js +0 -1
- package/src/lib/enums/src/report.command.types.js.map +1 -1
- package/src/lib/enums/src/state.full.name.number.code.map.js +0 -4
- package/src/lib/enums/src/state.full.name.number.code.map.js.map +1 -1
- package/src/lib/models/src/auth.profile.model.d.ts +0 -10
- package/src/lib/models/src/auth.profile.model.js +0 -6
- package/src/lib/models/src/auth.profile.model.js.map +1 -1
- package/src/lib/models/src/ba.payout.row.model.d.ts +0 -35
- package/src/lib/models/src/ba.payout.row.model.js +0 -2
- package/src/lib/models/src/ba.payout.row.model.js.map +1 -1
- package/src/lib/models/src/client.configuration.model.d.ts +2 -9
- package/src/lib/models/src/client.configuration.model.js +0 -3
- package/src/lib/models/src/client.configuration.model.js.map +1 -1
- package/src/lib/models/src/configurations.model.d.ts +2 -18
- package/src/lib/models/src/configurations.model.js +0 -8
- package/src/lib/models/src/configurations.model.js.map +1 -1
- package/src/lib/models/src/gst.model.d.ts +2 -12
- package/src/lib/models/src/gst.model.js +0 -1
- package/src/lib/models/src/gst.model.js.map +1 -1
- package/src/lib/models/src/index.d.ts +0 -8
- package/src/lib/models/src/index.js +0 -8
- package/src/lib/models/src/index.js.map +1 -1
- package/src/lib/models/src/ltr.payout.model.d.ts +2 -37
- package/src/lib/models/src/ltr.payout.model.js +0 -22
- package/src/lib/models/src/ltr.payout.model.js.map +1 -1
- package/src/lib/models/src/ltr.vehicle.master.model.d.ts +0 -2
- package/src/lib/models/src/ltr.vehicle.master.model.js +0 -1
- package/src/lib/models/src/ltr.vehicle.master.model.js.map +1 -1
- package/src/lib/models/src/passenger.persona.model.d.ts +2 -18
- package/src/lib/models/src/passenger.persona.model.js +0 -8
- package/src/lib/models/src/passenger.persona.model.js.map +1 -1
- package/src/lib/models/src/vendor.persona.model.d.ts +1 -6
- package/src/lib/models/src/vendor.persona.model.js +0 -2
- package/src/lib/models/src/vendor.persona.model.js.map +1 -1
- package/src/lib/models/src/white.label.config.model.d.ts +2 -6
- package/src/lib/models/src/white.label.config.model.js +0 -2
- package/src/lib/models/src/white.label.config.model.js.map +1 -1
- package/src/lib/routes/src/command.registry.routes.d.ts +0 -11
- package/src/lib/routes/src/command.registry.routes.js +0 -11
- package/src/lib/routes/src/command.registry.routes.js.map +1 -1
- package/src/lib/routes/src/gatekeeper.routes.d.ts +0 -2
- package/src/lib/routes/src/gatekeeper.routes.js +0 -2
- package/src/lib/routes/src/gatekeeper.routes.js.map +1 -1
- package/src/lib/routes/src/query.service.routes.d.ts +1 -6
- package/src/lib/routes/src/query.service.routes.js +1 -6
- package/src/lib/routes/src/query.service.routes.js.map +1 -1
- package/src/lib/utilities/src/index.d.ts +1 -4
- package/src/lib/utilities/src/index.js +1 -4
- package/src/lib/utilities/src/index.js.map +1 -1
- package/src/lib/utilities/src/pick.latest.numbered.invoice.d.ts +21 -0
- package/src/lib/utilities/src/pick.latest.numbered.invoice.js +52 -0
- package/src/lib/utilities/src/pick.latest.numbered.invoice.js.map +1 -0
- package/src/lib/view-models/src/public.config.d.ts +1 -5
- package/src/lib/contract-state/src/contract.coverage.bound.d.ts +0 -37
- package/src/lib/contract-state/src/contract.coverage.bound.js +0 -45
- package/src/lib/contract-state/src/contract.coverage.bound.js.map +0 -1
- package/src/lib/data-transfer-objects/src/add.ltr.payout.rows.dto.d.ts +0 -66
- package/src/lib/data-transfer-objects/src/add.ltr.payout.rows.dto.js +0 -139
- package/src/lib/data-transfer-objects/src/add.ltr.payout.rows.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/command/add.tds.config.dto.d.ts +0 -7
- package/src/lib/data-transfer-objects/src/command/add.tds.config.dto.js +0 -30
- package/src/lib/data-transfer-objects/src/command/add.tds.config.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/command/retry.generate.irn.dto.d.ts +0 -3
- package/src/lib/data-transfer-objects/src/command/retry.generate.irn.dto.js +0 -9
- package/src/lib/data-transfer-objects/src/command/retry.generate.irn.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/command/update.tds.config.dto.d.ts +0 -11
- package/src/lib/data-transfer-objects/src/command/update.tds.config.dto.js +0 -30
- package/src/lib/data-transfer-objects/src/command/update.tds.config.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/command/update.tds.config.status.dto.d.ts +0 -7
- package/src/lib/data-transfer-objects/src/command/update.tds.config.status.dto.js +0 -22
- package/src/lib/data-transfer-objects/src/command/update.tds.config.status.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/discard.business.associate.payout.draft.dto.d.ts +0 -7
- package/src/lib/data-transfer-objects/src/discard.business.associate.payout.draft.dto.js +0 -28
- package/src/lib/data-transfer-objects/src/discard.business.associate.payout.draft.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/gatekeeper/get.registered.user.ltr.dto.d.ts +0 -7
- package/src/lib/data-transfer-objects/src/gatekeeper/get.registered.user.ltr.dto.js +0 -21
- package/src/lib/data-transfer-objects/src/gatekeeper/get.registered.user.ltr.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/gatekeeper/send.ltr.sign.off.otp.dto.d.ts +0 -17
- package/src/lib/data-transfer-objects/src/gatekeeper/send.ltr.sign.off.otp.dto.js +0 -29
- package/src/lib/data-transfer-objects/src/gatekeeper/send.ltr.sign.off.otp.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/get.business.associate.payout.draft.dto.d.ts +0 -11
- package/src/lib/data-transfer-objects/src/get.business.associate.payout.draft.dto.js +0 -25
- package/src/lib/data-transfer-objects/src/get.business.associate.payout.draft.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/get.ltr.driver.bookings.dto.d.ts +0 -5
- package/src/lib/data-transfer-objects/src/get.ltr.driver.bookings.dto.js +0 -17
- package/src/lib/data-transfer-objects/src/get.ltr.driver.bookings.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.logs.dto.d.ts +0 -18
- package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.logs.dto.js +0 -33
- package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.logs.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.sign.off.preview.dto.d.ts +0 -21
- package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.sign.off.preview.dto.js +0 -35
- package/src/lib/data-transfer-objects/src/get.ltr.driver.monthly.sign.off.preview.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.d.ts +0 -66
- package/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.js +0 -53
- package/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/get.tds.config.dto.d.ts +0 -9
- package/src/lib/data-transfer-objects/src/get.tds.config.dto.js +0 -34
- package/src/lib/data-transfer-objects/src/get.tds.config.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/save.business.associate.payout.draft.dto.d.ts +0 -25
- package/src/lib/data-transfer-objects/src/save.business.associate.payout.draft.dto.js +0 -59
- package/src/lib/data-transfer-objects/src/save.business.associate.payout.draft.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.entry.dto.d.ts +0 -44
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.entry.dto.js +0 -51
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.entry.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.month.dto.d.ts +0 -51
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.month.dto.js +0 -60
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.month.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/update.ltr.log.confirmation.config.dto.d.ts +0 -6
- package/src/lib/data-transfer-objects/src/update.ltr.log.confirmation.config.dto.js +0 -20
- package/src/lib/data-transfer-objects/src/update.ltr.log.confirmation.config.dto.js.map +0 -1
- package/src/lib/data-transfer-objects/src/update.ltr.payout.rows.dto.d.ts +0 -18
- package/src/lib/data-transfer-objects/src/update.ltr.payout.rows.dto.js +0 -20
- package/src/lib/data-transfer-objects/src/update.ltr.payout.rows.dto.js.map +0 -1
- package/src/lib/enums/src/ba.payout.draft.enum.d.ts +0 -13
- package/src/lib/enums/src/ba.payout.draft.enum.js +0 -15
- package/src/lib/enums/src/ba.payout.draft.enum.js.map +0 -1
- package/src/lib/enums/src/ltr.font.enum.d.ts +0 -5
- package/src/lib/enums/src/ltr.font.enum.js +0 -7
- package/src/lib/enums/src/ltr.font.enum.js.map +0 -1
- package/src/lib/enums/src/ltr.payout.enum.d.ts +0 -67
- package/src/lib/enums/src/ltr.payout.enum.js +0 -74
- package/src/lib/enums/src/ltr.payout.enum.js.map +0 -1
- package/src/lib/enums/src/otp.scope.enum.d.ts +0 -16
- package/src/lib/enums/src/otp.scope.enum.js +0 -18
- package/src/lib/enums/src/otp.scope.enum.js.map +0 -1
- package/src/lib/enums/src/retry.task.enum.d.ts +0 -28
- package/src/lib/enums/src/retry.task.enum.js +0 -31
- package/src/lib/enums/src/retry.task.enum.js.map +0 -1
- package/src/lib/models/src/ba.payout.draft.model.d.ts +0 -77
- package/src/lib/models/src/ba.payout.draft.model.js +0 -31
- package/src/lib/models/src/ba.payout.draft.model.js.map +0 -1
- package/src/lib/models/src/ltr.log.confirmation.model.d.ts +0 -30
- package/src/lib/models/src/ltr.log.confirmation.model.js +0 -15
- package/src/lib/models/src/ltr.log.confirmation.model.js.map +0 -1
- package/src/lib/models/src/ltr.payout.month.sign.off.model.d.ts +0 -85
- package/src/lib/models/src/ltr.payout.month.sign.off.model.js +0 -28
- package/src/lib/models/src/ltr.payout.month.sign.off.model.js.map +0 -1
- package/src/lib/models/src/ltr.payout.row.group.model.d.ts +0 -73
- package/src/lib/models/src/ltr.payout.row.group.model.js +0 -25
- package/src/lib/models/src/ltr.payout.row.group.model.js.map +0 -1
- package/src/lib/models/src/ltr.payout.row.image.model.d.ts +0 -34
- package/src/lib/models/src/ltr.payout.row.image.model.js +0 -11
- package/src/lib/models/src/ltr.payout.row.image.model.js.map +0 -1
- package/src/lib/models/src/retry.task.model.d.ts +0 -56
- package/src/lib/models/src/retry.task.model.js +0 -26
- package/src/lib/models/src/retry.task.model.js.map +0 -1
- package/src/lib/models/src/tds.config.activity.log.model.d.ts +0 -34
- package/src/lib/models/src/tds.config.activity.log.model.js +0 -15
- package/src/lib/models/src/tds.config.activity.log.model.js.map +0 -1
- package/src/lib/models/src/tds.config.model.d.ts +0 -47
- package/src/lib/models/src/tds.config.model.js +0 -18
- package/src/lib/models/src/tds.config.model.js.map +0 -1
- package/src/lib/utilities/src/ltr.cycle.month.index.d.ts +0 -1
- package/src/lib/utilities/src/ltr.cycle.month.index.js +0 -9
- package/src/lib/utilities/src/ltr.cycle.month.index.js.map +0 -1
- package/src/lib/utilities/src/ltr.payout.row.key.d.ts +0 -43
- package/src/lib/utilities/src/ltr.payout.row.key.js +0 -78
- package/src/lib/utilities/src/ltr.payout.row.key.js.map +0 -1
- package/src/lib/utilities/src/parse.display.date.d.ts +0 -16
- package/src/lib/utilities/src/parse.display.date.js +0 -43
- package/src/lib/utilities/src/parse.display.date.js.map +0 -1
- package/src/lib/utilities/src/resolve.gst.state.d.ts +0 -23
- package/src/lib/utilities/src/resolve.gst.state.js +0 -32
- package/src/lib/utilities/src/resolve.gst.state.js.map +0 -1
|
@@ -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,77 +0,0 @@
|
|
|
1
|
-
import { BAPayoutDraftStatus } from '../../enums/src/index';
|
|
2
|
-
import { IBusinessContextOwner } from './business.context.owner.model';
|
|
3
|
-
import { ITimePeriod } from './time.period.model';
|
|
4
|
-
import { IPassenger } from './passenger.model';
|
|
5
|
-
import { IBAPayoutSummary } from './ba.payout.summary.model';
|
|
6
|
-
import { TypedModel } from './typed.model';
|
|
7
|
-
/**
|
|
8
|
-
* One entry in a draft's audit trail. Appended on every draft save and once
|
|
9
|
-
* more when the draft is consumed by a final payout generation, so the trail
|
|
10
|
-
* answers "who touched this, and when" without a separate activity-log table.
|
|
11
|
-
*/
|
|
12
|
-
export interface IBAPayoutDraftEdit {
|
|
13
|
-
/** Passenger (context persona) id of the editor. */
|
|
14
|
-
passengerId?: string;
|
|
15
|
-
name?: string;
|
|
16
|
-
email?: string;
|
|
17
|
-
/** ISO-8601 UTC instant. Rendered in IST by the UI. */
|
|
18
|
-
at: string;
|
|
19
|
-
/** Draft version produced by this edit. */
|
|
20
|
-
version: number;
|
|
21
|
-
action: 'saved' | 'generated' | 'discarded';
|
|
22
|
-
rowCount?: number;
|
|
23
|
-
}
|
|
24
|
-
export declare enum BAPayoutDraftField {
|
|
25
|
-
BAPayoutDraftId = "baPayoutDraftId",
|
|
26
|
-
Context = "context",
|
|
27
|
-
ContextId = "contextId",
|
|
28
|
-
TimePeriod = "timePeriod",
|
|
29
|
-
TimePeriodId = "timePeriodId",
|
|
30
|
-
Status = "status",
|
|
31
|
-
/** Rows produced by the template upload — replayed through calculate on resume. */
|
|
32
|
-
ValidRows = "validRows",
|
|
33
|
-
/** The user-edited grid exactly as it sat on screen when Save as Draft was pressed. */
|
|
34
|
-
EditedRows = "editedRows",
|
|
35
|
-
/** Dynamic column -> DynamicColumnType map from the calculate step. */
|
|
36
|
-
DynamicColumnTypes = "dynColTypes",
|
|
37
|
-
/** Monotonic counter used for last-save-wins conflict detection. */
|
|
38
|
-
Version = "version",
|
|
39
|
-
LastEditedBy = "lastEditedBy",
|
|
40
|
-
LastEditedById = "lastEditedById",
|
|
41
|
-
LastEditedByName = "lastEdName",
|
|
42
|
-
LastEditedByEmail = "lastEdEmail",
|
|
43
|
-
LastEditedAt = "lastEditedAt",
|
|
44
|
-
EditHistory = "editHistory",
|
|
45
|
-
ConsumedBySummary = "consumedBySummary",
|
|
46
|
-
ConsumedBySummaryId = "consumedBySummaryId",
|
|
47
|
-
ConsumedAt = "consumedAt",
|
|
48
|
-
CreatedAt = "createdAt",
|
|
49
|
-
UpdatedAt = "updatedAt",
|
|
50
|
-
CreatedBy = "createdBy",
|
|
51
|
-
CreatedById = "createdById"
|
|
52
|
-
}
|
|
53
|
-
export interface IBAPayoutDraft extends TypedModel {
|
|
54
|
-
[BAPayoutDraftField.BAPayoutDraftId]: string;
|
|
55
|
-
[BAPayoutDraftField.Context]: IBusinessContextOwner;
|
|
56
|
-
[BAPayoutDraftField.ContextId]: string;
|
|
57
|
-
[BAPayoutDraftField.TimePeriod]: ITimePeriod;
|
|
58
|
-
[BAPayoutDraftField.TimePeriodId]: string;
|
|
59
|
-
[BAPayoutDraftField.Status]: BAPayoutDraftStatus;
|
|
60
|
-
[BAPayoutDraftField.ValidRows]: Record<string, any>[];
|
|
61
|
-
[BAPayoutDraftField.EditedRows]: Record<string, any>[];
|
|
62
|
-
[BAPayoutDraftField.DynamicColumnTypes]: Record<string, string>;
|
|
63
|
-
[BAPayoutDraftField.Version]: number;
|
|
64
|
-
[BAPayoutDraftField.LastEditedBy]: IPassenger;
|
|
65
|
-
[BAPayoutDraftField.LastEditedById]: string;
|
|
66
|
-
[BAPayoutDraftField.LastEditedByName]: string;
|
|
67
|
-
[BAPayoutDraftField.LastEditedByEmail]: string;
|
|
68
|
-
[BAPayoutDraftField.LastEditedAt]: Date;
|
|
69
|
-
[BAPayoutDraftField.EditHistory]: IBAPayoutDraftEdit[];
|
|
70
|
-
[BAPayoutDraftField.ConsumedBySummary]: IBAPayoutSummary;
|
|
71
|
-
[BAPayoutDraftField.ConsumedBySummaryId]: string;
|
|
72
|
-
[BAPayoutDraftField.ConsumedAt]: Date;
|
|
73
|
-
[BAPayoutDraftField.CreatedAt]: Date;
|
|
74
|
-
[BAPayoutDraftField.UpdatedAt]: Date;
|
|
75
|
-
[BAPayoutDraftField.CreatedBy]: IPassenger;
|
|
76
|
-
[BAPayoutDraftField.CreatedById]: string;
|
|
77
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export var BAPayoutDraftField;
|
|
2
|
-
(function (BAPayoutDraftField) {
|
|
3
|
-
BAPayoutDraftField["BAPayoutDraftId"] = "baPayoutDraftId";
|
|
4
|
-
BAPayoutDraftField["Context"] = "context";
|
|
5
|
-
BAPayoutDraftField["ContextId"] = "contextId";
|
|
6
|
-
BAPayoutDraftField["TimePeriod"] = "timePeriod";
|
|
7
|
-
BAPayoutDraftField["TimePeriodId"] = "timePeriodId";
|
|
8
|
-
BAPayoutDraftField["Status"] = "status";
|
|
9
|
-
/** Rows produced by the template upload — replayed through calculate on resume. */
|
|
10
|
-
BAPayoutDraftField["ValidRows"] = "validRows";
|
|
11
|
-
/** The user-edited grid exactly as it sat on screen when Save as Draft was pressed. */
|
|
12
|
-
BAPayoutDraftField["EditedRows"] = "editedRows";
|
|
13
|
-
/** Dynamic column -> DynamicColumnType map from the calculate step. */
|
|
14
|
-
BAPayoutDraftField["DynamicColumnTypes"] = "dynColTypes";
|
|
15
|
-
/** Monotonic counter used for last-save-wins conflict detection. */
|
|
16
|
-
BAPayoutDraftField["Version"] = "version";
|
|
17
|
-
BAPayoutDraftField["LastEditedBy"] = "lastEditedBy";
|
|
18
|
-
BAPayoutDraftField["LastEditedById"] = "lastEditedById";
|
|
19
|
-
BAPayoutDraftField["LastEditedByName"] = "lastEdName";
|
|
20
|
-
BAPayoutDraftField["LastEditedByEmail"] = "lastEdEmail";
|
|
21
|
-
BAPayoutDraftField["LastEditedAt"] = "lastEditedAt";
|
|
22
|
-
BAPayoutDraftField["EditHistory"] = "editHistory";
|
|
23
|
-
BAPayoutDraftField["ConsumedBySummary"] = "consumedBySummary";
|
|
24
|
-
BAPayoutDraftField["ConsumedBySummaryId"] = "consumedBySummaryId";
|
|
25
|
-
BAPayoutDraftField["ConsumedAt"] = "consumedAt";
|
|
26
|
-
BAPayoutDraftField["CreatedAt"] = "createdAt";
|
|
27
|
-
BAPayoutDraftField["UpdatedAt"] = "updatedAt";
|
|
28
|
-
BAPayoutDraftField["CreatedBy"] = "createdBy";
|
|
29
|
-
BAPayoutDraftField["CreatedById"] = "createdById";
|
|
30
|
-
})(BAPayoutDraftField || (BAPayoutDraftField = {}));
|
|
31
|
-
//# sourceMappingURL=ba.payout.draft.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ba.payout.draft.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/ba.payout.draft.model.ts"],"names":[],"mappings":"AAyBA,MAAM,CAAN,IAAY,kBA4BX;AA5BD,WAAY,kBAAkB;IAC7B,yDAAmC,CAAA;IACnC,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;IACvB,+CAAyB,CAAA;IACzB,mDAA6B,CAAA;IAC7B,uCAAiB,CAAA;IACjB,mFAAmF;IACnF,6CAAuB,CAAA;IACvB,uFAAuF;IACvF,+CAAyB,CAAA;IACzB,uEAAuE;IACvE,wDAAkC,CAAA;IAClC,oEAAoE;IACpE,yCAAmB,CAAA;IACnB,mDAA6B,CAAA;IAC7B,uDAAiC,CAAA;IACjC,qDAA+B,CAAA;IAC/B,uDAAiC,CAAA;IACjC,mDAA6B,CAAA;IAC7B,iDAA2B,CAAA;IAC3B,6DAAuC,CAAA;IACvC,iEAA2C,CAAA;IAC3C,+CAAyB,CAAA;IACzB,6CAAuB,CAAA;IACvB,6CAAuB,CAAA;IACvB,6CAAuB,CAAA;IACvB,iDAA2B,CAAA;AAC5B,CAAC,EA5BW,kBAAkB,KAAlB,kBAAkB,QA4B7B"}
|
|
@@ -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 must behave as today: Both, 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
|
-
* Backward-compatible default applied when a client has no explicit config,
|
|
28
|
-
* so existing clients keep today's behaviour until an admin changes it.
|
|
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
|
-
* Backward-compatible default applied when a client has no explicit config,
|
|
9
|
-
* so existing clients keep today's behaviour until an admin changes it.
|
|
10
|
-
*/
|
|
11
|
-
export const LTR_LOG_CONFIRMATION_DEFAULT = {
|
|
12
|
-
[LTRLogConfirmationField.ConfirmationType]: TripAuthType.Both,
|
|
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,IAAI;IAC7D,CAAC,uBAAuB,CAAC,YAAY,CAAC,EAAE,KAAK;CAC7C,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { LTRPayoutSignOffMethod } from '@autologix/shared/enums';
|
|
2
|
-
import { ILTRPayout } from './ltr.payout.model';
|
|
3
|
-
import { IRequest } from './request.model';
|
|
4
|
-
export declare enum LTRPayoutMonthSignOffField {
|
|
5
|
-
MonthSignOffId = "monthSignOffId",
|
|
6
|
-
Payout = "payout",
|
|
7
|
-
PayoutId = "payoutId",
|
|
8
|
-
Request = "request",
|
|
9
|
-
RequestId = "requestId",
|
|
10
|
-
/** Registered user of the driver who signed. */
|
|
11
|
-
RegisteredUserId = "registeredUserId",
|
|
12
|
-
/** Their driver persona, resolved at sign-off time. */
|
|
13
|
-
DriverPersonaId = "driverPersonaId",
|
|
14
|
-
/** The month signed, as `YYYY-MM`. */
|
|
15
|
-
Month = "month",
|
|
16
|
-
/** First locked day, inclusive — start-of-day. */
|
|
17
|
-
LockFrom = "lockFrom",
|
|
18
|
-
/** Last locked day, inclusive — end-of-day. */
|
|
19
|
-
LockTo = "lockTo",
|
|
20
|
-
SignedOffAt = "signedOffAt",
|
|
21
|
-
SignOffMethod = "signOffMethod",
|
|
22
|
-
SignatureImageUrl = "signatureImageUrl",
|
|
23
|
-
/** Dates still missing or in draft when the driver chose to proceed. */
|
|
24
|
-
IncompleteDates = "incompleteDates",
|
|
25
|
-
/** How many of the driver's entries this sign-off settled. */
|
|
26
|
-
SignedEntryCount = "signedEntryCount",
|
|
27
|
-
CreatedAt = "createdAt",
|
|
28
|
-
UpdatedAt = "updatedAt"
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* One driver's monthly sign-off on one LTR booking. (AD-3206)
|
|
32
|
-
*
|
|
33
|
-
* Distinct from both the daily sign-off — which settles a single entry on
|
|
34
|
-
* `LTRPayoutRowGroup` — and the payout-wide sign-off held on `LTRPayout`,
|
|
35
|
-
* which settles the whole booking for the client.
|
|
36
|
-
*
|
|
37
|
-
* ### Why this is its own record rather than a status on the payout
|
|
38
|
-
*
|
|
39
|
-
* LTR bookings support driver replacement, so one booking and one month can
|
|
40
|
-
* have more than one driver. A driver signs off **his own days only**, and
|
|
41
|
-
* signing must not settle or lock another driver's days in the same month.
|
|
42
|
-
* `LTRPayout.status` is booking-wide and cannot express that; a per-(booking,
|
|
43
|
-
* driver, month) record can.
|
|
44
|
-
*
|
|
45
|
-
* ### Why the lock is a date range and not a month string
|
|
46
|
-
*
|
|
47
|
-
* After sign-off the driver may no longer create or edit a log in the locked
|
|
48
|
-
* period — including the days he left missing or in draft. Those days have no
|
|
49
|
-
* entry to hold a status, so the lock cannot live on `LTRPayoutRowGroup`
|
|
50
|
-
* either: a missing day is precisely the case with no group.
|
|
51
|
-
*
|
|
52
|
-
* `lockFrom`/`lockTo` hold the driver's **applicable** range within the month
|
|
53
|
-
* — the part of the month the booking covered and a replacement did not take
|
|
54
|
-
* from him — rather than the calendar month's bounds. Product had not settled
|
|
55
|
-
* which of the two the lock should mean when this was built (AD-3206 §5), so
|
|
56
|
-
* storing the range makes that a stored value rather than a code branch: to
|
|
57
|
-
* lock whole calendar months instead, widen these two columns at write time
|
|
58
|
-
* and every enforcement site follows.
|
|
59
|
-
*/
|
|
60
|
-
export interface ILTRPayoutMonthSignOff {
|
|
61
|
-
[LTRPayoutMonthSignOffField.MonthSignOffId]: string;
|
|
62
|
-
[LTRPayoutMonthSignOffField.Payout]: ILTRPayout;
|
|
63
|
-
[LTRPayoutMonthSignOffField.PayoutId]: string;
|
|
64
|
-
/** Denormalised so a lock can be checked without loading the payout. */
|
|
65
|
-
[LTRPayoutMonthSignOffField.Request]: IRequest;
|
|
66
|
-
[LTRPayoutMonthSignOffField.RequestId]: string;
|
|
67
|
-
[LTRPayoutMonthSignOffField.RegisteredUserId]: string;
|
|
68
|
-
[LTRPayoutMonthSignOffField.DriverPersonaId]: string;
|
|
69
|
-
[LTRPayoutMonthSignOffField.Month]: string;
|
|
70
|
-
[LTRPayoutMonthSignOffField.LockFrom]: Date;
|
|
71
|
-
[LTRPayoutMonthSignOffField.LockTo]: Date;
|
|
72
|
-
[LTRPayoutMonthSignOffField.SignedOffAt]: Date;
|
|
73
|
-
[LTRPayoutMonthSignOffField.SignOffMethod]?: LTRPayoutSignOffMethod;
|
|
74
|
-
/** Set only when the sign-off captured a signature. */
|
|
75
|
-
[LTRPayoutMonthSignOffField.SignatureImageUrl]?: string;
|
|
76
|
-
/**
|
|
77
|
-
* The `yyyy-MM-dd` dates that were still incomplete when the driver
|
|
78
|
-
* proceeded past the warning. Kept because the lock leaves them permanently
|
|
79
|
-
* unlogged — without this there is no record of what was given up.
|
|
80
|
-
*/
|
|
81
|
-
[LTRPayoutMonthSignOffField.IncompleteDates]?: string[];
|
|
82
|
-
[LTRPayoutMonthSignOffField.SignedEntryCount]: number;
|
|
83
|
-
[LTRPayoutMonthSignOffField.CreatedAt]: Date;
|
|
84
|
-
[LTRPayoutMonthSignOffField.UpdatedAt]: Date;
|
|
85
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export var LTRPayoutMonthSignOffField;
|
|
2
|
-
(function (LTRPayoutMonthSignOffField) {
|
|
3
|
-
LTRPayoutMonthSignOffField["MonthSignOffId"] = "monthSignOffId";
|
|
4
|
-
LTRPayoutMonthSignOffField["Payout"] = "payout";
|
|
5
|
-
LTRPayoutMonthSignOffField["PayoutId"] = "payoutId";
|
|
6
|
-
LTRPayoutMonthSignOffField["Request"] = "request";
|
|
7
|
-
LTRPayoutMonthSignOffField["RequestId"] = "requestId";
|
|
8
|
-
/** Registered user of the driver who signed. */
|
|
9
|
-
LTRPayoutMonthSignOffField["RegisteredUserId"] = "registeredUserId";
|
|
10
|
-
/** Their driver persona, resolved at sign-off time. */
|
|
11
|
-
LTRPayoutMonthSignOffField["DriverPersonaId"] = "driverPersonaId";
|
|
12
|
-
/** The month signed, as `YYYY-MM`. */
|
|
13
|
-
LTRPayoutMonthSignOffField["Month"] = "month";
|
|
14
|
-
/** First locked day, inclusive — start-of-day. */
|
|
15
|
-
LTRPayoutMonthSignOffField["LockFrom"] = "lockFrom";
|
|
16
|
-
/** Last locked day, inclusive — end-of-day. */
|
|
17
|
-
LTRPayoutMonthSignOffField["LockTo"] = "lockTo";
|
|
18
|
-
LTRPayoutMonthSignOffField["SignedOffAt"] = "signedOffAt";
|
|
19
|
-
LTRPayoutMonthSignOffField["SignOffMethod"] = "signOffMethod";
|
|
20
|
-
LTRPayoutMonthSignOffField["SignatureImageUrl"] = "signatureImageUrl";
|
|
21
|
-
/** Dates still missing or in draft when the driver chose to proceed. */
|
|
22
|
-
LTRPayoutMonthSignOffField["IncompleteDates"] = "incompleteDates";
|
|
23
|
-
/** How many of the driver's entries this sign-off settled. */
|
|
24
|
-
LTRPayoutMonthSignOffField["SignedEntryCount"] = "signedEntryCount";
|
|
25
|
-
LTRPayoutMonthSignOffField["CreatedAt"] = "createdAt";
|
|
26
|
-
LTRPayoutMonthSignOffField["UpdatedAt"] = "updatedAt";
|
|
27
|
-
})(LTRPayoutMonthSignOffField || (LTRPayoutMonthSignOffField = {}));
|
|
28
|
-
//# sourceMappingURL=ltr.payout.month.sign.off.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ltr.payout.month.sign.off.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/ltr.payout.month.sign.off.model.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,0BAyBX;AAzBD,WAAY,0BAA0B;IACrC,+DAAiC,CAAA;IACjC,+CAAiB,CAAA;IACjB,mDAAqB,CAAA;IACrB,iDAAmB,CAAA;IACnB,qDAAuB,CAAA;IACvB,gDAAgD;IAChD,mEAAqC,CAAA;IACrC,uDAAuD;IACvD,iEAAmC,CAAA;IACnC,sCAAsC;IACtC,6CAAe,CAAA;IACf,kDAAkD;IAClD,mDAAqB,CAAA;IACrB,+CAA+C;IAC/C,+CAAiB,CAAA;IACjB,yDAA2B,CAAA;IAC3B,6DAA+B,CAAA;IAC/B,qEAAuC,CAAA;IACvC,wEAAwE;IACxE,iEAAmC,CAAA;IACnC,8DAA8D;IAC9D,mEAAqC,CAAA;IACrC,qDAAuB,CAAA;IACvB,qDAAuB,CAAA;AACxB,CAAC,EAzBW,0BAA0B,KAA1B,0BAA0B,QAyBrC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { LTRPayoutRowSource, LTRPayoutSignOffMethod, LTRPayoutStatus } from '@autologix/shared/enums';
|
|
2
|
-
import { ILTRPayout } from './ltr.payout.model';
|
|
3
|
-
import { ILTRPayoutRowImage } from './ltr.payout.row.image.model';
|
|
4
|
-
import { IRequest } from './request.model';
|
|
5
|
-
export declare enum LTRPayoutRowGroupField {
|
|
6
|
-
RowGroupId = "rowGroupId",
|
|
7
|
-
Payout = "payout",
|
|
8
|
-
PayoutId = "payoutId",
|
|
9
|
-
Request = "request",
|
|
10
|
-
RequestId = "requestId",
|
|
11
|
-
Status = "status",
|
|
12
|
-
Source = "source",
|
|
13
|
-
/** First date the entry covers, inclusive. */
|
|
14
|
-
StartDate = "startDate",
|
|
15
|
-
/** Last date the entry covers, inclusive. */
|
|
16
|
-
EndDate = "endDate",
|
|
17
|
-
/** How many payout rows the entry produced — one per calendar date. */
|
|
18
|
-
RowCount = "rowCount",
|
|
19
|
-
Images = "images",
|
|
20
|
-
/** Registered user of the driver who made this entry. */
|
|
21
|
-
CreatedByRegisteredUserId = "createdByRegisteredUserId",
|
|
22
|
-
SignedOffAt = "signedOffAt",
|
|
23
|
-
SignOffMethod = "signOffMethod",
|
|
24
|
-
SignatureImageUrl = "signatureImageUrl",
|
|
25
|
-
CreatedAt = "createdAt",
|
|
26
|
-
UpdatedAt = "updatedAt"
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* One entry the driver made in the LTR app, however many dates it covers.
|
|
30
|
-
*
|
|
31
|
-
* A garage window of 17 Aug 00:00 → 17 Aug 23:59 produces one group and one
|
|
32
|
-
* payout row. A window of 27 Aug → 29 Aug produces one group and three payout
|
|
33
|
-
* rows, each stamped with this group's id in `LTRPayoutRowField.GroupId`. The
|
|
34
|
-
* app shows one menu item per group, which is why the grouping has to be
|
|
35
|
-
* recorded rather than inferred from the dates.
|
|
36
|
-
*
|
|
37
|
-
* Status and images live here, not on the rows. The rows sit inside a single
|
|
38
|
-
* jsonb array on LTRPayout, so putting either there would mean rewriting every
|
|
39
|
-
* row on the booking to sign one entry or attach one photo.
|
|
40
|
-
*
|
|
41
|
-
* Rows with no group predate this and came from the Excel upload or the
|
|
42
|
-
* webapp: the absence of a group is what marks them as the admin's record.
|
|
43
|
-
*/
|
|
44
|
-
export interface ILTRPayoutRowGroup {
|
|
45
|
-
[LTRPayoutRowGroupField.RowGroupId]: string;
|
|
46
|
-
[LTRPayoutRowGroupField.Payout]: ILTRPayout;
|
|
47
|
-
[LTRPayoutRowGroupField.PayoutId]: string;
|
|
48
|
-
/** Denormalised so the app can list a booking's entries without the payout. */
|
|
49
|
-
[LTRPayoutRowGroupField.Request]: IRequest;
|
|
50
|
-
[LTRPayoutRowGroupField.RequestId]: string;
|
|
51
|
-
[LTRPayoutRowGroupField.Status]: LTRPayoutStatus;
|
|
52
|
-
[LTRPayoutRowGroupField.Source]: LTRPayoutRowSource;
|
|
53
|
-
[LTRPayoutRowGroupField.StartDate]: Date;
|
|
54
|
-
[LTRPayoutRowGroupField.EndDate]: Date;
|
|
55
|
-
[LTRPayoutRowGroupField.RowCount]: number;
|
|
56
|
-
[LTRPayoutRowGroupField.Images]?: ILTRPayoutRowImage[];
|
|
57
|
-
/**
|
|
58
|
-
* The driver who made this entry, as their registered user id.
|
|
59
|
-
*
|
|
60
|
-
* Only they may edit it or sign it off. A booking can change hands through
|
|
61
|
-
* replacement, so "assigned to this booking" is not the same question as
|
|
62
|
-
* "recorded this entry" — the second is what ownership of an entry means.
|
|
63
|
-
*
|
|
64
|
-
* Absent on entries written before this was recorded.
|
|
65
|
-
*/
|
|
66
|
-
[LTRPayoutRowGroupField.CreatedByRegisteredUserId]?: string;
|
|
67
|
-
[LTRPayoutRowGroupField.SignedOffAt]?: Date;
|
|
68
|
-
[LTRPayoutRowGroupField.SignOffMethod]?: LTRPayoutSignOffMethod;
|
|
69
|
-
/** Set only when the daily sign-off captured a signature. */
|
|
70
|
-
[LTRPayoutRowGroupField.SignatureImageUrl]?: string;
|
|
71
|
-
[LTRPayoutRowGroupField.CreatedAt]: Date;
|
|
72
|
-
[LTRPayoutRowGroupField.UpdatedAt]: Date;
|
|
73
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export var LTRPayoutRowGroupField;
|
|
2
|
-
(function (LTRPayoutRowGroupField) {
|
|
3
|
-
LTRPayoutRowGroupField["RowGroupId"] = "rowGroupId";
|
|
4
|
-
LTRPayoutRowGroupField["Payout"] = "payout";
|
|
5
|
-
LTRPayoutRowGroupField["PayoutId"] = "payoutId";
|
|
6
|
-
LTRPayoutRowGroupField["Request"] = "request";
|
|
7
|
-
LTRPayoutRowGroupField["RequestId"] = "requestId";
|
|
8
|
-
LTRPayoutRowGroupField["Status"] = "status";
|
|
9
|
-
LTRPayoutRowGroupField["Source"] = "source";
|
|
10
|
-
/** First date the entry covers, inclusive. */
|
|
11
|
-
LTRPayoutRowGroupField["StartDate"] = "startDate";
|
|
12
|
-
/** Last date the entry covers, inclusive. */
|
|
13
|
-
LTRPayoutRowGroupField["EndDate"] = "endDate";
|
|
14
|
-
/** How many payout rows the entry produced — one per calendar date. */
|
|
15
|
-
LTRPayoutRowGroupField["RowCount"] = "rowCount";
|
|
16
|
-
LTRPayoutRowGroupField["Images"] = "images";
|
|
17
|
-
/** Registered user of the driver who made this entry. */
|
|
18
|
-
LTRPayoutRowGroupField["CreatedByRegisteredUserId"] = "createdByRegisteredUserId";
|
|
19
|
-
LTRPayoutRowGroupField["SignedOffAt"] = "signedOffAt";
|
|
20
|
-
LTRPayoutRowGroupField["SignOffMethod"] = "signOffMethod";
|
|
21
|
-
LTRPayoutRowGroupField["SignatureImageUrl"] = "signatureImageUrl";
|
|
22
|
-
LTRPayoutRowGroupField["CreatedAt"] = "createdAt";
|
|
23
|
-
LTRPayoutRowGroupField["UpdatedAt"] = "updatedAt";
|
|
24
|
-
})(LTRPayoutRowGroupField || (LTRPayoutRowGroupField = {}));
|
|
25
|
-
//# sourceMappingURL=ltr.payout.row.group.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ltr.payout.row.group.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/ltr.payout.row.group.model.ts"],"names":[],"mappings":"AASA,MAAM,CAAN,IAAY,sBAsBX;AAtBD,WAAY,sBAAsB;IACjC,mDAAyB,CAAA;IACzB,2CAAiB,CAAA;IACjB,+CAAqB,CAAA;IACrB,6CAAmB,CAAA;IACnB,iDAAuB,CAAA;IACvB,2CAAiB,CAAA;IACjB,2CAAiB,CAAA;IACjB,8CAA8C;IAC9C,iDAAuB,CAAA;IACvB,6CAA6C;IAC7C,6CAAmB,CAAA;IACnB,uEAAuE;IACvE,+CAAqB,CAAA;IACrB,2CAAiB,CAAA;IACjB,yDAAyD;IACzD,iFAAuD,CAAA;IACvD,qDAA2B,CAAA;IAC3B,yDAA+B,CAAA;IAC/B,iEAAuC,CAAA;IACvC,iDAAuB,CAAA;IACvB,iDAAuB,CAAA;AACxB,CAAC,EAtBW,sBAAsB,KAAtB,sBAAsB,QAsBjC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { IFile } from './file.model';
|
|
2
|
-
import { ILTRPayoutRowGroup } from './ltr.payout.row.group.model';
|
|
3
|
-
export declare enum LTRPayoutRowImageField {
|
|
4
|
-
RowImageId = "rowImageId",
|
|
5
|
-
Group = "group",
|
|
6
|
-
GroupId = "groupId",
|
|
7
|
-
Type = "type",
|
|
8
|
-
Files = "files",
|
|
9
|
-
CreatedAt = "createdAt",
|
|
10
|
-
UpdatedAt = "updatedAt"
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The photos attached to one entry for one purpose — all the start-KM shots,
|
|
14
|
-
* all the toll receipts, and so on.
|
|
15
|
-
*
|
|
16
|
-
* One row per (group, type), holding every file for that type, because a
|
|
17
|
-
* driver may photograph the same reading two or three times. Attaching another
|
|
18
|
-
* photo rewrites only this row rather than the booking's whole payout array.
|
|
19
|
-
*
|
|
20
|
-
* `Type` is free text, not a database enum. The four odometer readings are
|
|
21
|
-
* fixed and come from LTRPayoutRowImageType, but expense proofs are named
|
|
22
|
-
* after the expense, and those are configured per client — a Postgres enum
|
|
23
|
-
* would need altering every time a client adds one.
|
|
24
|
-
*/
|
|
25
|
-
export interface ILTRPayoutRowImage {
|
|
26
|
-
[LTRPayoutRowImageField.RowImageId]: string;
|
|
27
|
-
[LTRPayoutRowImageField.Group]: ILTRPayoutRowGroup;
|
|
28
|
-
[LTRPayoutRowImageField.GroupId]: string;
|
|
29
|
-
/** `LTRPayoutRowImageType` for odometer shots, else the expense name. */
|
|
30
|
-
[LTRPayoutRowImageField.Type]: string;
|
|
31
|
-
[LTRPayoutRowImageField.Files]: IFile[];
|
|
32
|
-
[LTRPayoutRowImageField.CreatedAt]: Date;
|
|
33
|
-
[LTRPayoutRowImageField.UpdatedAt]: Date;
|
|
34
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export var LTRPayoutRowImageField;
|
|
2
|
-
(function (LTRPayoutRowImageField) {
|
|
3
|
-
LTRPayoutRowImageField["RowImageId"] = "rowImageId";
|
|
4
|
-
LTRPayoutRowImageField["Group"] = "group";
|
|
5
|
-
LTRPayoutRowImageField["GroupId"] = "groupId";
|
|
6
|
-
LTRPayoutRowImageField["Type"] = "type";
|
|
7
|
-
LTRPayoutRowImageField["Files"] = "files";
|
|
8
|
-
LTRPayoutRowImageField["CreatedAt"] = "createdAt";
|
|
9
|
-
LTRPayoutRowImageField["UpdatedAt"] = "updatedAt";
|
|
10
|
-
})(LTRPayoutRowImageField || (LTRPayoutRowImageField = {}));
|
|
11
|
-
//# sourceMappingURL=ltr.payout.row.image.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ltr.payout.row.image.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/ltr.payout.row.image.model.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,sBAQX;AARD,WAAY,sBAAsB;IACjC,mDAAyB,CAAA;IACzB,yCAAe,CAAA;IACf,6CAAmB,CAAA;IACnB,uCAAa,CAAA;IACb,yCAAe,CAAA;IACf,iDAAuB,CAAA;IACvB,iDAAuB,CAAA;AACxB,CAAC,EARW,sBAAsB,KAAtB,sBAAsB,QAQjC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { RetryTaskStatus, RetryTaskType } from '@autologix/shared/enums';
|
|
2
|
-
import { TypedModel } from './typed.model';
|
|
3
|
-
export declare enum RetryTaskField {
|
|
4
|
-
RetryTaskId = "retryTaskId",
|
|
5
|
-
/** Which operation to replay — selects the processor's handler. */
|
|
6
|
-
Type = "type",
|
|
7
|
-
/** Booking the failed operation belongs to (plain id, like AlertFallback). */
|
|
8
|
-
RequestId = "requestId",
|
|
9
|
-
/**
|
|
10
|
-
* Everything the handler needs to replay the operation without re-deriving
|
|
11
|
-
* it (e.g. the duty slip URL + tripId). Recording this at failure time is
|
|
12
|
-
* what lets the processor run off one indexed scan instead of reconstructing
|
|
13
|
-
* failures from activity logs.
|
|
14
|
-
*/
|
|
15
|
-
Payload = "payload",
|
|
16
|
-
Status = "status",
|
|
17
|
-
/** Attempts made so far; bounded by maxAttempts. */
|
|
18
|
-
Attempts = "attempts",
|
|
19
|
-
MaxAttempts = "maxAttempts",
|
|
20
|
-
/** Earliest time the next attempt may run — drives the backoff. */
|
|
21
|
-
NextAttemptAt = "nextAttemptAt",
|
|
22
|
-
/** Why the last attempt failed, for triage. */
|
|
23
|
-
LastError = "lastError",
|
|
24
|
-
CreatedAt = "createdAt",
|
|
25
|
-
UpdatedAt = "updatedAt"
|
|
26
|
-
}
|
|
27
|
-
/** Context for a RetryTaskType.ExtDutySlipUpload row. */
|
|
28
|
-
export interface IExtDutySlipRetryPayload {
|
|
29
|
-
/** Trip whose DutySlipFile / ExtDutyLip need stamping. */
|
|
30
|
-
tripId: string;
|
|
31
|
-
/** Original slip URL from the external trip sheet payload. */
|
|
32
|
-
url: string;
|
|
33
|
-
/** Booking number, used for the upload filename and logging. */
|
|
34
|
-
requestNumber?: string;
|
|
35
|
-
/** HTTP status of the failed download, when the failure was the fetch. */
|
|
36
|
-
httpStatus?: number;
|
|
37
|
-
/**
|
|
38
|
-
* Step that failed: 'download' is MMI's URL being unavailable, 'upload' is
|
|
39
|
-
* our files-service, 'stamp' is the trip write. Lets triage separate
|
|
40
|
-
* unrecoverable sources from transient outages without reading logs.
|
|
41
|
-
*/
|
|
42
|
-
failedAt?: 'download' | 'upload' | 'stamp';
|
|
43
|
-
}
|
|
44
|
-
export interface IRetryTask extends TypedModel {
|
|
45
|
-
[RetryTaskField.RetryTaskId]: string;
|
|
46
|
-
[RetryTaskField.Type]: RetryTaskType;
|
|
47
|
-
[RetryTaskField.RequestId]?: string;
|
|
48
|
-
[RetryTaskField.Payload]?: Record<string, any>;
|
|
49
|
-
[RetryTaskField.Status]: RetryTaskStatus;
|
|
50
|
-
[RetryTaskField.Attempts]: number;
|
|
51
|
-
[RetryTaskField.MaxAttempts]: number;
|
|
52
|
-
[RetryTaskField.NextAttemptAt]: Date;
|
|
53
|
-
[RetryTaskField.LastError]?: string;
|
|
54
|
-
[RetryTaskField.CreatedAt]: Date;
|
|
55
|
-
[RetryTaskField.UpdatedAt]: Date;
|
|
56
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export var RetryTaskField;
|
|
2
|
-
(function (RetryTaskField) {
|
|
3
|
-
RetryTaskField["RetryTaskId"] = "retryTaskId";
|
|
4
|
-
/** Which operation to replay — selects the processor's handler. */
|
|
5
|
-
RetryTaskField["Type"] = "type";
|
|
6
|
-
/** Booking the failed operation belongs to (plain id, like AlertFallback). */
|
|
7
|
-
RetryTaskField["RequestId"] = "requestId";
|
|
8
|
-
/**
|
|
9
|
-
* Everything the handler needs to replay the operation without re-deriving
|
|
10
|
-
* it (e.g. the duty slip URL + tripId). Recording this at failure time is
|
|
11
|
-
* what lets the processor run off one indexed scan instead of reconstructing
|
|
12
|
-
* failures from activity logs.
|
|
13
|
-
*/
|
|
14
|
-
RetryTaskField["Payload"] = "payload";
|
|
15
|
-
RetryTaskField["Status"] = "status";
|
|
16
|
-
/** Attempts made so far; bounded by maxAttempts. */
|
|
17
|
-
RetryTaskField["Attempts"] = "attempts";
|
|
18
|
-
RetryTaskField["MaxAttempts"] = "maxAttempts";
|
|
19
|
-
/** Earliest time the next attempt may run — drives the backoff. */
|
|
20
|
-
RetryTaskField["NextAttemptAt"] = "nextAttemptAt";
|
|
21
|
-
/** Why the last attempt failed, for triage. */
|
|
22
|
-
RetryTaskField["LastError"] = "lastError";
|
|
23
|
-
RetryTaskField["CreatedAt"] = "createdAt";
|
|
24
|
-
RetryTaskField["UpdatedAt"] = "updatedAt";
|
|
25
|
-
})(RetryTaskField || (RetryTaskField = {}));
|
|
26
|
-
//# sourceMappingURL=retry.task.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retry.task.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/retry.task.model.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,cAuBX;AAvBD,WAAY,cAAc;IACzB,6CAA2B,CAAA;IAC3B,mEAAmE;IACnE,+BAAa,CAAA;IACb,8EAA8E;IAC9E,yCAAuB,CAAA;IACvB;;;;;OAKG;IACH,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,oDAAoD;IACpD,uCAAqB,CAAA;IACrB,6CAA2B,CAAA;IAC3B,mEAAmE;IACnE,iDAA+B,CAAA;IAC/B,+CAA+C;IAC/C,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;AACxB,CAAC,EAvBW,cAAc,KAAd,cAAc,QAuBzB"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ITdsConfig } from './tds.config.model';
|
|
2
|
-
import { TypedModel } from './typed.model';
|
|
3
|
-
export declare enum TdsConfigActivityLogField {
|
|
4
|
-
LogId = "logId",
|
|
5
|
-
TdsConfig = "tdsConfig",
|
|
6
|
-
TdsConfigId = "tdsConfigId",
|
|
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 the TDS option master. One row per changed field, carrying the
|
|
18
|
-
* actor, the timestamp and the before/after values — the same shape the master
|
|
19
|
-
* city group and vendor activity logs already use, so the existing log viewers
|
|
20
|
-
* and export code read it without special-casing.
|
|
21
|
-
*/
|
|
22
|
-
export interface ITdsConfigActivityLog extends TypedModel {
|
|
23
|
-
[TdsConfigActivityLogField.LogId]: string;
|
|
24
|
-
[TdsConfigActivityLogField.TdsConfig]: ITdsConfig;
|
|
25
|
-
[TdsConfigActivityLogField.TdsConfigId]: string;
|
|
26
|
-
[TdsConfigActivityLogField.Date]: Date;
|
|
27
|
-
[TdsConfigActivityLogField.Field]: string;
|
|
28
|
-
[TdsConfigActivityLogField.OldValue]: string;
|
|
29
|
-
[TdsConfigActivityLogField.NewValue]: string;
|
|
30
|
-
[TdsConfigActivityLogField.EditedBy]: string;
|
|
31
|
-
[TdsConfigActivityLogField.Action]: string;
|
|
32
|
-
[TdsConfigActivityLogField.EditedByPhone]: string;
|
|
33
|
-
[TdsConfigActivityLogField.EditedByEmail]: string;
|
|
34
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export var TdsConfigActivityLogField;
|
|
2
|
-
(function (TdsConfigActivityLogField) {
|
|
3
|
-
TdsConfigActivityLogField["LogId"] = "logId";
|
|
4
|
-
TdsConfigActivityLogField["TdsConfig"] = "tdsConfig";
|
|
5
|
-
TdsConfigActivityLogField["TdsConfigId"] = "tdsConfigId";
|
|
6
|
-
TdsConfigActivityLogField["Date"] = "date";
|
|
7
|
-
TdsConfigActivityLogField["Field"] = "field";
|
|
8
|
-
TdsConfigActivityLogField["OldValue"] = "old";
|
|
9
|
-
TdsConfigActivityLogField["NewValue"] = "new";
|
|
10
|
-
TdsConfigActivityLogField["EditedBy"] = "editedBy";
|
|
11
|
-
TdsConfigActivityLogField["Action"] = "action";
|
|
12
|
-
TdsConfigActivityLogField["EditedByPhone"] = "edPhone";
|
|
13
|
-
TdsConfigActivityLogField["EditedByEmail"] = "edEmail";
|
|
14
|
-
})(TdsConfigActivityLogField || (TdsConfigActivityLogField = {}));
|
|
15
|
-
//# sourceMappingURL=tds.config.activity.log.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tds.config.activity.log.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/tds.config.activity.log.model.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,yBAYX;AAZD,WAAY,yBAAyB;IACpC,4CAAe,CAAA;IACf,oDAAuB,CAAA;IACvB,wDAA2B,CAAA;IAC3B,0CAAa,CAAA;IACb,4CAAe,CAAA;IACf,6CAAgB,CAAA;IAChB,6CAAgB,CAAA;IAChB,kDAAqB,CAAA;IACrB,8CAAiB,CAAA;IACjB,sDAAyB,CAAA;IACzB,sDAAyB,CAAA;AAC1B,CAAC,EAZW,yBAAyB,KAAzB,yBAAyB,QAYpC"}
|