@spytecgps/nova-orm 1.4.268 → 1.4.269
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.
package/dist/entities/billing.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),i=require("./client.js"),
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),i=require("../utils/boolToNumberTransformer.js"),n=require("./client.js"),l=require("./plan.js");exports.Billing=class Billing{id;deviceId;imei;planId;plan;subscriptionId;platform;status;visible;createdAt;updatedAt;subscriptionValue;subscriptionPeriodMonths;subscriptionValueMonthly;clientId;client},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.Billing.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"deviceId",nullable:!0}),e.__metadata("design:type",Number)],exports.Billing.prototype,"deviceId",void 0),e.__decorate([t.Column("varchar",{name:"imei",nullable:!0,length:15}),e.__metadata("design:type",String)],exports.Billing.prototype,"imei",void 0),e.__decorate([t.Column("varchar",{name:"planId",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.Billing.prototype,"planId",void 0),e.__decorate([t.OneToOne((()=>l.Plan),{createForeignKeyConstraints:!1}),t.JoinColumn(),e.__metadata("design:type",Object)],exports.Billing.prototype,"plan",void 0),e.__decorate([t.Column("varchar",{name:"subscriptionId",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.Billing.prototype,"subscriptionId",void 0),e.__decorate([t.Column("varchar",{name:"platform",nullable:!0,length:25}),e.__metadata("design:type",String)],exports.Billing.prototype,"platform",void 0),e.__decorate([t.Column("varchar",{name:"status",nullable:!0,length:25}),e.__metadata("design:type",String)],exports.Billing.prototype,"status",void 0),e.__decorate([t.Column("tinyint",{name:"visible",width:1,default:()=>"'1'",transformer:new i.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.Billing.prototype,"visible",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Billing.prototype,"createdAt",void 0),e.__decorate([t.Column("datetime",{name:"updatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Billing.prototype,"updatedAt",void 0),e.__decorate([t.Column("decimal",{name:"subscriptionValue",nullable:!0,precision:19,scale:4}),e.__metadata("design:type",Number)],exports.Billing.prototype,"subscriptionValue",void 0),e.__decorate([t.Column("tinyint",{name:"subscriptionPeriodMonths",nullable:!0}),e.__metadata("design:type",Number)],exports.Billing.prototype,"subscriptionPeriodMonths",void 0),e.__decorate([t.Column("decimal",{name:"subscriptionValueMonthly",nullable:!0,precision:19,scale:4}),e.__metadata("design:type",Number)],exports.Billing.prototype,"subscriptionValueMonthly",void 0),e.__decorate([t.Column("int",{name:"clientId",nullable:!0}),e.__metadata("design:type",Number)],exports.Billing.prototype,"clientId",void 0),e.__decorate([t.OneToOne((()=>n.Client),{createForeignKeyConstraints:!1}),t.JoinColumn(),e.__metadata("design:type",Object)],exports.Billing.prototype,"client",void 0),exports.Billing=e.__decorate([t.Index("ixuBillingImei",["imei"],{unique:!0}),t.Index("ixBillingClientId",["clientId"],{}),t.Index("ixBillingPlanId",["planId"],{}),t.Index("ixBillingSubscriptionId",["subscriptionId"],{}),t.Index("ixBillingComposite",["imei","subscriptionId","platform","status","planId"],{}),t.Index("ixBillingCreatedAt",["createdAt"],{}),t.Entity("billing",{schema:"nova"})],exports.Billing);
|
package/dist/entities/device.js
CHANGED
|
@@ -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;
|
|
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,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
4
|
-
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
5
|
-
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
6
4
|
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
5
|
+
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
6
|
+
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
11
|
-
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
|
12
|
-
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
13
11
|
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
|
12
|
+
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
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: 175418e88fb0cc69b1d041e5362e2e03
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-06-
|
|
3
|
+
-- Generated at: 2026-06-28T00:11:47.097Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -417,6 +417,7 @@ CREATE TABLE `billing` (
|
|
|
417
417
|
`subscriptionId` varchar(50) DEFAULT NULL,
|
|
418
418
|
`platform` varchar(25) DEFAULT NULL,
|
|
419
419
|
`status` varchar(25) DEFAULT NULL,
|
|
420
|
+
`visible` tinyint(1) NOT NULL DEFAULT '1',
|
|
420
421
|
`createdAt` datetime DEFAULT NULL,
|
|
421
422
|
`updatedAt` datetime DEFAULT NULL,
|
|
422
423
|
`subscriptionValue` decimal(19,4) DEFAULT NULL,
|
|
@@ -1559,7 +1560,6 @@ CREATE TABLE `device` (
|
|
|
1559
1560
|
`createdBy` varchar(50) DEFAULT NULL,
|
|
1560
1561
|
`modifiedBy` varchar(50) DEFAULT NULL,
|
|
1561
1562
|
`forward` tinyint(1) DEFAULT NULL,
|
|
1562
|
-
`billingVisibility` tinyint(1) NOT NULL DEFAULT '1',
|
|
1563
1563
|
`color` varchar(25) DEFAULT NULL,
|
|
1564
1564
|
`icon` varchar(50) DEFAULT NULL,
|
|
1565
1565
|
`customIconId` int DEFAULT NULL,
|