@autologix-engineering/shared 1.2.363 → 1.2.365
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/data-transfer-objects/src/add.ltr.payout.rows.dto.d.ts +12 -0
- package/src/lib/data-transfer-objects/src/add.ltr.payout.rows.dto.js +10 -1
- package/src/lib/data-transfer-objects/src/add.ltr.payout.rows.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/check.business.associate.payout.base.data.dto.d.ts +14 -0
- package/src/lib/data-transfer-objects/src/check.business.associate.payout.base.data.dto.js +27 -0
- package/src/lib/data-transfer-objects/src/check.business.associate.payout.base.data.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/check.spot.vehicle.compliance.dto.d.ts +14 -0
- package/src/lib/data-transfer-objects/src/check.spot.vehicle.compliance.dto.js +27 -0
- package/src/lib/data-transfer-objects/src/check.spot.vehicle.compliance.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/create.report.dto.d.ts +2 -1
- package/src/lib/data-transfer-objects/src/create.report.dto.js +7 -1
- package/src/lib/data-transfer-objects/src/create.report.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/gatekeeper/send.email.login.otp.dto.d.ts +16 -0
- package/src/lib/data-transfer-objects/src/get.ext.rate.card.dto.d.ts +40 -0
- package/src/lib/data-transfer-objects/src/get.ext.rate.card.dto.js +75 -0
- package/src/lib/data-transfer-objects/src/get.ext.rate.card.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.d.ts +13 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.js +5 -0
- package/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/get.ltr.sign.off.config.dto.d.ts +9 -0
- package/src/lib/data-transfer-objects/src/get.ltr.sign.off.config.dto.js +4 -0
- package/src/lib/data-transfer-objects/src/get.ltr.sign.off.config.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/get.spot.vehicle.compliance.checks.dto.d.ts +10 -0
- package/src/lib/data-transfer-objects/src/get.spot.vehicle.compliance.checks.dto.js +45 -0
- package/src/lib/data-transfer-objects/src/get.spot.vehicle.compliance.checks.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/get.vehicle.compliance.report.dto.d.ts +21 -0
- package/src/lib/data-transfer-objects/src/get.vehicle.compliance.report.dto.js +68 -0
- package/src/lib/data-transfer-objects/src/get.vehicle.compliance.report.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/index.d.ts +7 -0
- package/src/lib/data-transfer-objects/src/index.js +7 -0
- package/src/lib/data-transfer-objects/src/index.js.map +1 -1
- package/src/lib/data-transfer-objects/src/set.vehicle.compliance.override.dto.d.ts +24 -0
- package/src/lib/data-transfer-objects/src/set.vehicle.compliance.override.dto.js +41 -0
- package/src/lib/data-transfer-objects/src/set.vehicle.compliance.override.dto.js.map +1 -0
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.month.dto.d.ts +14 -0
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.month.dto.js +7 -1
- package/src/lib/data-transfer-objects/src/sign.off.ltr.payout.month.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/submit.ltr.payout.rows.dto.d.ts +15 -0
- package/src/lib/data-transfer-objects/src/submit.ltr.payout.rows.dto.js +5 -0
- package/src/lib/data-transfer-objects/src/submit.ltr.payout.rows.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/update.global.config.dto.d.ts +2 -0
- package/src/lib/data-transfer-objects/src/update.global.config.dto.js +10 -0
- package/src/lib/data-transfer-objects/src/update.global.config.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/update.safety.and.compliance.config.dto.d.ts +12 -0
- package/src/lib/data-transfer-objects/src/update.safety.and.compliance.config.dto.js +15 -1
- package/src/lib/data-transfer-objects/src/update.safety.and.compliance.config.dto.js.map +1 -1
- package/src/lib/data-transfer-objects/src/verify.vehicle.compliance.dto.d.ts +13 -0
- package/src/lib/data-transfer-objects/src/verify.vehicle.compliance.dto.js +21 -0
- package/src/lib/data-transfer-objects/src/verify.vehicle.compliance.dto.js.map +1 -0
- package/src/lib/date-utils/src/index.d.ts +1 -0
- package/src/lib/date-utils/src/index.js +1 -0
- package/src/lib/date-utils/src/index.js.map +1 -1
- package/src/lib/date-utils/src/zoop.date.d.ts +61 -0
- package/src/lib/date-utils/src/zoop.date.js +154 -0
- package/src/lib/date-utils/src/zoop.date.js.map +1 -0
- package/src/lib/enums/src/command.type.enum.d.ts +6 -0
- package/src/lib/enums/src/command.type.enum.js +6 -0
- package/src/lib/enums/src/command.type.enum.js.map +1 -1
- package/src/lib/enums/src/index.d.ts +1 -0
- package/src/lib/enums/src/index.js +1 -0
- package/src/lib/enums/src/index.js.map +1 -1
- package/src/lib/enums/src/model.enum.d.ts +2 -0
- package/src/lib/enums/src/model.enum.js +2 -0
- package/src/lib/enums/src/model.enum.js.map +1 -1
- package/src/lib/enums/src/query.type.enum.d.ts +5 -0
- package/src/lib/enums/src/query.type.enum.js +5 -0
- package/src/lib/enums/src/query.type.enum.js.map +1 -1
- package/src/lib/enums/src/vehicle.compliance.enum.d.ts +133 -0
- package/src/lib/enums/src/vehicle.compliance.enum.js +190 -0
- package/src/lib/enums/src/vehicle.compliance.enum.js.map +1 -0
- package/src/lib/models/src/ba.payout.draft.model.d.ts +53 -0
- package/src/lib/models/src/ba.payout.draft.model.js +15 -0
- package/src/lib/models/src/ba.payout.draft.model.js.map +1 -1
- package/src/lib/models/src/configurations.model.d.ts +20 -1
- package/src/lib/models/src/configurations.model.js +15 -0
- package/src/lib/models/src/configurations.model.js.map +1 -1
- package/src/lib/models/src/index.d.ts +2 -0
- package/src/lib/models/src/index.js +2 -0
- package/src/lib/models/src/index.js.map +1 -1
- package/src/lib/models/src/ltr.sign.off.otp.model.d.ts +40 -0
- package/src/lib/models/src/ltr.sign.off.otp.model.js +17 -0
- package/src/lib/models/src/ltr.sign.off.otp.model.js.map +1 -0
- package/src/lib/models/src/spot.vehicle.compliance.check.model.d.ts +57 -0
- package/src/lib/models/src/spot.vehicle.compliance.check.model.js +24 -0
- package/src/lib/models/src/spot.vehicle.compliance.check.model.js.map +1 -0
- package/src/lib/models/src/vehicle.association.file.model.d.ts +26 -2
- package/src/lib/models/src/vehicle.association.file.model.js +27 -0
- package/src/lib/models/src/vehicle.association.file.model.js.map +1 -1
- package/src/lib/models/src/vehicle.association.model.d.ts +7 -1
- package/src/lib/models/src/vehicle.association.model.js +9 -0
- package/src/lib/models/src/vehicle.association.model.js.map +1 -1
- package/src/lib/routes/src/command.registry.routes.d.ts +5 -0
- package/src/lib/routes/src/command.registry.routes.js +5 -0
- package/src/lib/routes/src/command.registry.routes.js.map +1 -1
- package/src/lib/routes/src/query.service.routes.d.ts +4 -0
- package/src/lib/routes/src/query.service.routes.js +4 -0
- package/src/lib/routes/src/query.service.routes.js.map +1 -1
- package/src/lib/utilities/src/index.d.ts +1 -0
- package/src/lib/utilities/src/index.js +1 -0
- package/src/lib/utilities/src/index.js.map +1 -1
- package/src/lib/utilities/src/map.compliance.from.rc.d.ts +51 -0
- package/src/lib/utilities/src/map.compliance.from.rc.js +65 -0
- package/src/lib/utilities/src/map.compliance.from.rc.js.map +1 -0
- package/src/lib/view-models/src/ext.rate.card.d.ts +114 -0
- package/src/lib/view-models/src/ext.rate.card.js +9 -0
- package/src/lib/view-models/src/ext.rate.card.js.map +1 -0
- package/src/lib/view-models/src/index.d.ts +1 -0
- package/src/lib/view-models/src/index.js +1 -0
- package/src/lib/view-models/src/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -51,6 +51,18 @@ export declare class AddLTRPayoutRowsDTO {
|
|
|
51
51
|
garageReturnKM?: number;
|
|
52
52
|
startKM?: number;
|
|
53
53
|
endKM?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Dates within this entry the driver marked as a weekly off, `dd/MM/yyyy`.
|
|
56
|
+
*
|
|
57
|
+
* An entry spanning 01/09 to 10/09 may mark any subset — say 04/09, 07/09
|
|
58
|
+
* and 10/09 — and only those rows carry the flag. Dates outside the entry
|
|
59
|
+
* match no row and are ignored.
|
|
60
|
+
*
|
|
61
|
+
* The charge is not sent: the payout calculation prices the flag and
|
|
62
|
+
* enforces the vehicle's per-week off-day limit, exactly as the webapp
|
|
63
|
+
* path does.
|
|
64
|
+
*/
|
|
65
|
+
weeklyOffDates?: string[];
|
|
54
66
|
/**
|
|
55
67
|
* Photos grouped by what they depict. Stored against the group rather than
|
|
56
68
|
* the rows, so attaching one later does not rewrite the booking's payout.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { IsBoolean, IsInt, IsNumber, IsOptional, IsString, IsUUID, Matches, Min, ValidateIf, ValidateNested, } from 'class-validator';
|
|
2
|
+
import { IsArray, IsBoolean, IsInt, IsNumber, IsOptional, IsString, IsUUID, Matches, Min, ValidateIf, ValidateNested, } from 'class-validator';
|
|
3
3
|
import { Transform, Type } from 'class-transformer';
|
|
4
4
|
/** `dd/MM/yyyy HH:mm` — the format the payout rows already store. */
|
|
5
5
|
const DISPLAY_DATE_TIME = /^\d{2}\/\d{2}\/\d{4}\s\d{2}:\d{2}$/;
|
|
@@ -100,6 +100,15 @@ __decorate([
|
|
|
100
100
|
IsNumber(),
|
|
101
101
|
__metadata("design:type", Number)
|
|
102
102
|
], AddLTRPayoutRowsDTO.prototype, "endKM", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
IsOptional(),
|
|
105
|
+
IsArray(),
|
|
106
|
+
Matches(/^\d{2}\/\d{2}\/\d{4}$/, {
|
|
107
|
+
each: true,
|
|
108
|
+
message: 'weeklyOffDates entries must be dd/MM/yyyy',
|
|
109
|
+
}),
|
|
110
|
+
__metadata("design:type", Array)
|
|
111
|
+
], AddLTRPayoutRowsDTO.prototype, "weeklyOffDates", void 0);
|
|
103
112
|
__decorate([
|
|
104
113
|
IsOptional(),
|
|
105
114
|
ValidateNested({ each: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.ltr.payout.rows.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/add.ltr.payout.rows.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,SAAS,EACT,KAAK,EACL,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,MAAM,EACN,OAAO,EACP,GAAG,EACH,UAAU,EACV,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEpD,qEAAqE;AACrE,MAAM,iBAAiB,GAAG,oCAAoC,CAAC;AAE/D,0EAA0E;AAC1E,MAAM,OAAO,uBAAuB;CAUnC;AAJA;IADC,QAAQ,EAAE;;qDACE;AAGb;IADC,MAAM,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;wDACV;AAGnB;;;;;;;;GAQG;AACH,MAAM,OAAO,mBAAmB;
|
|
1
|
+
{"version":3,"file":"add.ltr.payout.rows.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/add.ltr.payout.rows.dto.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ask whether the system-generated base data behind a period's open BA payout
|
|
3
|
+
* draft has moved since that draft was last saved (AD-3227 addendum).
|
|
4
|
+
*
|
|
5
|
+
* Deliberately keyed on (context, time period) and not on a draft id: the UI
|
|
6
|
+
* asks this question on Resume, on Save as Draft and on Generate Payout, and at
|
|
7
|
+
* two of those three points it holds a period but not necessarily a draft id.
|
|
8
|
+
* The one open draft per period is unique, so the period is enough.
|
|
9
|
+
*/
|
|
10
|
+
export declare class CheckBusinessAssociatePayoutBaseDataDTO {
|
|
11
|
+
contextId: string;
|
|
12
|
+
timePeriodId: string;
|
|
13
|
+
constructor(obj?: Partial<CheckBusinessAssociatePayoutBaseDataDTO>);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { IsNotEmpty, IsUUID } from 'class-validator';
|
|
3
|
+
/**
|
|
4
|
+
* Ask whether the system-generated base data behind a period's open BA payout
|
|
5
|
+
* draft has moved since that draft was last saved (AD-3227 addendum).
|
|
6
|
+
*
|
|
7
|
+
* Deliberately keyed on (context, time period) and not on a draft id: the UI
|
|
8
|
+
* asks this question on Resume, on Save as Draft and on Generate Payout, and at
|
|
9
|
+
* two of those three points it holds a period but not necessarily a draft id.
|
|
10
|
+
* The one open draft per period is unique, so the period is enough.
|
|
11
|
+
*/
|
|
12
|
+
export class CheckBusinessAssociatePayoutBaseDataDTO {
|
|
13
|
+
constructor(obj) {
|
|
14
|
+
Object.assign(this, obj);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
IsUUID(),
|
|
19
|
+
IsNotEmpty(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CheckBusinessAssociatePayoutBaseDataDTO.prototype, "contextId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
IsUUID(),
|
|
24
|
+
IsNotEmpty(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CheckBusinessAssociatePayoutBaseDataDTO.prototype, "timePeriodId", void 0);
|
|
27
|
+
//# sourceMappingURL=check.business.associate.payout.base.data.dto.js.map
|
package/src/lib/data-transfer-objects/src/check.business.associate.payout.base.data.dto.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check.business.associate.payout.base.data.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/check.business.associate.payout.base.data.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAErD;;;;;;;;GAQG;AACH,MAAM,OAAO,uCAAuC;IASnD,YAAY,GAAsD;QACjE,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;CACD;AATA;IAFC,MAAM,EAAE;IACR,UAAU,EAAE;;0EACK;AAIlB;IAFC,MAAM,EAAE;IACR,UAAU,EAAE;;6EACQ"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AD-3140 §12 — check a spot-hire vehicle's actual registration number.
|
|
3
|
+
*
|
|
4
|
+
* No format validation on the number beyond a length bound. Spot vehicles come
|
|
5
|
+
* from operators across states, including new-series and BH-series plates, and
|
|
6
|
+
* a client-side pattern that rejects a valid plate would block the branch team
|
|
7
|
+
* from checking the car sitting in front of them. The provider is the authority
|
|
8
|
+
* on whether a number resolves.
|
|
9
|
+
*/
|
|
10
|
+
export declare class CheckSpotVehicleComplianceDTO {
|
|
11
|
+
bsnsContextId: string;
|
|
12
|
+
registrationNumber: string;
|
|
13
|
+
constructor(obj?: Partial<CheckSpotVehicleComplianceDTO>);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { IsNotEmpty, IsString, IsUUID, MaxLength } from 'class-validator';
|
|
3
|
+
/**
|
|
4
|
+
* AD-3140 §12 — check a spot-hire vehicle's actual registration number.
|
|
5
|
+
*
|
|
6
|
+
* No format validation on the number beyond a length bound. Spot vehicles come
|
|
7
|
+
* from operators across states, including new-series and BH-series plates, and
|
|
8
|
+
* a client-side pattern that rejects a valid plate would block the branch team
|
|
9
|
+
* from checking the car sitting in front of them. The provider is the authority
|
|
10
|
+
* on whether a number resolves.
|
|
11
|
+
*/
|
|
12
|
+
export class CheckSpotVehicleComplianceDTO {
|
|
13
|
+
constructor(obj) {
|
|
14
|
+
Object.assign(this, obj);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
IsUUID(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], CheckSpotVehicleComplianceDTO.prototype, "bsnsContextId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
IsString(),
|
|
23
|
+
IsNotEmpty(),
|
|
24
|
+
MaxLength(32),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CheckSpotVehicleComplianceDTO.prototype, "registrationNumber", void 0);
|
|
27
|
+
//# sourceMappingURL=check.spot.vehicle.compliance.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check.spot.vehicle.compliance.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/check.spot.vehicle.compliance.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE1E;;;;;;;;GAQG;AACH,MAAM,OAAO,6BAA6B;IASzC,YAAY,GAA4C;QACvD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;CACD;AAVA;IADC,MAAM,EAAE;;oEACa;AAKtB;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,EAAE,CAAC;;yEACa"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReportDateType, ReportFileType, ReportModuleType } from '../../enums/src/index';
|
|
1
|
+
import { ReportDateType, ReportFileType, ReportModuleType, VehicleOwnershipType } from '../../enums/src/index';
|
|
2
2
|
export declare class CreateReportDTO {
|
|
3
3
|
contextId: string;
|
|
4
4
|
dateType?: ReportDateType;
|
|
@@ -10,6 +10,7 @@ export declare class CreateReportDTO {
|
|
|
10
10
|
garageIds?: string[];
|
|
11
11
|
clientPersonaIds?: string[];
|
|
12
12
|
clientGroup?: string[];
|
|
13
|
+
bizTypes?: VehicleOwnershipType[];
|
|
13
14
|
type?: ReportFileType;
|
|
14
15
|
createdById?: string;
|
|
15
16
|
constructor(obj?: Partial<CreateReportDTO>);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
2
|
import { IsArray, IsDateString, IsEnum, IsOptional, IsString, IsUUID, } from 'class-validator';
|
|
3
|
-
import { ReportDateType, ReportFileType, ReportModuleType, } from '../../enums/src/index';
|
|
3
|
+
import { ReportDateType, ReportFileType, ReportModuleType, VehicleOwnershipType, } from '../../enums/src/index';
|
|
4
4
|
export class CreateReportDTO {
|
|
5
5
|
constructor(obj) {
|
|
6
6
|
Object.assign(this, obj);
|
|
@@ -55,6 +55,12 @@ __decorate([
|
|
|
55
55
|
IsString({ each: true }),
|
|
56
56
|
__metadata("design:type", Array)
|
|
57
57
|
], CreateReportDTO.prototype, "clientGroup", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
IsOptional(),
|
|
60
|
+
IsArray(),
|
|
61
|
+
IsEnum(VehicleOwnershipType, { each: true }),
|
|
62
|
+
__metadata("design:type", Array)
|
|
63
|
+
], CreateReportDTO.prototype, "bizTypes", void 0);
|
|
58
64
|
__decorate([
|
|
59
65
|
IsOptional(),
|
|
60
66
|
IsEnum(ReportFileType),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.report.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/create.report.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,OAAO,EACP,YAAY,EACZ,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,GACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,cAAc,EACd,cAAc,EACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"create.report.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/create.report.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,OAAO,EACP,YAAY,EACZ,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,GACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,oBAAoB,GACpB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,OAAO,eAAe;IAqD3B,YAAY,GAA8B;QACzC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;CACD;AAtDA;IADC,MAAM,EAAE;;kDACS;AAIlB;IAFC,UAAU,EAAE;IACZ,MAAM,CAAC,cAAc,CAAC;;iDACG;AAG1B;IADC,MAAM,CAAC,gBAAgB,CAAC;;mDACI;AAG7B;IADC,QAAQ,EAAE;;mDACQ;AAGnB;IADC,YAAY,EAAE;;iDACE;AAGjB;IADC,YAAY,EAAE;;+CACA;AAKf;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;gDACf;AAKnB;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDACb;AAKrB;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;yDACN;AAK5B;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;oDACF;AAKvB;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,MAAM,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;iDACX;AAIlC;IAFC,UAAU,EAAE;IACZ,MAAM,CAAC,cAAc,CAAC;;6CACD;AAItB;IAFC,UAAU,EAAE;IACZ,MAAM,EAAE;;oDACY"}
|
|
@@ -45,3 +45,19 @@ export declare class SendOtpDTO extends SendEmailLoginOtpDTO {
|
|
|
45
45
|
channels?: AlertChannel[];
|
|
46
46
|
constructor(obj?: Partial<SendOtpDTO>);
|
|
47
47
|
}
|
|
48
|
+
/** What issuing an LTR sign-off code needs. See ILTRSignOffOTP. */
|
|
49
|
+
export interface SendLTRSignOffOTPInput {
|
|
50
|
+
/** The renter's number. Resolved from the renter Passenger by the caller. */
|
|
51
|
+
phone: string | null;
|
|
52
|
+
/** The booking the code confirms; a code is not valid for another. */
|
|
53
|
+
requestId: string;
|
|
54
|
+
/** Host the driver app called from, for white-label SMS sender details. */
|
|
55
|
+
url?: string;
|
|
56
|
+
/** The booking client's own code length, when it sets one. */
|
|
57
|
+
otpDigits?: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* `cooldown` means a code for this renter and booking was sent too recently;
|
|
61
|
+
* `no-phone` that the renter has no number on file.
|
|
62
|
+
*/
|
|
63
|
+
export type LTRSignOffOTPSendResult = 'sent' | 'cooldown' | 'no-phone';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Query for the external Rate Card sync (`get_ext_rate_card`).
|
|
3
|
+
*
|
|
4
|
+
* One customer per call: the sync is customer-wise, the booking website's
|
|
5
|
+
* maker-checker review is per customer, and a single failing customer must not
|
|
6
|
+
* poison a whole scheduled sweep.
|
|
7
|
+
*
|
|
8
|
+
* Query keys stay camelCase to match the DTO convention; the response body is
|
|
9
|
+
* lower_snake_case, as agreed in the published API spec.
|
|
10
|
+
*
|
|
11
|
+
* The business context is deliberately NOT a parameter. It is pinned to
|
|
12
|
+
* `AVIS_CONTEXT_ID` server-side: a caller-supplied context id would let anyone
|
|
13
|
+
* holding the shared API key read pricing across tenants, and the key carries
|
|
14
|
+
* no per-partner binding to check it against.
|
|
15
|
+
*/
|
|
16
|
+
export declare class GetExtRateCardDTO {
|
|
17
|
+
/**
|
|
18
|
+
* Numeric customer code — `ClientPersonaField.ClientCodeSeq`, the
|
|
19
|
+
* `customer_code` of the response and the `Customer_Code` of the note.
|
|
20
|
+
*/
|
|
21
|
+
clientCode: number;
|
|
22
|
+
/** `MasterCityField.CityCodeSeq`. Omit to receive every city on the contract. */
|
|
23
|
+
cityCode?: number;
|
|
24
|
+
/** 1 = City Local, 2 = Outstation, 3 = Transfers, 4 = Packages. Omit for all four. */
|
|
25
|
+
rentalTypeCode?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Delta pull: only contracts whose rate card was published or updated after
|
|
28
|
+
* this instant. Callers pass the previous run's `generated_at`.
|
|
29
|
+
*/
|
|
30
|
+
updatedSince?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Default false — only contracts active today or starting in the future.
|
|
33
|
+
* True also returns already-ended contracts, for back-office reconciliation.
|
|
34
|
+
*/
|
|
35
|
+
includeExpired?: boolean;
|
|
36
|
+
/** Pages over contracts, not over rate rows. */
|
|
37
|
+
page?: number;
|
|
38
|
+
limit?: number;
|
|
39
|
+
constructor(obj?: Partial<GetExtRateCardDTO>);
|
|
40
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Transform, Type } from 'class-transformer';
|
|
3
|
+
import { IsBoolean, IsDateString, IsIn, IsInt, IsOptional, Max, Min, } from 'class-validator';
|
|
4
|
+
/**
|
|
5
|
+
* Query for the external Rate Card sync (`get_ext_rate_card`).
|
|
6
|
+
*
|
|
7
|
+
* One customer per call: the sync is customer-wise, the booking website's
|
|
8
|
+
* maker-checker review is per customer, and a single failing customer must not
|
|
9
|
+
* poison a whole scheduled sweep.
|
|
10
|
+
*
|
|
11
|
+
* Query keys stay camelCase to match the DTO convention; the response body is
|
|
12
|
+
* lower_snake_case, as agreed in the published API spec.
|
|
13
|
+
*
|
|
14
|
+
* The business context is deliberately NOT a parameter. It is pinned to
|
|
15
|
+
* `AVIS_CONTEXT_ID` server-side: a caller-supplied context id would let anyone
|
|
16
|
+
* holding the shared API key read pricing across tenants, and the key carries
|
|
17
|
+
* no per-partner binding to check it against.
|
|
18
|
+
*/
|
|
19
|
+
export class GetExtRateCardDTO {
|
|
20
|
+
constructor(obj) {
|
|
21
|
+
/**
|
|
22
|
+
* Default false — only contracts active today or starting in the future.
|
|
23
|
+
* True also returns already-ended contracts, for back-office reconciliation.
|
|
24
|
+
*/
|
|
25
|
+
this.includeExpired = false;
|
|
26
|
+
/** Pages over contracts, not over rate rows. */
|
|
27
|
+
this.page = 1;
|
|
28
|
+
this.limit = 500;
|
|
29
|
+
Object.assign(this, obj);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
__decorate([
|
|
33
|
+
Type(() => Number),
|
|
34
|
+
IsInt(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], GetExtRateCardDTO.prototype, "clientCode", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
IsOptional(),
|
|
39
|
+
Type(() => Number),
|
|
40
|
+
IsInt(),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], GetExtRateCardDTO.prototype, "cityCode", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
IsOptional(),
|
|
45
|
+
Type(() => Number),
|
|
46
|
+
IsIn([1, 2, 3, 4]),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], GetExtRateCardDTO.prototype, "rentalTypeCode", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
IsOptional(),
|
|
51
|
+
IsDateString(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], GetExtRateCardDTO.prototype, "updatedSince", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
IsOptional(),
|
|
56
|
+
Transform(({ value }) => value === true || value === 'true'),
|
|
57
|
+
IsBoolean(),
|
|
58
|
+
__metadata("design:type", Boolean)
|
|
59
|
+
], GetExtRateCardDTO.prototype, "includeExpired", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
IsOptional(),
|
|
62
|
+
Type(() => Number),
|
|
63
|
+
IsInt(),
|
|
64
|
+
Min(1),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], GetExtRateCardDTO.prototype, "page", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
IsOptional(),
|
|
69
|
+
Type(() => Number),
|
|
70
|
+
IsInt(),
|
|
71
|
+
Min(1),
|
|
72
|
+
Max(1000),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], GetExtRateCardDTO.prototype, "limit", void 0);
|
|
75
|
+
//# sourceMappingURL=get.ext.rate.card.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.ext.rate.card.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/get.ext.rate.card.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EACN,SAAS,EACT,YAAY,EACZ,IAAI,EACJ,KAAK,EACL,UAAU,EACV,GAAG,EACH,GAAG,GACH,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,iBAAiB;IAoD7B,YAAY,GAAgC;QAvB5C;;;WAGG;QAIH,mBAAc,GAAa,KAAK,CAAC;QAEjC,gDAAgD;QAKhD,SAAI,GAAY,CAAC,CAAC;QAOlB,UAAK,GAAY,GAAG,CAAC;QAGpB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;CACD;AAhDA;IAFC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,KAAK,EAAE;;qDACW;AAMnB;IAHC,UAAU,EAAE;IACZ,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,KAAK,EAAE;;mDACU;AAMlB;IAHC,UAAU,EAAE;IACZ,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;;yDACK;AAQxB;IAFC,UAAU,EAAE;IACZ,YAAY,EAAE;;uDACO;AAStB;IAHC,UAAU,EAAE;IACZ,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,MAAM,CAAC;IAC5D,SAAS,EAAE;;yDACqB;AAOjC;IAJC,UAAU,EAAE;IACZ,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;+CACW;AAOlB;IALC,UAAU,EAAE;IACZ,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;IACN,GAAG,CAAC,IAAI,CAAC;;gDACW"}
|
|
@@ -62,5 +62,18 @@ export declare class GetLTRDriverPayoutRowsDTO {
|
|
|
62
62
|
* float them to the top of a newest-first list.
|
|
63
63
|
*/
|
|
64
64
|
order?: SortOrder;
|
|
65
|
+
/**
|
|
66
|
+
* Which business context the driver is acting in.
|
|
67
|
+
*
|
|
68
|
+
* A driver onboarded into several contexts holds a `DriverPersona` in
|
|
69
|
+
* each, and a booking belongs to exactly one of them. Without this the
|
|
70
|
+
* oldest persona is assumed, and every booking under any other context
|
|
71
|
+
* comes back empty — the driver sees nothing and is told nothing.
|
|
72
|
+
*
|
|
73
|
+
* Only consulted when `requestId`/`rowGroupId` is absent: a named booking
|
|
74
|
+
* carries its own context and that one wins, since it is the context the
|
|
75
|
+
* request is actually about.
|
|
76
|
+
*/
|
|
77
|
+
contextId?: string;
|
|
65
78
|
constructor(obj?: Partial<GetLTRDriverPayoutRowsDTO>);
|
|
66
79
|
}
|
|
@@ -50,4 +50,9 @@ __decorate([
|
|
|
50
50
|
IsEnum(SortOrder),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
52
|
], GetLTRDriverPayoutRowsDTO.prototype, "order", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
IsOptional(),
|
|
55
|
+
IsUUID(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], GetLTRDriverPayoutRowsDTO.prototype, "contextId", void 0);
|
|
53
58
|
//# sourceMappingURL=get.ltr.driver.payout.rows.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.ltr.driver.payout.rows.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,EACN,SAAS,GACT,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEpE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,yBAAyB;
|
|
1
|
+
{"version":3,"file":"get.ltr.driver.payout.rows.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/get.ltr.driver.payout.rows.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,EACN,SAAS,GACT,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEpE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,yBAAyB;IA2ErC,YAAY,GAAwC;QACnD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;CACD;AA5EA;IADC,MAAM,CAAC,CAAC,CAAC;;mEACe;AASzB;IAFC,UAAU,EAAE;IACZ,MAAM,EAAE;;4DACU;AAmBnB;IAHC,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,SAAS,CAAC,GAAG,CAAC;;6DACK;AASpB;IAFC,UAAU,EAAE;IACZ,MAAM,CAAC,sBAAsB,CAAC;;yDACC;AAkBhC;IAFC,UAAU,EAAE;IACZ,MAAM,CAAC,SAAS,CAAC;;wDACA;AAgBlB;IAFC,UAAU,EAAE;IACZ,MAAM,EAAE;;4DACU"}
|
|
@@ -8,4 +8,13 @@
|
|
|
8
8
|
export declare class GetLTRSignOffConfigDTO {
|
|
9
9
|
/** The booking whose confirmation rule is being asked for. */
|
|
10
10
|
requestId: string;
|
|
11
|
+
/**
|
|
12
|
+
* The driver asking.
|
|
13
|
+
*
|
|
14
|
+
* Required, not optional: the rule is scoped to the booking's client, so
|
|
15
|
+
* without a caller to check this endpoint answers for any requestId at all
|
|
16
|
+
* and hands one client's confirmation setup to anybody holding a booking
|
|
17
|
+
* id. Every other driver-facing LTR query is scoped the same way.
|
|
18
|
+
*/
|
|
19
|
+
registeredUserId: string;
|
|
11
20
|
}
|
|
@@ -13,4 +13,8 @@ __decorate([
|
|
|
13
13
|
IsUUID(),
|
|
14
14
|
__metadata("design:type", String)
|
|
15
15
|
], GetLTRSignOffConfigDTO.prototype, "requestId", void 0);
|
|
16
|
+
__decorate([
|
|
17
|
+
IsUUID(4),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], GetLTRSignOffConfigDTO.prototype, "registeredUserId", void 0);
|
|
16
20
|
//# sourceMappingURL=get.ltr.sign.off.config.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.ltr.sign.off.config.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/get.ltr.sign.off.config.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,OAAO,sBAAsB;
|
|
1
|
+
{"version":3,"file":"get.ltr.sign.off.config.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/get.ltr.sign.off.config.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,OAAO,sBAAsB;CAelC;AAZA;IADC,MAAM,EAAE;;yDACS;AAWlB;IADC,MAAM,CAAC,CAAC,CAAC;;gEACe"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** AD-3140 §12 — the spot-vehicle check history for a business context. */
|
|
2
|
+
export declare class GetSpotVehicleComplianceChecksDTO {
|
|
3
|
+
bsnsContextId: string;
|
|
4
|
+
registrationNumber?: string;
|
|
5
|
+
from?: Date;
|
|
6
|
+
to?: Date;
|
|
7
|
+
limit?: number;
|
|
8
|
+
offset?: number;
|
|
9
|
+
constructor(obj?: Partial<GetSpotVehicleComplianceChecksDTO>);
|
|
10
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
3
|
+
import { IsDate, IsInt, IsOptional, IsString, IsUUID, Max, MaxLength, Min, } from 'class-validator';
|
|
4
|
+
/** AD-3140 §12 — the spot-vehicle check history for a business context. */
|
|
5
|
+
export class GetSpotVehicleComplianceChecksDTO {
|
|
6
|
+
constructor(obj) {
|
|
7
|
+
Object.assign(this, obj);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
__decorate([
|
|
11
|
+
IsUUID(),
|
|
12
|
+
__metadata("design:type", String)
|
|
13
|
+
], GetSpotVehicleComplianceChecksDTO.prototype, "bsnsContextId", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
IsOptional(),
|
|
16
|
+
IsString(),
|
|
17
|
+
MaxLength(32),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], GetSpotVehicleComplianceChecksDTO.prototype, "registrationNumber", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
IsOptional(),
|
|
22
|
+
IsDate(),
|
|
23
|
+
Type(() => Date),
|
|
24
|
+
__metadata("design:type", Date)
|
|
25
|
+
], GetSpotVehicleComplianceChecksDTO.prototype, "from", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
IsOptional(),
|
|
28
|
+
IsDate(),
|
|
29
|
+
Type(() => Date),
|
|
30
|
+
__metadata("design:type", Date)
|
|
31
|
+
], GetSpotVehicleComplianceChecksDTO.prototype, "to", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
IsOptional(),
|
|
34
|
+
IsInt(),
|
|
35
|
+
Min(1),
|
|
36
|
+
Max(500),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], GetSpotVehicleComplianceChecksDTO.prototype, "limit", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
IsOptional(),
|
|
41
|
+
IsInt(),
|
|
42
|
+
Min(0),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], GetSpotVehicleComplianceChecksDTO.prototype, "offset", void 0);
|
|
45
|
+
//# sourceMappingURL=get.spot.vehicle.compliance.checks.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.spot.vehicle.compliance.checks.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/get.spot.vehicle.compliance.checks.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACN,MAAM,EACN,KAAK,EACL,UAAU,EACV,QAAQ,EACR,MAAM,EACN,GAAG,EACH,SAAS,EACT,GAAG,GACH,MAAM,iBAAiB,CAAC;AAEzB,2EAA2E;AAC3E,MAAM,OAAO,iCAAiC;IA8B7C,YAAY,GAAgD;QAC3D,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;CACD;AA/BA;IADC,MAAM,EAAE;;wEACa;AAKtB;IAHC,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,SAAS,CAAC,EAAE,CAAC;;6EACc;AAK5B;IAHC,UAAU,EAAE;IACZ,MAAM,EAAE;IACR,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACV,IAAI;+DAAC;AAKZ;IAHC,UAAU,EAAE;IACZ,MAAM,EAAE;IACR,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACZ,IAAI;6DAAC;AAMV;IAJC,UAAU,EAAE;IACZ,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;IACN,GAAG,CAAC,GAAG,CAAC;;gEACM;AAKf;IAHC,UAAU,EAAE;IACZ,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;iEACS"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VehicleComplianceKey } from '@autologix/shared/enums';
|
|
2
|
+
/**
|
|
3
|
+
* AD-3140 §8 / §11 — the compliance report's filter set.
|
|
4
|
+
*
|
|
5
|
+
* Every filter is optional and absent means "all". §11 asks for the report to
|
|
6
|
+
* be extractable "bases on various filters such as expiry date, business
|
|
7
|
+
* segment, branches, Hub locations" — business segment is the contract's
|
|
8
|
+
* business type, branches/hubs are the vehicle's owner city.
|
|
9
|
+
*/
|
|
10
|
+
export declare class GetVehicleComplianceReportDTO {
|
|
11
|
+
bsnsContextId: string;
|
|
12
|
+
businessTypes?: string[];
|
|
13
|
+
cityIds?: string[];
|
|
14
|
+
vendorIds?: string[];
|
|
15
|
+
complianceTypes?: VehicleComplianceKey[];
|
|
16
|
+
expiryFrom?: Date;
|
|
17
|
+
expiryTo?: Date;
|
|
18
|
+
onlyExpired?: boolean;
|
|
19
|
+
onlyMandatory?: boolean;
|
|
20
|
+
constructor(obj?: Partial<GetVehicleComplianceReportDTO>);
|
|
21
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
3
|
+
import { IsArray, IsBoolean, IsDate, IsEnum, IsOptional, IsString, IsUUID, } from 'class-validator';
|
|
4
|
+
import { VehicleComplianceKey } from '@autologix/shared/enums';
|
|
5
|
+
/**
|
|
6
|
+
* AD-3140 §8 / §11 — the compliance report's filter set.
|
|
7
|
+
*
|
|
8
|
+
* Every filter is optional and absent means "all". §11 asks for the report to
|
|
9
|
+
* be extractable "bases on various filters such as expiry date, business
|
|
10
|
+
* segment, branches, Hub locations" — business segment is the contract's
|
|
11
|
+
* business type, branches/hubs are the vehicle's owner city.
|
|
12
|
+
*/
|
|
13
|
+
export class GetVehicleComplianceReportDTO {
|
|
14
|
+
constructor(obj) {
|
|
15
|
+
Object.assign(this, obj);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
IsUUID(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], GetVehicleComplianceReportDTO.prototype, "bsnsContextId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
IsOptional(),
|
|
24
|
+
IsArray(),
|
|
25
|
+
IsString({ each: true }),
|
|
26
|
+
__metadata("design:type", Array)
|
|
27
|
+
], GetVehicleComplianceReportDTO.prototype, "businessTypes", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
IsOptional(),
|
|
30
|
+
IsArray(),
|
|
31
|
+
IsUUID(undefined, { each: true }),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], GetVehicleComplianceReportDTO.prototype, "cityIds", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
IsOptional(),
|
|
36
|
+
IsArray(),
|
|
37
|
+
IsUUID(undefined, { each: true }),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], GetVehicleComplianceReportDTO.prototype, "vendorIds", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
IsOptional(),
|
|
42
|
+
IsArray(),
|
|
43
|
+
IsEnum(VehicleComplianceKey, { each: true }),
|
|
44
|
+
__metadata("design:type", Array)
|
|
45
|
+
], GetVehicleComplianceReportDTO.prototype, "complianceTypes", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
IsOptional(),
|
|
48
|
+
IsDate(),
|
|
49
|
+
Type(() => Date),
|
|
50
|
+
__metadata("design:type", Date)
|
|
51
|
+
], GetVehicleComplianceReportDTO.prototype, "expiryFrom", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
IsOptional(),
|
|
54
|
+
IsDate(),
|
|
55
|
+
Type(() => Date),
|
|
56
|
+
__metadata("design:type", Date)
|
|
57
|
+
], GetVehicleComplianceReportDTO.prototype, "expiryTo", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
IsOptional(),
|
|
60
|
+
IsBoolean(),
|
|
61
|
+
__metadata("design:type", Boolean)
|
|
62
|
+
], GetVehicleComplianceReportDTO.prototype, "onlyExpired", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
IsOptional(),
|
|
65
|
+
IsBoolean(),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], GetVehicleComplianceReportDTO.prototype, "onlyMandatory", void 0);
|
|
68
|
+
//# sourceMappingURL=get.vehicle.compliance.report.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.vehicle.compliance.report.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/get.vehicle.compliance.report.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACN,OAAO,EACP,SAAS,EACT,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,GACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;;;;;;GAOG;AACH,MAAM,OAAO,6BAA6B;IA0CzC,YAAY,GAA4C;QACvD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;CACD;AA3CA;IADC,MAAM,EAAE;;oEACa;AAKtB;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;oEACA;AAKzB;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;8DACf;AAKnB;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;gEACb;AAKrB;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,MAAM,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sEACJ;AAKzC;IAHC,UAAU,EAAE;IACZ,MAAM,EAAE;IACR,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACJ,IAAI;iEAAC;AAKlB;IAHC,UAAU,EAAE;IACZ,MAAM,EAAE;IACR,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;+DAAC;AAIhB;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;kEACU;AAItB;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;oEACY"}
|
|
@@ -439,6 +439,7 @@ export * from './save.business.associate.payout.dto';
|
|
|
439
439
|
export * from './save.business.associate.payout.draft.dto';
|
|
440
440
|
export * from './discard.business.associate.payout.draft.dto';
|
|
441
441
|
export * from './get.business.associate.payout.draft.dto';
|
|
442
|
+
export * from './check.business.associate.payout.base.data.dto';
|
|
442
443
|
export * from './cancel.business.associate.payout.dto';
|
|
443
444
|
export * from './get.own.driver.reimbursement.dto';
|
|
444
445
|
export * from './get.od.generated.reimbursements.dto';
|
|
@@ -534,8 +535,14 @@ export * from './update.placard.fields.config.dto';
|
|
|
534
535
|
export * from './get.vip.contacts.dto';
|
|
535
536
|
export * from './get.ltr.driver.bookings.dto';
|
|
536
537
|
export * from './get.ltr.driver.payout.rows.dto';
|
|
538
|
+
export * from './verify.vehicle.compliance.dto';
|
|
539
|
+
export * from './get.vehicle.compliance.report.dto';
|
|
540
|
+
export * from './set.vehicle.compliance.override.dto';
|
|
541
|
+
export * from './check.spot.vehicle.compliance.dto';
|
|
542
|
+
export * from './get.spot.vehicle.compliance.checks.dto';
|
|
537
543
|
export * from './get.ltr.booking.day.wise.logs.dto';
|
|
538
544
|
export * from './get.ltr.payout.row.audit.dto';
|
|
539
545
|
export * from './get.ltr.driver.monthly.sign.off.preview.dto';
|
|
540
546
|
export * from './get.ltr.sign.off.config.dto';
|
|
541
547
|
export * from './unblock.user.dto';
|
|
548
|
+
export * from './get.ext.rate.card.dto';
|
|
@@ -439,6 +439,7 @@ export * from './save.business.associate.payout.dto';
|
|
|
439
439
|
export * from './save.business.associate.payout.draft.dto';
|
|
440
440
|
export * from './discard.business.associate.payout.draft.dto';
|
|
441
441
|
export * from './get.business.associate.payout.draft.dto';
|
|
442
|
+
export * from './check.business.associate.payout.base.data.dto';
|
|
442
443
|
export * from './cancel.business.associate.payout.dto';
|
|
443
444
|
export * from './get.own.driver.reimbursement.dto';
|
|
444
445
|
export * from './get.od.generated.reimbursements.dto';
|
|
@@ -534,9 +535,15 @@ export * from './update.placard.fields.config.dto';
|
|
|
534
535
|
export * from './get.vip.contacts.dto';
|
|
535
536
|
export * from './get.ltr.driver.bookings.dto';
|
|
536
537
|
export * from './get.ltr.driver.payout.rows.dto';
|
|
538
|
+
export * from './verify.vehicle.compliance.dto';
|
|
539
|
+
export * from './get.vehicle.compliance.report.dto';
|
|
540
|
+
export * from './set.vehicle.compliance.override.dto';
|
|
541
|
+
export * from './check.spot.vehicle.compliance.dto';
|
|
542
|
+
export * from './get.spot.vehicle.compliance.checks.dto';
|
|
537
543
|
export * from './get.ltr.booking.day.wise.logs.dto';
|
|
538
544
|
export * from './get.ltr.payout.row.audit.dto';
|
|
539
545
|
export * from './get.ltr.driver.monthly.sign.off.preview.dto';
|
|
540
546
|
export * from './get.ltr.sign.off.config.dto';
|
|
541
547
|
export * from './unblock.user.dto';
|
|
548
|
+
export * from './get.ext.rate.card.dto';
|
|
542
549
|
//# sourceMappingURL=index.js.map
|