@spytecgps/nova-orm 1.4.202 → 1.4.203

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.
@@ -1,4 +1,20 @@
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
+ }
2
18
  export declare class RetailStore {
3
19
  id: string;
4
20
  clientId: number;
@@ -15,6 +31,7 @@ export declare class RetailStore {
15
31
  status: RetailStoreStatus;
16
32
  floorplanUrl?: string | null;
17
33
  inferenceModel?: string | null;
34
+ inferenceModelMetadata?: RetailStoreInferenceModelMetadata | null;
18
35
  latitude?: number | null;
19
36
  longitude?: number | null;
20
37
  createdAt: Date;
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/uuidTransformer.js");exports.RetailStore=class RetailStore{id;clientId;storeNumber;name;address;city;state;zipCode;country;timezone;region;businessHours;status;floorplanUrl;inferenceModel;latitude;longitude;createdAt;updatedAt},e.__decorate([t.PrimaryColumn("binary",{name:"id",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.RetailStore.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"storeNumber",length:15,nullable:!0}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"storeNumber",void 0),e.__decorate([t.Column("varchar",{name:"name",length:100}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"name",void 0),e.__decorate([t.Column("varchar",{name:"address",length:255}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"address",void 0),e.__decorate([t.Column("varchar",{name:"city",length:50}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"city",void 0),e.__decorate([t.Column("varchar",{name:"state",length:50}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"state",void 0),e.__decorate([t.Column("varchar",{name:"zipCode",length:30}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"zipCode",void 0),e.__decorate([t.Column("varchar",{name:"country",length:50}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"country",void 0),e.__decorate([t.Column("varchar",{name:"timezone",length:100}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"timezone",void 0),e.__decorate([t.Column("varchar",{name:"region",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"region",void 0),e.__decorate([t.Column("json",{name:"businessHours",nullable:!0}),e.__metadata("design:type",Object)],exports.RetailStore.prototype,"businessHours",void 0),e.__decorate([t.Column("varchar",{name:"status",length:20,default:()=>"'online'"}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"status",void 0),e.__decorate([t.Column("varchar",{name:"floorplanUrl",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"floorplanUrl",void 0),e.__decorate([t.Column("varchar",{name:"inferenceModel",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"inferenceModel",void 0),e.__decorate([t.Column("decimal",{name:"latitude",nullable:!0,precision:8,scale:6}),e.__metadata("design:type",Number)],exports.RetailStore.prototype,"latitude",void 0),e.__decorate([t.Column("decimal",{name:"longitude",nullable:!0,precision:9,scale:6}),e.__metadata("design:type",Number)],exports.RetailStore.prototype,"longitude",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.RetailStore.prototype,"createdAt",void 0),e.__decorate([t.UpdateDateColumn({name:"updatedAt"}),e.__metadata("design:type",Date)],exports.RetailStore.prototype,"updatedAt",void 0),exports.RetailStore=e.__decorate([t.Index("ix_clientId_region_status",["clientId","region","status"],{}),t.Index("ix_clientId_storeNumber",["clientId","storeNumber"],{}),t.Entity("retailStore",{schema:"nova"})],exports.RetailStore);
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/uuidTransformer.js");exports.RetailStore=class RetailStore{id;clientId;storeNumber;name;address;city;state;zipCode;country;timezone;region;businessHours;status;floorplanUrl;inferenceModel;inferenceModelMetadata;latitude;longitude;createdAt;updatedAt},e.__decorate([t.PrimaryColumn("binary",{name:"id",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.RetailStore.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"storeNumber",length:15,nullable:!0}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"storeNumber",void 0),e.__decorate([t.Column("varchar",{name:"name",length:100}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"name",void 0),e.__decorate([t.Column("varchar",{name:"address",length:255}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"address",void 0),e.__decorate([t.Column("varchar",{name:"city",length:50}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"city",void 0),e.__decorate([t.Column("varchar",{name:"state",length:50}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"state",void 0),e.__decorate([t.Column("varchar",{name:"zipCode",length:30}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"zipCode",void 0),e.__decorate([t.Column("varchar",{name:"country",length:50}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"country",void 0),e.__decorate([t.Column("varchar",{name:"timezone",length:100}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"timezone",void 0),e.__decorate([t.Column("varchar",{name:"region",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"region",void 0),e.__decorate([t.Column("json",{name:"businessHours",nullable:!0}),e.__metadata("design:type",Object)],exports.RetailStore.prototype,"businessHours",void 0),e.__decorate([t.Column("varchar",{name:"status",length:20,default:()=>"'online'"}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"status",void 0),e.__decorate([t.Column("varchar",{name:"floorplanUrl",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"floorplanUrl",void 0),e.__decorate([t.Column("varchar",{name:"inferenceModel",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.RetailStore.prototype,"inferenceModel",void 0),e.__decorate([t.Column("json",{name:"inferenceModelMetadata",nullable:!0}),e.__metadata("design:type",Object)],exports.RetailStore.prototype,"inferenceModelMetadata",void 0),e.__decorate([t.Column("decimal",{name:"latitude",nullable:!0,precision:8,scale:6}),e.__metadata("design:type",Number)],exports.RetailStore.prototype,"latitude",void 0),e.__decorate([t.Column("decimal",{name:"longitude",nullable:!0,precision:9,scale:6}),e.__metadata("design:type",Number)],exports.RetailStore.prototype,"longitude",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.RetailStore.prototype,"createdAt",void 0),e.__decorate([t.UpdateDateColumn({name:"updatedAt"}),e.__metadata("design:type",Date)],exports.RetailStore.prototype,"updatedAt",void 0),exports.RetailStore=e.__decorate([t.Index("ix_clientId_region_status",["clientId","region","status"],{}),t.Index("ix_clientId_storeNumber",["clientId","storeNumber"],{}),t.Entity("retailStore",{schema:"nova"})],exports.RetailStore);
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
4
3
  var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
4
+ var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
5
5
  var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
6
6
 
7
7
 
8
8
 
9
- exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
10
9
  exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
10
+ exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
11
11
  exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
@@ -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 { RetailStoreStatus } from '../entities/retailStore';
9
+ import { RetailStoreInferenceModelMetadata, 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, RetailStoreStatus, RetailTrainingSetSegment, RetailTrainingSetStatus, RetailTrainingSetType, RetailZoneCategory, };
12
+ export { ExternalRecipientNotificationType, RetailAlertConfigurationStatus, RetailAlertSeverity, RetailAlertStatus, RetailBleTagStatus, RetailGatewayStatus, RetailIncidentSeverity, RetailIncidentStatus, RetailIncidentType, RetailItemEventType, RetailItemStatus, RetailStoreInferenceModelMetadata, 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.202",
3
+ "version": "1.4.203",
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: a1b695474c6095f557c0813e208bdd77
1
+ -- nova-orm-schema-checksum: db4b367ee05d69fac97b40cd759812ee
2
2
  -- Nova ORM Schema Dump
3
- -- Generated at: 2026-03-15T10:51:48.357Z
3
+ -- Generated at: 2026-03-17T06:56:34.447Z
4
4
 
5
5
  SET FOREIGN_KEY_CHECKS = 0;
6
6
 
@@ -2663,6 +2663,7 @@ CREATE TABLE `retailStore` (
2663
2663
  `status` varchar(20) NOT NULL DEFAULT 'online',
2664
2664
  `floorplanUrl` varchar(255) DEFAULT NULL,
2665
2665
  `inferenceModel` varchar(255) DEFAULT NULL,
2666
+ `inferenceModelMetadata` json DEFAULT NULL,
2666
2667
  `latitude` decimal(8,6) DEFAULT NULL,
2667
2668
  `longitude` decimal(9,6) DEFAULT NULL,
2668
2669
  `createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),