@spytecgps/nova-orm 1.4.339 → 1.4.340
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.
|
@@ -31,6 +31,8 @@ export declare class DeviceType {
|
|
|
31
31
|
acumaticaInventoryIds: number[] | null;
|
|
32
32
|
assetTrackerLongSleep: boolean;
|
|
33
33
|
powerType: DevicePowerType | null;
|
|
34
|
+
batteryReportsCharging: boolean;
|
|
35
|
+
batterySupportsEstimate: boolean;
|
|
34
36
|
deviceCategory: DeviceCategory | null;
|
|
35
37
|
devices: Relation<Device>[];
|
|
36
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm");require("../types/enums.js");var a=require("../utils/boolToNumberTransformer.js"),o=require("./device.js");exports.DeviceType=class DeviceType{id;brand;model;modelFamily;description;tags;url;name;pictureUrl;userManualUrl;notes;supported;activatable;selfActivatable;port;protocolMatch;stage;identifierType;landingPage;troubleshooting;protocol;readOnly;customerFacingModel;customerFacingName;hapnModel;hapnName;acumaticaInventoryIds;assetTrackerLongSleep;powerType;deviceCategory;devices},e.__decorate([t.PrimaryGeneratedColumn({type:"smallint",name:"id"}),e.__metadata("design:type",Number)],exports.DeviceType.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"brand",length:50}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"brand",void 0),e.__decorate([t.Column("varchar",{name:"model",length:50}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"model",void 0),e.__decorate([t.Column("varchar",{name:"modelFamily",length:50}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"modelFamily",void 0),e.__decorate([t.Column("varchar",{name:"description",nullable:!0,length:500}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"description",void 0),e.__decorate([t.Column("varchar",{name:"tags",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"tags",void 0),e.__decorate([t.Column("varchar",{name:"url",nullable:!0,length:1e3}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"url",void 0),e.__decorate([t.Column("varchar",{name:"name",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"name",void 0),e.__decorate([t.Column("varchar",{name:"pictureUrl",nullable:!0,length:1e3}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"pictureUrl",void 0),e.__decorate([t.Column("varchar",{name:"userManualUrl",nullable:!0,length:1e3}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"userManualUrl",void 0),e.__decorate([t.Column("varchar",{name:"notes",nullable:!0,length:2e3}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"notes",void 0),e.__decorate([t.Column("tinyint",{name:"supported",nullable:!0,width:1,transformer:new a.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.DeviceType.prototype,"supported",void 0),e.__decorate([t.Column("tinyint",{name:"activatable",nullable:!0,width:1,transformer:new a.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.DeviceType.prototype,"activatable",void 0),e.__decorate([t.Column("tinyint",{name:"selfActivatable",nullable:!0,width:1,transformer:new a.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.DeviceType.prototype,"selfActivatable",void 0),e.__decorate([t.Column("smallint",{name:"port",nullable:!0}),e.__metadata("design:type",Number)],exports.DeviceType.prototype,"port",void 0),e.__decorate([t.Column("varchar",{name:"protocolMatch",nullable:!0,length:5}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"protocolMatch",void 0),e.__decorate([t.Column("varchar",{name:"stage",nullable:!0,length:10}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"stage",void 0),e.__decorate([t.Column("varchar",{name:"identifierType",length:20}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"identifierType",void 0),e.__decorate([t.Column("varchar",{name:"landingPage",nullable:!0,length:1e3}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"landingPage",void 0),e.__decorate([t.Column("varchar",{name:"troubleshooting",nullable:!0,length:1e3}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"troubleshooting",void 0),e.__decorate([t.Column("varchar",{name:"protocol",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"protocol",void 0),e.__decorate([t.Column("tinyint",{name:"readOnly",width:1,nullable:!0,transformer:new a.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.DeviceType.prototype,"readOnly",void 0),e.__decorate([t.Column("varchar",{name:"customerFacingModel",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"customerFacingModel",void 0),e.__decorate([t.Column("varchar",{name:"customerFacingName",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"customerFacingName",void 0),e.__decorate([t.Column("varchar",{name:"hapnModel",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"hapnModel",void 0),e.__decorate([t.Column("varchar",{name:"hapnName",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"hapnName",void 0),e.__decorate([t.Column("json",{name:"acumaticaInventoryIds",nullable:!0}),e.__metadata("design:type",Array)],exports.DeviceType.prototype,"acumaticaInventoryIds",void 0),e.__decorate([t.Column("tinyint",{name:"assetTrackerLongSleep",width:1,default:0,transformer:new a.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.DeviceType.prototype,"assetTrackerLongSleep",void 0),e.__decorate([t.Column("varchar",{name:"powerType",length:20,nullable:!0}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"powerType",void 0),e.__decorate([t.Column("varchar",{name:"deviceCategory",length:20,nullable:!0}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"deviceCategory",void 0),e.__decorate([t.OneToMany((()=>o.Device),(e=>e.deviceType)),e.__metadata("design:type",Array)],exports.DeviceType.prototype,"devices",void 0),exports.DeviceType=e.__decorate([t.Entity("deviceType",{schema:"nova"})],exports.DeviceType);
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm");require("../types/enums.js");var a=require("../utils/boolToNumberTransformer.js"),o=require("./device.js");exports.DeviceType=class DeviceType{id;brand;model;modelFamily;description;tags;url;name;pictureUrl;userManualUrl;notes;supported;activatable;selfActivatable;port;protocolMatch;stage;identifierType;landingPage;troubleshooting;protocol;readOnly;customerFacingModel;customerFacingName;hapnModel;hapnName;acumaticaInventoryIds;assetTrackerLongSleep;powerType;batteryReportsCharging;batterySupportsEstimate;deviceCategory;devices},e.__decorate([t.PrimaryGeneratedColumn({type:"smallint",name:"id"}),e.__metadata("design:type",Number)],exports.DeviceType.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"brand",length:50}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"brand",void 0),e.__decorate([t.Column("varchar",{name:"model",length:50}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"model",void 0),e.__decorate([t.Column("varchar",{name:"modelFamily",length:50}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"modelFamily",void 0),e.__decorate([t.Column("varchar",{name:"description",nullable:!0,length:500}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"description",void 0),e.__decorate([t.Column("varchar",{name:"tags",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"tags",void 0),e.__decorate([t.Column("varchar",{name:"url",nullable:!0,length:1e3}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"url",void 0),e.__decorate([t.Column("varchar",{name:"name",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"name",void 0),e.__decorate([t.Column("varchar",{name:"pictureUrl",nullable:!0,length:1e3}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"pictureUrl",void 0),e.__decorate([t.Column("varchar",{name:"userManualUrl",nullable:!0,length:1e3}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"userManualUrl",void 0),e.__decorate([t.Column("varchar",{name:"notes",nullable:!0,length:2e3}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"notes",void 0),e.__decorate([t.Column("tinyint",{name:"supported",nullable:!0,width:1,transformer:new a.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.DeviceType.prototype,"supported",void 0),e.__decorate([t.Column("tinyint",{name:"activatable",nullable:!0,width:1,transformer:new a.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.DeviceType.prototype,"activatable",void 0),e.__decorate([t.Column("tinyint",{name:"selfActivatable",nullable:!0,width:1,transformer:new a.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.DeviceType.prototype,"selfActivatable",void 0),e.__decorate([t.Column("smallint",{name:"port",nullable:!0}),e.__metadata("design:type",Number)],exports.DeviceType.prototype,"port",void 0),e.__decorate([t.Column("varchar",{name:"protocolMatch",nullable:!0,length:5}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"protocolMatch",void 0),e.__decorate([t.Column("varchar",{name:"stage",nullable:!0,length:10}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"stage",void 0),e.__decorate([t.Column("varchar",{name:"identifierType",length:20}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"identifierType",void 0),e.__decorate([t.Column("varchar",{name:"landingPage",nullable:!0,length:1e3}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"landingPage",void 0),e.__decorate([t.Column("varchar",{name:"troubleshooting",nullable:!0,length:1e3}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"troubleshooting",void 0),e.__decorate([t.Column("varchar",{name:"protocol",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"protocol",void 0),e.__decorate([t.Column("tinyint",{name:"readOnly",width:1,nullable:!0,transformer:new a.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.DeviceType.prototype,"readOnly",void 0),e.__decorate([t.Column("varchar",{name:"customerFacingModel",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"customerFacingModel",void 0),e.__decorate([t.Column("varchar",{name:"customerFacingName",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"customerFacingName",void 0),e.__decorate([t.Column("varchar",{name:"hapnModel",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"hapnModel",void 0),e.__decorate([t.Column("varchar",{name:"hapnName",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"hapnName",void 0),e.__decorate([t.Column("json",{name:"acumaticaInventoryIds",nullable:!0}),e.__metadata("design:type",Array)],exports.DeviceType.prototype,"acumaticaInventoryIds",void 0),e.__decorate([t.Column("tinyint",{name:"assetTrackerLongSleep",width:1,default:0,transformer:new a.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.DeviceType.prototype,"assetTrackerLongSleep",void 0),e.__decorate([t.Column("varchar",{name:"powerType",length:20,nullable:!0}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"powerType",void 0),e.__decorate([t.Column("tinyint",{name:"batteryReportsCharging",width:1,default:0,transformer:new a.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.DeviceType.prototype,"batteryReportsCharging",void 0),e.__decorate([t.Column("tinyint",{name:"batterySupportsEstimate",width:1,default:0,transformer:new a.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.DeviceType.prototype,"batterySupportsEstimate",void 0),e.__decorate([t.Column("varchar",{name:"deviceCategory",length:20,nullable:!0}),e.__metadata("design:type",String)],exports.DeviceType.prototype,"deviceCategory",void 0),e.__decorate([t.OneToMany((()=>o.Device),(e=>e.deviceType)),e.__metadata("design:type",Array)],exports.DeviceType.prototype,"devices",void 0),exports.DeviceType=e.__decorate([t.Entity("deviceType",{schema:"nova"})],exports.DeviceType);
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
4
4
|
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
5
|
-
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
6
5
|
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
11
|
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
12
|
-
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
13
12
|
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: 1c8b116c75f0be2ec3775fffd32812fb
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-10-
|
|
3
|
+
-- Generated at: 2026-10-29T13:28:36.731Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -2370,6 +2370,8 @@ CREATE TABLE `deviceType` (
|
|
|
2370
2370
|
`acumaticaInventoryIds` json DEFAULT NULL,
|
|
2371
2371
|
`assetTrackerLongSleep` tinyint(1) NOT NULL DEFAULT '0',
|
|
2372
2372
|
`powerType` varchar(20) DEFAULT NULL,
|
|
2373
|
+
`batteryReportsCharging` tinyint(1) NOT NULL DEFAULT '0',
|
|
2374
|
+
`batterySupportsEstimate` tinyint(1) NOT NULL DEFAULT '0',
|
|
2373
2375
|
`deviceCategory` varchar(20) DEFAULT NULL,
|
|
2374
2376
|
PRIMARY KEY (`id`)
|
|
2375
2377
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|