@spytecgps/nova-orm 1.4.358 → 1.4.360
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/customerAttribute.d.ts +4 -1
- package/dist/entities/customerAttribute.js +1 -1
- package/dist/entities/ephemeralBoundary.d.ts +22 -0
- package/dist/entities/ephemeralBoundary.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/migration/_virtual/_virtual_multi-entry.js +2 -2
- package/dist/types/accountProfile.d.ts +2 -0
- package/dist/types/accountProfile.js +1 -1
- package/package.json +1 -1
- package/schema.sql +6 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Relation } from 'typeorm';
|
|
2
|
-
import type { AccountBilling, AccountDeviceSummary, AccountKind, AccountPowerProfile, AccountProfileSources, AccountStoreAccess, AccountStorePricing, AccountTier } from '../types/accountProfile';
|
|
2
|
+
import type { AccountBilling, AccountDeviceSummary, AccountIntendedUse, AccountKind, AccountPowerProfile, AccountProfileSources, AccountStoreAccess, AccountStorePricing, AccountTier } from '../types/accountProfile';
|
|
3
3
|
import { Client } from './client';
|
|
4
4
|
export declare class CustomerAttribute {
|
|
5
5
|
clientId: number;
|
|
@@ -27,6 +27,9 @@ export declare class CustomerAttribute {
|
|
|
27
27
|
overrideSetBy: string | null;
|
|
28
28
|
overrideSetAt: Date | null;
|
|
29
29
|
overrideReason: string | null;
|
|
30
|
+
intendedUse: AccountIntendedUse | null;
|
|
31
|
+
intendedUseAnsweredAt: Date | null;
|
|
32
|
+
intendedUseAnsweredBy: string | null;
|
|
30
33
|
billing: AccountBilling | null;
|
|
31
34
|
storeAccess: AccountStoreAccess | null;
|
|
32
35
|
storePricing: AccountStorePricing | null;
|
|
@@ -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;industries;primaryUseCase;crmPersonas;crmSolutions;storeBlocked;csmOwnerId;csmOwnerEmail;hubspotCompanyId;hubspotSyncedAt;deviceSummary;activationIndustry;billingOverride;storeAccessOverride;kindOverride;personasOverride;overrideSetBy;overrideSetAt;overrideReason;billing;storeAccess;storePricing;managed;kind;tier;personas;powerProfile;profileSources;profileComputedAt},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("varchar",{name:"icp",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"icp",void 0),e.__decorate([t.Column("varchar",{name:"billingMethod",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"billingMethod",void 0),e.__decorate([t.Column("varchar",{name:"customerSegment",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"customerSegment",void 0),e.__decorate([t.Column("varchar",{name:"industries",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"industries",void 0),e.__decorate([t.Column("varchar",{name:"primaryUseCase",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"primaryUseCase",void 0),e.__decorate([t.Column("varchar",{name:"crmPersonas",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"crmPersonas",void 0),e.__decorate([t.Column("varchar",{name:"crmSolutions",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"crmSolutions",void 0),e.__decorate([t.Column("tinyint",{name:"storeBlocked",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"storeBlocked",void 0),e.__decorate([t.Column("varchar",{name:"csmOwnerId",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"csmOwnerId",void 0),e.__decorate([t.Column("varchar",{name:"csmOwnerEmail",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"csmOwnerEmail",void 0),e.__decorate([t.Column("varchar",{name:"hubspotCompanyId",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"hubspotCompanyId",void 0),e.__decorate([t.Column("datetime",{name:"hubspotSyncedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.CustomerAttribute.prototype,"hubspotSyncedAt",void 0),e.__decorate([t.Column("json",{name:"deviceSummary",nullable:!0}),e.__metadata("design:type",Object)],exports.CustomerAttribute.prototype,"deviceSummary",void 0),e.__decorate([t.Column("varchar",{name:"activationIndustry",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"activationIndustry",void 0),e.__decorate([t.Column("varchar",{name:"billingOverride",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"billingOverride",void 0),e.__decorate([t.Column("varchar",{name:"storeAccessOverride",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"storeAccessOverride",void 0),e.__decorate([t.Column("varchar",{name:"kindOverride",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"kindOverride",void 0),e.__decorate([t.Column("json",{name:"personasOverride",nullable:!0}),e.__metadata("design:type",Array)],exports.CustomerAttribute.prototype,"personasOverride",void 0),e.__decorate([t.Column("varchar",{name:"overrideSetBy",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"overrideSetBy",void 0),e.__decorate([t.Column("datetime",{name:"overrideSetAt",nullable:!0}),e.__metadata("design:type",Date)],exports.CustomerAttribute.prototype,"overrideSetAt",void 0),e.__decorate([t.Column("varchar",{name:"overrideReason",length:500,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"overrideReason",void 0),e.__decorate([t.Column("varchar",{name:"billing",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"billing",void 0),e.__decorate([t.Column("varchar",{name:"storeAccess",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"storeAccess",void 0),e.__decorate([t.Column("varchar",{name:"storePricing",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"storePricing",void 0),e.__decorate([t.Column("tinyint",{name:"managed",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"managed",void 0),e.__decorate([t.Column("varchar",{name:"kind",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"kind",void 0),e.__decorate([t.Column("varchar",{name:"tier",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"tier",void 0),e.__decorate([t.Column("json",{name:"personas",nullable:!0}),e.__metadata("design:type",Array)],exports.CustomerAttribute.prototype,"personas",void 0),e.__decorate([t.Column("varchar",{name:"powerProfile",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"powerProfile",void 0),e.__decorate([t.Column("json",{name:"profileSources",nullable:!0}),e.__metadata("design:type",Object)],exports.CustomerAttribute.prototype,"profileSources",void 0),e.__decorate([t.Column("datetime",{name:"profileComputedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.CustomerAttribute.prototype,"profileComputedAt",void 0),exports.CustomerAttribute=e.__decorate([t.Entity("customerAttribute",{schema:"nova"})],exports.CustomerAttribute);
|
|
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;industries;primaryUseCase;crmPersonas;crmSolutions;storeBlocked;csmOwnerId;csmOwnerEmail;hubspotCompanyId;hubspotSyncedAt;deviceSummary;activationIndustry;billingOverride;storeAccessOverride;kindOverride;personasOverride;overrideSetBy;overrideSetAt;overrideReason;intendedUse;intendedUseAnsweredAt;intendedUseAnsweredBy;billing;storeAccess;storePricing;managed;kind;tier;personas;powerProfile;profileSources;profileComputedAt},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("varchar",{name:"icp",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"icp",void 0),e.__decorate([t.Column("varchar",{name:"billingMethod",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"billingMethod",void 0),e.__decorate([t.Column("varchar",{name:"customerSegment",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"customerSegment",void 0),e.__decorate([t.Column("varchar",{name:"industries",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"industries",void 0),e.__decorate([t.Column("varchar",{name:"primaryUseCase",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"primaryUseCase",void 0),e.__decorate([t.Column("varchar",{name:"crmPersonas",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"crmPersonas",void 0),e.__decorate([t.Column("varchar",{name:"crmSolutions",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"crmSolutions",void 0),e.__decorate([t.Column("tinyint",{name:"storeBlocked",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"storeBlocked",void 0),e.__decorate([t.Column("varchar",{name:"csmOwnerId",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"csmOwnerId",void 0),e.__decorate([t.Column("varchar",{name:"csmOwnerEmail",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"csmOwnerEmail",void 0),e.__decorate([t.Column("varchar",{name:"hubspotCompanyId",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"hubspotCompanyId",void 0),e.__decorate([t.Column("datetime",{name:"hubspotSyncedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.CustomerAttribute.prototype,"hubspotSyncedAt",void 0),e.__decorate([t.Column("json",{name:"deviceSummary",nullable:!0}),e.__metadata("design:type",Object)],exports.CustomerAttribute.prototype,"deviceSummary",void 0),e.__decorate([t.Column("varchar",{name:"activationIndustry",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"activationIndustry",void 0),e.__decorate([t.Column("varchar",{name:"billingOverride",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"billingOverride",void 0),e.__decorate([t.Column("varchar",{name:"storeAccessOverride",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"storeAccessOverride",void 0),e.__decorate([t.Column("varchar",{name:"kindOverride",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"kindOverride",void 0),e.__decorate([t.Column("json",{name:"personasOverride",nullable:!0}),e.__metadata("design:type",Array)],exports.CustomerAttribute.prototype,"personasOverride",void 0),e.__decorate([t.Column("varchar",{name:"overrideSetBy",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"overrideSetBy",void 0),e.__decorate([t.Column("datetime",{name:"overrideSetAt",nullable:!0}),e.__metadata("design:type",Date)],exports.CustomerAttribute.prototype,"overrideSetAt",void 0),e.__decorate([t.Column("varchar",{name:"overrideReason",length:500,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"overrideReason",void 0),e.__decorate([t.Column("varchar",{name:"intendedUse",length:25,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"intendedUse",void 0),e.__decorate([t.Column("datetime",{name:"intendedUseAnsweredAt",nullable:!0}),e.__metadata("design:type",Date)],exports.CustomerAttribute.prototype,"intendedUseAnsweredAt",void 0),e.__decorate([t.Column("varchar",{name:"intendedUseAnsweredBy",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"intendedUseAnsweredBy",void 0),e.__decorate([t.Column("varchar",{name:"billing",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"billing",void 0),e.__decorate([t.Column("varchar",{name:"storeAccess",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"storeAccess",void 0),e.__decorate([t.Column("varchar",{name:"storePricing",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"storePricing",void 0),e.__decorate([t.Column("tinyint",{name:"managed",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"managed",void 0),e.__decorate([t.Column("varchar",{name:"kind",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"kind",void 0),e.__decorate([t.Column("varchar",{name:"tier",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"tier",void 0),e.__decorate([t.Column("json",{name:"personas",nullable:!0}),e.__metadata("design:type",Array)],exports.CustomerAttribute.prototype,"personas",void 0),e.__decorate([t.Column("varchar",{name:"powerProfile",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"powerProfile",void 0),e.__decorate([t.Column("json",{name:"profileSources",nullable:!0}),e.__metadata("design:type",Object)],exports.CustomerAttribute.prototype,"profileSources",void 0),e.__decorate([t.Column("datetime",{name:"profileComputedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.CustomerAttribute.prototype,"profileComputedAt",void 0),exports.CustomerAttribute=e.__decorate([t.Entity("customerAttribute",{schema:"nova"})],exports.CustomerAttribute);
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
export interface EphemeralBoundaryRecipientChannels {
|
|
2
|
+
emailNotification: boolean;
|
|
3
|
+
smsNotification: boolean;
|
|
4
|
+
pushNotification: boolean;
|
|
5
|
+
appNotification: boolean;
|
|
6
|
+
isEnabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface EphemeralBoundaryRecipients {
|
|
9
|
+
allUsersInAccountConfig?: EphemeralBoundaryRecipientChannels | null;
|
|
10
|
+
roleRecipientConfigs?: Array<EphemeralBoundaryRecipientChannels & {
|
|
11
|
+
roleId: number;
|
|
12
|
+
}>;
|
|
13
|
+
userRecipientConfigs?: Array<EphemeralBoundaryRecipientChannels & {
|
|
14
|
+
userId: string;
|
|
15
|
+
}>;
|
|
16
|
+
externalRecipientConfigs?: Array<{
|
|
17
|
+
type: 'email' | 'sms';
|
|
18
|
+
recipient: string;
|
|
19
|
+
isEnabled?: boolean;
|
|
20
|
+
}>;
|
|
21
|
+
}
|
|
1
22
|
export declare class EphemeralBoundary {
|
|
2
23
|
id: string;
|
|
3
24
|
clientId: number;
|
|
@@ -13,6 +34,7 @@ export declare class EphemeralBoundary {
|
|
|
13
34
|
notified: boolean;
|
|
14
35
|
createdAt: Date;
|
|
15
36
|
createdBy: string | null;
|
|
37
|
+
recipients: EphemeralBoundaryRecipients | null;
|
|
16
38
|
modifiedAt: Date;
|
|
17
39
|
modifiedBy: string | null;
|
|
18
40
|
generateDefaults(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("uuid"),r=require("../utils/boolToNumberTransformer.js"),o=require("../utils/uuidTransformer.js");exports.EphemeralBoundary=class EphemeralBoundary{id;clientId;imei;geometry;startAt;expiresAt;status;firedAt;firedLat;firedLon;firedDistanceMeters;notified;createdAt;createdBy;modifiedAt;modifiedBy;generateDefaults(){this.id||(this.id=a.v4())}},e.__decorate([t.Column("binary",{primary:!0,name:"id",length:16,transformer:o.UUIDTransformer}),e.__metadata("design:type",String)],exports.EphemeralBoundary.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.EphemeralBoundary.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.EphemeralBoundary.prototype,"imei",void 0),e.__decorate([t.Column("json",{name:"geometry",nullable:!0}),e.__metadata("design:type",Object)],exports.EphemeralBoundary.prototype,"geometry",void 0),e.__decorate([t.Column("datetime",{name:"startAt"}),e.__metadata("design:type",Date)],exports.EphemeralBoundary.prototype,"startAt",void 0),e.__decorate([t.Column("datetime",{name:"expiresAt"}),e.__metadata("design:type",Date)],exports.EphemeralBoundary.prototype,"expiresAt",void 0),e.__decorate([t.Column("varchar",{name:"status",length:10,default:()=>"'active'"}),e.__metadata("design:type",String)],exports.EphemeralBoundary.prototype,"status",void 0),e.__decorate([t.Column("datetime",{name:"firedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.EphemeralBoundary.prototype,"firedAt",void 0),e.__decorate([t.Column("decimal",{name:"firedLat",nullable:!0,precision:8,scale:6}),e.__metadata("design:type",Number)],exports.EphemeralBoundary.prototype,"firedLat",void 0),e.__decorate([t.Column("decimal",{name:"firedLon",nullable:!0,precision:9,scale:6}),e.__metadata("design:type",Number)],exports.EphemeralBoundary.prototype,"firedLon",void 0),e.__decorate([t.Column("int",{name:"firedDistanceMeters",nullable:!0}),e.__metadata("design:type",Number)],exports.EphemeralBoundary.prototype,"firedDistanceMeters",void 0),e.__decorate([t.Column("tinyint",{name:"notified",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.EphemeralBoundary.prototype,"notified",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.EphemeralBoundary.prototype,"createdAt",void 0),e.__decorate([t.Column("varchar",{name:"createdBy",nullable:!0,length:100}),e.__metadata("design:type",String)],exports.EphemeralBoundary.prototype,"createdBy",void 0),e.__decorate([t.UpdateDateColumn({name:"modifiedAt"}),e.__metadata("design:type",Date)],exports.EphemeralBoundary.prototype,"modifiedAt",void 0),e.__decorate([t.Column("varchar",{name:"modifiedBy",nullable:!0,length:100}),e.__metadata("design:type",String)],exports.EphemeralBoundary.prototype,"modifiedBy",void 0),e.__decorate([t.BeforeInsert(),e.__metadata("design:type",Function),e.__metadata("design:paramtypes",[]),e.__metadata("design:returntype",void 0)],exports.EphemeralBoundary.prototype,"generateDefaults",null),exports.EphemeralBoundary=e.__decorate([t.Index("ixEphemeralBoundaryClientId_Imei_Status",["clientId","imei","status"],{}),t.Index("ixEphemeralBoundaryStatus_ExpiresAt",["status","expiresAt"],{}),t.Entity("ephemeralBoundary",{schema:"nova"})],exports.EphemeralBoundary);
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("uuid"),r=require("../utils/boolToNumberTransformer.js"),o=require("../utils/uuidTransformer.js");exports.EphemeralBoundary=class EphemeralBoundary{id;clientId;imei;geometry;startAt;expiresAt;status;firedAt;firedLat;firedLon;firedDistanceMeters;notified;createdAt;createdBy;recipients;modifiedAt;modifiedBy;generateDefaults(){this.id||(this.id=a.v4())}},e.__decorate([t.Column("binary",{primary:!0,name:"id",length:16,transformer:o.UUIDTransformer}),e.__metadata("design:type",String)],exports.EphemeralBoundary.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.EphemeralBoundary.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.EphemeralBoundary.prototype,"imei",void 0),e.__decorate([t.Column("json",{name:"geometry",nullable:!0}),e.__metadata("design:type",Object)],exports.EphemeralBoundary.prototype,"geometry",void 0),e.__decorate([t.Column("datetime",{name:"startAt"}),e.__metadata("design:type",Date)],exports.EphemeralBoundary.prototype,"startAt",void 0),e.__decorate([t.Column("datetime",{name:"expiresAt"}),e.__metadata("design:type",Date)],exports.EphemeralBoundary.prototype,"expiresAt",void 0),e.__decorate([t.Column("varchar",{name:"status",length:10,default:()=>"'active'"}),e.__metadata("design:type",String)],exports.EphemeralBoundary.prototype,"status",void 0),e.__decorate([t.Column("datetime",{name:"firedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.EphemeralBoundary.prototype,"firedAt",void 0),e.__decorate([t.Column("decimal",{name:"firedLat",nullable:!0,precision:8,scale:6}),e.__metadata("design:type",Number)],exports.EphemeralBoundary.prototype,"firedLat",void 0),e.__decorate([t.Column("decimal",{name:"firedLon",nullable:!0,precision:9,scale:6}),e.__metadata("design:type",Number)],exports.EphemeralBoundary.prototype,"firedLon",void 0),e.__decorate([t.Column("int",{name:"firedDistanceMeters",nullable:!0}),e.__metadata("design:type",Number)],exports.EphemeralBoundary.prototype,"firedDistanceMeters",void 0),e.__decorate([t.Column("tinyint",{name:"notified",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.EphemeralBoundary.prototype,"notified",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.EphemeralBoundary.prototype,"createdAt",void 0),e.__decorate([t.Column("varchar",{name:"createdBy",nullable:!0,length:100}),e.__metadata("design:type",String)],exports.EphemeralBoundary.prototype,"createdBy",void 0),e.__decorate([t.Column("json",{name:"recipients",nullable:!0}),e.__metadata("design:type",Object)],exports.EphemeralBoundary.prototype,"recipients",void 0),e.__decorate([t.UpdateDateColumn({name:"modifiedAt"}),e.__metadata("design:type",Date)],exports.EphemeralBoundary.prototype,"modifiedAt",void 0),e.__decorate([t.Column("varchar",{name:"modifiedBy",nullable:!0,length:100}),e.__metadata("design:type",String)],exports.EphemeralBoundary.prototype,"modifiedBy",void 0),e.__decorate([t.BeforeInsert(),e.__metadata("design:type",Function),e.__metadata("design:paramtypes",[]),e.__metadata("design:returntype",void 0)],exports.EphemeralBoundary.prototype,"generateDefaults",null),exports.EphemeralBoundary=e.__decorate([t.Index("ixEphemeralBoundaryClientId_Imei_Status",["clientId","imei","status"],{}),t.Index("ixEphemeralBoundaryStatus_ExpiresAt",["status","expiresAt"],{}),t.Entity("ephemeralBoundary",{schema:"nova"})],exports.EphemeralBoundary);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Repository } from 'typeorm';
|
|
2
2
|
import * as Cache from './cache';
|
|
3
3
|
import * as Entities from './entities';
|
|
4
|
+
import { type EphemeralBoundaryRecipientChannels, type EphemeralBoundaryRecipients } from './entities/ephemeralBoundary';
|
|
4
5
|
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, type JobWaypoint } from './entities/job';
|
|
5
6
|
import { type JobCustomerLinkDeliveryStatus, JobCustomerLinkDeliveryStatusValue, type JobCustomerLinkStatus, JobCustomerLinkStatusValue } from './entities/jobCustomerLink';
|
|
6
7
|
import { type CustomerPageDefaultJobRules, type CustomerPageSendDefaults } from './entities/jobCustomerPageSetting';
|
|
@@ -28,4 +29,4 @@ declare const Utils: {
|
|
|
28
29
|
addMonthsToNow: (months: number) => Date;
|
|
29
30
|
mapRawEntityToEntity: <T>(rawEntity: any, columnsPrefix?: string) => T;
|
|
30
31
|
};
|
|
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, JobWaypoint, NovaDataSource, NovaDataSourceConfig, queryTags, Repository, syncSchemaFromDump, SyncSchemaFromDumpConfig, Types, Utils, };
|
|
32
|
+
export { ACTIVE_JOB_LIFECYCLES, Cache, ConsoleLogger, CustomerPageDefaultJobRules, CustomerPageSendDefaults, Entities, Enums, EphemeralBoundaryRecipientChannels, EphemeralBoundaryRecipients, JobCustomerLinkDeliveryStatus, JobCustomerLinkDeliveryStatusValue, JobCustomerLinkStatus, JobCustomerLinkStatusValue, JobHealthSignal, JobHealthSignalValue, JobLifecycle, JobLifecycleValue, JobOutcome, JobOutcomeValue, JobPlannedRoute, JobProofState, JobProofStateValue, JobRecipientChannels, JobRecipients, JobRule, JobRuleKind, JobRuleKindValue, JobTimelineEvent, JobTimelineKind, JobTimelineKindValue, JobWaypoint, NovaDataSource, NovaDataSourceConfig, queryTags, Repository, syncSchemaFromDump, SyncSchemaFromDumpConfig, Types, Utils, };
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
4
4
|
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
5
|
-
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
6
5
|
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
6
|
+
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
|
11
11
|
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
12
|
-
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
|
13
12
|
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
13
|
+
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
|
@@ -10,6 +10,8 @@ export declare const AccountTierValue: readonly ["kraken", "whale", "bass", "gup
|
|
|
10
10
|
export type AccountTier = (typeof AccountTierValue)[number];
|
|
11
11
|
export declare const AccountPowerProfileValue: readonly ["battery", "wired", "mixed"];
|
|
12
12
|
export type AccountPowerProfile = (typeof AccountPowerProfileValue)[number];
|
|
13
|
+
export declare const AccountIntendedUseValue: readonly ["business", "personal"];
|
|
14
|
+
export type AccountIntendedUse = (typeof AccountIntendedUseValue)[number];
|
|
13
15
|
export declare const AccountProfileSourceValue: readonly ["computed", "hubspot", "override"];
|
|
14
16
|
export type AccountProfileSource = (typeof AccountProfileSourceValue)[number];
|
|
15
17
|
export declare const AccountProfileFieldValue: readonly ["billing", "storeAccess", "storePricing", "managed", "kind", "tier", "personas", "powerProfile"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.AccountBillingValue=["self-serve","invoiced"],exports.AccountKindValue=["customer","demo","internal"],exports.AccountPowerProfileValue=["battery","wired","mixed"],exports.AccountProfileFieldValue=["billing","storeAccess","storePricing","managed","kind","tier","personas","powerProfile"],exports.AccountProfileSourceValue=["computed","hubspot","override"],exports.AccountStoreAccessValue=["open","blocked","none"],exports.AccountStorePricingValue=["list","contract"],exports.AccountTierValue=["kraken","whale","bass","guppy","guppy-self-serve"];
|
|
1
|
+
"use strict";exports.AccountBillingValue=["self-serve","invoiced"],exports.AccountIntendedUseValue=["business","personal"],exports.AccountKindValue=["customer","demo","internal"],exports.AccountPowerProfileValue=["battery","wired","mixed"],exports.AccountProfileFieldValue=["billing","storeAccess","storePricing","managed","kind","tier","personas","powerProfile"],exports.AccountProfileSourceValue=["computed","hubspot","override"],exports.AccountStoreAccessValue=["open","blocked","none"],exports.AccountStorePricingValue=["list","contract"],exports.AccountTierValue=["kraken","whale","bass","guppy","guppy-self-serve"];
|
package/package.json
CHANGED
package/schema.sql
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
-- nova-orm-schema-checksum:
|
|
1
|
+
-- nova-orm-schema-checksum: 655c4d65516c63743bb2021282fcff89
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-11-
|
|
3
|
+
-- Generated at: 2026-11-18T09:14:46.548Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -1606,6 +1606,9 @@ CREATE TABLE `customerAttribute` (
|
|
|
1606
1606
|
`overrideSetBy` varchar(255) DEFAULT NULL,
|
|
1607
1607
|
`overrideSetAt` datetime DEFAULT NULL,
|
|
1608
1608
|
`overrideReason` varchar(500) DEFAULT NULL,
|
|
1609
|
+
`intendedUse` varchar(25) DEFAULT NULL,
|
|
1610
|
+
`intendedUseAnsweredAt` datetime DEFAULT NULL,
|
|
1611
|
+
`intendedUseAnsweredBy` varchar(255) DEFAULT NULL,
|
|
1609
1612
|
`billing` varchar(50) DEFAULT NULL,
|
|
1610
1613
|
`storeAccess` varchar(50) DEFAULT NULL,
|
|
1611
1614
|
`storePricing` varchar(50) DEFAULT NULL,
|
|
@@ -2516,6 +2519,7 @@ CREATE TABLE `ephemeralBoundary` (
|
|
|
2516
2519
|
`notified` tinyint(1) NOT NULL DEFAULT '0',
|
|
2517
2520
|
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
|
|
2518
2521
|
`createdBy` varchar(100) DEFAULT NULL,
|
|
2522
|
+
`recipients` json DEFAULT NULL,
|
|
2519
2523
|
`modifiedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
|
|
2520
2524
|
`modifiedBy` varchar(100) DEFAULT NULL,
|
|
2521
2525
|
PRIMARY KEY (`id`),
|