@autologix-engineering/shared 1.2.354 → 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/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,51 +0,0 @@
|
|
|
1
|
-
import { LTRPayoutSignOffMethod } from '../../enums/src/index';
|
|
2
|
-
/**
|
|
3
|
-
* Monthly sign-off: settles the signing driver's days for one month on one
|
|
4
|
-
* booking, in a single action. (AD-3206)
|
|
5
|
-
*
|
|
6
|
-
* Distinct from the daily sign-off, which settles one entry, and from the
|
|
7
|
-
* payout-wide sign-off on LTRPayout, which settles the whole booking for the
|
|
8
|
-
* client. This one is scoped to the driver: it must not sign or lock another
|
|
9
|
-
* driver's days in the same month.
|
|
10
|
-
*
|
|
11
|
-
* The app sends no totals.
|
|
12
|
-
*/
|
|
13
|
-
export declare class SignOffLTRPayoutMonthDTO {
|
|
14
|
-
requestId: string;
|
|
15
|
-
/** The signing driver. Only his own days are signed and locked. */
|
|
16
|
-
registeredUserId: string;
|
|
17
|
-
/** The month being signed off, as `YYYY-MM`. */
|
|
18
|
-
month: string;
|
|
19
|
-
/**
|
|
20
|
-
* Acknowledgement that the driver accepted the incomplete-days warning.
|
|
21
|
-
*
|
|
22
|
-
* The first call omits it. If the driver has missing or draft days the
|
|
23
|
-
* request is refused with those days listed and **nothing is written** —
|
|
24
|
-
* the app then shows the warning with Cancel and Proceed, and only a
|
|
25
|
-
* Proceed re-sends the same request with this set.
|
|
26
|
-
*
|
|
27
|
-
* With no incomplete days the flag is irrelevant and the first call signs.
|
|
28
|
-
*/
|
|
29
|
-
proceed?: boolean;
|
|
30
|
-
/** How the renter confirmed the month. Defaults to a signature. */
|
|
31
|
-
signOffMethod?: LTRPayoutSignOffMethod;
|
|
32
|
-
/**
|
|
33
|
-
* The renter's signature, already uploaded through the files service —
|
|
34
|
-
* the same upload the daily sign-off uses.
|
|
35
|
-
*/
|
|
36
|
-
signatureImageUrl?: string;
|
|
37
|
-
/**
|
|
38
|
-
* The verification code, when the client's confirmation rule requires one.
|
|
39
|
-
*
|
|
40
|
-
* This is the driver's own login OTP, requested through the gatekeeper's
|
|
41
|
-
* `send_2fa_otp` endpoint and delivered to their registered phone. Ignored
|
|
42
|
-
* when the client requires no code.
|
|
43
|
-
*/
|
|
44
|
-
otp?: string;
|
|
45
|
-
/**
|
|
46
|
-
* The driver chose "Skip OTP". Honoured only when the client's config sets
|
|
47
|
-
* `allowSkipOtp`; a client that forbids skipping refuses the sign-off.
|
|
48
|
-
*/
|
|
49
|
-
skipOtp?: boolean;
|
|
50
|
-
constructor(obj?: Partial<SignOffLTRPayoutMonthDTO>);
|
|
51
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { IsBoolean, IsEnum, IsOptional, IsString, IsUUID, Matches, } from 'class-validator';
|
|
3
|
-
import { LTRPayoutSignOffMethod } from '../../enums/src/index';
|
|
4
|
-
/**
|
|
5
|
-
* Monthly sign-off: settles the signing driver's days for one month on one
|
|
6
|
-
* booking, in a single action. (AD-3206)
|
|
7
|
-
*
|
|
8
|
-
* Distinct from the daily sign-off, which settles one entry, and from the
|
|
9
|
-
* payout-wide sign-off on LTRPayout, which settles the whole booking for the
|
|
10
|
-
* client. This one is scoped to the driver: it must not sign or lock another
|
|
11
|
-
* driver's days in the same month.
|
|
12
|
-
*
|
|
13
|
-
* The app sends no totals.
|
|
14
|
-
*/
|
|
15
|
-
export class SignOffLTRPayoutMonthDTO {
|
|
16
|
-
constructor(obj) {
|
|
17
|
-
Object.assign(this, obj);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
__decorate([
|
|
21
|
-
IsUUID(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], SignOffLTRPayoutMonthDTO.prototype, "requestId", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
IsUUID(4),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], SignOffLTRPayoutMonthDTO.prototype, "registeredUserId", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
Matches(/^\d{4}-(0[1-9]|1[0-2])$/, {
|
|
30
|
-
message: 'month must be in YYYY-MM format',
|
|
31
|
-
}),
|
|
32
|
-
IsString(),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], SignOffLTRPayoutMonthDTO.prototype, "month", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
IsOptional(),
|
|
37
|
-
IsBoolean(),
|
|
38
|
-
__metadata("design:type", Boolean)
|
|
39
|
-
], SignOffLTRPayoutMonthDTO.prototype, "proceed", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
IsOptional(),
|
|
42
|
-
IsEnum(LTRPayoutSignOffMethod),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], SignOffLTRPayoutMonthDTO.prototype, "signOffMethod", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
IsOptional(),
|
|
47
|
-
IsString(),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], SignOffLTRPayoutMonthDTO.prototype, "signatureImageUrl", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
IsOptional(),
|
|
52
|
-
IsString(),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], SignOffLTRPayoutMonthDTO.prototype, "otp", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
IsOptional(),
|
|
57
|
-
IsBoolean(),
|
|
58
|
-
__metadata("design:type", Boolean)
|
|
59
|
-
], SignOffLTRPayoutMonthDTO.prototype, "skipOtp", void 0);
|
|
60
|
-
//# sourceMappingURL=sign.off.ltr.payout.month.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sign.off.ltr.payout.month.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/sign.off.ltr.payout.month.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,SAAS,EACT,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,EACN,OAAO,GACP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D;;;;;;;;;;GAUG;AACH,MAAM,OAAO,wBAAwB;IA6DpC,YAAY,GAAuC;QAClD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;CACD;AA9DA;IADC,MAAM,EAAE;;2DACS;AAIlB;IADC,MAAM,CAAC,CAAC,CAAC;;kEACe;AAOzB;IAJC,OAAO,CAAC,yBAAyB,EAAE;QACnC,OAAO,EAAE,iCAAiC;KAC1C,CAAC;IACD,QAAQ,EAAE;;uDACG;AAcd;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;yDACM;AAKlB;IAFC,UAAU,EAAE;IACZ,MAAM,CAAC,sBAAsB,CAAC;;+DACQ;AAQvC;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;mEACgB;AAW3B;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;qDACE;AAQb;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;yDACM"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { IsBoolean, IsEnum, IsOptional, IsUUID } from 'class-validator';
|
|
3
|
-
import { TripAuthType } from '../../enums/src/trip.auth.type.enum';
|
|
4
|
-
export class UpdateLTRLogConfirmationConfigDTO {
|
|
5
|
-
}
|
|
6
|
-
__decorate([
|
|
7
|
-
IsUUID(),
|
|
8
|
-
__metadata("design:type", String)
|
|
9
|
-
], UpdateLTRLogConfirmationConfigDTO.prototype, "clientPersonaId", void 0);
|
|
10
|
-
__decorate([
|
|
11
|
-
IsOptional(),
|
|
12
|
-
IsEnum(TripAuthType),
|
|
13
|
-
__metadata("design:type", String)
|
|
14
|
-
], UpdateLTRLogConfirmationConfigDTO.prototype, "confirmationType", void 0);
|
|
15
|
-
__decorate([
|
|
16
|
-
IsOptional(),
|
|
17
|
-
IsBoolean(),
|
|
18
|
-
__metadata("design:type", Boolean)
|
|
19
|
-
], UpdateLTRLogConfirmationConfigDTO.prototype, "allowSkipOtp", void 0);
|
|
20
|
-
//# sourceMappingURL=update.ltr.log.confirmation.config.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update.ltr.log.confirmation.config.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/update.ltr.log.confirmation.config.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,MAAM,OAAO,iCAAiC;CAc7C;AAZA;IADC,MAAM,EAAE;;0EACe;AAKxB;IAFC,UAAU,EAAE;IACZ,MAAM,CAAC,YAAY,CAAC;;2EACU;AAM/B;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;uEACU"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AddLTRPayoutRowsDTO } from './add.ltr.payout.rows.dto';
|
|
2
|
-
/**
|
|
3
|
-
* An edit to one entry already made in the LTR driver app.
|
|
4
|
-
*
|
|
5
|
-
* Carries the same fields as the original entry — the payload replaces it
|
|
6
|
-
* wholesale rather than patching individual fields, so the app sends the
|
|
7
|
-
* complete state it wants the entry to end up in.
|
|
8
|
-
*
|
|
9
|
-
* Only the identified group's rows are touched. Every other entry on the
|
|
10
|
-
* booking, and its rows, are left exactly as they are.
|
|
11
|
-
*/
|
|
12
|
-
export declare class UpdateLTRPayoutRowsDTO extends AddLTRPayoutRowsDTO {
|
|
13
|
-
/**
|
|
14
|
-
* The entry being edited. Must belong to `requestId`, must have been
|
|
15
|
-
* created in the driver app, and must not already be signed.
|
|
16
|
-
*/
|
|
17
|
-
rowGroupId: string;
|
|
18
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { IsUUID } from 'class-validator';
|
|
3
|
-
import { AddLTRPayoutRowsDTO } from './add.ltr.payout.rows.dto';
|
|
4
|
-
/**
|
|
5
|
-
* An edit to one entry already made in the LTR driver app.
|
|
6
|
-
*
|
|
7
|
-
* Carries the same fields as the original entry — the payload replaces it
|
|
8
|
-
* wholesale rather than patching individual fields, so the app sends the
|
|
9
|
-
* complete state it wants the entry to end up in.
|
|
10
|
-
*
|
|
11
|
-
* Only the identified group's rows are touched. Every other entry on the
|
|
12
|
-
* booking, and its rows, are left exactly as they are.
|
|
13
|
-
*/
|
|
14
|
-
export class UpdateLTRPayoutRowsDTO extends AddLTRPayoutRowsDTO {
|
|
15
|
-
}
|
|
16
|
-
__decorate([
|
|
17
|
-
IsUUID(),
|
|
18
|
-
__metadata("design:type", String)
|
|
19
|
-
], UpdateLTRPayoutRowsDTO.prototype, "rowGroupId", void 0);
|
|
20
|
-
//# sourceMappingURL=update.ltr.payout.rows.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update.ltr.payout.rows.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/update.ltr.payout.rows.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;;;;;;;;GASG;AACH,MAAM,OAAO,sBAAuB,SAAQ,mBAAmB;CAO9D;AADA;IADC,MAAM,EAAE;;0DACU"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lifecycle of a BA payout draft.
|
|
3
|
-
*
|
|
4
|
-
* Deliberately NOT folded into `ProgressStatus`: that enum backs
|
|
5
|
-
* `BAPayoutSummary.status` and several unrelated tables, so widening it would
|
|
6
|
-
* change the Postgres enum type for every consumer. A draft is a separate
|
|
7
|
-
* record that never becomes a summary — it is consumed by one.
|
|
8
|
-
*/
|
|
9
|
-
export declare enum BAPayoutDraftStatus {
|
|
10
|
-
Draft = "Draft",
|
|
11
|
-
Consumed = "Consumed",
|
|
12
|
-
Discarded = "Discarded"
|
|
13
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lifecycle of a BA payout draft.
|
|
3
|
-
*
|
|
4
|
-
* Deliberately NOT folded into `ProgressStatus`: that enum backs
|
|
5
|
-
* `BAPayoutSummary.status` and several unrelated tables, so widening it would
|
|
6
|
-
* change the Postgres enum type for every consumer. A draft is a separate
|
|
7
|
-
* record that never becomes a summary — it is consumed by one.
|
|
8
|
-
*/
|
|
9
|
-
export var BAPayoutDraftStatus;
|
|
10
|
-
(function (BAPayoutDraftStatus) {
|
|
11
|
-
BAPayoutDraftStatus["Draft"] = "Draft";
|
|
12
|
-
BAPayoutDraftStatus["Consumed"] = "Consumed";
|
|
13
|
-
BAPayoutDraftStatus["Discarded"] = "Discarded";
|
|
14
|
-
})(BAPayoutDraftStatus || (BAPayoutDraftStatus = {}));
|
|
15
|
-
//# sourceMappingURL=ba.payout.draft.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ba.payout.draft.enum.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/ba.payout.draft.enum.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,sCAAe,CAAA;IACf,4CAAqB,CAAA;IACrB,8CAAuB,CAAA;AACxB,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ltr.font.enum.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/ltr.font.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACrB,iCAAmB,CAAA;IACnB,oCAAsB,CAAA;IACtB,6BAAe,CAAA;AAChB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB"}
|
|
@@ -1,67 +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 declare enum LTRPayoutStatus {
|
|
9
|
-
Pending = "pending",
|
|
10
|
-
Draft = "draft",
|
|
11
|
-
Unsigned = "unsigned",
|
|
12
|
-
Signed = "signed",
|
|
13
|
-
Locked = "locked"
|
|
14
|
-
}
|
|
15
|
-
export declare enum LTRPayoutSignOffMethod {
|
|
16
|
-
OTP = "otp",
|
|
17
|
-
Signature = "signature",
|
|
18
|
-
Both = "both",
|
|
19
|
-
None = "none"
|
|
20
|
-
}
|
|
21
|
-
/** Only set while the payout is in `LTRPayoutStatus.Locked`. */
|
|
22
|
-
export declare enum LTRPayoutLockedReason {
|
|
23
|
-
ExcelUploaded = "excel-uploaded",
|
|
24
|
-
Validated = "validated"
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* What an image attached to an entry depicts.
|
|
28
|
-
*
|
|
29
|
-
* The four odometer readings are fixed and are the only values the driver app
|
|
30
|
-
* sends today. Expense proofs carry the expense's own name, which is
|
|
31
|
-
* configurable per client, so the stored column is free text rather than a
|
|
32
|
-
* database enum — see LTRPayoutRowImageField.Type.
|
|
33
|
-
*/
|
|
34
|
-
export declare enum LTRPayoutRowImageType {
|
|
35
|
-
StartKM = "startKm",
|
|
36
|
-
EndKM = "endKm",
|
|
37
|
-
GarageStartKM = "garageStartKm",
|
|
38
|
-
GarageReturnKM = "garageReturnKm"
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Where an entry came from. Drives editability in the LTR driver app: only
|
|
42
|
-
* entries the driver made there can be edited from there.
|
|
43
|
-
*
|
|
44
|
-
* Rows written before LTRPayoutRowGroup existed have no group and so no source
|
|
45
|
-
* at all. They are treated as admin-entered rather than assumed to be the
|
|
46
|
-
* driver's — every row predating it came from an Excel upload or the webapp.
|
|
47
|
-
*/
|
|
48
|
-
export declare enum LTRPayoutRowSource {
|
|
49
|
-
/** Entered by the driver in the LTR mobile app. The only editable case. */
|
|
50
|
-
DriverApp = "driverApp",
|
|
51
|
-
/** Typed into the webapp by an operations user. */
|
|
52
|
-
WebApp = "webApp",
|
|
53
|
-
/** Created by the payout Excel upload. */
|
|
54
|
-
Upload = "upload"
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Which date the driver app's entry list is ordered by.
|
|
58
|
-
*
|
|
59
|
-
* Both are already derived per entry from its rows: `StartDate` is the
|
|
60
|
-
* earliest duty or garage start across them, `EndDate` the latest end. They
|
|
61
|
-
* are not interchangeable once entries span several days — a 27th-29th entry
|
|
62
|
-
* sorts above a 28th-only one by start, and below it by end.
|
|
63
|
-
*/
|
|
64
|
-
export declare enum LTRDriverPayoutSortKey {
|
|
65
|
-
StartDate = "startDate",
|
|
66
|
-
EndDate = "endDate"
|
|
67
|
-
}
|
|
@@ -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,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,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;
|