@spytecgps/nova-orm 1.4.274 → 1.4.275
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/supportConversation.d.ts +1 -0
- package/dist/entities/supportConversation.js +1 -1
- package/dist/entities/supportTicket.d.ts +1 -0
- package/dist/entities/supportTicket.js +1 -1
- package/dist/migration/_virtual/_virtual_multi-entry.js +4 -4
- package/package.json +1 -1
- package/schema.sql +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/uuidTransformer.js");exports.SupportConversation=class SupportConversation{id;adaConversationId;clientId;userId;email;channel;startedAt;endedAt;escalatedZendeskTicketId;csatScore;metadata;syncedAt;classifiedAt},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.SupportConversation.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"adaConversationId",length:64}),e.__metadata("design:type",String)],exports.SupportConversation.prototype,"adaConversationId",void 0),e.__decorate([t.Column("int",{name:"clientId",nullable:!0}),e.__metadata("design:type",Number)],exports.SupportConversation.prototype,"clientId",void 0),e.__decorate([t.Column("binary",{name:"userId",length:16,nullable:!0,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.SupportConversation.prototype,"userId",void 0),e.__decorate([t.Column("varchar",{name:"email",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.SupportConversation.prototype,"email",void 0),e.__decorate([t.Column("varchar",{name:"channel",length:40,nullable:!0}),e.__metadata("design:type",String)],exports.SupportConversation.prototype,"channel",void 0),e.__decorate([t.Column("datetime",{name:"startedAt"}),e.__metadata("design:type",Date)],exports.SupportConversation.prototype,"startedAt",void 0),e.__decorate([t.Column("datetime",{name:"endedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.SupportConversation.prototype,"endedAt",void 0),e.__decorate([t.Column("bigint",{name:"escalatedZendeskTicketId",nullable:!0}),e.__metadata("design:type",Number)],exports.SupportConversation.prototype,"escalatedZendeskTicketId",void 0),e.__decorate([t.Column("tinyint",{name:"csatScore",nullable:!0}),e.__metadata("design:type",Number)],exports.SupportConversation.prototype,"csatScore",void 0),e.__decorate([t.Column("json",{name:"metadata",nullable:!0}),e.__metadata("design:type",Object)],exports.SupportConversation.prototype,"metadata",void 0),e.__decorate([t.Column("datetime",{name:"syncedAt",precision:3,default:()=>"CURRENT_TIMESTAMP(3)"}),e.__metadata("design:type",Date)],exports.SupportConversation.prototype,"syncedAt",void 0),e.__decorate([t.Column("datetime",{name:"classifiedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.SupportConversation.prototype,"classifiedAt",void 0),exports.SupportConversation=e.__decorate([t.Index("uxSupportConversationAdaId",["adaConversationId"],{unique:!0}),t.Index("ixSupportConversationClientIdStartedAt",["clientId","startedAt"],{}),t.Index("ixSupportConversationEmail",["email"],{}),t.Index("ixSupportConversationStartedAt",["startedAt"],{}),t.Index("ixSupportConversationClassifiedAt",["classifiedAt"],{}),t.Entity("supportConversation",{schema:"nova"})],exports.SupportConversation);
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/uuidTransformer.js");exports.SupportConversation=class SupportConversation{id;adaConversationId;clientId;userId;email;channel;startedAt;endedAt;escalatedZendeskTicketId;csatScore;metadata;syncedAt;classifiedAt;issueType},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.SupportConversation.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"adaConversationId",length:64}),e.__metadata("design:type",String)],exports.SupportConversation.prototype,"adaConversationId",void 0),e.__decorate([t.Column("int",{name:"clientId",nullable:!0}),e.__metadata("design:type",Number)],exports.SupportConversation.prototype,"clientId",void 0),e.__decorate([t.Column("binary",{name:"userId",length:16,nullable:!0,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.SupportConversation.prototype,"userId",void 0),e.__decorate([t.Column("varchar",{name:"email",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.SupportConversation.prototype,"email",void 0),e.__decorate([t.Column("varchar",{name:"channel",length:40,nullable:!0}),e.__metadata("design:type",String)],exports.SupportConversation.prototype,"channel",void 0),e.__decorate([t.Column("datetime",{name:"startedAt"}),e.__metadata("design:type",Date)],exports.SupportConversation.prototype,"startedAt",void 0),e.__decorate([t.Column("datetime",{name:"endedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.SupportConversation.prototype,"endedAt",void 0),e.__decorate([t.Column("bigint",{name:"escalatedZendeskTicketId",nullable:!0}),e.__metadata("design:type",Number)],exports.SupportConversation.prototype,"escalatedZendeskTicketId",void 0),e.__decorate([t.Column("tinyint",{name:"csatScore",nullable:!0}),e.__metadata("design:type",Number)],exports.SupportConversation.prototype,"csatScore",void 0),e.__decorate([t.Column("json",{name:"metadata",nullable:!0}),e.__metadata("design:type",Object)],exports.SupportConversation.prototype,"metadata",void 0),e.__decorate([t.Column("datetime",{name:"syncedAt",precision:3,default:()=>"CURRENT_TIMESTAMP(3)"}),e.__metadata("design:type",Date)],exports.SupportConversation.prototype,"syncedAt",void 0),e.__decorate([t.Column("datetime",{name:"classifiedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.SupportConversation.prototype,"classifiedAt",void 0),e.__decorate([t.Column("varchar",{name:"issueType",length:20,nullable:!0}),e.__metadata("design:type",String)],exports.SupportConversation.prototype,"issueType",void 0),exports.SupportConversation=e.__decorate([t.Index("uxSupportConversationAdaId",["adaConversationId"],{unique:!0}),t.Index("ixSupportConversationClientIdStartedAt",["clientId","startedAt"],{}),t.Index("ixSupportConversationEmail",["email"],{}),t.Index("ixSupportConversationStartedAt",["startedAt"],{}),t.Index("ixSupportConversationClassifiedAt",["classifiedAt"],{}),t.Index("ixSupportConversationIssueTypeStartedAt",["issueType","startedAt"],{}),t.Entity("supportConversation",{schema:"nova"})],exports.SupportConversation);
|
|
@@ -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"),a=require("../utils/uuidTransformer.js");exports.SupportTicket=class SupportTicket{id;zendeskId;clientId;userId;requesterEmail;subject;description;status;priority;channel;tags;csatScore;csatComment;assigneeZendeskId;customFields;organizationId;groupId;ticketFormId;type;collaboratorIds;emailCcIds;zendeskCreatedAt;zendeskUpdatedAt;syncedAt;classifiedAt;issueType},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.SupportTicket.prototype,"id",void 0),e.__decorate([t.Column("bigint",{name:"zendeskId"}),e.__metadata("design:type",Number)],exports.SupportTicket.prototype,"zendeskId",void 0),e.__decorate([t.Column("int",{name:"clientId",nullable:!0}),e.__metadata("design:type",Number)],exports.SupportTicket.prototype,"clientId",void 0),e.__decorate([t.Column("binary",{name:"userId",length:16,nullable:!0,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.SupportTicket.prototype,"userId",void 0),e.__decorate([t.Column("varchar",{name:"requesterEmail",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.SupportTicket.prototype,"requesterEmail",void 0),e.__decorate([t.Column("varchar",{name:"subject",length:512,nullable:!0}),e.__metadata("design:type",String)],exports.SupportTicket.prototype,"subject",void 0),e.__decorate([t.Column("mediumtext",{name:"description",nullable:!0}),e.__metadata("design:type",String)],exports.SupportTicket.prototype,"description",void 0),e.__decorate([t.Column("varchar",{name:"status",length:20}),e.__metadata("design:type",String)],exports.SupportTicket.prototype,"status",void 0),e.__decorate([t.Column("varchar",{name:"priority",length:20,nullable:!0}),e.__metadata("design:type",String)],exports.SupportTicket.prototype,"priority",void 0),e.__decorate([t.Column("varchar",{name:"channel",length:40,nullable:!0}),e.__metadata("design:type",String)],exports.SupportTicket.prototype,"channel",void 0),e.__decorate([t.Column("json",{name:"tags",nullable:!0}),e.__metadata("design:type",Array)],exports.SupportTicket.prototype,"tags",void 0),e.__decorate([t.Column("varchar",{name:"csatScore",length:10,nullable:!0}),e.__metadata("design:type",String)],exports.SupportTicket.prototype,"csatScore",void 0),e.__decorate([t.Column("text",{name:"csatComment",nullable:!0}),e.__metadata("design:type",String)],exports.SupportTicket.prototype,"csatComment",void 0),e.__decorate([t.Column("bigint",{name:"assigneeZendeskId",nullable:!0}),e.__metadata("design:type",Number)],exports.SupportTicket.prototype,"assigneeZendeskId",void 0),e.__decorate([t.Column("json",{name:"customFields",nullable:!0}),e.__metadata("design:type",Object)],exports.SupportTicket.prototype,"customFields",void 0),e.__decorate([t.Column("bigint",{name:"organizationId",nullable:!0}),e.__metadata("design:type",Number)],exports.SupportTicket.prototype,"organizationId",void 0),e.__decorate([t.Column("bigint",{name:"groupId",nullable:!0}),e.__metadata("design:type",Number)],exports.SupportTicket.prototype,"groupId",void 0),e.__decorate([t.Column("bigint",{name:"ticketFormId",nullable:!0}),e.__metadata("design:type",Number)],exports.SupportTicket.prototype,"ticketFormId",void 0),e.__decorate([t.Column("varchar",{name:"type",length:40,nullable:!0}),e.__metadata("design:type",String)],exports.SupportTicket.prototype,"type",void 0),e.__decorate([t.Column("json",{name:"collaboratorIds",nullable:!0}),e.__metadata("design:type",Array)],exports.SupportTicket.prototype,"collaboratorIds",void 0),e.__decorate([t.Column("json",{name:"emailCcIds",nullable:!0}),e.__metadata("design:type",Array)],exports.SupportTicket.prototype,"emailCcIds",void 0),e.__decorate([t.Column("datetime",{name:"zendeskCreatedAt"}),e.__metadata("design:type",Date)],exports.SupportTicket.prototype,"zendeskCreatedAt",void 0),e.__decorate([t.Column("datetime",{name:"zendeskUpdatedAt"}),e.__metadata("design:type",Date)],exports.SupportTicket.prototype,"zendeskUpdatedAt",void 0),e.__decorate([t.Column("datetime",{name:"syncedAt",precision:3,default:()=>"CURRENT_TIMESTAMP(3)"}),e.__metadata("design:type",Date)],exports.SupportTicket.prototype,"syncedAt",void 0),e.__decorate([t.Column("datetime",{name:"classifiedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.SupportTicket.prototype,"classifiedAt",void 0),e.__decorate([t.Column("varchar",{name:"issueType",length:20,nullable:!0}),e.__metadata("design:type",String)],exports.SupportTicket.prototype,"issueType",void 0),exports.SupportTicket=e.__decorate([t.Index("uxSupportTicketZendeskId",["zendeskId"],{unique:!0}),t.Index("ixSupportTicketClientIdCreatedAt",["clientId","zendeskCreatedAt"],{}),t.Index("ixSupportTicketRequesterEmail",["requesterEmail"],{}),t.Index("ixSupportTicketCreatedAt",["zendeskCreatedAt"],{}),t.Index("ixSupportTicketStatus",["status"],{}),t.Index("ixSupportTicketClassifiedAt",["classifiedAt"],{}),t.Index("ixSupportTicketIssueTypeCreatedAt",["issueType","zendeskCreatedAt"],{}),t.Entity("supportTicket",{schema:"nova"})],exports.SupportTicket);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
4
4
|
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
5
5
|
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
6
|
-
var
|
|
6
|
+
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.
|
|
10
|
+
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
|
11
11
|
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
12
12
|
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
13
|
-
exports.
|
|
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: 2e443aa5511f3251029f8d43e6897a7e
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-07-
|
|
3
|
+
-- Generated at: 2026-07-06T13:19:08.358Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -3239,8 +3239,10 @@ CREATE TABLE `supportConversation` (
|
|
|
3239
3239
|
`metadata` json DEFAULT NULL,
|
|
3240
3240
|
`syncedAt` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
3241
3241
|
`classifiedAt` datetime DEFAULT NULL,
|
|
3242
|
+
`issueType` varchar(20) DEFAULT NULL,
|
|
3242
3243
|
PRIMARY KEY (`id`),
|
|
3243
3244
|
UNIQUE KEY `uxSupportConversationAdaId` (`adaConversationId`),
|
|
3245
|
+
KEY `ixSupportConversationIssueTypeStartedAt` (`issueType`,`startedAt`),
|
|
3244
3246
|
KEY `ixSupportConversationClassifiedAt` (`classifiedAt`),
|
|
3245
3247
|
KEY `ixSupportConversationStartedAt` (`startedAt`),
|
|
3246
3248
|
KEY `ixSupportConversationEmail` (`email`),
|
|
@@ -3311,8 +3313,10 @@ CREATE TABLE `supportTicket` (
|
|
|
3311
3313
|
`zendeskUpdatedAt` datetime NOT NULL,
|
|
3312
3314
|
`syncedAt` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
3313
3315
|
`classifiedAt` datetime DEFAULT NULL,
|
|
3316
|
+
`issueType` varchar(20) DEFAULT NULL,
|
|
3314
3317
|
PRIMARY KEY (`id`),
|
|
3315
3318
|
UNIQUE KEY `uxSupportTicketZendeskId` (`zendeskId`),
|
|
3319
|
+
KEY `ixSupportTicketIssueTypeCreatedAt` (`issueType`,`zendeskCreatedAt`),
|
|
3316
3320
|
KEY `ixSupportTicketClassifiedAt` (`classifiedAt`),
|
|
3317
3321
|
KEY `ixSupportTicketStatus` (`status`),
|
|
3318
3322
|
KEY `ixSupportTicketCreatedAt` (`zendeskCreatedAt`),
|