@spytecgps/nova-orm 1.4.353 → 1.4.355
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"),a=require("typeorm"),t=require("../utils/uuidTransformer.js");exports.CommandTask=class CommandTask{taskId;createDate;taskStatus;ackCommands;confirmedCommands;failedCommands;confirmationDate;rev;syncedAt},e.__decorate([a.PrimaryColumn("binary",{name:"taskId",length:16,transformer:t.UUIDTransformer}),e.__metadata("design:type",String)],exports.CommandTask.prototype,"taskId",void 0),e.__decorate([a.Column("datetime",{name:"createDate",precision:3}),e.__metadata("design:type",Date)],exports.CommandTask.prototype,"createDate",void 0),e.__decorate([a.Column("varchar",{name:"taskStatus",length:12}),e.__metadata("design:type",String)],exports.CommandTask.prototype,"taskStatus",void 0),e.__decorate([a.Column("smallint",{name:"ackCommands",unsigned:!0,nullable:!0}),e.__metadata("design:type",Number)],exports.CommandTask.prototype,"ackCommands",void 0),e.__decorate([a.Column("smallint",{name:"confirmedCommands",unsigned:!0,nullable:!0}),e.__metadata("design:type",Number)],exports.CommandTask.prototype,"confirmedCommands",void 0),e.__decorate([a.Column("smallint",{name:"failedCommands",unsigned:!0,nullable:!0}),e.__metadata("design:type",Number)],exports.CommandTask.prototype,"failedCommands",void 0),e.__decorate([a.Column("datetime",{name:"confirmationDate",precision:3,nullable:!0}),e.__metadata("design:type",Date)],exports.CommandTask.prototype,"confirmationDate",void 0),e.__decorate([a.Column("int",{name:"rev",unsigned:!0,default:0}),e.__metadata("design:type",Number)],exports.CommandTask.prototype,"rev",void 0),e.__decorate([a.Column("datetime",{name:"syncedAt",precision:3,default:()=>"CURRENT_TIMESTAMP(3)"}),e.__metadata("design:type",Date)],exports.CommandTask.prototype,"syncedAt",void 0),exports.CommandTask=e.__decorate([a.Entity("commandTask",{schema:"nova"})],exports.CommandTask);
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),a=require("typeorm"),t=require("../utils/uuidTransformer.js");exports.CommandTask=class CommandTask{taskId;createDate;taskStatus;ackCommands;confirmedCommands;failedCommands;confirmationDate;changeId;rev;syncedAt},e.__decorate([a.PrimaryColumn("binary",{name:"taskId",length:16,transformer:t.UUIDTransformer}),e.__metadata("design:type",String)],exports.CommandTask.prototype,"taskId",void 0),e.__decorate([a.Column("datetime",{name:"createDate",precision:3}),e.__metadata("design:type",Date)],exports.CommandTask.prototype,"createDate",void 0),e.__decorate([a.Column("varchar",{name:"taskStatus",length:12}),e.__metadata("design:type",String)],exports.CommandTask.prototype,"taskStatus",void 0),e.__decorate([a.Column("smallint",{name:"ackCommands",unsigned:!0,nullable:!0}),e.__metadata("design:type",Number)],exports.CommandTask.prototype,"ackCommands",void 0),e.__decorate([a.Column("smallint",{name:"confirmedCommands",unsigned:!0,nullable:!0}),e.__metadata("design:type",Number)],exports.CommandTask.prototype,"confirmedCommands",void 0),e.__decorate([a.Column("smallint",{name:"failedCommands",unsigned:!0,nullable:!0}),e.__metadata("design:type",Number)],exports.CommandTask.prototype,"failedCommands",void 0),e.__decorate([a.Column("datetime",{name:"confirmationDate",precision:3,nullable:!0}),e.__metadata("design:type",Date)],exports.CommandTask.prototype,"confirmationDate",void 0),e.__decorate([a.Column("binary",{name:"changeId",length:16,nullable:!0,transformer:t.UUIDTransformer}),e.__metadata("design:type",String)],exports.CommandTask.prototype,"changeId",void 0),e.__decorate([a.Column("int",{name:"rev",unsigned:!0,default:0}),e.__metadata("design:type",Number)],exports.CommandTask.prototype,"rev",void 0),e.__decorate([a.Column("datetime",{name:"syncedAt",precision:3,default:()=>"CURRENT_TIMESTAMP(3)"}),e.__metadata("design:type",Date)],exports.CommandTask.prototype,"syncedAt",void 0),exports.CommandTask=e.__decorate([a.Entity("commandTask",{schema:"nova"})],exports.CommandTask);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm");exports.SitesPresenceEvent=class SitesPresenceEvent{id;deviceId;clientId;kind;at;data;createdAt;siteId},e.__decorate([t.PrimaryGeneratedColumn({type:"bigint",name:"id"}),e.__metadata("design:type",Number)],exports.SitesPresenceEvent.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"deviceId",length:13}),e.__metadata("design:type",String)],exports.SitesPresenceEvent.prototype,"deviceId",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.SitesPresenceEvent.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"kind",length:10}),e.__metadata("design:type",String)],exports.SitesPresenceEvent.prototype,"kind",void 0),e.__decorate([t.Column("datetime",{name:"at",precision:3}),e.__metadata("design:type",Date)],exports.SitesPresenceEvent.prototype,"at",void 0),e.__decorate([t.Column("json",{name:"data",nullable:!0}),e.__metadata("design:type",Object)],exports.SitesPresenceEvent.prototype,"data",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.SitesPresenceEvent.prototype,"createdAt",void 0),e.__decorate([t.Column("int",{name:"siteId",nullable:!0}),e.__metadata("design:type",Number)],exports.SitesPresenceEvent.prototype,"siteId",void 0),exports.SitesPresenceEvent=e.__decorate([t.Index("ixSitesPresenceEventClientIdAt",["clientId","at"]),t.Index("uqSitesPresenceEventDeviceIdKindAt",["deviceId","kind","at"],{unique:!0}),t.Entity("sitesPresenceEvent",{schema:"nova"})],exports.SitesPresenceEvent);
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm");exports.SitesPresenceEvent=class SitesPresenceEvent{id;deviceId;clientId;kind;at;data;createdAt;siteId},e.__decorate([t.PrimaryGeneratedColumn({type:"bigint",name:"id"}),e.__metadata("design:type",Number)],exports.SitesPresenceEvent.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"deviceId",length:13}),e.__metadata("design:type",String)],exports.SitesPresenceEvent.prototype,"deviceId",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.SitesPresenceEvent.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"kind",length:10}),e.__metadata("design:type",String)],exports.SitesPresenceEvent.prototype,"kind",void 0),e.__decorate([t.Column("datetime",{name:"at",precision:3}),e.__metadata("design:type",Date)],exports.SitesPresenceEvent.prototype,"at",void 0),e.__decorate([t.Column("json",{name:"data",nullable:!0}),e.__metadata("design:type",Object)],exports.SitesPresenceEvent.prototype,"data",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.SitesPresenceEvent.prototype,"createdAt",void 0),e.__decorate([t.Column("int",{name:"siteId",nullable:!0}),e.__metadata("design:type",Number)],exports.SitesPresenceEvent.prototype,"siteId",void 0),exports.SitesPresenceEvent=e.__decorate([t.Index("ixSitesPresenceEventClientIdAt",["clientId","at"]),t.Index("ixSitesPresenceEventDeviceIdId",["deviceId","id"]),t.Index("uqSitesPresenceEventDeviceIdKindAt",["deviceId","kind","at"],{unique:!0}),t.Entity("sitesPresenceEvent",{schema:"nova"})],exports.SitesPresenceEvent);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
4
|
+
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
4
5
|
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
5
6
|
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
6
|
-
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
|
11
|
+
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
11
12
|
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
12
13
|
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
|
13
|
-
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: 282bbe52a999cff5605ca95ebd23d061
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-11-
|
|
3
|
+
-- Generated at: 2026-11-12T12:49:56.952Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -1474,6 +1474,7 @@ CREATE TABLE `commandTask` (
|
|
|
1474
1474
|
`confirmedCommands` smallint unsigned DEFAULT NULL,
|
|
1475
1475
|
`failedCommands` smallint unsigned DEFAULT NULL,
|
|
1476
1476
|
`confirmationDate` datetime(3) DEFAULT NULL,
|
|
1477
|
+
`changeId` binary(16) DEFAULT NULL,
|
|
1477
1478
|
`rev` int unsigned NOT NULL DEFAULT '0',
|
|
1478
1479
|
`syncedAt` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
1479
1480
|
PRIMARY KEY (`taskId`)
|
|
@@ -4079,6 +4080,7 @@ CREATE TABLE `sitesPresenceEvent` (
|
|
|
4079
4080
|
`siteId` int DEFAULT NULL,
|
|
4080
4081
|
PRIMARY KEY (`id`),
|
|
4081
4082
|
UNIQUE KEY `uqSitesPresenceEventDeviceIdKindAt` (`deviceId`,`kind`,`at`),
|
|
4083
|
+
KEY `ixSitesPresenceEventDeviceIdId` (`deviceId`,`id`),
|
|
4082
4084
|
KEY `ixSitesPresenceEventClientIdAt` (`clientId`,`at`)
|
|
4083
4085
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
4084
4086
|
|