@spytecgps/nova-orm 1.4.327 → 1.4.329
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/aiConversation.d.ts +3 -0
- package/dist/entities/aiConversation.js +1 -1
- package/dist/entities/customerAttribute.d.ts +1 -0
- package/dist/entities/customerAttribute.js +1 -1
- package/dist/migration/_virtual/_virtual_multi-entry.js +4 -4
- package/package.json +1 -1
- package/schema.sql +5 -2
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
export type AiConversationSource = 'chat' | 'voice';
|
|
1
2
|
export declare class AiConversation {
|
|
2
3
|
id: string;
|
|
3
4
|
clientId: number;
|
|
4
5
|
userId: string;
|
|
5
6
|
title: string;
|
|
7
|
+
source: AiConversationSource | null;
|
|
6
8
|
createdAt: Date;
|
|
7
9
|
updatedAt: Date;
|
|
10
|
+
deletedAt: Date | null;
|
|
8
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),o=require("../utils/uuidTransformer.js");exports.AiConversation=class AiConversation{id;clientId;userId;title;source;createdAt;updatedAt;deletedAt},e.__decorate([t.PrimaryColumn("binary",{name:"id",length:16,transformer:o.UUIDTransformer}),e.__metadata("design:type",String)],exports.AiConversation.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.AiConversation.prototype,"clientId",void 0),e.__decorate([t.Column("binary",{name:"userId",length:16,transformer:o.UUIDTransformer}),e.__metadata("design:type",String)],exports.AiConversation.prototype,"userId",void 0),e.__decorate([t.Column("varchar",{name:"title",length:255}),e.__metadata("design:type",String)],exports.AiConversation.prototype,"title",void 0),e.__decorate([t.Column("varchar",{name:"source",length:10,nullable:!0}),e.__metadata("design:type",String)],exports.AiConversation.prototype,"source",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.AiConversation.prototype,"createdAt",void 0),e.__decorate([t.UpdateDateColumn({name:"updatedAt"}),e.__metadata("design:type",Date)],exports.AiConversation.prototype,"updatedAt",void 0),e.__decorate([t.DeleteDateColumn({name:"deletedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.AiConversation.prototype,"deletedAt",void 0),exports.AiConversation=e.__decorate([t.Index("ixAiConversationUserId",["userId"],{}),t.Entity("aiConversation",{schema:"nova"})],exports.AiConversation);
|
|
@@ -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;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("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;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("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,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
4
|
+
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
3
5
|
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
4
6
|
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
5
|
-
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
6
|
-
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
|
11
|
+
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
10
12
|
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
11
13
|
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
|
12
|
-
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
13
|
-
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
package/package.json
CHANGED
package/schema.sql
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
-- nova-orm-schema-checksum:
|
|
1
|
+
-- nova-orm-schema-checksum: 9b661f3b44115d437e85e8790ced5a4a
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-10-
|
|
3
|
+
-- Generated at: 2026-10-21T05:43:21.783Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -125,8 +125,10 @@ CREATE TABLE `aiConversation` (
|
|
|
125
125
|
`clientId` int NOT NULL,
|
|
126
126
|
`userId` binary(16) NOT NULL,
|
|
127
127
|
`title` varchar(255) NOT NULL,
|
|
128
|
+
`source` varchar(10) DEFAULT NULL,
|
|
128
129
|
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
|
|
129
130
|
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
|
|
131
|
+
`deletedAt` datetime(6) DEFAULT NULL,
|
|
130
132
|
PRIMARY KEY (`id`),
|
|
131
133
|
KEY `ixAiConversationUserId` (`userId`)
|
|
132
134
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
@@ -1584,6 +1586,7 @@ CREATE TABLE `customerAttribute` (
|
|
|
1584
1586
|
`customerSegment` varchar(100) DEFAULT NULL,
|
|
1585
1587
|
`industries` varchar(100) DEFAULT NULL,
|
|
1586
1588
|
`primaryUseCase` varchar(255) DEFAULT NULL,
|
|
1589
|
+
`crmPersonas` varchar(255) DEFAULT NULL,
|
|
1587
1590
|
`storeBlocked` tinyint(1) NOT NULL DEFAULT '0',
|
|
1588
1591
|
`csmOwnerId` varchar(50) DEFAULT NULL,
|
|
1589
1592
|
`csmOwnerEmail` varchar(255) DEFAULT NULL,
|