@spytecgps/nova-orm 1.4.204 → 1.4.206

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,7 @@ export declare class ClientDeviceSetting {
6
6
  stoppedPingFrequency: number | null;
7
7
  fixedStatus: string | null;
8
8
  generateTrips: boolean;
9
+ generateTripsChangedAt: Date | null;
9
10
  stopThresholdMinutes: number | null;
10
11
  offlineThresholdMinutes: number | null;
11
12
  movementThresholdSpeed: number | null;
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),n=require("../utils/boolToNumberTransformer.js");exports.ClientDeviceSetting=class ClientDeviceSetting{id;clientId;imei;movingPingFrequency;stoppedPingFrequency;fixedStatus;generateTrips;stopThresholdMinutes;offlineThresholdMinutes;movementThresholdSpeed;externalBatteryInformation;reportingMode;starterInterruptInstalled},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.ClientDeviceSetting.prototype,"imei",void 0),e.__decorate([t.Column("mediumint",{name:"movingPingFrequency",nullable:!0}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"movingPingFrequency",void 0),e.__decorate([t.Column("mediumint",{name:"stoppedPingFrequency",nullable:!0}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"stoppedPingFrequency",void 0),e.__decorate([t.Column("varchar",{name:"fixedStatus",nullable:!0,length:3}),e.__metadata("design:type",String)],exports.ClientDeviceSetting.prototype,"fixedStatus",void 0),e.__decorate([t.Column("tinyint",{name:"generateTrips",width:1,default:()=>"'1'",transformer:new n.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.ClientDeviceSetting.prototype,"generateTrips",void 0),e.__decorate([t.Column("smallint",{name:"stopThresholdMinutes",nullable:!0}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"stopThresholdMinutes",void 0),e.__decorate([t.Column("smallint",{name:"offlineThresholdMinutes",nullable:!0}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"offlineThresholdMinutes",void 0),e.__decorate([t.Column("float",{name:"movementThresholdSpeed",nullable:!0}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"movementThresholdSpeed",void 0),e.__decorate([t.Column("tinyint",{name:"externalBatteryInformation",nullable:!0,width:1,default:()=>"'0'",transformer:new n.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.ClientDeviceSetting.prototype,"externalBatteryInformation",void 0),e.__decorate([t.Column("varchar",{length:30,nullable:!0,default:""}),e.__metadata("design:type",String)],exports.ClientDeviceSetting.prototype,"reportingMode",void 0),e.__decorate([t.Column("tinyint",{name:"starterInterruptInstalled",width:1,default:()=>"'0'",transformer:new n.BoolToNumberTransformer,nullable:!0}),e.__metadata("design:type",Boolean)],exports.ClientDeviceSetting.prototype,"starterInterruptInstalled",void 0),exports.ClientDeviceSetting=e.__decorate([t.Index("ixuUserDeviceSettingClientIdImei",["clientId","imei"],{unique:!0}),t.Index("ixClientDeviceSettingImei",["imei"],{}),t.Entity("clientDeviceSetting",{schema:"nova"})],exports.ClientDeviceSetting);
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),n=require("../utils/boolToNumberTransformer.js");exports.ClientDeviceSetting=class ClientDeviceSetting{id;clientId;imei;movingPingFrequency;stoppedPingFrequency;fixedStatus;generateTrips;generateTripsChangedAt;stopThresholdMinutes;offlineThresholdMinutes;movementThresholdSpeed;externalBatteryInformation;reportingMode;starterInterruptInstalled},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.ClientDeviceSetting.prototype,"imei",void 0),e.__decorate([t.Column("mediumint",{name:"movingPingFrequency",nullable:!0}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"movingPingFrequency",void 0),e.__decorate([t.Column("mediumint",{name:"stoppedPingFrequency",nullable:!0}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"stoppedPingFrequency",void 0),e.__decorate([t.Column("varchar",{name:"fixedStatus",nullable:!0,length:3}),e.__metadata("design:type",String)],exports.ClientDeviceSetting.prototype,"fixedStatus",void 0),e.__decorate([t.Column("tinyint",{name:"generateTrips",width:1,default:()=>"'1'",transformer:new n.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.ClientDeviceSetting.prototype,"generateTrips",void 0),e.__decorate([t.Column("datetime",{name:"generateTripsChangedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.ClientDeviceSetting.prototype,"generateTripsChangedAt",void 0),e.__decorate([t.Column("smallint",{name:"stopThresholdMinutes",nullable:!0}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"stopThresholdMinutes",void 0),e.__decorate([t.Column("smallint",{name:"offlineThresholdMinutes",nullable:!0}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"offlineThresholdMinutes",void 0),e.__decorate([t.Column("float",{name:"movementThresholdSpeed",nullable:!0}),e.__metadata("design:type",Number)],exports.ClientDeviceSetting.prototype,"movementThresholdSpeed",void 0),e.__decorate([t.Column("tinyint",{name:"externalBatteryInformation",nullable:!0,width:1,default:()=>"'0'",transformer:new n.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.ClientDeviceSetting.prototype,"externalBatteryInformation",void 0),e.__decorate([t.Column("varchar",{length:30,nullable:!0,default:""}),e.__metadata("design:type",String)],exports.ClientDeviceSetting.prototype,"reportingMode",void 0),e.__decorate([t.Column("tinyint",{name:"starterInterruptInstalled",width:1,default:()=>"'0'",transformer:new n.BoolToNumberTransformer,nullable:!0}),e.__metadata("design:type",Boolean)],exports.ClientDeviceSetting.prototype,"starterInterruptInstalled",void 0),exports.ClientDeviceSetting=e.__decorate([t.Index("ixuUserDeviceSettingClientIdImei",["clientId","imei"],{unique:!0}),t.Index("ixClientDeviceSettingImei",["imei"],{}),t.Entity("clientDeviceSetting",{schema:"nova"})],exports.ClientDeviceSetting);
@@ -1,20 +1,4 @@
1
1
  export type RetailStoreStatus = 'online' | 'offline' | 'maintenance';
2
- export interface RetailStoreInferenceModelConfidenceMatrixZone {
3
- zoneId: string;
4
- precision: number;
5
- recall: number;
6
- f1Score: number;
7
- }
8
- export interface RetailStoreInferenceModelConfidenceMatrix {
9
- zones: RetailStoreInferenceModelConfidenceMatrixZone[];
10
- }
11
- export interface RetailStoreInferenceModelMetadata {
12
- model: string;
13
- description: string;
14
- threshold?: number;
15
- precision: number;
16
- confidenceMatrix: RetailStoreInferenceModelConfidenceMatrix;
17
- }
18
2
  export declare class RetailStore {
19
3
  id: string;
20
4
  clientId: number;
@@ -31,7 +15,7 @@ export declare class RetailStore {
31
15
  status: RetailStoreStatus;
32
16
  floorplanUrl?: string | null;
33
17
  inferenceModel?: string | null;
34
- inferenceModelMetadata?: RetailStoreInferenceModelMetadata | null;
18
+ inferenceModelMetadata?: Record<string, any> | null;
35
19
  latitude?: number | null;
36
20
  longitude?: number | null;
37
21
  createdAt: Date;
@@ -6,7 +6,7 @@ import { RetailGatewayStatus } from '../entities/retailGateway';
6
6
  import { RetailIncidentSeverity, RetailIncidentStatus, RetailIncidentType } from '../entities/retailIncident';
7
7
  import { RetailItemStatus } from '../entities/retailItem';
8
8
  import { RetailItemEventType } from '../entities/retailItemEvent';
9
- import { RetailStoreInferenceModelMetadata, RetailStoreStatus } from '../entities/retailStore';
9
+ import { RetailStoreStatus } from '../entities/retailStore';
10
10
  import { RetailTrainingSetSegment, RetailTrainingSetStatus, RetailTrainingSetType } from '../entities/retailTrainingSet';
11
11
  import { RetailZoneCategory } from '../entities/retailZone';
12
- export { ExternalRecipientNotificationType, RetailAlertConfigurationStatus, RetailAlertSeverity, RetailAlertStatus, RetailBleTagStatus, RetailGatewayStatus, RetailIncidentSeverity, RetailIncidentStatus, RetailIncidentType, RetailItemEventType, RetailItemStatus, RetailStoreInferenceModelMetadata, RetailStoreStatus, RetailTrainingSetSegment, RetailTrainingSetStatus, RetailTrainingSetType, RetailZoneCategory, };
12
+ export { ExternalRecipientNotificationType, RetailAlertConfigurationStatus, RetailAlertSeverity, RetailAlertStatus, RetailBleTagStatus, RetailGatewayStatus, RetailIncidentSeverity, RetailIncidentStatus, RetailIncidentType, RetailItemEventType, RetailItemStatus, RetailStoreStatus, RetailTrainingSetSegment, RetailTrainingSetStatus, RetailTrainingSetType, RetailZoneCategory, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.4.204",
3
+ "version": "1.4.206",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/schema.sql CHANGED
@@ -1,6 +1,6 @@
1
- -- nova-orm-schema-checksum: f4acb36eb33583df56c52eae9d26cd7b
1
+ -- nova-orm-schema-checksum: a806cb73557044b5da9bace8d720ed06
2
2
  -- Nova ORM Schema Dump
3
- -- Generated at: 2026-03-17T08:38:31.603Z
3
+ -- Generated at: 2026-03-18T07:23:22.169Z
4
4
 
5
5
  SET FOREIGN_KEY_CHECKS = 0;
6
6
 
@@ -1090,6 +1090,7 @@ CREATE TABLE `clientDeviceSetting` (
1090
1090
  `stoppedPingFrequency` mediumint DEFAULT NULL,
1091
1091
  `fixedStatus` varchar(3) DEFAULT NULL,
1092
1092
  `generateTrips` tinyint(1) NOT NULL DEFAULT '1',
1093
+ `generateTripsChangedAt` datetime DEFAULT NULL,
1093
1094
  `stopThresholdMinutes` smallint DEFAULT NULL,
1094
1095
  `offlineThresholdMinutes` smallint DEFAULT NULL,
1095
1096
  `movementThresholdSpeed` float DEFAULT NULL,