@autologix-engineering/shared 1.2.399 → 1.2.400
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/create.report.dto.d.ts +3 -0
- package/src/lib/data-transfer-objects/src/create.report.dto.js +15 -1
- package/src/lib/data-transfer-objects/src/create.report.dto.js.map +1 -1
- package/src/lib/enums/src/report.module.type.enum.d.ts +7 -1
- package/src/lib/enums/src/report.module.type.enum.js +6 -0
- package/src/lib/enums/src/report.module.type.enum.js.map +1 -1
- package/src/lib/models/src/business.context.owner.model.d.ts +10 -0
- package/src/lib/models/src/business.context.owner.model.js +9 -0
- package/src/lib/models/src/business.context.owner.model.js.map +1 -1
- package/src/lib/view-models/src/view.models.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReportDateType, ReportFileType, ReportModuleType, VehicleOwnershipType } from '../../enums/src/index';
|
|
2
|
+
import { DbAuditLogEventType } from './export.db.audit.logs.dto';
|
|
2
3
|
export declare class CreateReportDTO {
|
|
3
4
|
contextId: string;
|
|
4
5
|
dateType?: ReportDateType;
|
|
@@ -14,6 +15,8 @@ export declare class CreateReportDTO {
|
|
|
14
15
|
vendorIds?: string[];
|
|
15
16
|
onlyExpired?: boolean;
|
|
16
17
|
onlyMandatory?: boolean;
|
|
18
|
+
eventTypes?: DbAuditLogEventType[];
|
|
19
|
+
search?: string;
|
|
17
20
|
type?: ReportFileType;
|
|
18
21
|
createdById?: string;
|
|
19
22
|
constructor(obj?: Partial<CreateReportDTO>);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { IsArray, IsDateString, IsEnum, IsOptional, IsString, IsUUID, IsBoolean, } from 'class-validator';
|
|
2
|
+
import { ArrayUnique, IsArray, IsDateString, IsEnum, IsIn, IsOptional, IsString, IsUUID, IsBoolean, MaxLength, } from 'class-validator';
|
|
3
3
|
import { ReportDateType, ReportFileType, ReportModuleType, VehicleOwnershipType, } from '../../enums/src/index';
|
|
4
|
+
import { DB_AUDIT_LOG_EVENT_TYPES, } from './export.db.audit.logs.dto';
|
|
4
5
|
export class CreateReportDTO {
|
|
5
6
|
constructor(obj) {
|
|
6
7
|
Object.assign(this, obj);
|
|
@@ -77,6 +78,19 @@ __decorate([
|
|
|
77
78
|
IsBoolean(),
|
|
78
79
|
__metadata("design:type", Boolean)
|
|
79
80
|
], CreateReportDTO.prototype, "onlyMandatory", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
IsOptional(),
|
|
83
|
+
IsArray(),
|
|
84
|
+
ArrayUnique(),
|
|
85
|
+
IsIn(DB_AUDIT_LOG_EVENT_TYPES, { each: true }),
|
|
86
|
+
__metadata("design:type", Array)
|
|
87
|
+
], CreateReportDTO.prototype, "eventTypes", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
IsOptional(),
|
|
90
|
+
IsString(),
|
|
91
|
+
MaxLength(200),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], CreateReportDTO.prototype, "search", void 0);
|
|
80
94
|
__decorate([
|
|
81
95
|
IsOptional(),
|
|
82
96
|
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,EACN,SAAS,GACT,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,oBAAoB,GACpB,MAAM,uBAAuB,CAAC;
|
|
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,OA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E;IACZ,OAAO,EAAE;IACT,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDACb;AAIrB;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;oDACU;AAItB;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;sDACY;AAOxB;IAJC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,WAAW,EAAE;IACb,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;mDACZ;AAOnC;IAHC,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,SAAS,CAAC,GAAG,CAAC;;+CACC;AAIhB;IAFC,UAAU,EAAE;IACZ,MAAM,CAAC,cAAc,CAAC;;6CACD;AAItB;IAFC,UAAU,EAAE;IACZ,MAAM,EAAE;;oDACY"}
|
|
@@ -13,7 +13,13 @@ export declare enum ReportModuleType {
|
|
|
13
13
|
/** AD-3097 — Report Center › Business Associate › Security Deposit schedule. */
|
|
14
14
|
BASecurityDeposit = "BASecurityDeposit",
|
|
15
15
|
/** Report Center › Bookings › MIS Report — client duty sheet on the booking report pipeline. */
|
|
16
|
-
MISReport = "MISReport"
|
|
16
|
+
MISReport = "MISReport",
|
|
17
|
+
/**
|
|
18
|
+
* Report Center › Database Audit Logs: the Azure PostgreSQL audit trail as
|
|
19
|
+
* a zipped CSV. Owners only, and only where the tenant's
|
|
20
|
+
* BusinessContextOwner.dbAdtLgsEnbld is switched on in the database.
|
|
21
|
+
*/
|
|
22
|
+
DatabaseAuditLogs = "DatabaseAuditLogs"
|
|
17
23
|
}
|
|
18
24
|
export declare enum ReportDateType {
|
|
19
25
|
InvoiceDate = "InvoiceDate",
|
|
@@ -15,6 +15,12 @@ export var ReportModuleType;
|
|
|
15
15
|
ReportModuleType["BASecurityDeposit"] = "BASecurityDeposit";
|
|
16
16
|
/** Report Center › Bookings › MIS Report — client duty sheet on the booking report pipeline. */
|
|
17
17
|
ReportModuleType["MISReport"] = "MISReport";
|
|
18
|
+
/**
|
|
19
|
+
* Report Center › Database Audit Logs: the Azure PostgreSQL audit trail as
|
|
20
|
+
* a zipped CSV. Owners only, and only where the tenant's
|
|
21
|
+
* BusinessContextOwner.dbAdtLgsEnbld is switched on in the database.
|
|
22
|
+
*/
|
|
23
|
+
ReportModuleType["DatabaseAuditLogs"] = "DatabaseAuditLogs";
|
|
18
24
|
})(ReportModuleType || (ReportModuleType = {}));
|
|
19
25
|
export var ReportDateType;
|
|
20
26
|
(function (ReportDateType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.module.type.enum.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/report.module.type.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"report.module.type.enum.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/report.module.type.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBAsBX;AAtBD,WAAY,gBAAgB;IAC3B,qFAAiE,CAAA;IACjE,qEAAiD,CAAA;IACjD,6DAAyC,CAAA;IACzC,mDAA+B,CAAA;IAC/B,0DAA0D;IAC1D,+DAA2C,CAAA;IAC3C,gEAAgE;IAChE,2EAAuD,CAAA;IACvD,2EAAuD,CAAA;IACvD,+EAA+E;IAC/E,yDAAqC,CAAA;IACrC,gFAAgF;IAChF,2DAAuC,CAAA;IACvC,gGAAgG;IAChG,2CAAuB,CAAA;IACvB;;;;OAIG;IACH,2DAAuC,CAAA;AACxC,CAAC,EAtBW,gBAAgB,KAAhB,gBAAgB,QAsB3B;AAED,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,6CAA2B,CAAA;IAC3B,2CAAyB,CAAA;IACzB,qDAAmC,CAAA;AACpC,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB"}
|
|
@@ -99,6 +99,15 @@ export declare enum BusinessContextOwnerField {
|
|
|
99
99
|
* evidence whether or not the restriction is switched on.
|
|
100
100
|
*/
|
|
101
101
|
EnforceSingleSession = "enfrcSnglSesn",
|
|
102
|
+
/**
|
|
103
|
+
* Whether this tenant's owners may export the database audit logs
|
|
104
|
+
* (Reports → Database Audit Logs).
|
|
105
|
+
*
|
|
106
|
+
* Deliberately has no editor anywhere in the app: it exposes the whole
|
|
107
|
+
* database's activity, so it is switched on by hand in the database, per
|
|
108
|
+
* tenant, and only where a contract calls for it.
|
|
109
|
+
*/
|
|
110
|
+
DbAuditLogsEnabled = "dbAdtLgsEnbld",
|
|
102
111
|
SMS = "sms",
|
|
103
112
|
ReferedBy = "referedBy",
|
|
104
113
|
ReferedById = "referedById",
|
|
@@ -185,6 +194,7 @@ export interface IBusinessContextOwner extends TypedModel {
|
|
|
185
194
|
[BusinessContextOwnerField.WhiteLabelConfigId]?: string;
|
|
186
195
|
[BusinessContextOwnerField.ConcurrentUserLimit]?: number;
|
|
187
196
|
[BusinessContextOwnerField.EnforceSingleSession]?: boolean;
|
|
197
|
+
[BusinessContextOwnerField.DbAuditLogsEnabled]?: boolean;
|
|
188
198
|
[BusinessContextOwnerField.SMS]: ISms[];
|
|
189
199
|
[BusinessContextOwnerField.CreatedAt]: Date;
|
|
190
200
|
[BusinessContextOwnerField.CreatedBy]: IRegisteredUser;
|
|
@@ -70,6 +70,15 @@ export var BusinessContextOwnerField;
|
|
|
70
70
|
* evidence whether or not the restriction is switched on.
|
|
71
71
|
*/
|
|
72
72
|
BusinessContextOwnerField["EnforceSingleSession"] = "enfrcSnglSesn";
|
|
73
|
+
/**
|
|
74
|
+
* Whether this tenant's owners may export the database audit logs
|
|
75
|
+
* (Reports → Database Audit Logs).
|
|
76
|
+
*
|
|
77
|
+
* Deliberately has no editor anywhere in the app: it exposes the whole
|
|
78
|
+
* database's activity, so it is switched on by hand in the database, per
|
|
79
|
+
* tenant, and only where a contract calls for it.
|
|
80
|
+
*/
|
|
81
|
+
BusinessContextOwnerField["DbAuditLogsEnabled"] = "dbAdtLgsEnbld";
|
|
73
82
|
BusinessContextOwnerField["SMS"] = "sms";
|
|
74
83
|
BusinessContextOwnerField["ReferedBy"] = "referedBy";
|
|
75
84
|
BusinessContextOwnerField["ReferedById"] = "referedById";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business.context.owner.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/business.context.owner.model.ts"],"names":[],"mappings":"AAiDA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"business.context.owner.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/business.context.owner.model.ts"],"names":[],"mappings":"AAiDA,MAAM,CAAN,IAAY,yBAsIX;AAtID,WAAY,yBAAyB;IACpC,oEAAuC,CAAA;IACvC,oDAAuB,CAAA;IACvB,oDAAuB,CAAA;IACvB,gDAAmB,CAAA;IACnB,oDAAuB,CAAA;IACvB,2CAAc,CAAA;IACd,+CAAkB,CAAA;IAClB,iDAAoB,CAAA;IACpB,qDAAwB,CAAA;IACxB,uDAA0B,CAAA;IAC1B,2DAA8B,CAAA;IAC9B,sDAAyB,CAAA;IACzB,0DAA6B,CAAA;IAC7B,8EAAiD,CAAA;IACjD,8EAAiD,CAAA;IACjD,8EAAiD,CAAA;IACjD,oFAAuD,CAAA;IACvD,gFAAmD,CAAA;IAEnD,uDAA0B,CAAA;IAC1B,2DAA8B,CAAA;IAC9B,kDAAqB,CAAA;IACrB,kEAAqC,CAAA;IACrC,oEAAuC,CAAA;IACvC,oEAAuC,CAAA;IACvC,mEAAsC,CAAA;IACtC,uEAA0C,CAAA;IAC1C,kEAAqC,CAAA;IACrC,kEAAqC,CAAA;IACrC,uDAA0B,CAAA;IAC1B,2DAA8B,CAAA;IAE9B,qDAAwB,CAAA;IACxB,qDAAwB,CAAA;IACxB,mEAAsC,CAAA;IACtC,mEAAsC,CAAA;IACtC,0DAA6B,CAAA;IAC7B,sDAAyB,CAAA;IAEzB,oEAAuC,CAAA;IACv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ker?: boolean;
|
|
83
83
|
passengerPersona?: IPassengerPersona;
|
|
84
|
+
/** Tenant may export DB audit logs; set only in the database (BusinessContextOwner.dbAdtLgsEnbld). */
|
|
85
|
+
dbAuditLogsEnabled?: boolean;
|
|
84
86
|
}
|
|
85
87
|
export interface IDriverDashBoardData {
|
|
86
88
|
distance: number;
|