@spytecgps/nova-orm 1.4.181 → 1.4.183
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"),a=require("../utils/uuidTransformer.js");exports.RetailIncident=class RetailIncident{id;clientId;storeId;itemId;type;status;severity;description;estimatedLoss;zoneId;detectedAt;resolvedAt;resolvedBy;resolutionNotes;createdAt;updatedAt;retailStore;retailItem;retailZone},e.__decorate([t.PrimaryColumn("binary",{name:"id",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.RetailIncident.prototype,"clientId",void 0),e.__decorate([t.Column("binary",{name:"storeId",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"storeId",void 0),e.__decorate([t.Column("binary",{name:"itemId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"itemId",void 0),e.__decorate([t.Column("varchar",{name:"type",length:20}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"type",void 0),e.__decorate([t.Column("varchar",{name:"status",length:20}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"status",void 0),e.__decorate([t.Column("varchar",{name:"severity",length:20}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"severity",void 0),e.__decorate([t.Column("varchar",{name:"description",length:255}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"description",void 0),e.__decorate([t.Column("decimal",{name:"estimatedLoss",precision:19,scale:4,nullable:!0}),e.__metadata("design:type",Number)],exports.RetailIncident.prototype,"estimatedLoss",void 0),e.__decorate([t.Column("binary",{name:"zoneId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"zoneId",void 0),e.__decorate([t.Column("datetime",{name:"detectedAt"}),e.__metadata("design:type",Date)],exports.RetailIncident.prototype,"detectedAt",void 0),e.__decorate([t.Column("datetime",{name:"resolvedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.RetailIncident.prototype,"resolvedAt",void 0),e.__decorate([t.Column("varchar",{name:"resolvedBy",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"resolvedBy",void 0),e.__decorate([t.Column("varchar",{name:"resolution",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"resolutionNotes",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.RetailIncident.prototype,"createdAt",void 0),e.__decorate([t.UpdateDateColumn({name:"updatedAt"}),e.__metadata("design:type",Date)],exports.RetailIncident.prototype,"updatedAt",void 0),exports.RetailIncident=e.__decorate([t.Index("ix_clientId_storeId_detectedAt_type_estimatedLoss",["clientId","storeId","detectedAt","type","estimatedLoss"],{}),t.Index("ix_clientId_detectedAt_type_estimatedLoss",["clientId","detectedAt","type","estimatedLoss"],{}),t.Entity("retailIncident",{schema:"nova"})],exports.RetailIncident);
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/uuidTransformer.js");exports.RetailIncident=class RetailIncident{id;clientId;storeId;itemId;type;status;severity;description;estimatedLoss;zoneId;detectedAt;resolvedAt;resolvedBy;resolutionNotes;createdAt;updatedAt;retailStore;retailItem;retailZone},e.__decorate([t.PrimaryColumn("binary",{name:"id",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.RetailIncident.prototype,"clientId",void 0),e.__decorate([t.Column("binary",{name:"storeId",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"storeId",void 0),e.__decorate([t.Column("binary",{name:"itemId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"itemId",void 0),e.__decorate([t.Column("varchar",{name:"type",length:20}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"type",void 0),e.__decorate([t.Column("varchar",{name:"status",length:20}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"status",void 0),e.__decorate([t.Column("varchar",{name:"severity",length:20}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"severity",void 0),e.__decorate([t.Column("varchar",{name:"description",length:255}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"description",void 0),e.__decorate([t.Column("decimal",{name:"estimatedLoss",precision:19,scale:4,nullable:!0}),e.__metadata("design:type",Number)],exports.RetailIncident.prototype,"estimatedLoss",void 0),e.__decorate([t.Column("binary",{name:"zoneId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"zoneId",void 0),e.__decorate([t.Column("datetime",{name:"detectedAt"}),e.__metadata("design:type",Date)],exports.RetailIncident.prototype,"detectedAt",void 0),e.__decorate([t.Column("datetime",{name:"resolvedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.RetailIncident.prototype,"resolvedAt",void 0),e.__decorate([t.Column("varchar",{name:"resolvedBy",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"resolvedBy",void 0),e.__decorate([t.Column("varchar",{name:"resolution",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.RetailIncident.prototype,"resolutionNotes",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.RetailIncident.prototype,"createdAt",void 0),e.__decorate([t.UpdateDateColumn({name:"updatedAt"}),e.__metadata("design:type",Date)],exports.RetailIncident.prototype,"updatedAt",void 0),exports.RetailIncident=e.__decorate([t.Index("ix_clientId_storeId_detectedAt_type_estimatedLoss",["clientId","storeId","detectedAt","type","estimatedLoss"],{}),t.Index("ix_clientId_storeId_type_detectedAt",["clientId","storeId","type","detectedAt"],{}),t.Index("ix_clientId_detectedAt_type_estimatedLoss",["clientId","detectedAt","type","estimatedLoss"],{}),t.Index("ix_itemId_detectedAt_type",["itemId"],{}),t.Entity("retailIncident",{schema:"nova"})],exports.RetailIncident);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/uuidTransformer.js");exports.RetailItemEvent=class RetailItemEvent{id;itemId;bleTagId;productId;storeId;eventType;zoneId;zoneCategory;gatewayId;metadata;timestamp;duration},e.__decorate([t.PrimaryColumn("binary",{name:"id",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"id",void 0),e.__decorate([t.Column("binary",{name:"itemId",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"itemId",void 0),e.__decorate([t.Column("binary",{name:"bleTagId",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"bleTagId",void 0),e.__decorate([t.Column("binary",{name:"productId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"productId",void 0),e.__decorate([t.Column("binary",{name:"storeId",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"storeId",void 0),e.__decorate([t.Column("varchar",{name:"eventType",length:20}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"eventType",void 0),e.__decorate([t.Column("binary",{name:"zoneId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"zoneId",void 0),e.__decorate([t.Column("varchar",{name:"zoneCategory",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"zoneCategory",void 0),e.__decorate([t.Column("binary",{name:"gatewayId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"gatewayId",void 0),e.__decorate([t.Column("json",{name:"metadata",nullable:!0}),e.__metadata("design:type",Object)],exports.RetailItemEvent.prototype,"metadata",void 0),e.__decorate([t.Column("datetime",{name:"timestamp"}),e.__metadata("design:type",Date)],exports.RetailItemEvent.prototype,"timestamp",void 0),e.__decorate([t.Column("int",{name:"duration",nullable:!0}),e.__metadata("design:type",Number)],exports.RetailItemEvent.prototype,"duration",void 0),exports.RetailItemEvent=e.__decorate([t.Index("
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/uuidTransformer.js");exports.RetailItemEvent=class RetailItemEvent{id;itemId;bleTagId;productId;storeId;eventType;zoneId;zoneCategory;gatewayId;metadata;timestamp;duration},e.__decorate([t.PrimaryColumn("binary",{name:"id",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"id",void 0),e.__decorate([t.Column("binary",{name:"itemId",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"itemId",void 0),e.__decorate([t.Column("binary",{name:"bleTagId",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"bleTagId",void 0),e.__decorate([t.Column("binary",{name:"productId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"productId",void 0),e.__decorate([t.Column("binary",{name:"storeId",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"storeId",void 0),e.__decorate([t.Column("varchar",{name:"eventType",length:20}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"eventType",void 0),e.__decorate([t.Column("binary",{name:"zoneId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"zoneId",void 0),e.__decorate([t.Column("varchar",{name:"zoneCategory",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"zoneCategory",void 0),e.__decorate([t.Column("binary",{name:"gatewayId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailItemEvent.prototype,"gatewayId",void 0),e.__decorate([t.Column("json",{name:"metadata",nullable:!0}),e.__metadata("design:type",Object)],exports.RetailItemEvent.prototype,"metadata",void 0),e.__decorate([t.Column("datetime",{name:"timestamp",precision:3}),e.__metadata("design:type",Date)],exports.RetailItemEvent.prototype,"timestamp",void 0),e.__decorate([t.Column("int",{name:"duration",nullable:!0}),e.__metadata("design:type",Number)],exports.RetailItemEvent.prototype,"duration",void 0),exports.RetailItemEvent=e.__decorate([t.Index("ix_eventType_timestamp_productId",["eventType","timestamp","productId"],{}),t.Index("ix_eventType_zoneCategory_timestamp",["eventType","zoneCategory","timestamp"],{}),t.Index("ix_storeId_eventType_timestamp_productId",["storeId","eventType","timestamp","productId"],{}),t.Index("ix_storeId_eventType_zoneCategory_timestamp",["storeId","eventType","zoneCategory","timestamp"],{}),t.Index("ix_storeId_itemId_eventType_timestamp",["storeId","itemId","eventType","timestamp"],{}),t.Index("ix_storeId_itemId_zoneId_eventType_timestamp",["storeId","itemId","zoneId","eventType","timestamp"],{}),t.Index("ix_itemId_eventType_zoneCategory_timestamp",["itemId","eventType","zoneCategory","timestamp"],{}),t.Index("ix_itemId_eventType_timestamp_storeId",["itemId","eventType","timestamp","storeId"],{}),t.Index("ix_itemId_zoneId_eventType_timestamp",["itemId","zoneId","eventType","timestamp"],{}),t.Index("ix_bleTagId",["bleTagId"],{}),t.Entity("retailItemEvent",{schema:"nova"})],exports.RetailItemEvent);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
4
|
-
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
5
4
|
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
5
|
+
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
|
10
|
-
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
11
10
|
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
11
|
+
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
package/package.json
CHANGED
package/schema.sql
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
-- nova-orm-schema-checksum:
|
|
1
|
+
-- nova-orm-schema-checksum: 02cec2216972323ff2d3a4f21750aae6
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-02-
|
|
3
|
+
-- Generated at: 2026-02-20T17:38:56.207Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -2576,7 +2576,9 @@ CREATE TABLE `retailIncident` (
|
|
|
2576
2576
|
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
|
|
2577
2577
|
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
|
|
2578
2578
|
PRIMARY KEY (`id`),
|
|
2579
|
+
KEY `ix_itemId_detectedAt_type` (`itemId`),
|
|
2579
2580
|
KEY `ix_clientId_detectedAt_type_estimatedLoss` (`clientId`,`detectedAt`,`type`,`estimatedLoss`),
|
|
2581
|
+
KEY `ix_clientId_storeId_type_detectedAt` (`clientId`,`storeId`,`type`,`detectedAt`),
|
|
2580
2582
|
KEY `ix_clientId_storeId_detectedAt_type_estimatedLoss` (`clientId`,`storeId`,`detectedAt`,`type`,`estimatedLoss`)
|
|
2581
2583
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
2582
2584
|
|
|
@@ -2615,15 +2617,19 @@ CREATE TABLE `retailItemEvent` (
|
|
|
2615
2617
|
`zoneCategory` varchar(50) DEFAULT NULL,
|
|
2616
2618
|
`gatewayId` binary(16) DEFAULT NULL,
|
|
2617
2619
|
`metadata` json DEFAULT NULL,
|
|
2618
|
-
`timestamp` datetime NOT NULL,
|
|
2620
|
+
`timestamp` datetime(3) NOT NULL,
|
|
2619
2621
|
`duration` int DEFAULT NULL,
|
|
2620
2622
|
PRIMARY KEY (`id`),
|
|
2621
2623
|
KEY `ix_bleTagId` (`bleTagId`),
|
|
2624
|
+
KEY `ix_itemId_zoneId_eventType_timestamp` (`itemId`,`zoneId`,`eventType`,`timestamp`),
|
|
2622
2625
|
KEY `ix_itemId_eventType_timestamp_storeId` (`itemId`,`eventType`,`timestamp`,`storeId`),
|
|
2623
2626
|
KEY `ix_itemId_eventType_zoneCategory_timestamp` (`itemId`,`eventType`,`zoneCategory`,`timestamp`),
|
|
2627
|
+
KEY `ix_storeId_itemId_zoneId_eventType_timestamp` (`storeId`,`itemId`,`zoneId`,`eventType`,`timestamp`),
|
|
2624
2628
|
KEY `ix_storeId_itemId_eventType_timestamp` (`storeId`,`itemId`,`eventType`,`timestamp`),
|
|
2625
2629
|
KEY `ix_storeId_eventType_zoneCategory_timestamp` (`storeId`,`eventType`,`zoneCategory`,`timestamp`),
|
|
2626
|
-
KEY `
|
|
2630
|
+
KEY `ix_storeId_eventType_timestamp_productId` (`storeId`,`eventType`,`timestamp`,`productId`),
|
|
2631
|
+
KEY `ix_eventType_zoneCategory_timestamp` (`eventType`,`zoneCategory`,`timestamp`),
|
|
2632
|
+
KEY `ix_eventType_timestamp_productId` (`eventType`,`timestamp`,`productId`)
|
|
2627
2633
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
2628
2634
|
|
|
2629
2635
|
DROP TABLE IF EXISTS `retailProduct`;
|