@spytecgps/nova-orm 1.4.223 → 1.4.224
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/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;acumaticaInventoryIds;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("json",{name:"acumaticaInventoryIds",nullable:!0}),e.__metadata("design:type",Array)],exports.DeviceType.prototype,"acumaticaInventoryIds",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"),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;acumaticaInventoryIds;assetTrackerLongSleep;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("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.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 _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
6
5
|
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
6
|
+
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
|
11
11
|
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
12
|
-
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
|
13
12
|
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
13
|
+
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
package/package.json
CHANGED
package/schema.sql
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
-- nova-orm-schema-checksum:
|
|
1
|
+
-- nova-orm-schema-checksum: 0ea80e48e66120b4a1a2e472e2b60352
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-05-
|
|
3
|
+
-- Generated at: 2026-05-07T10:45:15.007Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -1892,6 +1892,7 @@ CREATE TABLE `deviceType` (
|
|
|
1892
1892
|
`customerFacingModel` varchar(50) DEFAULT NULL,
|
|
1893
1893
|
`customerFacingName` varchar(50) DEFAULT NULL,
|
|
1894
1894
|
`acumaticaInventoryIds` json DEFAULT NULL,
|
|
1895
|
+
`assetTrackerLongSleep` tinyint(1) NOT NULL DEFAULT '0',
|
|
1895
1896
|
PRIMARY KEY (`id`)
|
|
1896
1897
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
1897
1898
|
|