@spytecgps/nova-orm 1.4.267 → 1.4.268

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.
@@ -24,6 +24,7 @@ export declare class Device {
24
24
  createdBy: string | null;
25
25
  modifiedBy: string | null;
26
26
  forward: boolean | null;
27
+ billingVisibility: boolean;
27
28
  color: string | null;
28
29
  icon: string | null;
29
30
  customIconId: number | null;
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),i=require("../utils/boolToNumberTransformer.js"),a=require("./client.js"),o=require("./clientDeviceIcon.js"),n=require("./deviceType.js");exports.Device=class Device{id;identifier;identifierKey;deviceTypeId;deviceType;imei;clientId;client;createdAt;name;status;iccid;modifiedAt;createdBy;modifiedBy;forward;color;icon;customIconId;customIcon;description;dataSourceTypeId;assetCategoryId;usageRegion;btmac;serialNumber;assignedTo;assignmentMode;demoAccountTemplateDeviceId;iccidCarrier;clientDeviceSetting;securityGroupEntityTags;devicePairing;assetProfile;extendedAttributes},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.Device.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"identifier",length:100}),e.__metadata("design:type",String)],exports.Device.prototype,"identifier",void 0),e.__decorate([t.Column("varchar",{name:"identifierKey",length:255}),e.__metadata("design:type",String)],exports.Device.prototype,"identifierKey",void 0),e.__decorate([t.Column("smallint",{name:"deviceTypeId"}),e.__metadata("design:type",Number)],exports.Device.prototype,"deviceTypeId",void 0),e.__decorate([t.ManyToOne((()=>n.DeviceType),{createForeignKeyConstraints:!1,nullable:!1}),t.JoinColumn(),e.__metadata("design:type",Object)],exports.Device.prototype,"deviceType",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.Device.prototype,"imei",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.Device.prototype,"clientId",void 0),e.__decorate([t.OneToOne((()=>a.Client),{createForeignKeyConstraints:!1,nullable:!1}),t.JoinColumn(),e.__metadata("design:type",Object)],exports.Device.prototype,"client",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",nullable:!0,default:()=>"CURRENT_TIMESTAMP"}),e.__metadata("design:type",Date)],exports.Device.prototype,"createdAt",void 0),e.__decorate([t.Column("varchar",{name:"name",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.Device.prototype,"name",void 0),e.__decorate([t.Column("varchar",{name:"status",nullable:!0,length:10}),e.__metadata("design:type",String)],exports.Device.prototype,"status",void 0),e.__decorate([t.Column("varchar",{name:"iccid",nullable:!0,length:25}),e.__metadata("design:type",String)],exports.Device.prototype,"iccid",void 0),e.__decorate([t.Column("datetime",{name:"modifiedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Device.prototype,"modifiedAt",void 0),e.__decorate([t.Column("varchar",{name:"createdBy",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.Device.prototype,"createdBy",void 0),e.__decorate([t.Column("varchar",{name:"modifiedBy",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.Device.prototype,"modifiedBy",void 0),e.__decorate([t.Column("tinyint",{name:"forward",nullable:!0,width:1,transformer:new i.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.Device.prototype,"forward",void 0),e.__decorate([t.Column("varchar",{name:"color",nullable:!0,length:25}),e.__metadata("design:type",String)],exports.Device.prototype,"color",void 0),e.__decorate([t.Column("varchar",{name:"icon",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.Device.prototype,"icon",void 0),e.__decorate([t.Column("int",{name:"customIconId",nullable:!0}),e.__metadata("design:type",Number)],exports.Device.prototype,"customIconId",void 0),e.__decorate([t.OneToOne((()=>o.ClientDeviceIcon),{createForeignKeyConstraints:!1,nullable:!0}),t.JoinColumn(),e.__metadata("design:type",Object)],exports.Device.prototype,"customIcon",void 0),e.__decorate([t.Column("varchar",{name:"description",nullable:!0,length:500}),e.__metadata("design:type",String)],exports.Device.prototype,"description",void 0),e.__decorate([t.Column("tinyint",{name:"dataSourceTypeId",nullable:!0}),e.__metadata("design:type",Number)],exports.Device.prototype,"dataSourceTypeId",void 0),e.__decorate([t.Column("tinyint",{name:"assetCategoryId",nullable:!0}),e.__metadata("design:type",Number)],exports.Device.prototype,"assetCategoryId",void 0),e.__decorate([t.Column("varchar",{name:"usageRegion",nullable:!0,length:25}),e.__metadata("design:type",String)],exports.Device.prototype,"usageRegion",void 0),e.__decorate([t.Column("varchar",{name:"btmac",nullable:!0,length:20}),e.__metadata("design:type",String)],exports.Device.prototype,"btmac",void 0),e.__decorate([t.Column("varchar",{name:"serialNumber",nullable:!0,length:36}),e.__metadata("design:type",String)],exports.Device.prototype,"serialNumber",void 0),e.__decorate([t.Column("varchar",{name:"assignedTo",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.Device.prototype,"assignedTo",void 0),e.__decorate([t.Column("varchar",{name:"assignmentMode",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.Device.prototype,"assignmentMode",void 0),e.__decorate([t.Column("smallint",{name:"demoAccountTemplateDeviceId",nullable:!0}),e.__metadata("design:type",Number)],exports.Device.prototype,"demoAccountTemplateDeviceId",void 0),e.__decorate([t.Column("json",{name:"extendedAttributes",nullable:!0}),e.__metadata("design:type",Object)],exports.Device.prototype,"extendedAttributes",void 0),exports.Device=e.__decorate([t.Index("ixuDeviceIdentifierKey",["identifierKey"],{unique:!0}),t.Index("ixDeviceDeviceTypeId",["deviceTypeId"],{}),t.Index("ixDeviceIccidImei",["iccid","imei"],{}),t.Index("ixDeviceImei",["imei"],{}),t.Index("ixDeviceImeiLower",{synchronize:!1}),t.Index("ixDeviceStatus",["status"],{}),t.Index("ixDeviceClientIdImei",["clientId","imei"],{}),t.Index("ixDeviceCreatedAt",["createdAt"],{}),t.Index("ixDeviceSearch",["clientId","status","imei","createdAt","deviceTypeId"],{}),t.Entity("device",{schema:"nova"})],exports.Device);
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),i=require("../utils/boolToNumberTransformer.js"),a=require("./client.js"),o=require("./clientDeviceIcon.js"),n=require("./deviceType.js");exports.Device=class Device{id;identifier;identifierKey;deviceTypeId;deviceType;imei;clientId;client;createdAt;name;status;iccid;modifiedAt;createdBy;modifiedBy;forward;billingVisibility;color;icon;customIconId;customIcon;description;dataSourceTypeId;assetCategoryId;usageRegion;btmac;serialNumber;assignedTo;assignmentMode;demoAccountTemplateDeviceId;iccidCarrier;clientDeviceSetting;securityGroupEntityTags;devicePairing;assetProfile;extendedAttributes},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.Device.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"identifier",length:100}),e.__metadata("design:type",String)],exports.Device.prototype,"identifier",void 0),e.__decorate([t.Column("varchar",{name:"identifierKey",length:255}),e.__metadata("design:type",String)],exports.Device.prototype,"identifierKey",void 0),e.__decorate([t.Column("smallint",{name:"deviceTypeId"}),e.__metadata("design:type",Number)],exports.Device.prototype,"deviceTypeId",void 0),e.__decorate([t.ManyToOne((()=>n.DeviceType),{createForeignKeyConstraints:!1,nullable:!1}),t.JoinColumn(),e.__metadata("design:type",Object)],exports.Device.prototype,"deviceType",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.Device.prototype,"imei",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.Device.prototype,"clientId",void 0),e.__decorate([t.OneToOne((()=>a.Client),{createForeignKeyConstraints:!1,nullable:!1}),t.JoinColumn(),e.__metadata("design:type",Object)],exports.Device.prototype,"client",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",nullable:!0,default:()=>"CURRENT_TIMESTAMP"}),e.__metadata("design:type",Date)],exports.Device.prototype,"createdAt",void 0),e.__decorate([t.Column("varchar",{name:"name",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.Device.prototype,"name",void 0),e.__decorate([t.Column("varchar",{name:"status",nullable:!0,length:10}),e.__metadata("design:type",String)],exports.Device.prototype,"status",void 0),e.__decorate([t.Column("varchar",{name:"iccid",nullable:!0,length:25}),e.__metadata("design:type",String)],exports.Device.prototype,"iccid",void 0),e.__decorate([t.Column("datetime",{name:"modifiedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Device.prototype,"modifiedAt",void 0),e.__decorate([t.Column("varchar",{name:"createdBy",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.Device.prototype,"createdBy",void 0),e.__decorate([t.Column("varchar",{name:"modifiedBy",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.Device.prototype,"modifiedBy",void 0),e.__decorate([t.Column("tinyint",{name:"forward",nullable:!0,width:1,transformer:new i.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.Device.prototype,"forward",void 0),e.__decorate([t.Column("tinyint",{name:"billingVisibility",width:1,default:()=>"'1'",transformer:new i.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.Device.prototype,"billingVisibility",void 0),e.__decorate([t.Column("varchar",{name:"color",nullable:!0,length:25}),e.__metadata("design:type",String)],exports.Device.prototype,"color",void 0),e.__decorate([t.Column("varchar",{name:"icon",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.Device.prototype,"icon",void 0),e.__decorate([t.Column("int",{name:"customIconId",nullable:!0}),e.__metadata("design:type",Number)],exports.Device.prototype,"customIconId",void 0),e.__decorate([t.OneToOne((()=>o.ClientDeviceIcon),{createForeignKeyConstraints:!1,nullable:!0}),t.JoinColumn(),e.__metadata("design:type",Object)],exports.Device.prototype,"customIcon",void 0),e.__decorate([t.Column("varchar",{name:"description",nullable:!0,length:500}),e.__metadata("design:type",String)],exports.Device.prototype,"description",void 0),e.__decorate([t.Column("tinyint",{name:"dataSourceTypeId",nullable:!0}),e.__metadata("design:type",Number)],exports.Device.prototype,"dataSourceTypeId",void 0),e.__decorate([t.Column("tinyint",{name:"assetCategoryId",nullable:!0}),e.__metadata("design:type",Number)],exports.Device.prototype,"assetCategoryId",void 0),e.__decorate([t.Column("varchar",{name:"usageRegion",nullable:!0,length:25}),e.__metadata("design:type",String)],exports.Device.prototype,"usageRegion",void 0),e.__decorate([t.Column("varchar",{name:"btmac",nullable:!0,length:20}),e.__metadata("design:type",String)],exports.Device.prototype,"btmac",void 0),e.__decorate([t.Column("varchar",{name:"serialNumber",nullable:!0,length:36}),e.__metadata("design:type",String)],exports.Device.prototype,"serialNumber",void 0),e.__decorate([t.Column("varchar",{name:"assignedTo",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.Device.prototype,"assignedTo",void 0),e.__decorate([t.Column("varchar",{name:"assignmentMode",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.Device.prototype,"assignmentMode",void 0),e.__decorate([t.Column("smallint",{name:"demoAccountTemplateDeviceId",nullable:!0}),e.__metadata("design:type",Number)],exports.Device.prototype,"demoAccountTemplateDeviceId",void 0),e.__decorate([t.Column("json",{name:"extendedAttributes",nullable:!0}),e.__metadata("design:type",Object)],exports.Device.prototype,"extendedAttributes",void 0),exports.Device=e.__decorate([t.Index("ixuDeviceIdentifierKey",["identifierKey"],{unique:!0}),t.Index("ixDeviceDeviceTypeId",["deviceTypeId"],{}),t.Index("ixDeviceIccidImei",["iccid","imei"],{}),t.Index("ixDeviceImei",["imei"],{}),t.Index("ixDeviceImeiLower",{synchronize:!1}),t.Index("ixDeviceStatus",["status"],{}),t.Index("ixDeviceClientIdImei",["clientId","imei"],{}),t.Index("ixDeviceCreatedAt",["createdAt"],{}),t.Index("ixDeviceSearch",["clientId","status","imei","createdAt","deviceTypeId"],{}),t.Entity("device",{schema:"nova"})],exports.Device);
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
4
- var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
5
- var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
6
3
  var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
4
+ var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
5
+ var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
6
+ var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
7
7
 
8
8
 
9
9
 
10
- exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
11
- exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
12
- exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
13
10
  exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
11
+ exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
12
+ exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
13
+ exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.4.267",
3
+ "version": "1.4.268",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/schema.sql CHANGED
@@ -1,6 +1,6 @@
1
- -- nova-orm-schema-checksum: ffa54d39f427c3a7bec7f5ccb5796699
1
+ -- nova-orm-schema-checksum: b9c61d2255751fc28f12c3c8d2dbf84f
2
2
  -- Nova ORM Schema Dump
3
- -- Generated at: 2026-06-25T11:25:46.202Z
3
+ -- Generated at: 2026-06-27T23:48:24.761Z
4
4
 
5
5
  SET FOREIGN_KEY_CHECKS = 0;
6
6
 
@@ -1559,6 +1559,7 @@ CREATE TABLE `device` (
1559
1559
  `createdBy` varchar(50) DEFAULT NULL,
1560
1560
  `modifiedBy` varchar(50) DEFAULT NULL,
1561
1561
  `forward` tinyint(1) DEFAULT NULL,
1562
+ `billingVisibility` tinyint(1) NOT NULL DEFAULT '1',
1562
1563
  `color` varchar(25) DEFAULT NULL,
1563
1564
  `icon` varchar(50) DEFAULT NULL,
1564
1565
  `customIconId` int DEFAULT NULL,