@spytecgps/nova-orm 1.4.264 → 1.4.266
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/billingCampaignPrepaid.d.ts +1 -0
- package/dist/entities/billingCampaignPrepaid.js +1 -1
- package/dist/entities/customerAttribute.d.ts +3 -1
- package/dist/entities/customerAttribute.js +1 -1
- package/dist/entities/position.js +1 -1
- package/dist/entities/trip.js +1 -1
- package/dist/migration/_virtual/_virtual_multi-entry.js +4 -4
- package/package.json +1 -1
- package/schema.sql +6 -5
|
@@ -18,6 +18,7 @@ export declare class BillingCampaignPrepaid {
|
|
|
18
18
|
annualUpsellLastShownAt: Date | null;
|
|
19
19
|
annualUpsellDismissedCount: number;
|
|
20
20
|
annualUpsellUpgradedAt: Date | null;
|
|
21
|
+
annualUpsellQueuedAt: Date | null;
|
|
21
22
|
createdAt: Date | null;
|
|
22
23
|
updatedAt: Date | null;
|
|
23
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),a=require("typeorm"),t=require("../utils/boolToNumberTransformer.js");exports.BillingCampaignPrepaid=class BillingCampaignPrepaid{id;offerId;subscriptionId;email;imei;status;prepaidDurationMonths;prepaidStartAt;prepaidEndAt;convertedAt;canceledAt;annualUpsellEligible;annualUpsellImpressions;annualUpsellFirstShownAt;annualUpsellLastShownAt;annualUpsellDismissedCount;annualUpsellUpgradedAt;createdAt;updatedAt},e.__decorate([a.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"id",void 0),e.__decorate([a.Column("int",{name:"offerId"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"offerId",void 0),e.__decorate([a.Column("varchar",{name:"subscriptionId",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"subscriptionId",void 0),e.__decorate([a.Column("varchar",{name:"email",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"email",void 0),e.__decorate([a.Column("varchar",{name:"imei",nullable:!0,length:64}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"imei",void 0),e.__decorate([a.Column("enum",{enum:["prepaid_started","prepaid_ending_soon","prepaid_converted","canceled","overdue"],name:"status",nullable:!0}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"status",void 0),e.__decorate([a.Column("int",{name:"prepaidDurationMonths",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"prepaidDurationMonths",void 0),e.__decorate([a.Column("datetime",{name:"prepaidStartAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"prepaidStartAt",void 0),e.__decorate([a.Column("datetime",{name:"prepaidEndAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"prepaidEndAt",void 0),e.__decorate([a.Column("datetime",{name:"convertedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"convertedAt",void 0),e.__decorate([a.Column("datetime",{name:"canceledAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"canceledAt",void 0),e.__decorate([a.Column("tinyint",{name:"annualUpsellEligible",width:1,default:()=>"'0'",transformer:new t.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.BillingCampaignPrepaid.prototype,"annualUpsellEligible",void 0),e.__decorate([a.Column("int",{name:"annualUpsellImpressions",default:()=>"'0'"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"annualUpsellImpressions",void 0),e.__decorate([a.Column("datetime",{name:"annualUpsellFirstShownAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"annualUpsellFirstShownAt",void 0),e.__decorate([a.Column("datetime",{name:"annualUpsellLastShownAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"annualUpsellLastShownAt",void 0),e.__decorate([a.Column("int",{name:"annualUpsellDismissedCount",default:()=>"'0'"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"annualUpsellDismissedCount",void 0),e.__decorate([a.Column("datetime",{name:"annualUpsellUpgradedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"annualUpsellUpgradedAt",void 0),e.__decorate([a.Column("datetime",{name:"createdAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"createdAt",void 0),e.__decorate([a.Column("datetime",{name:"updatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"updatedAt",void 0),exports.BillingCampaignPrepaid=e.__decorate([a.Index("ixBillingCampaignPrepaidImei",["imei"]),a.Index("ixBillingCampaignPrepaidEmail",["email"]),a.Index("ixBillingCampaignPrepaidStatusPrepaidEndAt",["status","prepaidEndAt"],{}),a.Index("ixBillingCampaignPrepaidOfferId",["offerId"],{}),a.Index("ixBillingCampaignPrepaidCreatedAt",["createdAt"],{}),a.Index("ixBillingCampaignPrepaidSubscriptionId",["subscriptionId"],{}),a.Entity("billingCampaignPrepaid",{schema:"nova"})],exports.BillingCampaignPrepaid);
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),a=require("typeorm"),t=require("../utils/boolToNumberTransformer.js");exports.BillingCampaignPrepaid=class BillingCampaignPrepaid{id;offerId;subscriptionId;email;imei;status;prepaidDurationMonths;prepaidStartAt;prepaidEndAt;convertedAt;canceledAt;annualUpsellEligible;annualUpsellImpressions;annualUpsellFirstShownAt;annualUpsellLastShownAt;annualUpsellDismissedCount;annualUpsellUpgradedAt;annualUpsellQueuedAt;createdAt;updatedAt},e.__decorate([a.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"id",void 0),e.__decorate([a.Column("int",{name:"offerId"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"offerId",void 0),e.__decorate([a.Column("varchar",{name:"subscriptionId",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"subscriptionId",void 0),e.__decorate([a.Column("varchar",{name:"email",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"email",void 0),e.__decorate([a.Column("varchar",{name:"imei",nullable:!0,length:64}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"imei",void 0),e.__decorate([a.Column("enum",{enum:["prepaid_started","prepaid_ending_soon","prepaid_converted","canceled","overdue"],name:"status",nullable:!0}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"status",void 0),e.__decorate([a.Column("int",{name:"prepaidDurationMonths",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"prepaidDurationMonths",void 0),e.__decorate([a.Column("datetime",{name:"prepaidStartAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"prepaidStartAt",void 0),e.__decorate([a.Column("datetime",{name:"prepaidEndAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"prepaidEndAt",void 0),e.__decorate([a.Column("datetime",{name:"convertedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"convertedAt",void 0),e.__decorate([a.Column("datetime",{name:"canceledAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"canceledAt",void 0),e.__decorate([a.Column("tinyint",{name:"annualUpsellEligible",width:1,default:()=>"'0'",transformer:new t.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.BillingCampaignPrepaid.prototype,"annualUpsellEligible",void 0),e.__decorate([a.Column("int",{name:"annualUpsellImpressions",default:()=>"'0'"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"annualUpsellImpressions",void 0),e.__decorate([a.Column("datetime",{name:"annualUpsellFirstShownAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"annualUpsellFirstShownAt",void 0),e.__decorate([a.Column("datetime",{name:"annualUpsellLastShownAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"annualUpsellLastShownAt",void 0),e.__decorate([a.Column("int",{name:"annualUpsellDismissedCount",default:()=>"'0'"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"annualUpsellDismissedCount",void 0),e.__decorate([a.Column("datetime",{name:"annualUpsellUpgradedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"annualUpsellUpgradedAt",void 0),e.__decorate([a.Column("datetime",{name:"annualUpsellQueuedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"annualUpsellQueuedAt",void 0),e.__decorate([a.Column("datetime",{name:"createdAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"createdAt",void 0),e.__decorate([a.Column("datetime",{name:"updatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"updatedAt",void 0),exports.BillingCampaignPrepaid=e.__decorate([a.Index("ixBillingCampaignPrepaidImei",["imei"]),a.Index("ixBillingCampaignPrepaidEmail",["email"]),a.Index("ixBillingCampaignPrepaidStatusPrepaidEndAt",["status","prepaidEndAt"],{}),a.Index("ixBillingCampaignPrepaidOfferId",["offerId"],{}),a.Index("ixBillingCampaignPrepaidCreatedAt",["createdAt"],{}),a.Index("ixBillingCampaignPrepaidSubscriptionId",["subscriptionId"],{}),a.Entity("billingCampaignPrepaid",{schema:"nova"})],exports.BillingCampaignPrepaid);
|
|
@@ -4,12 +4,14 @@ declare const billingMethodArray: readonly ["credit-card-hubspot", "ach-hubspot"
|
|
|
4
4
|
export type BillingMethod = (typeof billingMethodArray)[number];
|
|
5
5
|
declare const customerSegmentArray: readonly ["whale", "bass", "guppy", "guppy-self-serve"];
|
|
6
6
|
export type CustomerSegment = (typeof customerSegmentArray)[number];
|
|
7
|
+
declare const icpArray: readonly ["asset_rental", "retail", "other"];
|
|
8
|
+
export type Icp = (typeof icpArray)[number];
|
|
7
9
|
export declare class CustomerAttribute {
|
|
8
10
|
clientId: number;
|
|
9
11
|
client: Relation<Client>;
|
|
10
12
|
enterprise: boolean;
|
|
11
13
|
maintenanceModule: boolean;
|
|
12
|
-
icp:
|
|
14
|
+
icp: Icp | null;
|
|
13
15
|
billingMethod: BillingMethod | null;
|
|
14
16
|
customerSegment: CustomerSegment | null;
|
|
15
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),r=require("../utils/boolToNumberTransformer.js"),o=require("./client.js");exports.CustomerAttribute=class CustomerAttribute{clientId;client;enterprise;maintenanceModule;icp;billingMethod;customerSegment},e.__decorate([t.Column("int",{primary:!0,name:"clientId"}),e.__metadata("design:type",Number)],exports.CustomerAttribute.prototype,"clientId",void 0),e.__decorate([t.OneToOne((()=>o.Client),{createForeignKeyConstraints:!1,nullable:!1}),t.JoinColumn(),e.__metadata("design:type",Object)],exports.CustomerAttribute.prototype,"client",void 0),e.__decorate([t.Column("tinyint",{name:"enterprise",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"enterprise",void 0),e.__decorate([t.Column("tinyint",{name:"maintenanceModule",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"maintenanceModule",void 0),e.__decorate([t.Column("
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),r=require("../utils/boolToNumberTransformer.js"),o=require("./client.js");exports.CustomerAttribute=class CustomerAttribute{clientId;client;enterprise;maintenanceModule;icp;billingMethod;customerSegment},e.__decorate([t.Column("int",{primary:!0,name:"clientId"}),e.__metadata("design:type",Number)],exports.CustomerAttribute.prototype,"clientId",void 0),e.__decorate([t.OneToOne((()=>o.Client),{createForeignKeyConstraints:!1,nullable:!1}),t.JoinColumn(),e.__metadata("design:type",Object)],exports.CustomerAttribute.prototype,"client",void 0),e.__decorate([t.Column("tinyint",{name:"enterprise",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"enterprise",void 0),e.__decorate([t.Column("tinyint",{name:"maintenanceModule",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"maintenanceModule",void 0),e.__decorate([t.Column("enum",{enum:["asset_rental","retail","other"],name:"icp",nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"icp",void 0),e.__decorate([t.Column("enum",{enum:["credit-card-hubspot","ach-hubspot","credit-card-braintree","ach-braintree","ach-wire","check","dib-sap"],name:"billingMethod",nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"billingMethod",void 0),e.__decorate([t.Column("enum",{enum:["whale","bass","guppy","guppy-self-serve"],name:"customerSegment",nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"customerSegment",void 0),exports.CustomerAttribute=e.__decorate([t.Entity("customerAttribute",{schema:"nova"})],exports.CustomerAttribute);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),o=require("../utils/boolToNumberTransformer.js");exports.Position=class Position{id;imei;lat;lon;actualDate;speed;odometer;createdAt;messageId;batteryPercentage;clientId;address;sendTime;gpsUtcTime;externalBatteryPercentage;externalPowerVoltage;azimuth;motionDetected;deleted},e.__decorate([t.PrimaryGeneratedColumn({type:"bigint",name:"id"}),e.__metadata("design:type",Number)],exports.Position.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.Position.prototype,"imei",void 0),e.__decorate([t.Column("decimal",{name:"lat",nullable:!0,precision:8,scale:6}),e.__metadata("design:type",Number)],exports.Position.prototype,"lat",void 0),e.__decorate([t.Column("decimal",{name:"lon",nullable:!0,precision:9,scale:6}),e.__metadata("design:type",Number)],exports.Position.prototype,"lon",void 0),e.__decorate([t.Column("datetime",{name:"actualDate",precision:3}),e.__metadata("design:type",Date)],exports.Position.prototype,"actualDate",void 0),e.__decorate([t.Column("float",{name:"speed",nullable:!0}),e.__metadata("design:type",Number)],exports.Position.prototype,"speed",void 0),e.__decorate([t.Column("double",{name:"odometer",nullable:!0}),e.__metadata("design:type",Number)],exports.Position.prototype,"odometer",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",precision:3}),e.__metadata("design:type",Date)],exports.Position.prototype,"createdAt",void 0),e.__decorate([t.Column("binary",{name:"messageId",length:16}),e.__metadata("design:type",Buffer)],exports.Position.prototype,"messageId",void 0),e.__decorate([t.Column("smallint",{name:"batteryPercentage",nullable:!0}),e.__metadata("design:type",Number)],exports.Position.prototype,"batteryPercentage",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.Position.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"address",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.Position.prototype,"address",void 0),e.__decorate([t.Column("datetime",{name:"sendTime",nullable:!0,precision:3}),e.__metadata("design:type",Date)],exports.Position.prototype,"sendTime",void 0),e.__decorate([t.Column("datetime",{name:"gpsUtcTime",nullable:!0,precision:3}),e.__metadata("design:type",Date)],exports.Position.prototype,"gpsUtcTime",void 0),e.__decorate([t.Column("smallint",{name:"externalBatteryPercentage",nullable:!0}),e.__metadata("design:type",Number)],exports.Position.prototype,"externalBatteryPercentage",void 0),e.__decorate([t.Column("float",{name:"externalPowerVoltage",nullable:!0}),e.__metadata("design:type",Number)],exports.Position.prototype,"externalPowerVoltage",void 0),e.__decorate([t.Column("smallint",{name:"azimuth",nullable:!0}),e.__metadata("design:type",Number)],exports.Position.prototype,"azimuth",void 0),e.__decorate([t.Column("tinyint",{name:"motionDetected",width:1,nullable:!0,transformer:new o.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.Position.prototype,"motionDetected",void 0),e.__decorate([t.Column("tinyint",{name:"deleted",nullable:!0,width:1,transformer:new o.BoolToNumberTransformer,default:()=>"'0'"}),e.__metadata("design:type",Boolean)],exports.Position.prototype,"deleted",void 0),exports.Position=e.__decorate([t.Index("ixPositionClientId_Imei_ActualDate",["clientId","imei","actualDate"],{}),t.Entity("position",{schema:"nova"})],exports.Position);
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),o=require("../utils/boolToNumberTransformer.js");exports.Position=class Position{id;imei;lat;lon;actualDate;speed;odometer;createdAt;messageId;batteryPercentage;clientId;address;sendTime;gpsUtcTime;externalBatteryPercentage;externalPowerVoltage;azimuth;motionDetected;deleted},e.__decorate([t.PrimaryGeneratedColumn({type:"bigint",name:"id"}),e.__metadata("design:type",Number)],exports.Position.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.Position.prototype,"imei",void 0),e.__decorate([t.Column("decimal",{name:"lat",nullable:!0,precision:8,scale:6}),e.__metadata("design:type",Number)],exports.Position.prototype,"lat",void 0),e.__decorate([t.Column("decimal",{name:"lon",nullable:!0,precision:9,scale:6}),e.__metadata("design:type",Number)],exports.Position.prototype,"lon",void 0),e.__decorate([t.Column("datetime",{name:"actualDate",precision:3}),e.__metadata("design:type",Date)],exports.Position.prototype,"actualDate",void 0),e.__decorate([t.Column("float",{name:"speed",nullable:!0}),e.__metadata("design:type",Number)],exports.Position.prototype,"speed",void 0),e.__decorate([t.Column("double",{name:"odometer",nullable:!0}),e.__metadata("design:type",Number)],exports.Position.prototype,"odometer",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",precision:3}),e.__metadata("design:type",Date)],exports.Position.prototype,"createdAt",void 0),e.__decorate([t.Column("binary",{name:"messageId",length:16}),e.__metadata("design:type",Buffer)],exports.Position.prototype,"messageId",void 0),e.__decorate([t.Column("smallint",{name:"batteryPercentage",nullable:!0}),e.__metadata("design:type",Number)],exports.Position.prototype,"batteryPercentage",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.Position.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"address",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.Position.prototype,"address",void 0),e.__decorate([t.Column("datetime",{name:"sendTime",nullable:!0,precision:3}),e.__metadata("design:type",Date)],exports.Position.prototype,"sendTime",void 0),e.__decorate([t.Column("datetime",{name:"gpsUtcTime",nullable:!0,precision:3}),e.__metadata("design:type",Date)],exports.Position.prototype,"gpsUtcTime",void 0),e.__decorate([t.Column("smallint",{name:"externalBatteryPercentage",nullable:!0}),e.__metadata("design:type",Number)],exports.Position.prototype,"externalBatteryPercentage",void 0),e.__decorate([t.Column("float",{name:"externalPowerVoltage",nullable:!0}),e.__metadata("design:type",Number)],exports.Position.prototype,"externalPowerVoltage",void 0),e.__decorate([t.Column("smallint",{name:"azimuth",nullable:!0}),e.__metadata("design:type",Number)],exports.Position.prototype,"azimuth",void 0),e.__decorate([t.Column("tinyint",{name:"motionDetected",width:1,nullable:!0,transformer:new o.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.Position.prototype,"motionDetected",void 0),e.__decorate([t.Column("tinyint",{name:"deleted",nullable:!0,width:1,transformer:new o.BoolToNumberTransformer,default:()=>"'0'"}),e.__metadata("design:type",Boolean)],exports.Position.prototype,"deleted",void 0),exports.Position=e.__decorate([t.Index("ixPositionClientId_Imei_ActualDate",["clientId","imei","actualDate"],{}),t.Entity("position",{schema:"nova",comment:"Trigger table rebuild 2026-06-24"})],exports.Position);
|
package/dist/entities/trip.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/boolToNumberTransformer.js"),r=require("../utils/uuidTransformer.js");exports.Trip=class Trip{id;tripGuid;imei;startDate;endDate;distance;startLat;startLon;endLat;endLon;createdAt;startAddress;endAddress;positionStart;positionEnd;tripCompletionStatusId;clientId;duration;tripType;startMessageId;endMessageId;startSendTimeMessage;endSendTimeMessage;deleted;startOdometer;endOdometer;startPositionId;endPositionId},e.__decorate([t.PrimaryGeneratedColumn({type:"bigint",name:"id"}),e.__metadata("design:type",Number)],exports.Trip.prototype,"id",void 0),e.__decorate([t.Column("binary",{name:"tripGuid",length:16,transformer:r.UUIDTransformer}),e.__metadata("design:type",String)],exports.Trip.prototype,"tripGuid",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.Trip.prototype,"imei",void 0),e.__decorate([t.Column("datetime",{name:"startDate",precision:3}),e.__metadata("design:type",Date)],exports.Trip.prototype,"startDate",void 0),e.__decorate([t.Column("datetime",{name:"endDate",nullable:!0,precision:3}),e.__metadata("design:type",Date)],exports.Trip.prototype,"endDate",void 0),e.__decorate([t.Column("float",{name:"distance"}),e.__metadata("design:type",Number)],exports.Trip.prototype,"distance",void 0),e.__decorate([t.Column("decimal",{name:"startLat",precision:8,scale:6}),e.__metadata("design:type",Number)],exports.Trip.prototype,"startLat",void 0),e.__decorate([t.Column("decimal",{name:"startLon",precision:9,scale:6}),e.__metadata("design:type",Number)],exports.Trip.prototype,"startLon",void 0),e.__decorate([t.Column("decimal",{name:"endLat",nullable:!0,precision:8,scale:6}),e.__metadata("design:type",Number)],exports.Trip.prototype,"endLat",void 0),e.__decorate([t.Column("decimal",{name:"endLon",nullable:!0,precision:9,scale:6}),e.__metadata("design:type",Number)],exports.Trip.prototype,"endLon",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",precision:3}),e.__metadata("design:type",Date)],exports.Trip.prototype,"createdAt",void 0),e.__decorate([t.Column("varchar",{name:"startAddress",length:255}),e.__metadata("design:type",String)],exports.Trip.prototype,"startAddress",void 0),e.__decorate([t.Column("varchar",{name:"endAddress",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.Trip.prototype,"endAddress",void 0),e.__decorate([t.Column("varchar",{name:"positionStart",length:255}),e.__metadata("design:type",String)],exports.Trip.prototype,"positionStart",void 0),e.__decorate([t.Column("varchar",{name:"positionEnd",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.Trip.prototype,"positionEnd",void 0),e.__decorate([t.Column("tinyint",{name:"tripCompletionStatusId",default:()=>"'1'"}),e.__metadata("design:type",Number)],exports.Trip.prototype,"tripCompletionStatusId",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.Trip.prototype,"clientId",void 0),e.__decorate([t.Column("int",{name:"duration"}),e.__metadata("design:type",Number)],exports.Trip.prototype,"duration",void 0),e.__decorate([t.Column("tinyint",{name:"tripType"}),e.__metadata("design:type",Number)],exports.Trip.prototype,"tripType",void 0),e.__decorate([t.Column("binary",{name:"startMessageId",length:16,transformer:r.UUIDTransformer}),e.__metadata("design:type",String)],exports.Trip.prototype,"startMessageId",void 0),e.__decorate([t.Column("binary",{name:"endMessageId",length:16,nullable:!0,transformer:r.UUIDTransformer}),e.__metadata("design:type",String)],exports.Trip.prototype,"endMessageId",void 0),e.__decorate([t.Column("datetime",{name:"startSendTimeMessage",nullable:!0,precision:3}),e.__metadata("design:type",Date)],exports.Trip.prototype,"startSendTimeMessage",void 0),e.__decorate([t.Column("datetime",{name:"endSendTimeMessage",nullable:!0,precision:3}),e.__metadata("design:type",Date)],exports.Trip.prototype,"endSendTimeMessage",void 0),e.__decorate([t.Column("tinyint",{name:"deleted",nullable:!0,width:1,transformer:new a.BoolToNumberTransformer,default:()=>"'0'"}),e.__metadata("design:type",Boolean)],exports.Trip.prototype,"deleted",void 0),e.__decorate([t.Column("double",{name:"startOdometer",nullable:!0}),e.__metadata("design:type",Number)],exports.Trip.prototype,"startOdometer",void 0),e.__decorate([t.Column("double",{name:"endOdometer",nullable:!0}),e.__metadata("design:type",Number)],exports.Trip.prototype,"endOdometer",void 0),e.__decorate([t.Column("bigint",{name:"startPositionId",nullable:!0}),e.__metadata("design:type",Number)],exports.Trip.prototype,"startPositionId",void 0),e.__decorate([t.Column("bigint",{name:"endPositionId",nullable:!0}),e.__metadata("design:type",Number)],exports.Trip.prototype,"endPositionId",void 0),exports.Trip=e.__decorate([t.Index("ixuTripGuid",["tripGuid"],{unique:!0}),t.Index("ixTripImei",["imei"],{}),t.Index("ixTripStartDate",["startDate"],{}),t.Index("ixTripEndDate",["endDate"],{}),t.Index("ixCreatedAt",["createdAt"],{}),t.Index("ixTripClientIdImeiStartDate",["clientId","imei","startDate"],{}),t.Entity("trip",{schema:"nova"})],exports.Trip);
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/boolToNumberTransformer.js"),r=require("../utils/uuidTransformer.js");exports.Trip=class Trip{id;tripGuid;imei;startDate;endDate;distance;startLat;startLon;endLat;endLon;createdAt;startAddress;endAddress;positionStart;positionEnd;tripCompletionStatusId;clientId;duration;tripType;startMessageId;endMessageId;startSendTimeMessage;endSendTimeMessage;deleted;startOdometer;endOdometer;startPositionId;endPositionId},e.__decorate([t.PrimaryGeneratedColumn({type:"bigint",name:"id"}),e.__metadata("design:type",Number)],exports.Trip.prototype,"id",void 0),e.__decorate([t.Column("binary",{name:"tripGuid",length:16,transformer:r.UUIDTransformer}),e.__metadata("design:type",String)],exports.Trip.prototype,"tripGuid",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.Trip.prototype,"imei",void 0),e.__decorate([t.Column("datetime",{name:"startDate",precision:3}),e.__metadata("design:type",Date)],exports.Trip.prototype,"startDate",void 0),e.__decorate([t.Column("datetime",{name:"endDate",nullable:!0,precision:3}),e.__metadata("design:type",Date)],exports.Trip.prototype,"endDate",void 0),e.__decorate([t.Column("float",{name:"distance"}),e.__metadata("design:type",Number)],exports.Trip.prototype,"distance",void 0),e.__decorate([t.Column("decimal",{name:"startLat",precision:8,scale:6}),e.__metadata("design:type",Number)],exports.Trip.prototype,"startLat",void 0),e.__decorate([t.Column("decimal",{name:"startLon",precision:9,scale:6}),e.__metadata("design:type",Number)],exports.Trip.prototype,"startLon",void 0),e.__decorate([t.Column("decimal",{name:"endLat",nullable:!0,precision:8,scale:6}),e.__metadata("design:type",Number)],exports.Trip.prototype,"endLat",void 0),e.__decorate([t.Column("decimal",{name:"endLon",nullable:!0,precision:9,scale:6}),e.__metadata("design:type",Number)],exports.Trip.prototype,"endLon",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",precision:3}),e.__metadata("design:type",Date)],exports.Trip.prototype,"createdAt",void 0),e.__decorate([t.Column("varchar",{name:"startAddress",length:255}),e.__metadata("design:type",String)],exports.Trip.prototype,"startAddress",void 0),e.__decorate([t.Column("varchar",{name:"endAddress",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.Trip.prototype,"endAddress",void 0),e.__decorate([t.Column("varchar",{name:"positionStart",length:255}),e.__metadata("design:type",String)],exports.Trip.prototype,"positionStart",void 0),e.__decorate([t.Column("varchar",{name:"positionEnd",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.Trip.prototype,"positionEnd",void 0),e.__decorate([t.Column("tinyint",{name:"tripCompletionStatusId",default:()=>"'1'"}),e.__metadata("design:type",Number)],exports.Trip.prototype,"tripCompletionStatusId",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.Trip.prototype,"clientId",void 0),e.__decorate([t.Column("int",{name:"duration"}),e.__metadata("design:type",Number)],exports.Trip.prototype,"duration",void 0),e.__decorate([t.Column("tinyint",{name:"tripType"}),e.__metadata("design:type",Number)],exports.Trip.prototype,"tripType",void 0),e.__decorate([t.Column("binary",{name:"startMessageId",length:16,transformer:r.UUIDTransformer}),e.__metadata("design:type",String)],exports.Trip.prototype,"startMessageId",void 0),e.__decorate([t.Column("binary",{name:"endMessageId",length:16,nullable:!0,transformer:r.UUIDTransformer}),e.__metadata("design:type",String)],exports.Trip.prototype,"endMessageId",void 0),e.__decorate([t.Column("datetime",{name:"startSendTimeMessage",nullable:!0,precision:3}),e.__metadata("design:type",Date)],exports.Trip.prototype,"startSendTimeMessage",void 0),e.__decorate([t.Column("datetime",{name:"endSendTimeMessage",nullable:!0,precision:3}),e.__metadata("design:type",Date)],exports.Trip.prototype,"endSendTimeMessage",void 0),e.__decorate([t.Column("tinyint",{name:"deleted",nullable:!0,width:1,transformer:new a.BoolToNumberTransformer,default:()=>"'0'"}),e.__metadata("design:type",Boolean)],exports.Trip.prototype,"deleted",void 0),e.__decorate([t.Column("double",{name:"startOdometer",nullable:!0}),e.__metadata("design:type",Number)],exports.Trip.prototype,"startOdometer",void 0),e.__decorate([t.Column("double",{name:"endOdometer",nullable:!0}),e.__metadata("design:type",Number)],exports.Trip.prototype,"endOdometer",void 0),e.__decorate([t.Column("bigint",{name:"startPositionId",nullable:!0}),e.__metadata("design:type",Number)],exports.Trip.prototype,"startPositionId",void 0),e.__decorate([t.Column("bigint",{name:"endPositionId",nullable:!0}),e.__metadata("design:type",Number)],exports.Trip.prototype,"endPositionId",void 0),exports.Trip=e.__decorate([t.Index("ixuTripGuid",["tripGuid"],{unique:!0}),t.Index("ixTripImei",["imei"],{}),t.Index("ixTripStartDate",["startDate"],{}),t.Index("ixTripEndDate",["endDate"],{}),t.Index("ixCreatedAt",["createdAt"],{}),t.Index("ixTripClientIdImeiStartDate",["clientId","imei","startDate"],{}),t.Entity("trip",{schema:"nova",comment:"Trigger table rebuild 2026-06-24"})],exports.Trip);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
4
|
-
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
5
|
-
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
6
4
|
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
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
|
-
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
|
12
|
-
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
13
11
|
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
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: cbcd159b739e4a410dd89e6876ce6cbb
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-06-
|
|
3
|
+
-- Generated at: 2026-06-25T07:48:40.732Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -519,6 +519,7 @@ CREATE TABLE `billingCampaignPrepaid` (
|
|
|
519
519
|
`annualUpsellLastShownAt` datetime DEFAULT NULL,
|
|
520
520
|
`annualUpsellDismissedCount` int NOT NULL DEFAULT '0',
|
|
521
521
|
`annualUpsellUpgradedAt` datetime DEFAULT NULL,
|
|
522
|
+
`annualUpsellQueuedAt` datetime DEFAULT NULL,
|
|
522
523
|
`createdAt` datetime DEFAULT NULL,
|
|
523
524
|
`updatedAt` datetime DEFAULT NULL,
|
|
524
525
|
PRIMARY KEY (`id`),
|
|
@@ -1378,7 +1379,7 @@ CREATE TABLE `customerAttribute` (
|
|
|
1378
1379
|
`clientId` int NOT NULL,
|
|
1379
1380
|
`enterprise` tinyint(1) NOT NULL DEFAULT '0',
|
|
1380
1381
|
`maintenanceModule` tinyint(1) NOT NULL DEFAULT '0',
|
|
1381
|
-
`icp`
|
|
1382
|
+
`icp` enum('asset_rental','retail','other') DEFAULT NULL,
|
|
1382
1383
|
`billingMethod` enum('credit-card-hubspot','ach-hubspot','credit-card-braintree','ach-braintree','ach-wire','check','dib-sap') DEFAULT NULL,
|
|
1383
1384
|
`customerSegment` enum('whale','bass','guppy','guppy-self-serve') DEFAULT NULL,
|
|
1384
1385
|
PRIMARY KEY (`clientId`)
|
|
@@ -2581,7 +2582,7 @@ CREATE TABLE `position` (
|
|
|
2581
2582
|
`deleted` tinyint(1) DEFAULT '0',
|
|
2582
2583
|
PRIMARY KEY (`id`),
|
|
2583
2584
|
KEY `ixPositionClientId_Imei_ActualDate` (`clientId`,`imei`,`actualDate`)
|
|
2584
|
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
2585
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Trigger table rebuild 2026-06-24';
|
|
2585
2586
|
|
|
2586
2587
|
DROP TABLE IF EXISTS `promotion`;
|
|
2587
2588
|
CREATE TABLE `promotion` (
|
|
@@ -3401,7 +3402,7 @@ CREATE TABLE `trip` (
|
|
|
3401
3402
|
KEY `ixTripEndDate` (`endDate`),
|
|
3402
3403
|
KEY `ixTripStartDate` (`startDate`),
|
|
3403
3404
|
KEY `ixTripImei` (`imei`)
|
|
3404
|
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
3405
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Trigger table rebuild 2026-06-24';
|
|
3405
3406
|
|
|
3406
3407
|
DROP TABLE IF EXISTS `tripCompletionStatus`;
|
|
3407
3408
|
CREATE TABLE `tripCompletionStatus` (
|