@spytecgps/nova-orm 1.4.332 → 1.4.333
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.
|
@@ -6,6 +6,23 @@ export interface BusinessHours {
|
|
|
6
6
|
startTime: string;
|
|
7
7
|
endTime: string;
|
|
8
8
|
}
|
|
9
|
+
export type DriverScoringSpeedUnit = 'mph' | 'kmh';
|
|
10
|
+
export interface DriverScoringConfig {
|
|
11
|
+
factors: {
|
|
12
|
+
speeding: boolean;
|
|
13
|
+
harshAcceleration: boolean;
|
|
14
|
+
harshBraking: boolean;
|
|
15
|
+
harshCornering: boolean;
|
|
16
|
+
};
|
|
17
|
+
speeding: {
|
|
18
|
+
unit: DriverScoringSpeedUnit;
|
|
19
|
+
countFrom: number;
|
|
20
|
+
mediumFrom: number;
|
|
21
|
+
severeFrom: number;
|
|
22
|
+
};
|
|
23
|
+
modifiedBy: string | null;
|
|
24
|
+
modifiedAt: string | null;
|
|
25
|
+
}
|
|
9
26
|
export declare class ClientConfiguration {
|
|
10
27
|
clientId: number;
|
|
11
28
|
movementTripThreshold: number | null;
|
|
@@ -24,4 +41,5 @@ export declare class ClientConfiguration {
|
|
|
24
41
|
fleetUtilizationIdleDays: number;
|
|
25
42
|
cellularAssistEnabled: boolean;
|
|
26
43
|
maintenancePlanMode: MaintenancePlanMode | null;
|
|
44
|
+
driverScoring: DriverScoringConfig | null;
|
|
27
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),o=require("../types/enums.js"),a=require("../utils/boolToNumberTransformer.js");exports.ClientConfiguration=class ClientConfiguration{clientId;movementTripThreshold;stopTripThreshold;mapUpdateMode;maxUsersAllowed;ssoDomain;ssoMetadata;assetProfileStatusLabels;apiKeyId;assetProfileStatusLabelsEnabled;usagePlanTier;businessHoursEnabled;businessHours;fleetUtilizationBenchmarkPercent;fleetUtilizationIdleDays;cellularAssistEnabled;maintenancePlanMode;driverScoring},e.__decorate([t.Column("int",{primary:!0,name:"clientId"}),e.__metadata("design:type",Number)],exports.ClientConfiguration.prototype,"clientId",void 0),e.__decorate([t.Column("double",{name:"movementTripThreshold",nullable:!0}),e.__metadata("design:type",Number)],exports.ClientConfiguration.prototype,"movementTripThreshold",void 0),e.__decorate([t.Column("double",{name:"stopTripThreshold",nullable:!0}),e.__metadata("design:type",Number)],exports.ClientConfiguration.prototype,"stopTripThreshold",void 0),e.__decorate([t.Column("tinyint",{name:"mapUpdateMode",nullable:!0}),e.__metadata("design:type",Number)],exports.ClientConfiguration.prototype,"mapUpdateMode",void 0),e.__decorate([t.Column("smallint",{name:"maxUsersAllowed",default:()=>"'10'"}),e.__metadata("design:type",Number)],exports.ClientConfiguration.prototype,"maxUsersAllowed",void 0),e.__decorate([t.Column("varchar",{name:"ssoDomain",nullable:!0,length:250}),e.__metadata("design:type",String)],exports.ClientConfiguration.prototype,"ssoDomain",void 0),e.__decorate([t.Column("json",{name:"ssoMetadata",nullable:!0}),e.__metadata("design:type",Object)],exports.ClientConfiguration.prototype,"ssoMetadata",void 0),e.__decorate([t.Column("json",{name:"assetProfileStatusLabels",nullable:!0}),e.__metadata("design:type",Object)],exports.ClientConfiguration.prototype,"assetProfileStatusLabels",void 0),e.__decorate([t.Column("varchar",{name:"apiKeyId",length:64,nullable:!0}),e.__metadata("design:type",String)],exports.ClientConfiguration.prototype,"apiKeyId",void 0),e.__decorate([t.Column("tinyint",{name:"assetProfileStatusLabelsEnabled",width:1,transformer:new a.BoolToNumberTransformer,default:()=>"'1'"}),e.__metadata("design:type",Boolean)],exports.ClientConfiguration.prototype,"assetProfileStatusLabelsEnabled",void 0),e.__decorate([t.Column("enum",{name:"usagePlanTier",enum:o.UsagePlanTier,default:o.UsagePlanTier.Standard}),e.__metadata("design:type",String)],exports.ClientConfiguration.prototype,"usagePlanTier",void 0),e.__decorate([t.Column("tinyint",{name:"businessHoursEnabled",nullable:!0,width:1,transformer:new a.BoolToNumberTransformer,default:()=>"'0'"}),e.__metadata("design:type",Boolean)],exports.ClientConfiguration.prototype,"businessHoursEnabled",void 0),e.__decorate([t.Column("json",{name:"businessHours",nullable:!0}),e.__metadata("design:type",Array)],exports.ClientConfiguration.prototype,"businessHours",void 0),e.__decorate([t.Column("smallint",{name:"fleetUtilizationBenchmarkPercent",default:()=>"'40'"}),e.__metadata("design:type",Number)],exports.ClientConfiguration.prototype,"fleetUtilizationBenchmarkPercent",void 0),e.__decorate([t.Column("smallint",{name:"fleetUtilizationIdleDays",default:()=>"'5'"}),e.__metadata("design:type",Number)],exports.ClientConfiguration.prototype,"fleetUtilizationIdleDays",void 0),e.__decorate([t.Column("tinyint",{name:"cellularAssistEnabled",width:1,transformer:new a.BoolToNumberTransformer,default:()=>"'1'"}),e.__metadata("design:type",Boolean)],exports.ClientConfiguration.prototype,"cellularAssistEnabled",void 0),e.__decorate([t.Column("varchar",{name:"maintenancePlanMode",length:10,nullable:!0}),e.__metadata("design:type",String)],exports.ClientConfiguration.prototype,"maintenancePlanMode",void 0),e.__decorate([t.Column("json",{name:"driverScoring",nullable:!0}),e.__metadata("design:type",Object)],exports.ClientConfiguration.prototype,"driverScoring",void 0),exports.ClientConfiguration=e.__decorate([t.Entity("clientConfiguration",{schema:"nova"}),t.Index("ssoDomain",["ssoDomain"],{unique:!0})],exports.ClientConfiguration);
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -247,6 +247,7 @@ import { UserSecurityRole } from './userSecurityRole';
|
|
|
247
247
|
import { WebsocketConnection } from './websocketConnection';
|
|
248
248
|
export * from './aiMessage';
|
|
249
249
|
export * from './anomaly';
|
|
250
|
+
export * from './clientConfiguration';
|
|
250
251
|
export * from './commandTask';
|
|
251
252
|
export * from './customerAttribute';
|
|
252
253
|
export * from './deviceCommand';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
4
|
-
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
5
|
-
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
6
4
|
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
5
|
+
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
6
|
+
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
|
11
|
-
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
|
12
|
-
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
13
11
|
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
12
|
+
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
13
|
+
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
package/package.json
CHANGED
package/schema.sql
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
-- nova-orm-schema-checksum:
|
|
1
|
+
-- nova-orm-schema-checksum: 22469f4d20f7b7868261d445fe696272
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-10-
|
|
3
|
+
-- Generated at: 2026-10-27T08:43:53.107Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -1371,6 +1371,7 @@ CREATE TABLE `clientConfiguration` (
|
|
|
1371
1371
|
`fleetUtilizationIdleDays` smallint NOT NULL DEFAULT '5',
|
|
1372
1372
|
`cellularAssistEnabled` tinyint(1) NOT NULL DEFAULT '1',
|
|
1373
1373
|
`maintenancePlanMode` varchar(10) DEFAULT NULL,
|
|
1374
|
+
`driverScoring` json DEFAULT NULL,
|
|
1374
1375
|
PRIMARY KEY (`clientId`),
|
|
1375
1376
|
UNIQUE KEY `ssoDomain` (`ssoDomain`)
|
|
1376
1377
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|