@spytecgps/nova-orm 1.4.343 → 1.4.345

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.
@@ -11,4 +11,6 @@ export declare class DemoAccountTripSchedule {
11
11
  stopLat?: number | null;
12
12
  stopLng?: number | null;
13
13
  stopMinutes?: number | null;
14
+ waypointLat?: number | null;
15
+ waypointLng?: number | null;
14
16
  }
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm");exports.DemoAccountTripSchedule=class DemoAccountTripSchedule{id;demoAccountTemplateId;demoAccountTemplateDeviceId;startSiteLocationId;endSiteLocationId;departTime;idleMinutes;daysOfWeek;durationFactor;stopLat;stopLng;stopMinutes},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"id",void 0),e.__decorate([t.Column("smallint",{name:"demoAccountTemplateId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"demoAccountTemplateId",void 0),e.__decorate([t.Column("smallint",{name:"demoAccountTemplateDeviceId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"demoAccountTemplateDeviceId",void 0),e.__decorate([t.Column("smallint",{name:"startSiteLocationId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"startSiteLocationId",void 0),e.__decorate([t.Column("smallint",{name:"endSiteLocationId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"endSiteLocationId",void 0),e.__decorate([t.Column("time",{name:"departTime"}),e.__metadata("design:type",String)],exports.DemoAccountTripSchedule.prototype,"departTime",void 0),e.__decorate([t.Column("smallint",{name:"idleMinutes",default:()=>"0"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"idleMinutes",void 0),e.__decorate([t.Column("tinyint",{name:"daysOfWeek",default:()=>"127"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"daysOfWeek",void 0),e.__decorate([t.Column("decimal",{name:"durationFactor",precision:4,scale:2,default:()=>"1.00"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"durationFactor",void 0),e.__decorate([t.Column("decimal",{name:"stopLat",precision:8,scale:6,nullable:!0}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"stopLat",void 0),e.__decorate([t.Column("decimal",{name:"stopLng",precision:9,scale:6,nullable:!0}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"stopLng",void 0),e.__decorate([t.Column("smallint",{name:"stopMinutes",nullable:!0}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"stopMinutes",void 0),exports.DemoAccountTripSchedule=e.__decorate([t.Index("ix_demoAccountTemplateId",["demoAccountTemplateId"],{}),t.Entity("demoAccountTripSchedule",{schema:"nova"})],exports.DemoAccountTripSchedule);
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm");exports.DemoAccountTripSchedule=class DemoAccountTripSchedule{id;demoAccountTemplateId;demoAccountTemplateDeviceId;startSiteLocationId;endSiteLocationId;departTime;idleMinutes;daysOfWeek;durationFactor;stopLat;stopLng;stopMinutes;waypointLat;waypointLng},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"id",void 0),e.__decorate([t.Column("smallint",{name:"demoAccountTemplateId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"demoAccountTemplateId",void 0),e.__decorate([t.Column("smallint",{name:"demoAccountTemplateDeviceId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"demoAccountTemplateDeviceId",void 0),e.__decorate([t.Column("smallint",{name:"startSiteLocationId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"startSiteLocationId",void 0),e.__decorate([t.Column("smallint",{name:"endSiteLocationId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"endSiteLocationId",void 0),e.__decorate([t.Column("time",{name:"departTime"}),e.__metadata("design:type",String)],exports.DemoAccountTripSchedule.prototype,"departTime",void 0),e.__decorate([t.Column("smallint",{name:"idleMinutes",default:()=>"0"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"idleMinutes",void 0),e.__decorate([t.Column("tinyint",{name:"daysOfWeek",default:()=>"127"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"daysOfWeek",void 0),e.__decorate([t.Column("decimal",{name:"durationFactor",precision:4,scale:2,default:()=>"1.00"}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"durationFactor",void 0),e.__decorate([t.Column("decimal",{name:"stopLat",precision:8,scale:6,nullable:!0}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"stopLat",void 0),e.__decorate([t.Column("decimal",{name:"stopLng",precision:9,scale:6,nullable:!0}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"stopLng",void 0),e.__decorate([t.Column("smallint",{name:"stopMinutes",nullable:!0}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"stopMinutes",void 0),e.__decorate([t.Column("decimal",{name:"waypointLat",precision:8,scale:6,nullable:!0}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"waypointLat",void 0),e.__decorate([t.Column("decimal",{name:"waypointLng",precision:9,scale:6,nullable:!0}),e.__metadata("design:type",Number)],exports.DemoAccountTripSchedule.prototype,"waypointLng",void 0),exports.DemoAccountTripSchedule=e.__decorate([t.Index("ix_demoAccountTemplateId",["demoAccountTemplateId"],{}),t.Entity("demoAccountTripSchedule",{schema:"nova"})],exports.DemoAccountTripSchedule);
@@ -5,4 +5,6 @@ export declare class DemoAccountTripTemplate {
5
5
  endSiteLocationId: number;
6
6
  distance: number;
7
7
  duration: number;
8
+ waypointLat?: number | null;
9
+ waypointLng?: number | null;
8
10
  }
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm");exports.DemoAccountTripTemplate=class DemoAccountTripTemplate{id;demoAccountTemplateId;startSiteLocationId;endSiteLocationId;distance;duration},e.__decorate([t.PrimaryGeneratedColumn({type:"smallint",name:"id"}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"id",void 0),e.__decorate([t.Column("smallint",{name:"demoAccountTemplateId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"demoAccountTemplateId",void 0),e.__decorate([t.Column("smallint",{name:"startSiteLocationId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"startSiteLocationId",void 0),e.__decorate([t.Column("smallint",{name:"endSiteLocationId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"endSiteLocationId",void 0),e.__decorate([t.Column("int",{name:"distance"}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"distance",void 0),e.__decorate([t.Column("int",{name:"duration"}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"duration",void 0),exports.DemoAccountTripTemplate=e.__decorate([t.Index("ix_demoAccountTemplateId",["demoAccountTemplateId"],{}),t.Entity("demoAccountTripTemplate",{schema:"nova"})],exports.DemoAccountTripTemplate);
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm");exports.DemoAccountTripTemplate=class DemoAccountTripTemplate{id;demoAccountTemplateId;startSiteLocationId;endSiteLocationId;distance;duration;waypointLat;waypointLng},e.__decorate([t.PrimaryGeneratedColumn({type:"smallint",name:"id"}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"id",void 0),e.__decorate([t.Column("smallint",{name:"demoAccountTemplateId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"demoAccountTemplateId",void 0),e.__decorate([t.Column("smallint",{name:"startSiteLocationId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"startSiteLocationId",void 0),e.__decorate([t.Column("smallint",{name:"endSiteLocationId"}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"endSiteLocationId",void 0),e.__decorate([t.Column("int",{name:"distance"}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"distance",void 0),e.__decorate([t.Column("int",{name:"duration"}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"duration",void 0),e.__decorate([t.Column("decimal",{name:"waypointLat",precision:8,scale:6,nullable:!0}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"waypointLat",void 0),e.__decorate([t.Column("decimal",{name:"waypointLng",precision:9,scale:6,nullable:!0}),e.__metadata("design:type",Number)],exports.DemoAccountTripTemplate.prototype,"waypointLng",void 0),exports.DemoAccountTripTemplate=e.__decorate([t.Index("ix_demoAccountTemplateId",["demoAccountTemplateId"],{}),t.Entity("demoAccountTripTemplate",{schema:"nova"})],exports.DemoAccountTripTemplate);
@@ -60,6 +60,18 @@ export interface JobTimelineEvent {
60
60
  /** Who sent an `operator_note`. Unset on milestones and on customer notes. */
61
61
  author?: string;
62
62
  }
63
+ /**
64
+ * Google's driving route for the endpoints it was computed from, as an encoded
65
+ * polyline. `polyline` is null when no route could be computed at `computedAt`.
66
+ */
67
+ export interface JobPlannedRoute {
68
+ startLat: number;
69
+ startLng: number;
70
+ endLat: number;
71
+ endLng: number;
72
+ polyline: string | null;
73
+ computedAt: string;
74
+ }
63
75
  /**
64
76
  * Const value namespace for {@link JobLifecycle}. Use these instead of inline
65
77
  * string literals so call sites don't drift if the enum is ever renamed.
@@ -161,6 +173,8 @@ export declare class Job {
161
173
  rules: JobRule[] | null;
162
174
  timeline: JobTimelineEvent[] | null;
163
175
  recipients: JobRecipients | null;
176
+ /** Only the jobs processor reads the path, so default selects leave it out. */
177
+ plannedRoute: JobPlannedRoute | null;
164
178
  liveLinkToken: string | null;
165
179
  showAttachmentsOnLiveLink: boolean;
166
180
  /** Stashed cadence captured when lifecycle entered Arriving — null otherwise. */
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/uuidTransformer.js");const o={Upcoming:"Upcoming",AwaitingUpdate:"AwaitingUpdate",AtOrigin:"AtOrigin",InProgress:"InProgress",Arriving:"Arriving",Arrived:"Arrived",Complete:"Complete",Cancelled:"Cancelled"},r=new Set([o.Upcoming,o.AwaitingUpdate,o.AtOrigin,o.InProgress,o.Arriving,o.Arrived]);exports.Job=class Job{id;clientId;imei;name;reference;customerPhone;lifecycle;healthSignals;proofState;outcome;startLat;startLng;startLabel;startDetail;startRadiusM;endLat;endLng;endLabel;endDetail;endRadiusM;scheduledStart;targetArrival;startedAt;firstObservedAt;arrivedAt;completedAt;cancelledAt;pingsInEndZone;lastPositionAt;lastEvaluatedAt;etaArrivalAt;etaUpdatedAt;etaDriveSeconds;etaDistanceMeters;originalEtaDriveSeconds;etaWindowBufferMinutes;rules;timeline;recipients;liveLinkToken;showAttachmentsOnLiveLink;priorMovingFrequency;priorStoppedFrequency;createdBy;createdAt;modifiedBy;modifiedAt;deletedAt;deletedBy},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.Job.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.Job.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.Job.prototype,"imei",void 0),e.__decorate([t.Column("varchar",{name:"name",length:255}),e.__metadata("design:type",String)],exports.Job.prototype,"name",void 0),e.__decorate([t.Column("varchar",{name:"reference",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"reference",void 0),e.__decorate([t.Column("varchar",{name:"customerPhone",length:20,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"customerPhone",void 0),e.__decorate([t.Column("varchar",{name:"lifecycle",length:20,default:"Upcoming"}),e.__metadata("design:type",String)],exports.Job.prototype,"lifecycle",void 0),e.__decorate([t.Column("json",{name:"healthSignals",nullable:!0}),e.__metadata("design:type",Array)],exports.Job.prototype,"healthSignals",void 0),e.__decorate([t.Column("varchar",{name:"proofState",length:20,default:"NotArrived"}),e.__metadata("design:type",String)],exports.Job.prototype,"proofState",void 0),e.__decorate([t.Column("varchar",{name:"outcome",length:10,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"outcome",void 0),e.__decorate([t.Column("double",{name:"startLat",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"startLat",void 0),e.__decorate([t.Column("double",{name:"startLng",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"startLng",void 0),e.__decorate([t.Column("varchar",{name:"startLabel",length:500,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"startLabel",void 0),e.__decorate([t.Column("varchar",{name:"startDetail",length:500,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"startDetail",void 0),e.__decorate([t.Column("int",{name:"startRadiusM",default:150}),e.__metadata("design:type",Number)],exports.Job.prototype,"startRadiusM",void 0),e.__decorate([t.Column("double",{name:"endLat",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"endLat",void 0),e.__decorate([t.Column("double",{name:"endLng",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"endLng",void 0),e.__decorate([t.Column("varchar",{name:"endLabel",length:500,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"endLabel",void 0),e.__decorate([t.Column("varchar",{name:"endDetail",length:500,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"endDetail",void 0),e.__decorate([t.Column("int",{name:"endRadiusM",default:150}),e.__metadata("design:type",Number)],exports.Job.prototype,"endRadiusM",void 0),e.__decorate([t.Column("datetime",{name:"scheduledStart",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"scheduledStart",void 0),e.__decorate([t.Column("datetime",{name:"targetArrival",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"targetArrival",void 0),e.__decorate([t.Column("datetime",{name:"startedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"startedAt",void 0),e.__decorate([t.Column("datetime",{name:"firstObservedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"firstObservedAt",void 0),e.__decorate([t.Column("datetime",{name:"arrivedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"arrivedAt",void 0),e.__decorate([t.Column("datetime",{name:"completedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"completedAt",void 0),e.__decorate([t.Column("datetime",{name:"cancelledAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"cancelledAt",void 0),e.__decorate([t.Column("int",{name:"pingsInEndZone",default:0}),e.__metadata("design:type",Number)],exports.Job.prototype,"pingsInEndZone",void 0),e.__decorate([t.Column("datetime",{name:"lastPositionAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"lastPositionAt",void 0),e.__decorate([t.Column("datetime",{name:"lastEvaluatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"lastEvaluatedAt",void 0),e.__decorate([t.Column("datetime",{name:"etaArrivalAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"etaArrivalAt",void 0),e.__decorate([t.Column("datetime",{name:"etaUpdatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"etaUpdatedAt",void 0),e.__decorate([t.Column("int",{name:"etaDriveSeconds",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"etaDriveSeconds",void 0),e.__decorate([t.Column("int",{name:"etaDistanceMeters",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"etaDistanceMeters",void 0),e.__decorate([t.Column("int",{name:"originalEtaDriveSeconds",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"originalEtaDriveSeconds",void 0),e.__decorate([t.Column("int",{name:"etaWindowBufferMinutes",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"etaWindowBufferMinutes",void 0),e.__decorate([t.Column("json",{name:"rules",nullable:!0}),e.__metadata("design:type",Array)],exports.Job.prototype,"rules",void 0),e.__decorate([t.Column("json",{name:"timeline",nullable:!0}),e.__metadata("design:type",Array)],exports.Job.prototype,"timeline",void 0),e.__decorate([t.Column("json",{name:"recipients",nullable:!0}),e.__metadata("design:type",Object)],exports.Job.prototype,"recipients",void 0),e.__decorate([t.Column("binary",{name:"liveLinkToken",length:16,nullable:!0,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.Job.prototype,"liveLinkToken",void 0),e.__decorate([t.Column("tinyint",{name:"showAttachmentsOnLiveLink",default:0,width:1}),e.__metadata("design:type",Boolean)],exports.Job.prototype,"showAttachmentsOnLiveLink",void 0),e.__decorate([t.Column("int",{name:"priorMovingFrequency",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"priorMovingFrequency",void 0),e.__decorate([t.Column("int",{name:"priorStoppedFrequency",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"priorStoppedFrequency",void 0),e.__decorate([t.Column("binary",{name:"createdBy",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.Job.prototype,"createdBy",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.Job.prototype,"createdAt",void 0),e.__decorate([t.Column("binary",{name:"modifiedBy",length:16,nullable:!0,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.Job.prototype,"modifiedBy",void 0),e.__decorate([t.UpdateDateColumn({name:"modifiedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"modifiedAt",void 0),e.__decorate([t.DeleteDateColumn({name:"deletedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"deletedAt",void 0),e.__decorate([t.Column("binary",{name:"deletedBy",length:16,nullable:!0,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.Job.prototype,"deletedBy",void 0),exports.Job=e.__decorate([t.Index("ixJobClientIdLifecycle",["clientId","lifecycle"],{}),t.Index("ixJobImeiLifecycle",["imei","lifecycle"],{}),t.Index("ixJobClientIdCreatedBy",["clientId","createdBy"],{}),t.Index("uxJobLiveLinkToken",["liveLinkToken"],{unique:!0}),t.Entity("job",{schema:"nova"})],exports.Job),exports.ACTIVE_JOB_LIFECYCLES=r,exports.JobHealthSignalValue={OnTrack:"OnTrack",Delayed:"Delayed",DelayedStart:"DelayedStart",NotReporting:"NotReporting",RuleViolation:"RuleViolation",LowBattery:"LowBattery"},exports.JobLifecycleValue=o,exports.JobOutcomeValue={OnTime:"on_time",Late:"late",Early:"early"},exports.JobProofStateValue={NotArrived:"NotArrived",FirstObserved:"FirstObserved",ArrivalConfirmed:"ArrivalConfirmed",Unknown:"Unknown"},exports.JobRuleKindValue={Stop:"stop",Zone:"zone",Eta:"eta",Window:"window",Speed:"speed",Deviation:"deviation"},exports.JobTimelineKindValue={Now:"now",Alert:"alert",Info:"info",CustomerNote:"customer_note",OperatorNote:"operator_note"};
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/uuidTransformer.js");const o={Upcoming:"Upcoming",AwaitingUpdate:"AwaitingUpdate",AtOrigin:"AtOrigin",InProgress:"InProgress",Arriving:"Arriving",Arrived:"Arrived",Complete:"Complete",Cancelled:"Cancelled"},n=new Set([o.Upcoming,o.AwaitingUpdate,o.AtOrigin,o.InProgress,o.Arriving,o.Arrived]);exports.Job=class Job{id;clientId;imei;name;reference;customerPhone;lifecycle;healthSignals;proofState;outcome;startLat;startLng;startLabel;startDetail;startRadiusM;endLat;endLng;endLabel;endDetail;endRadiusM;scheduledStart;targetArrival;startedAt;firstObservedAt;arrivedAt;completedAt;cancelledAt;pingsInEndZone;lastPositionAt;lastEvaluatedAt;etaArrivalAt;etaUpdatedAt;etaDriveSeconds;etaDistanceMeters;originalEtaDriveSeconds;etaWindowBufferMinutes;rules;timeline;recipients;plannedRoute;liveLinkToken;showAttachmentsOnLiveLink;priorMovingFrequency;priorStoppedFrequency;createdBy;createdAt;modifiedBy;modifiedAt;deletedAt;deletedBy},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.Job.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.Job.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.Job.prototype,"imei",void 0),e.__decorate([t.Column("varchar",{name:"name",length:255}),e.__metadata("design:type",String)],exports.Job.prototype,"name",void 0),e.__decorate([t.Column("varchar",{name:"reference",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"reference",void 0),e.__decorate([t.Column("varchar",{name:"customerPhone",length:20,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"customerPhone",void 0),e.__decorate([t.Column("varchar",{name:"lifecycle",length:20,default:"Upcoming"}),e.__metadata("design:type",String)],exports.Job.prototype,"lifecycle",void 0),e.__decorate([t.Column("json",{name:"healthSignals",nullable:!0}),e.__metadata("design:type",Array)],exports.Job.prototype,"healthSignals",void 0),e.__decorate([t.Column("varchar",{name:"proofState",length:20,default:"NotArrived"}),e.__metadata("design:type",String)],exports.Job.prototype,"proofState",void 0),e.__decorate([t.Column("varchar",{name:"outcome",length:10,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"outcome",void 0),e.__decorate([t.Column("double",{name:"startLat",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"startLat",void 0),e.__decorate([t.Column("double",{name:"startLng",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"startLng",void 0),e.__decorate([t.Column("varchar",{name:"startLabel",length:500,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"startLabel",void 0),e.__decorate([t.Column("varchar",{name:"startDetail",length:500,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"startDetail",void 0),e.__decorate([t.Column("int",{name:"startRadiusM",default:150}),e.__metadata("design:type",Number)],exports.Job.prototype,"startRadiusM",void 0),e.__decorate([t.Column("double",{name:"endLat",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"endLat",void 0),e.__decorate([t.Column("double",{name:"endLng",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"endLng",void 0),e.__decorate([t.Column("varchar",{name:"endLabel",length:500,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"endLabel",void 0),e.__decorate([t.Column("varchar",{name:"endDetail",length:500,nullable:!0}),e.__metadata("design:type",String)],exports.Job.prototype,"endDetail",void 0),e.__decorate([t.Column("int",{name:"endRadiusM",default:150}),e.__metadata("design:type",Number)],exports.Job.prototype,"endRadiusM",void 0),e.__decorate([t.Column("datetime",{name:"scheduledStart",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"scheduledStart",void 0),e.__decorate([t.Column("datetime",{name:"targetArrival",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"targetArrival",void 0),e.__decorate([t.Column("datetime",{name:"startedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"startedAt",void 0),e.__decorate([t.Column("datetime",{name:"firstObservedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"firstObservedAt",void 0),e.__decorate([t.Column("datetime",{name:"arrivedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"arrivedAt",void 0),e.__decorate([t.Column("datetime",{name:"completedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"completedAt",void 0),e.__decorate([t.Column("datetime",{name:"cancelledAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"cancelledAt",void 0),e.__decorate([t.Column("int",{name:"pingsInEndZone",default:0}),e.__metadata("design:type",Number)],exports.Job.prototype,"pingsInEndZone",void 0),e.__decorate([t.Column("datetime",{name:"lastPositionAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"lastPositionAt",void 0),e.__decorate([t.Column("datetime",{name:"lastEvaluatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"lastEvaluatedAt",void 0),e.__decorate([t.Column("datetime",{name:"etaArrivalAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"etaArrivalAt",void 0),e.__decorate([t.Column("datetime",{name:"etaUpdatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"etaUpdatedAt",void 0),e.__decorate([t.Column("int",{name:"etaDriveSeconds",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"etaDriveSeconds",void 0),e.__decorate([t.Column("int",{name:"etaDistanceMeters",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"etaDistanceMeters",void 0),e.__decorate([t.Column("int",{name:"originalEtaDriveSeconds",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"originalEtaDriveSeconds",void 0),e.__decorate([t.Column("int",{name:"etaWindowBufferMinutes",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"etaWindowBufferMinutes",void 0),e.__decorate([t.Column("json",{name:"rules",nullable:!0}),e.__metadata("design:type",Array)],exports.Job.prototype,"rules",void 0),e.__decorate([t.Column("json",{name:"timeline",nullable:!0}),e.__metadata("design:type",Array)],exports.Job.prototype,"timeline",void 0),e.__decorate([t.Column("json",{name:"recipients",nullable:!0}),e.__metadata("design:type",Object)],exports.Job.prototype,"recipients",void 0),e.__decorate([t.Column("json",{name:"plannedRoute",nullable:!0,select:!1}),e.__metadata("design:type",Object)],exports.Job.prototype,"plannedRoute",void 0),e.__decorate([t.Column("binary",{name:"liveLinkToken",length:16,nullable:!0,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.Job.prototype,"liveLinkToken",void 0),e.__decorate([t.Column("tinyint",{name:"showAttachmentsOnLiveLink",default:0,width:1}),e.__metadata("design:type",Boolean)],exports.Job.prototype,"showAttachmentsOnLiveLink",void 0),e.__decorate([t.Column("int",{name:"priorMovingFrequency",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"priorMovingFrequency",void 0),e.__decorate([t.Column("int",{name:"priorStoppedFrequency",nullable:!0}),e.__metadata("design:type",Number)],exports.Job.prototype,"priorStoppedFrequency",void 0),e.__decorate([t.Column("binary",{name:"createdBy",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.Job.prototype,"createdBy",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.Job.prototype,"createdAt",void 0),e.__decorate([t.Column("binary",{name:"modifiedBy",length:16,nullable:!0,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.Job.prototype,"modifiedBy",void 0),e.__decorate([t.UpdateDateColumn({name:"modifiedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"modifiedAt",void 0),e.__decorate([t.DeleteDateColumn({name:"deletedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.Job.prototype,"deletedAt",void 0),e.__decorate([t.Column("binary",{name:"deletedBy",length:16,nullable:!0,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.Job.prototype,"deletedBy",void 0),exports.Job=e.__decorate([t.Index("ixJobClientIdLifecycle",["clientId","lifecycle"],{}),t.Index("ixJobImeiLifecycle",["imei","lifecycle"],{}),t.Index("ixJobClientIdCreatedBy",["clientId","createdBy"],{}),t.Index("uxJobLiveLinkToken",["liveLinkToken"],{unique:!0}),t.Entity("job",{schema:"nova"})],exports.Job),exports.ACTIVE_JOB_LIFECYCLES=n,exports.JobHealthSignalValue={OnTrack:"OnTrack",Delayed:"Delayed",DelayedStart:"DelayedStart",NotReporting:"NotReporting",RuleViolation:"RuleViolation",LowBattery:"LowBattery"},exports.JobLifecycleValue=o,exports.JobOutcomeValue={OnTime:"on_time",Late:"late",Early:"early"},exports.JobProofStateValue={NotArrived:"NotArrived",FirstObserved:"FirstObserved",ArrivalConfirmed:"ArrivalConfirmed",Unknown:"Unknown"},exports.JobRuleKindValue={Stop:"stop",Zone:"zone",Eta:"eta",Window:"window",Speed:"speed",Deviation:"deviation"},exports.JobTimelineKindValue={Now:"now",Alert:"alert",Info:"info",CustomerNote:"customer_note",OperatorNote:"operator_note"};
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Repository } from 'typeorm';
2
2
  import * as Cache from './cache';
3
3
  import * as Entities from './entities';
4
- import { ACTIVE_JOB_LIFECYCLES, type JobHealthSignal, JobHealthSignalValue, type JobLifecycle, JobLifecycleValue, type JobOutcome, JobOutcomeValue, type JobProofState, JobProofStateValue, type JobRecipientChannels, type JobRecipients, type JobRule, type JobRuleKind, JobRuleKindValue, type JobTimelineEvent, type JobTimelineKind, JobTimelineKindValue } from './entities/job';
4
+ import { ACTIVE_JOB_LIFECYCLES, type JobHealthSignal, JobHealthSignalValue, type JobLifecycle, JobLifecycleValue, type JobOutcome, JobOutcomeValue, type JobPlannedRoute, type JobProofState, JobProofStateValue, type JobRecipientChannels, type JobRecipients, type JobRule, type JobRuleKind, JobRuleKindValue, type JobTimelineEvent, type JobTimelineKind, JobTimelineKindValue } from './entities/job';
5
5
  import { type JobCustomerLinkDeliveryStatus, JobCustomerLinkDeliveryStatusValue, type JobCustomerLinkStatus, JobCustomerLinkStatusValue } from './entities/jobCustomerLink';
6
6
  import { type CustomerPageDefaultJobRules, type CustomerPageSendDefaults } from './entities/jobCustomerPageSetting';
7
7
  import { NovaDataSource, NovaDataSourceConfig } from './novaDataSource';
@@ -28,4 +28,4 @@ declare const Utils: {
28
28
  addMonthsToNow: (months: number) => Date;
29
29
  mapRawEntityToEntity: <T>(rawEntity: any, columnsPrefix?: string) => T;
30
30
  };
31
- export { ACTIVE_JOB_LIFECYCLES, Cache, ConsoleLogger, CustomerPageDefaultJobRules, CustomerPageSendDefaults, Entities, Enums, JobCustomerLinkDeliveryStatus, JobCustomerLinkDeliveryStatusValue, JobCustomerLinkStatus, JobCustomerLinkStatusValue, JobHealthSignal, JobHealthSignalValue, JobLifecycle, JobLifecycleValue, JobOutcome, JobOutcomeValue, JobProofState, JobProofStateValue, JobRecipientChannels, JobRecipients, JobRule, JobRuleKind, JobRuleKindValue, JobTimelineEvent, JobTimelineKind, JobTimelineKindValue, NovaDataSource, NovaDataSourceConfig, queryTags, Repository, syncSchemaFromDump, SyncSchemaFromDumpConfig, Types, Utils, };
31
+ export { ACTIVE_JOB_LIFECYCLES, Cache, ConsoleLogger, CustomerPageDefaultJobRules, CustomerPageSendDefaults, Entities, Enums, JobCustomerLinkDeliveryStatus, JobCustomerLinkDeliveryStatusValue, JobCustomerLinkStatus, JobCustomerLinkStatusValue, JobHealthSignal, JobHealthSignalValue, JobLifecycle, JobLifecycleValue, JobOutcome, JobOutcomeValue, JobPlannedRoute, JobProofState, JobProofStateValue, JobRecipientChannels, JobRecipients, JobRule, JobRuleKind, JobRuleKindValue, JobTimelineEvent, JobTimelineKind, JobTimelineKindValue, NovaDataSource, NovaDataSourceConfig, queryTags, Repository, syncSchemaFromDump, SyncSchemaFromDumpConfig, Types, Utils, };
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
4
- var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
5
- var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
6
4
  var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
5
+ var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
6
+ var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
7
7
 
8
8
 
9
9
 
10
10
  exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
11
- exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
12
- exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
13
11
  exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
12
+ exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
13
+ exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.4.343",
3
+ "version": "1.4.345",
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: 60b80de82f5d6fa44d3d8f70d86ab4a7
1
+ -- nova-orm-schema-checksum: 7f49d2c87ee5d1b041847e591b6aff30
2
2
  -- Nova ORM Schema Dump
3
- -- Generated at: 2026-11-02T07:49:03.308Z
3
+ -- Generated at: 2026-11-02T18:11:00.548Z
4
4
 
5
5
  SET FOREIGN_KEY_CHECKS = 0;
6
6
 
@@ -1840,6 +1840,8 @@ CREATE TABLE `demoAccountTripSchedule` (
1840
1840
  `stopLat` decimal(8,6) DEFAULT NULL,
1841
1841
  `stopLng` decimal(9,6) DEFAULT NULL,
1842
1842
  `stopMinutes` smallint DEFAULT NULL,
1843
+ `waypointLat` decimal(8,6) DEFAULT NULL,
1844
+ `waypointLng` decimal(9,6) DEFAULT NULL,
1843
1845
  PRIMARY KEY (`id`),
1844
1846
  KEY `ix_demoAccountTemplateId` (`demoAccountTemplateId`)
1845
1847
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
@@ -1852,6 +1854,8 @@ CREATE TABLE `demoAccountTripTemplate` (
1852
1854
  `endSiteLocationId` smallint NOT NULL,
1853
1855
  `distance` int NOT NULL,
1854
1856
  `duration` int NOT NULL,
1857
+ `waypointLat` decimal(8,6) DEFAULT NULL,
1858
+ `waypointLng` decimal(9,6) DEFAULT NULL,
1855
1859
  PRIMARY KEY (`id`),
1856
1860
  KEY `ix_demoAccountTemplateId` (`demoAccountTemplateId`)
1857
1861
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
@@ -2769,6 +2773,7 @@ CREATE TABLE `job` (
2769
2773
  `rules` json DEFAULT NULL,
2770
2774
  `timeline` json DEFAULT NULL,
2771
2775
  `recipients` json DEFAULT NULL,
2776
+ `plannedRoute` json DEFAULT NULL,
2772
2777
  `liveLinkToken` binary(16) DEFAULT NULL,
2773
2778
  `showAttachmentsOnLiveLink` tinyint(1) NOT NULL DEFAULT '0',
2774
2779
  `priorMovingFrequency` int DEFAULT NULL,