@spytecgps/nova-orm 1.4.201 → 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 +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"),i=require("./client.js");exports.DeviceStatus=class DeviceStatus{imei;clientId;created;sendTime;data;client;device;clientDeviceSetting},e.__decorate([t.PrimaryColumn("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.DeviceStatus.prototype,"imei",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.DeviceStatus.prototype,"clientId",void 0),e.__decorate([t.Column("datetime",{name:"created"}),e.__metadata("design:type",Date)],exports.DeviceStatus.prototype,"created",void 0),e.__decorate([t.Column("datetime",{name:"sendTime"}),e.__metadata("design:type",Date)],exports.DeviceStatus.prototype,"sendTime",void 0),e.__decorate([t.Column("json",{name:"data",nullable:!0}),e.__metadata("design:type",Object)],exports.DeviceStatus.prototype,"data",void 0),e.__decorate([t.OneToOne((()=>i.Client),{createForeignKeyConstraints:!1,nullable:!0}),t.JoinColumn({name:"clientId",referencedColumnName:"id"}),e.__metadata("design:type",i.Client)],exports.DeviceStatus.prototype,"client",void 0),exports.DeviceStatus=e.__decorate([t.Index("ixDeviceStatusClientId_SendTime",["clientId","sendTime"],{}),t.Index("ixDeviceStatusSendTime",["sendTime"],{}),t.Entity("deviceStatus",{schema:"nova"})],exports.DeviceStatus);
|
|
@@ -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);
|
package/dist/types/retail.d.ts
CHANGED
|
@@ -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
package/schema.sql
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
-- nova-orm-schema-checksum:
|
|
1
|
+
-- nova-orm-schema-checksum: db4b367ee05d69fac97b40cd759812ee
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-03-
|
|
3
|
+
-- Generated at: 2026-03-17T06:56:34.447Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -1765,6 +1765,7 @@ CREATE TABLE `deviceStatus` (
|
|
|
1765
1765
|
`sendTime` datetime NOT NULL,
|
|
1766
1766
|
`data` json DEFAULT NULL,
|
|
1767
1767
|
PRIMARY KEY (`imei`),
|
|
1768
|
+
KEY `ixDeviceStatusSendTime` (`sendTime`),
|
|
1768
1769
|
KEY `ixDeviceStatusClientId_SendTime` (`clientId`,`sendTime`)
|
|
1769
1770
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
1770
1771
|
|
|
@@ -2662,6 +2663,7 @@ CREATE TABLE `retailStore` (
|
|
|
2662
2663
|
`status` varchar(20) NOT NULL DEFAULT 'online',
|
|
2663
2664
|
`floorplanUrl` varchar(255) DEFAULT NULL,
|
|
2664
2665
|
`inferenceModel` varchar(255) DEFAULT NULL,
|
|
2666
|
+
`inferenceModelMetadata` json DEFAULT NULL,
|
|
2665
2667
|
`latitude` decimal(8,6) DEFAULT NULL,
|
|
2666
2668
|
`longitude` decimal(9,6) DEFAULT NULL,
|
|
2667
2669
|
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
|